.page-resources {
  color: #333333; /* Dark text for light body background */
  padding-top: var(--header-offset, 120px);
}

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

.page-resources__hero-section {
  background-color: #0A2463; /* Primary dark blue background */
  color: #ffffff; /* White text for dark background */
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-resources__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
}

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

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #E3B23C; /* Secondary golden yellow for title */
  line-height: 1.2;
}

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

.page-resources__cta-button {
  display: inline-block;
  background-color: #E3B23C; /* Golden yellow button */
  color: #0A2463; /* Dark blue text on button */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources__cta-button:hover {
  background-color: #f5c95c; /* Lighter golden yellow on hover */
  transform: translateY(-2px);
}

.page-resources__introduction-section,
.page-resources__articles-section,
.page-resources__additional-info-section,
.page-resources__cta-section {
  padding: 60px 0;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #0A2463; /* Primary dark blue for section titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

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

.page-resources__section-text {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.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(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__card-image-wrapper {
  height: 250px; /* Fixed height for consistent card image display */
  overflow: hidden;
}

.page-resources__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-resources__article-card:hover .page-resources__card-image {
  transform: scale(1.05);
}

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

.page-resources__card-title {
  font-size: 1.6em;
  color: #0A2463;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-resources__card-title a {
  text-decoration: none;
  color: #0A2463;
  transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
  color: #E3B23C;
}

.page-resources__card-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-resources__additional-info-section {
  background-color: #f0f4f8;
}

.page-resources__cta-section {
  background-color: #0A2463; /* Primary dark blue background */
  color: #ffffff; /* White text for dark background */
  text-align: center;
  padding: 80px 20px;
}

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

.page-resources__cta-title {
  font-size: 2.8em;
  color: #E3B23C; /* Golden yellow for CTA title */
  margin-bottom: 25px;
}

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

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

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

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

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

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

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

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

  .page-resources__article-card {
    margin-bottom: 20px;
  }

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

  .page-resources__hero-section,
  .page-resources__introduction-section,
  .page-resources__articles-section,
  .page-resources__additional-info-section,
  .page-resources__cta-section {
    padding: 40px 0;
  }

  /* Ensure images in content area are responsive and not too small */
  .page-resources__container img,
  .page-resources__article-card img,
  .page-resources__hero-image img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
  }
}

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

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

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

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

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

  .page-resources__card-content {
    padding: 20px;
  }

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