.page-resources {
  color: #ffffff; /* Light text for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-resources__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
  background-color: #0A1931;
}

.page-resources__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: brightness(0.6); /* Darken image for text readability, not color change */
  z-index: 1;
}

.page-resources__hero-overlay {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__hero-button,
.page-resources__cta-button,
.page-resources__article-button,
.page-resources__additional-link {
  display: inline-block;
  background-color: #FFD700; /* Accent color for buttons */
  color: #0A1931;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-button:hover,
.page-resources__cta-button:hover,
.page-resources__article-button:hover,
.page-resources__additional-link:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-resources__intro-section,
.page-resources__articles-section,
.page-resources__cta-section,
.page-resources__additional-resources {
  padding: 60px 0;
  background-color: #0A1931; /* Main dark background */
}

.page-resources__intro-section {
  padding-bottom: 30px;
}

.page-resources__articles-section {
  padding-top: 30px;
}

.page-resources__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

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

.page-resources__section-text {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 20px auto;
  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: rgba(255, 255, 255, 0.08); /* Slightly lighter background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 450px; /* Ensure cards have a consistent minimum height */
}

.page-resources__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.page-resources__article-image {
  width: 100%;
  height: 220px; /* Fixed height for article images */
  object-fit: cover;
  display: block;
  border-bottom: 2px solid #FFD700;
}

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

.page-resources__article-title {
  font-size: 1.5rem;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-resources__article-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
  color: #e6c200;
}

.page-resources__article-summary {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__cta-section {
  background: linear-gradient(135deg, #0A1931, #1a1a2e);
  text-align: center;
  padding: 80px 20px;
}

.page-resources__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-resources__cta-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: #FFD700;
  margin-bottom: 25px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-resources__cta-description {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-resources__additional-resources {
  padding: 60px 0 80px 0;
}

.page-resources__additional-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-resources__additional-link {
  background-color: #1a1a2e;
  color: #FFD700;
  border: 1px solid #FFD700;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__additional-link:hover {
  background-color: #FFD700;
  color: #0A1931;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 120px);
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
  }

  .page-resources__hero-overlay {
    padding: 60px 15px;
  }

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

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

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

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

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

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

  .page-resources__article-card {
    min-height: auto;
  }

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

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

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

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

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

  .page-resources__additional-links {
    flex-direction: column;
    align-items: center;
  }

  .page-resources__additional-link {
    width: 80%;
    text-align: center;
  }

  .page-resources__container img {
    max-width: 100%;
    height: auto;
  }

  /* Ensure all images within .page-resources are responsive */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-overlay {
    padding: 40px 10px;
  }

  .page-resources__hero-title {
    font-size: 1.8rem;
  }

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

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

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

  .page-resources__additional-link {
    width: 90%;
  }
}