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

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Adjust as needed */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #0A2342; /* Main color for hero background */
}

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

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff; /* Light text for dark hero overlay */
  padding: 20px;
  max-width: 800px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for emphasis */
  line-height: 1.2;
}

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

.page-resources__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Auxiliary color for buttons */
  color: #0A2342; /* Dark text for light button */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__hero-button:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-2px);
}

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

.page-resources__overview-section {
  padding: 60px 0;
  background-color: #f9f9f9; /* Light background for overview */
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #0A2342; /* Main color for titles */
  text-align: center;
  margin-bottom: 40px;
}

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

.page-resources__text-content {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 25px;
  text-align: justify;
}

.page-resources__text-content--more-articles {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eeeeee;
}

.page-resources__cta-button {
  display: block;
  width: fit-content;
  margin: 40px auto 0 auto;
  background-color: #DC143C; /* Deep red for strong CTA */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-resources__articles-section {
  padding: 60px 0;
  background-color: #ffffff; /* White background for articles */
}

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

.page-resources__article-card {
  background-color: #fefefe;
  border-radius: 10px;
  box-shadow: 0 4px 15px 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(-5px);
  box-shadow: 0 8px 25px 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;
  margin-bottom: 15px;
  line-height: 1.4;
}

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

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

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

.page-resources__read-more-button {
  display: inline-block;
  background-color: #FFD700; /* Auxiliary color for read more buttons */
  color: #0A2342;
  padding: 10px 20px;
  border-radius: 5px;
  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: #e6c200;
}

.page-resources__cta-section {
  padding: 80px 0;
  background-color: #0A2342; /* Main color for CTA section */
  color: #ffffff;
  text-align: center;
}

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

.page-resources__cta-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 400px;
  }

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

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

  .page-resources__hero-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }

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

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

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

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

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

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

  /* Ensure images do not overflow on mobile */
  .page-resources__hero-image,
  .page-resources__article-image {
    max-width: 100%;
    height: auto;
  }

  .page-resources__overview-section img,
  .page-resources__articles-section img,
  .page-resources__cta-section img {
    max-width: 100%;
    height: auto;
  }
}

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

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

  .page-resources__hero-button {
    padding: 10px 20px;
    font-size: 1em;
  }

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

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

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

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

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

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