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

.page-resources__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #FFD700, #8B0000); /* Fallback background if image fails */
}

.page-resources__hero-container {
  position: relative;
  width: 100%;
  max-width: 1400px; /* Constrain container width */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #ffffff;
  z-index: 2;
}

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

.page-resources__hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  font-weight: 700;
  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;
  line-height: 1.6;
}

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

.page-resources__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.page-resources__articles-section,
.page-resources__faq-section,
.page-resources__cta-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  color: #333333;
}

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

.page-resources__section-title {
  font-size: 2.8em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  color: #8B0000;
}

.page-resources__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
  color: #555555;
}

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

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

.page-resources__article-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

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

.page-resources__article-category {
  display: inline-block;
  background-color: #FFD700;
  color: #8B0000;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 15px;
}

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

.page-resources__button--link {
  background-color: #8B0000;
  color: #FFD700;
  padding: 10px 20px;
  font-size: 0.95em;
  border-radius: 6px;
  align-self: flex-start;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.page-resources__button--link:hover {
  background-color: #a30000;
}

.page-resources__faq-section {
  background-color: #FFD700;
  color: #8B0000;
}

.page-resources__faq-section .page-resources__section-title {
  color: #8B0000;
}

.page-resources__faq-section .page-resources__section-intro {
  color: #555555;
}

.page-resources__faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.page-resources__faq-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  border-left: 5px solid #8B0000;
}

.page-resources__faq-question {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #8B0000;
}

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

.page-resources__cta-section {
  background-color: #8B0000;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
}

.page-resources__cta-title {
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-resources__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  color: #f0f0f0;
}

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

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

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

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

@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-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__button {
    width: 100%;
    max-width: 280px;
  }

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

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

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

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

  .page-resources__section-intro {
    font-size: 0.95em;
  }

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

  .page-resources__faq-answer {
    font-size: 0.9em;
  }

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

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

  /* Critical: Prevent content overflow on mobile */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }

  .page-resources {
    overflow-x: hidden;
  }
}

/* Ensure all content images meet minimum size requirements */
.page-resources__articles-section img,
.page-resources__hero-section img {
  min-width: 200px;
  min-height: 200px;
}