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

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 80px 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #FFD700, #8B0000); /* Section background color */
  color: #ffffff;
  text-align: center;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Blend with the background gradient */
}

.page-resources__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-resources__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.page-resources__button--primary {
  background-color: #FFD700; /* Gold */
  color: #8B0000; /* Dark Red */
  border: 2px solid #FFD700;
}

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

.page-resources__button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold */
  border: 2px solid #FFD700;
}

.page-resources__button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

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

.page-resources__introduction-section,
.page-resources__articles-section,
.page-resources__faq-section,
.page-resources__cta-section,
.page-resources__more-resources-section {
  padding: 60px 0;
}

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

.page-resources__introduction-title,
.page-resources__articles-title,
.page-resources__faq-title,
.page-resources__cta-title,
.page-resources__more-resources-title {
  font-size: 2.5em;
  color: #8B0000; /* Dark Red */
  text-align: center;
  margin-bottom: 40px;
}

.page-resources__introduction-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-resources__articles-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

.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: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-resources__article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__article-heading {
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-resources__article-link {
  color: #8B0000; /* Dark Red */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-resources__article-summary {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-resources__button--text {
  color: #FFD700; /* Gold */
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
  padding: 0;
  border: none;
  background: none;
}

.page-resources__button--text:hover {
  text-decoration: underline;
  color: #e6c200;
}

.page-resources__faq-section {
  background-color: #f0f0f0;
}

.page-resources__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-resources__faq-question {
  font-size: 1.3em;
  color: #8B0000; /* Dark Red */
  margin-bottom: 10px;
  cursor: pointer;
}

.page-resources__faq-answer {
  font-size: 1em;
  color: #333333;
  display: none; /* Hidden by default for accordion */
  padding-top: 10px;
}

.page-resources__faq-question--active + .page-resources__faq-answer {
  display: block; /* Shown when active */
}

.page-resources__cta-section {
  background: linear-gradient(90deg, #8B0000, #FFD700);
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
}

.page-resources__cta-content {
  max-width: 800px;
}

.page-resources__cta-title {
  color: #ffffff;
  font-size: 2.8em;
  margin-bottom: 20px;
}

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

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

.page-resources__more-resources-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

.page-resources__more-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-resources__more-resources-card {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 25px;
  text-decoration: none;
  color: #333333;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__more-resources-card:hover {
  background-color: #fff8e1; /* Lighter gold background on hover */
  transform: translateY(-5px);
}

.page-resources__more-resources-heading {
  font-size: 1.3em;
  color: #8B0000; /* Dark Red */
  margin-bottom: 10px;
}

.page-resources__more-resources-summary {
  font-size: 0.95em;
  color: #555555;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__introduction-title,
  .page-resources__articles-title,
  .page-resources__faq-title,
  .page-resources__cta-title,
  .page-resources__more-resources-title {
    font-size: 2.2em;
  }
  .page-resources__article-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 120px); /* Ensure mobile content is below fixed header */
  }
  .page-resources__hero-section {
    min-height: 400px;
    padding: 60px 15px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__button {
    width: 100%;
    padding: 12px 20px;
  }
  .page-resources__introduction-section,
  .page-resources__articles-section,
  .page-resources__faq-section,
  .page-resources__cta-section,
  .page-resources__more-resources-section {
    padding: 40px 0;
  }
  .page-resources__introduction-title,
  .page-resources__articles-title,
  .page-resources__faq-title,
  .page-resources__cta-title,
  .page-resources__more-resources-title {
    font-size: 1.8em;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-card {
    margin: 0 15px;
  }
  .page-resources__article-image {
    height: 220px; /* Adjust for mobile view */
    max-width: 100%; /* Ensure images don't overflow */
  }
  .page-resources__faq-item {
    margin: 0 15px 20px;
  }
  .page-resources__cta-section {
    padding: 60px 15px;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__more-resources-grid {
    grid-template-columns: 1fr;
    margin: 0 15px;
  }
  .page-resources__content-wrapper {
    padding: 0 15px;
  }

  /* Ensure all images within .page-resources are responsive and don't overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}