.page-blog {
  color: #333333; /* Dark text for default light body background */
}

.page-blog__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
  background-color: #003366; /* Main brand color for hero background */
  color: #ffffff;
  text-align: center;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-blog__hero-content-wrapper {
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-blog__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Accent color for title */
  line-height: 1.2;
}

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

.page-blog__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Accent color for button */
  color: #003366; /* Main color for button text */
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-blog__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
}

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-blog__latest-articles-section,
.page-blog__featured-content-section,
.page-blog__categories-section,
.page-blog__cta-banner-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

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

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Accent color */
  border-radius: 2px;
}

.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: 10px;
  box-shadow: 0 4px 20px 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 30px rgba(0, 0, 0, 0.15);
}

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

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

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

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

.page-blog__article-title a:hover {
  color: #FFD700; /* Accent color on hover */
}

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

.page-blog__read-more {
  display: inline-block;
  color: #003366; /* Main brand color */
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #FFD700; /* Accent color underline */
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

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

.page-blog__full-width-article {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 40px;
}

.page-blog__full-width-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-blog__full-width-content {
  padding: 30px;
}

.page-blog__full-width-title {
  font-size: 2em;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

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

.page-blog__full-width-text {
  font-size: 1.05em;
  color: #444444;
  line-height: 1.7;
  margin-bottom: 30px;
}

.page-blog__category-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item a {
  display: block;
  background-color: #FFD700; /* Accent color */
  color: #003366; /* Main brand color */
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__category-item a:hover {
  background-color: #003366;
  color: #FFD700;
}

.page-blog__cta-banner-section {
  background-color: #003366; /* Main brand color */
  color: #ffffff;
  text-align: center;
  padding: 60px 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  position: relative;
  overflow: hidden;
}

.page-blog__cta-banner-content {
  z-index: 2;
  max-width: 800px;
}

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

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

.page-blog__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Accent color */
  color: #003366; /* Main brand color */
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

/* Responsive Design */
@media (min-width: 769px) {
  .page-blog__full-width-article {
    flex-direction: row;
    align-items: center;
  }

  .page-blog__full-width-article:nth-child(even) {
    flex-direction: row-reverse;
  }

  .page-blog__full-width-image {
    width: 50%;
    height: 450px;
  }

  .page-blog__full-width-content {
    width: 50%;
    padding: 40px;
  }
}

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

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

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

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

  .page-blog__article-image,
  .page-blog__full-width-image {
    max-width: 100%;
    height: auto; /* Ensures images are responsive and don't overflow */
  }

  .page-blog__full-width-article {
    flex-direction: column;
  }

  .page-blog__full-width-content {
    padding: 20px;
  }

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

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

  .page-blog__category-list {
    justify-content: flex-start;
  }
  
  /* Ensure no horizontal scroll for content area */
  .page-blog {
    overflow-x: hidden;
  }
}

/* Ensure content area images are not smaller than 200px */
.page-blog img {
  min-width: 200px;
  min-height: 200px;
}

/* Specific override for article card images to ensure min height */
.page-blog__article-image {
  min-height: 200px; 
}