.page-blog {
  color: #333333;
}

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Ensures hero section has a minimum height */
  padding-top: var(--header-offset, 120px); /* Desktop padding */
  background-color: #003366;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.page-blog__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFCC00;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-blog__hero-button {
  display: inline-block;
  background-color: #FFCC00;
  color: #003366;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0 10px;
  min-width: 200px; /* Ensure button minimum size */
}

.page-blog__hero-button:hover {
  background-color: #e6b800;
  color: #001a33;
}

.page-blog__hero-button--secondary {
  background-color: #003366;
  color: #FFCC00;
  border: 2px solid #FFCC00;
}

.page-blog__hero-button--secondary:hover {
  background-color: #001a33;
  color: #FFCC00;
}

.page-blog__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #003366;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-blog__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFCC00;
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

.page-blog__latest-posts {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-blog__posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-blog__post-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-blog__post-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
}

.page-blog__post-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__post-title {
  font-size: 1.6em;
  color: #003366;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-blog__post-title a {
  text-decoration: none;
  color: inherit;
}

.page-blog__post-title a:hover {
  color: #FFCC00;
}

.page-blog__post-excerpt {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  color: #FFCC00;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #003366;
}

.page-blog__cta-section {
  padding: 80px 0;
  background-color: #003366;
}

.page-blog__cta-banner {
  position: relative;
  background-color: #001a33;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  min-height: 300px;
  color: #ffffff;
}

.page-blog__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.page-blog__cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-blog__cta-title {
  font-size: 2.8em;
  color: #FFCC00;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__cta-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #FFCC00;
  color: #003366;
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 250px;
}

.page-blog__cta-button:hover {
  background-color: #e6b800;
  color: #001a33;
}

.page-blog__categories {
  padding: 60px 0;
}

.page-blog__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-blog__category-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  background-color: #f5f5f5;
}

.page-blog__category-title {
  font-size: 1.8em;
  color: #003366;
  margin-bottom: 10px;
}

.page-blog__category-description {
  font-size: 1em;
  color: #666666;
  line-height: 1.5;
}

.page-blog__subscribe-section {
  padding: 80px 0;
  background-color: #f0f0f0;
}

.page-blog__subscribe-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background-color: #ffffff;
  border-radius: 15px;
  padding: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.page-blog__subscribe-title {
  font-size: 2.5em;
  color: #003366;
  margin-bottom: 20px;
}

.page-blog__subscribe-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-blog__subscribe-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.page-blog__subscribe-input {
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1.1em;
  flex-grow: 1;
  max-width: 400px;
}

.page-blog__subscribe-input:focus {
  border-color: #FFCC00;
  outline: none;
}

.page-blog__subscribe-button {
  background-color: #FFCC00;
  color: #003366;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__subscribe-button:hover {
  background-color: #e6b800;
  color: #001a33;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__cta-title {
    font-size: 2.4em;
  }
  .page-blog__cta-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    min-height: 400px;
    padding: 40px 20px;
    padding-top: var(--header-offset, 120px); /* Mobile padding */
  }
  .page-blog__hero-content {
    padding: 25px;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-button {
    width: 100%;
    margin: 10px 0;
  }
  
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-image {
    height: 200px;
    max-width: 100%;
    height: auto;
  }
  .page-blog__post-content {
    padding: 20px;
  }
  .page-blog__post-title {
    font-size: 1.4em;
  }
  .page-blog__post-excerpt {
    font-size: 0.95em;
  }

  .page-blog__cta-section {
    padding: 50px 0;
  }
  .page-blog__cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__cta-button {
    width: 100%;
    max-width: 300px;
    padding: 15px 25px;
  }

  .page-blog__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .page-blog__category-card {
    padding: 20px;
  }
  .page-blog__category-title {
    font-size: 1.5em;
  }
  .page-blog__category-description {
    font-size: 0.9em;
  }

  .page-blog__subscribe-section {
    padding: 50px 0;
  }
  .page-blog__subscribe-container {
    padding: 30px;
  }
  .page-blog__subscribe-title {
    font-size: 2em;
  }
  .page-blog__subscribe-description {
    font-size: 1em;
  }
  .page-blog__subscribe-form {
    flex-direction: column;
    gap: 10px;
  }
  .page-blog__subscribe-input, .page-blog__subscribe-button {
    width: 100%;
    max-width: 100%;
  }

  /* Ensure all images within .page-blog content area are responsive and not too small */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__post-image,
  .page-blog__cta-image {
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__subscribe-title {
    font-size: 1.8em;
  }
}