.page-resources {
  color: #333333; /* Dark text for default light body background */
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
  background-color: #f8f8f8; /* Slightly off-white background for the page content */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #1A202C;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

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

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for emphasis */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-resources__hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources__hero-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, transform 0.2s ease;
  white-space: nowrap;
}

.page-resources__hero-button--primary {
  background-color: #FFD700; /* Gold */
  color: #1A202C; /* Dark blue-grey */
  border: 2px solid #FFD700;
}

.page-resources__hero-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-resources__hero-button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-resources__hero-button--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-2px);
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #1A202C;
  text-align: center;
  margin: 60px 0 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-resources__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-resources__why-resources,
.page-resources__commitment-section,
.page-resources__faq-section {
  padding: 40px 0;
  background-color: #ffffff;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-resources__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: #555555;
}

.page-resources__featured-articles {
  padding: 60px 0;
  background-color: #f0f0f0;
}

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

.page-resources__article-card {
  background-color: #ffffff;
  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;
  min-height: 550px; /* Ensure cards have consistent height for better layout */
}

.page-resources__article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  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: #1A202C;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card-link:hover {
  color: #FFD700;
}

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

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

.page-resources__card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #1A202C;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  align-self: flex-start;
}

.page-resources__card-button:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-2px);
}

.page-resources__commitment-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-resources__commitment-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #FFD700;
  color: #1A202C;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid #FFD700;
}

.page-resources__commitment-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

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

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

.page-resources__faq-answer {
  font-size: 1em;
  color: #555555;
}

.page-resources__cta-banner {
  background: linear-gradient(90deg, #1A202C, #3a404c);
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

.page-resources__cta-button {
  display: inline-block;
  padding: 18px 40px;
  background-color: #FFD700; /* Gold */
  color: #1A202C; /* Dark blue-grey */
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.3em;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }

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

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

  .page-resources__article-card {
    min-height: 520px;
  }

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

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

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

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }

  .page-resources__hero-section {
    padding: 60px 0;
  }

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

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

  .page-resources__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__hero-button {
    width: 80%;
    margin: 0 auto;
  }

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

  .page-resources__article-card {
    min-height: auto; /* Allow height to adjust on mobile */
  }

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

  .page-resources__text-content {
    font-size: 0.95em;
  }

  .page-resources__section-title {
    font-size: 1.8em;
    margin: 40px 0 30px;
  }

  .page-resources__commitment-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__commitment-button {
    width: 80%;
    margin: 0 auto;
  }

  .page-resources__faq-question {
    font-size: 1.1em;
  }

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

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

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

  .page-resources__container img {
    max-width: 100%;
    height: auto; /* Essential for mobile overflow prevention */
  }
}

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

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

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

/* Ensure all images within .page-resources are responsive and do not cause overflow */
.page-resources img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Enforce minimum size for content images if not specifically overridden by card-image */
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Maintain aspect ratio and cover space */
}

/* Override min-width/min-height for specific elements if needed, but ensure they are still >= 200px */
.page-resources__card-image {
  min-width: unset; /* Let card image specific styles control */
  min-height: unset;
}

/* Content area images must not display smaller than 200px */
/* This applies to any img that a selector could pick up within .page-resources */
.page-resources__why-resources img,
.page-resources__commitment-section img,
.page-resources__faq-section img {
  min-width: 200px;
  min-height: 200px;
}

/* Mobile specific image handling to prevent overflow and ensure responsiveness */
@media (max-width: 768px) {
  .page-resources img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure mobile images still meet minimum size if they are content images */
    min-height: 200px;
  }

  .page-resources__hero-image {
    min-width: unset;
    min-height: unset;
  }
  
  .page-resources__card-image {
    min-width: unset;
    min-height: unset;
  }
}