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

.page-resources__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #003366; /* Deep Ocean Blue background for hero text overlay */
  display: flex; /* Use flex to center content */
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero section */
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%; /* Make image cover the hero section */
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff; /* White text on dark image overlay */
  max-width: 800px;
  margin: 0 auto;
}

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

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

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

.page-resources__button--primary {
  background-color: #FFCC00; /* Gold primary button */
  color: #003366; /* Deep blue text */
  border: 2px solid #FFCC00;
}

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

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

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

.page-resources__introduction-section,
.page-resources__deep-dive-section,
.page-resources__articles-section,
.page-resources__cta-section {
  padding: 60px 20px;
}

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

.page-resources__deep-dive-section--alt-bg {
  background-color: #f5f5f5;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #003366; /* Deep blue title */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.page-resources__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFCC00;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: -20px auto 40px;
  color: #555555;
}

.page-resources__text-content {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #444444;
}

.page-resources__sub-section-title {
  font-size: 1.8em;
  color: #003366;
  margin-top: 40px;
  margin-bottom: 20px;
  border-left: 5px solid #FFCC00;
  padding-left: 15px;
}

.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 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(-10px);
  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;
  display: block;
}

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

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

.page-resources__article-title a {
  color: #003366; /* Deep blue for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
  color: #FFCC00; /* Gold on hover */
}

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

.page-resources__button--card {
  background-color: #003366; /* Deep blue button for cards */
  color: #ffffff;
  border: 2px solid #003366;
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-resources__button--card:hover {
  background-color: #0a4c8a;
  border-color: #0a4c8a;
}

.page-resources__button--tertiary {
  background-color: transparent;
  color: #CC0000; /* Red for tertiary action */
  border: 2px solid #CC0000;
  padding: 12px 25px;
  margin-top: 20px;
}

.page-resources__button--tertiary:hover {
  background-color: #CC0000;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-resources__cta-section {
  background: linear-gradient(135deg, #003366, #0a4c8a);
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
}

.page-resources__cta-container {
  max-width: 900px;
}

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

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

/* Media Queries for Responsiveness */
@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: 2em;
  }

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

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

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 100px); /* Adjust for mobile header */
    padding: 30px 15px;
    min-height: 400px;
  }

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

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

  .page-resources__hero-actions {
    flex-direction: column;
  }

  .page-resources__button {
    width: 100%;
    max-width: 300px; /* Constrain buttons on small screens */
  }

  .page-resources__introduction-section,
  .page-resources__deep-dive-section,
  .page-resources__articles-section,
  .page-resources__cta-section {
    padding: 40px 15px;
  }

  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-resources__section-title::after {
    margin-top: 10px;
  }

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

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

  .page-resources__sub-section-title {
    font-size: 1.4em;
    margin-top: 30px;
  }

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

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

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

  .page-resources__article-summary {
    font-size: 0.9em;
  }

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

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

  /* Critical: Prevent content overflow on mobile */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__hero-image {
    max-width: unset; /* Hero image needs to cover, not just max-width: 100% */
    width: 100%;
    height: 100%;
  }
  .page-resources__article-image {
    max-width: 100%;
    height: auto;
  }
}

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

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

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

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

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

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

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