.page-blog {
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-blog__hero-section {
  position: relative;
  background-color: #003366; /* Main brand color for hero background */
  color: #ffffff;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero section */
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Overlay with background color */
  z-index: 1;
}

.page-blog__hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.page-blog__hero-content {
  position: relative; /* To be above the image opacity */
  z-index: 3;
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFCC00; /* Auxiliary brand color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-blog__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.8;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #FFCC00; /* Auxiliary brand color for CTA */
  color: #003366; /* Main brand color for text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #003366; /* Main brand color for section titles */
  text-align: center;
  margin: 60px 0 40px 0;
  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__featured-articles,
.page-blog__latest-posts,
.page-blog__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-blog__article-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px 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__article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-blog__article-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block; /* Ensure no extra space below image */
}

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

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #003366;
  font-weight: bold;
  line-height: 1.3;
}

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

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

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  color: #003366;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #FFCC00;
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

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

.page-blog__posts-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

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

.page-blog__post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-blog__post-thumbnail {
  width: 300px; /* Fixed width for desktop */
  height: 200px; /* Fixed height for desktop */
  object-fit: cover;
  flex-shrink: 0;
}

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

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

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

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

.page-blog__post-meta {
  font-size: 0.85em;
  color: #777777;
  margin-bottom: 15px;
}

.page-blog__post-summary {
  font-size: 0.9em;
  color: #444444;
}

.page-blog__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  gap: 10px;
}

.page-blog__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #003366;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-link:hover:not(.page-blog__pagination-link--disabled):not(.page-blog__pagination-link--active) {
  background-color: #FFCC00;
  color: #003366;
}

.page-blog__pagination-link--active {
  background-color: #003366;
  color: #ffffff;
  cursor: default;
}

.page-blog__pagination-link--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.page-blog__cta-section {
  background-color: #003366; /* Main brand color for CTA background */
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  margin-top: 60px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-blog__cta-title {
  font-size: 2.8em;
  margin-bottom: 25px;
  color: #FFCC00; /* Auxiliary brand color for CTA title */
  font-weight: bold;
}

.page-blog__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  line-height: 1.7;
}

.page-blog__cta-button--large {
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__post-item {
    flex-direction: column;
  }
  .page-blog__post-thumbnail {
    width: 100%;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin: 40px 0 30px 0;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image {
    height: 180px;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__post-details {
    padding: 20px;
  }
  .page-blog__post-title {
    font-size: 1.1em;
  }
  .page-blog__post-thumbnail {
    width: 100%;
    height: 200px; /* Ensure images are not too small */
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 0.95em;
  }
  .page-blog__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  /* Ensure all content area 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: 2em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__article-title {
    font-size: 1.2em;
  }
  .page-blog__post-title {
    font-size: 1em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 0.9em;
  }
  .page-blog__cta-button--large {
    font-size: 1em;
  }
}