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

.page-resources__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px; /* Minimum height for hero section */
  background-color: #0A2463; /* Main color for hero background */
  color: #ffffff;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Slightly transparent to let background color show and text be readable */
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
}

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

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

.page-resources__hero-button,
.page-resources__intro-button,
.page-resources__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Accent color for buttons */
  color: #0A2463; /* Main color for button text */
  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__hero-button:hover,
.page-resources__intro-button:hover,
.page-resources__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-resources__intro-section,
.page-resources__articles-section,
.page-resources__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-resources__intro-section {
  background-color: #f8f8f8;
}

.page-resources__intro-heading,
.page-resources__articles-heading,
.page-resources__cta-heading {
  font-size: 2.8em;
  color: #0A2463; /* Main color for headings */
  margin-bottom: 30px;
}

.page-resources__intro-text {
  font-size: 1.1em;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

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

.page-resources__article-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.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 article card images */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure images are not too small */
  min-height: 200px;
}

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

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

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

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

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

.page-resources__read-more {
  display: inline-block;
  color: #0A2463; /* Main color for read more links */
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #FFD700; /* Accent color underline */
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-resources__read-more:hover {
  color: #FFD700;
  border-color: #0A2463;
}

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

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

.page-resources__cta-heading {
  color: #FFD700; /* Accent color for CTA heading */
  font-size: 3em;
  margin-bottom: 25px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__hero-description {
    font-size: 1.2em;
  }
  .page-resources__intro-heading,
  .page-resources__articles-heading,
  .page-resources__cta-heading {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 400px;
    padding: 40px 15px;
  }
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-button,
  .page-resources__intro-button,
  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__intro-section,
  .page-resources__articles-section,
  .page-resources__cta-section {
    padding: 40px 0;
  }
  .page-resources__intro-heading,
  .page-resources__articles-heading,
  .page-resources__cta-heading {
    font-size: 2em;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-title {
    font-size: 1.4em;
  }
  .page-resources__article-image {
    height: 200px; /* Ensure card images are not smaller than 200px */
  }
  .page-resources__container {
    padding: 0 15px;
  }
  /* 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: 2em;
  }
  .page-resources__intro-heading,
  .page-resources__articles-heading,
  .page-resources__cta-heading {
    font-size: 1.8em;
  }
  .page-resources__hero-button,
  .page-resources__intro-button,
  .page-resources__cta-button {
    font-size: 0.9em;
    padding: 10px 20px;
  }
}