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

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

.page-blog__hero-section {
  position: relative;
  text-align: center;
  color: #FFFFFF; /* White text for hero content */
  padding: 80px 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent black overlay for readability */
  padding: 30px;
  border-radius: 10px;
}

.page-blog__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-blog__hero-cta-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color for CTA */
  color: #000000; /* Black text for FCBC45 background */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__hero-cta-button:hover {
  background-color: #FFD700; /* Slightly lighter gold on hover */
}

.page-blog__section-title {
  font-size: 2.2em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-blog__latest-posts {
  padding: 60px 0;
}

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

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

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

.page-blog__post-thumbnail {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-blog__post-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #000000;
}

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

.page-blog__post-title a:hover {
  color: #FCBC45;
}

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

.page-blog__read-more-button {
  display: inline-block;
  background-color: #000000; /* Main color for buttons */
  color: #FFFFFF; /* White text for black background */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.page-blog__read-more-button:hover {
  background-color: #333333;
}

.page-blog__featured-article {
  padding: 60px 0;
  background-color: #F8F8F8;
}

.page-blog__article-content {
  background-color: #FFFFFF;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.page-blog__article-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  display: block;
}

.page-blog__article-subtitle {
  font-size: 1.8em;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-blog__article-content p {
  margin-bottom: 1em;
  color: #333333;
  font-size: 1.05em;
}

.page-blog__article-content ol {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

.page-blog__article-content ol li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-blog__cta-button {
  display: block;
  width: fit-content;
  margin: 40px auto 0 auto;
  background-color: #FCBC45; /* Login color for CTA */
  color: #000000; /* Black text for FCBC45 background */
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-blog__more-resources {
  padding: 60px 0;
}

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

.page-blog__resource-card {
  background-color: #000000; /* Main color for card background */
  color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-blog__resource-title {
  font-size: 1.5em;
  margin-bottom: 15px;
}

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

.page-blog__resource-title a:hover {
  color: #FCBC45;
}

.page-blog__resource-description {
  font-size: 0.95em;
  color: #E0E0E0;
  margin-bottom: 20px;
}

.page-blog__resource-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color for button */
  color: #000000;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__resource-button:hover {
  background-color: #FFD700;
}

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

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

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

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

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-blog__latest-posts, .page-blog__featured-article, .page-blog__more-resources {
    padding: 40px 0;
  }

  .page-blog__posts-grid, .page-blog__resources-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__post-thumbnail {
    height: 200px;
  }

  .page-blog__post-title {
    font-size: 1.2em;
  }

  .page-blog__article-subtitle {
    font-size: 1.5em;
  }

  .page-blog__article-content p, .page-blog__article-content ol li {
    font-size: 0.95em;
  }

  .page-blog__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  /* Ensure content images are responsive and not too small */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  /* Specific override to ensure image elements under .page-blog are not smaller than 200px. */
  /* This specifically targets the image display size, not the intrinsic size. */
  .page-blog__post-thumbnail,
  .page-blog__article-image {
    min-width: 200px;
    min-height: 200px;
  }
}

/* Ensure no image filters are applied */
.page-blog img {
  filter: none !important;
}