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

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #1A2A4E; /* Dark background for hero section */
  color: #ffffff;
  padding-bottom: 40px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the image to make text pop */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-blog__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px; /* Minimum height for hero */
  padding: 20px;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  background: rgba(26, 42, 78, 0.7); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-blog__main-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold for CTA button */
  color: #1A2A4E;
  padding: 15px 30px;
  border-radius: 5px;
  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: #e5c100;
  transform: translateY(-2px);
}

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

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

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

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

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

.page-blog__article-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;
}

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

.page-blog__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  min-height: 60px; /* Ensure consistent title height */
}

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

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

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
  min-height: 70px; /* Ensure consistent excerpt height */
}

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

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

.page-blog__featured-section {
  background-color: #eef2f7;
  padding: 60px 0;
}

.page-blog__featured-content {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.page-blog__featured-image {
  width: 50%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-blog__featured-text {
  width: 50%;
}

.page-blog__featured-title {
  font-size: 1.8em;
  color: #1A2A4E;
  margin-bottom: 20px;
}

.page-blog__featured-title a {
  color: #1A2A4E;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__featured-title a:hover {
  color: #FFD700;
}

.page-blog__featured-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-blog__cta-section {
  background-color: #1A2A4E;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-blog__cta-text {
  font-size: 1.3em;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-blog__cta-button--secondary {
  background-color: transparent;
  border: 2px solid #FFD700;
  color: #FFD700;
}

.page-blog__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #1A2A4E;
}

.page-blog__cta-button--small {
  padding: 10px 20px;
  font-size: 1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__article-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__featured-content {
    flex-direction: column;
  }
  .page-blog__featured-image,
  .page-blog__featured-text {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-blog__main-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-container {
    min-height: 300px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__article-image,
  .page-blog__featured-image {
    max-width: 100%;
    height: auto;
  }
  .page-blog__article-card,
  .page-blog__featured-content {
    margin-bottom: 20px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__cta-button {
    width: 80%;
    margin: 0 auto;
  }
  .page-blog__content-area {
    padding: 20px 15px;
  }
  /* Ensure content images do not overflow on mobile */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 1.5em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__hero-content {
    padding: 15px;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 90%;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
}