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

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background-color: #ffffff;
  overflow: hidden;
  min-height: 500px;
}

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

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.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: #B80000; /* Main brand color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-blog__cta-button:hover {
  background-color: #cd4d4d; /* Lighter red on hover */
  transform: translateY(-2px);
}

.page-blog__category-section,
.page-blog__latest-articles-section,
.page-blog__cta-banner-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-blog__category-title,
.page-blog__latest-articles-title {
  font-size: 2.5em;
  color: #B80000; /* Main brand color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-blog__category-card,
.page-blog__article-card {
  background-color: #fefefe;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-blog__card-title,
.page-blog__article-title {
  font-size: 1.5em;
  color: #333333;
  margin: 20px 20px 10px;
  font-weight: bold;
  flex-grow: 1;
}

.page-blog__card-title a,
.page-blog__article-title a {
  color: #B80000; /* Main brand color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover,
.page-blog__article-title a:hover {
  color: #cd4d4d;
}

.page-blog__card-description,
.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #666666;
  margin: 0 20px 20px;
  line-height: 1.5;
}

.page-blog__card-button,
.page-blog__article-read-more {
  display: inline-block;
  background-color: #FFD700; /* Auxiliary color */
  color: #333333;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  margin: 0 20px 20px;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-blog__card-button:hover,
.page-blog__article-read-more:hover {
  background-color: #e6c200;
}

.page-blog__cta-banner-section {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.page-blog__cta-content-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog__cta-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-blog__cta-text-overlay {
  position: relative;
  z-index: 1;
  color: #ffffff;
  max-width: 800px;
  padding: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__cta-heading {
  font-size: 2.8em;
  color: #FFD700; /* Gold for CTA heading */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

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

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

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 120px); /* Ensure mobile also has offset */
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-blog__hero-section {
    padding: 30px 15px;
    min-height: 400px;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__category-title,
  .page-blog__latest-articles-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-blog__category-grid,
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__category-image,
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__card-title,
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__card-description,
  .page-blog__article-excerpt {
    font-size: 0.9em;
  }
  .page-blog__cta-banner-section {
    min-height: 300px;
  }
  .page-blog__cta-heading {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 0.9em;
  }
  .page-blog__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  /* Content area images must be responsive and not cause overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  /* Ensure no image is displayed smaller than 200px in content area */
  .page-blog__category-image, 
  .page-blog__article-image,
  .page-blog__cta-banner-image {
    min-width: 200px; /* Ensure content images are not too small */
    min-height: 200px;
    width: 100%; /* Override explicit width if it causes overflow */
    height: auto; /* Maintain aspect ratio */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__category-title,
  .page-blog__latest-articles-title {
    font-size: 1.8em;
  }
  .page-blog__card-title,
  .page-blog__article-title {
    font-size: 1.2em;
  }
  .page-blog__cta-heading {
    font-size: 1.6em;
  }
  .page-blog__cta-description {
    font-size: 0.85em;
  }
  .page-blog__cta-button--large {
    padding: 12px 25px;
    font-size: 1em;
  }
}