.page-blog {
  color: #333333; /* Default dark text for light body background */
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
}

.page-blog__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Minimum height for hero section */
  background-color: #0d0d0d; /* Dark background for contrast with gold/red */
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6; /* Slightly dim image to make text pop */
}

.page-blog__hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  color: #ffffff; /* Light text for dark hero background */
}

.page-blog__hero-content {
  position: relative;
  z-index: 3;
}

.page-blog__hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: #FFD700; /* Gold primary color */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-weight: bold;
}

.page-blog__hero-description {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-blog__hero-button {
  display: inline-block;
  background-color: #8B0000; /* Auxiliary red color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #8B0000;
}

.page-blog__hero-button:hover {
  background-color: #FFD700;
  color: #8B0000;
  transform: translateY(-3px);
  border-color: #FFD700;
}

.page-blog__articles-section,
.page-blog__cta-section,
.page-blog__related-resources {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-blog__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #8B0000; /* Auxiliary red for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.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: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.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: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__article-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333333;
  font-weight: bold;
}

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

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

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

.page-blog__read-more {
  display: inline-block;
  color: #8B0000; /* Auxiliary red for read more links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-blog__read-more:hover {
  color: #FFD700;
  text-decoration: underline;
}

.page-blog__cta-section {
  background-color: #FFD700; /* Gold background for CTA */
  color: #333333; /* Dark text for gold background */
  text-align: center;
  padding: 80px 20px;
  border-radius: 10px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-blog__cta-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #8B0000; /* Red for CTA title */
  margin-bottom: 25px;
  font-weight: bold;
}

.page-blog__cta-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 900px;
  margin: 0 auto 35px auto;
  color: #333333;
}

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

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.page-blog__cta-button--primary {
  background-color: #8B0000;
  color: #ffffff;
  border: 2px solid #8B0000;
}

.page-blog__cta-button--primary:hover {
  background-color: #6a0000;
  border-color: #6a0000;
  transform: translateY(-3px);
}

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

.page-blog__cta-button--secondary:hover {
  background-color: #8B0000;
  color: #ffffff;
  transform: translateY(-3px);
}

.page-blog__related-resources {
  padding-top: 40px;
  padding-bottom: 60px;
}

.page-blog__resources-list {
  list-style: none;
  padding: 0;
  text-align: center;
}

.page-blog__resources-list li {
  margin-bottom: 15px;
}

.page-blog__resources-list li a {
  font-size: 1.1rem;
  color: #8B0000;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.page-blog__resources-list li a:hover {
  color: #FFD700;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-blog__hero-section {
    min-height: 400px;
    padding: 30px 15px;
  }

  .page-blog__hero-title {
    font-size: 2.2rem;
  }

  .page-blog__hero-description {
    font-size: 0.95rem;
  }

  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-blog__articles-section,
  .page-blog__cta-section,
  .page-blog__related-resources {
    padding: 40px 15px;
  }

  .page-blog__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

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

  .page-blog__article-image {
    height: 180px;
  }

  .page-blog__article-title {
    font-size: 1.3rem;
  }

  .page-blog__article-excerpt {
    font-size: 0.9rem;
  }

  .page-blog__cta-title {
    font-size: 2.2rem;
  }

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

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__cta-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-blog__resources-list li a {
    font-size: 1rem;
  }

  /* Ensure all images within content areas are responsive */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8rem;
  }

  .page-blog__hero-description {
    font-size: 0.85rem;
  }

  .page-blog__article-title {
    font-size: 1.2rem;
  }

  .page-blog__cta-title {
    font-size: 1.8rem;
  }
}