.page-blog {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  background-color: #f8f8f8;
}

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-bottom: 40px; /* Space below hero content */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-blog__hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 450px; /* Minimum height for hero section */
  padding: 60px 20px;
}

.page-blog__hero-content {
  max-width: 800px;
}

.page-blog__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFCC00; /* Auxiliary color for emphasis */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.page-blog__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-blog__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1.1em;
}

.page-blog__button--primary {
  background-color: #FFCC00; /* Auxiliary color */
  color: #003366; /* Main color */
  border: 2px solid #FFCC00;
}

.page-blog__button--primary:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
}

.page-blog__button--secondary {
  background-color: transparent;
  color: #FFCC00;
  border: 2px solid #FFCC00;
}

.page-blog__button--secondary:hover {
  background-color: #FFCC00;
  color: #003366;
  transform: translateY(-2px);
}

/* Section Titles and Descriptions */
.page-blog__section-title {
  font-size: 2.5em;
  color: #003366; /* Main color */
  text-align: center;
  margin-bottom: 15px;
  padding-top: 60px;
}

.page-blog__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* Featured Articles Grid */
.page-blog__featured-articles {
  background-color: #ffffff;
  padding: 40px 0;
}

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

.page-blog__article-card {
  background-color: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-blog__article-content {
  padding: 25px;
}

.page-blog__article-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-blog__article-title a {
  color: #003366; /* Main color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #FFCC00; /* Auxiliary color */
}

.page-blog__article-excerpt {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-blog__button--read-more {
  background-color: #003366; /* Main color */
  color: #ffffff;
  padding: 10px 20px;
  font-size: 0.95em;
  border-radius: 5px;
  border: none;
}

.page-blog__button--read-more:hover {
  background-color: #004080;
}

/* Latest Posts Section */
.page-blog__latest-posts {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.page-blog__post-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-blog__post-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.page-blog__post-details {
  padding: 25px;
  flex-grow: 1;
}

.page-blog__post-title {
  font-size: 1.5em;
  color: #003366;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-date {
  font-size: 0.9em;
  color: #999999;
  margin-bottom: 15px;
}

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

.page-blog__button--small {
  background-color: #FFCC00;
  color: #003366;
  padding: 8px 18px;
  font-size: 0.9em;
  border-radius: 5px;
  border: none;
}

.page-blog__button--small:hover {
  background-color: #e6b800;
}

/* Call to Action Section */
.page-blog__cta-section {
  background-color: #003366; /* Main color */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-blog__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFCC00; /* Auxiliary color */
}

.page-blog__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-blog__button--cta {
  background-color: #FFCC00;
  color: #003366;
  padding: 15px 40px;
  font-size: 1.3em;
  border-radius: 10px;
  border: 2px solid #FFCC00;
}

.page-blog__button--cta:hover {
  background-color: #e6b800;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-blog__post-item {
    flex-direction: row;
  }

  .page-blog__post-thumbnail {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-title {
    font-size: 2.2em;
  }

  .page-blog__hero-description {
    font-size: 1em;
  }

  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__button {
    width: 100%;
    max-width: 300px;
  }

  .page-blog__section-title {
    font-size: 2em;
  }

  .page-blog__section-description {
    font-size: 1em;
  }

  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__post-item {
    flex-direction: column;
  }

  .page-blog__post-thumbnail {
    width: 100%;
    height: 180px;
  }

  .page-blog__cta-title {
    font-size: 2em;
  }

  .page-blog__cta-description {
    font-size: 1em;
  }

  /* Ensure content images are responsive and do not overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

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