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

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px; /* Minimum height for hero section */
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

.page-resources__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(26, 26, 26, 0.7); /* Semi-transparent dark background for text readability */
  border-radius: 10px;
  color: #ffffff;
}

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

.page-resources__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-resources__hero-button,
.page-resources__card-button,
.page-resources__button,
.page-resources__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #1A1A1A; /* Dark text for gold button */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-size: 1.1em;
}

.page-resources__hero-button:hover,
.page-resources__card-button:hover,
.page-resources__button:hover,
.page-resources__cta-button:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
}

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

.page-resources__articles-section,
.page-resources__faq-section,
.page-resources__cta-section {
  padding: 80px 0;
  background-color: #f4f4f4; /* Light background for sections */
}

.page-resources__articles-section {
  background-color: #ffffff;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #1A1A1A; /* Dark title */
  text-align: center;
  margin-bottom: 20px;
}

.page-resources__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
  line-height: 1.6;
}

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

.page-resources__article-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources__article-card:hover {
  transform: translateY(-10px);
}

.page-resources__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card images */
  object-fit: cover;
  display: block;
}

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

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-resources__card-link {
  color: #1A1A1A; /* Dark text for card title link */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card-link:hover {
  color: #FFD700; /* Gold on hover */
}

.page-resources__card-category {
  font-size: 0.9em;
  color: #888888;
  margin-bottom: 15px;
}

.page-resources__card-summary {
  font-size: 1em;
  color: #444444;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__faq-item {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px 25px;
}

.page-resources__faq-question {
  font-size: 1.2em;
  color: #1A1A1A;
  margin-bottom: 10px;
}

.page-resources__faq-answer {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  display: none; /* Hidden by default for accordion */
}

.page-resources__faq-question--active + .page-resources__faq-answer {
  display: block;
}

.page-resources__button--center {
  display: block;
  margin: 40px auto 0 auto;
  width: fit-content;
}

.page-resources__cta-section {
  background-color: #1A1A1A; /* Dark background for CTA */
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
}

.page-resources__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background image */
  z-index: 0;
}

.page-resources__cta-content {
  position: relative;
  z-index: 1;
}

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

.page-resources__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

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

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

  .page-resources__hero-button,
  .page-resources__card-button,
  .page-resources__button,
  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

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

  .page-resources__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

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

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

  .page-resources__card-title {
    font-size: 1.3em;
  }

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

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

  /* Ensure images do not overflow on mobile */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

/* Ensure no content images are smaller than 200px in display */
.page-resources__hero-image,
.page-resources__card-image,
.page-resources__cta-image {
  min-width: 200px;
  min-height: 200px;
}

/* Specific override for card images to ensure minimum size, if needed */
.page-resources__article-card .page-resources__card-image {
    width: 100%; /* Occupy full card width */
    height: 250px; /* Fixed height, ensuring it's > 200px */
    object-fit: cover;
}