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

.page-resources__hero-section {
  background-color: #f8f8f8;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  padding-bottom: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

.page-resources__hero-title {
  font-size: 3.2em;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-resources__hero-image {
  width: 100%;
  max-width: 1600px;
  height: auto;
  display: block;
  margin-top: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for bright button */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__cta-button:hover {
  background-color: #e0a538;
  transform: translateY(-3px);
}

.page-resources__introduction-section,
.page-resources__articles-section,
.page-resources__further-learning-section,
.page-resources__cta-section--bottom {
  padding: 60px 20px;
  background-color: #FFFFFF;
}

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

.page-resources__section-heading {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

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

.page-resources__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 25px auto;
  color: #444444;
}

.page-resources__section-image {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

.page-resources__article-card {
  background-color: #fefefe;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  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 12px 35px rgba(0, 0, 0, 0.15);
}

.page-resources__article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-resources__article-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__article-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 15px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.page-resources__article-link:hover .page-resources__article-title {
  color: #FCBC45;
}

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

.page-resources__read-more-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__read-more-button:hover {
  background-color: #333333;
}

.page-resources__cta-section--bottom {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
}

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

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

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

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

  .page-resources__cta-heading {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px); /* Keep padding for mobile */
    padding-bottom: 40px;
  }

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

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

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

  .page-resources__introduction-section,
  .page-resources__articles-section,
  .page-resources__further-learning-section,
  .page-resources__cta-section--bottom {
    padding: 40px 15px;
  }

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

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

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

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

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

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

  .page-resources__read-more-button {
    font-size: 0.85em;
    padding: 8px 15px;
  }

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

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

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

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

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

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