.page-blog {
  color: #333333; /* Dark text for default white body background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
  background-color: #f8f8f8; /* Light background for the blog content */
}

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

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Ensure hero section has a minimum height */
  padding-top: var(--header-offset, 120px); /* For desktop */
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  padding: 40px;
  border-radius: 8px;
  max-width: 800px;
}

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

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-blog__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-blog__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__button--primary {
  background-color: #FFD700;
  color: #8B0000;
  border: 2px solid #FFD700;
}

.page-blog__button--primary:hover {
  background-color: #e6c200;
  color: #6a0000;
}

.page-blog__button--secondary {
  background-color: #8B0000;
  color: #FFD700;
  border: 2px solid #8B0000;
}

.page-blog__button--secondary:hover {
  background-color: #6a0000;
  color: #ffd700;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #8B0000;
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
}

.page-blog__featured-articles,
.page-blog__latest-articles,
.page-blog__call-to-action,
.page-blog__explore-more {
  padding: 60px 0;
}

.page-blog__articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 769px) {
  .page-blog__articles-grid {
    grid-template-columns: 1fr 1fr;
  }

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

.page-blog__article-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-blog__article-title {
  font-size: 1.6em;
  color: #8B0000;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

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

.page-blog__read-more {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Pushes to the bottom */
}

.page-blog__read-more:hover {
  color: #8B0000;
}

.page-blog__description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__resource-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__resource-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f0f0f0;
  color: #333333;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #ddd;
}

.page-blog__resource-link:hover {
  background-color: #FFD700;
  color: #8B0000;
  border-color: #FFD700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-blog__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px); /* Mobile header offset */
  }

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

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

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

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

  .page-blog__button {
    width: 100%;
  }

  .page-blog__section-title {
    font-size: 2em;
    margin-top: 40px;
  }

  .page-blog__featured-articles,
  .page-blog__latest-articles,
  .page-blog__call-to-action,
  .page-blog__explore-more {
    padding: 40px 0;
  }

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

  .page-blog__article-title {
    font-size: 1.4em;
  }

  .page-blog__article-excerpt {
    font-size: 0.95em;
  }

  /* Ensure content images do not overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure mobile images also meet min-size */
    min-height: 200px;
  }
}

/* Global image rules for content area - ensuring min-size */
.page-blog :is(img, .page-blog__article-image) {
  min-width: 200px; /* Enforce minimum width */
  min-height: 200px; /* Enforce minimum height */
  filter: none; /* Explicitly disable any potential filters */
}