.page-resources {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-resources__hero-section {
  background-color: #000000; /* Dark background for hero section */
  padding: 0;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-container {
  position: relative;
  max-width: 1920px; /* Match hero image width for consistency */
  margin: 0 auto;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.7; /* Slightly dim image for text readability */
}

.page-resources__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FFFFFF;
  z-index: 1;
  max-width: 90%;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-resources__hero-button:hover,
.page-resources__article-button:hover,
.page-resources__cta-button:hover {
  background-color: #e0a53b; /* Slightly darker on hover */
}

.page-resources__introduction-section,
.page-resources__articles-section,
.page-resources__cta-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 25px;
  text-align: justify;
  color: #333333;
}

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

.page-resources__article-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 500px; /* Ensure cards have a minimum height */
}

.page-resources__article-card:hover {
  transform: translateY(-10px);
}

.page-resources__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-resources__article-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #000000;
  font-weight: bold;
}

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

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

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

.page-resources__cta-section {
  background-color: #000000; /* Dark background for CTA */
  text-align: center;
  color: #FFFFFF;
  padding: 80px 0;
}

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

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

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

@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-button,
  .page-resources__article-button,
  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__introduction-section,
  .page-resources__articles-section,
  .page-resources__cta-section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__paragraph {
    font-size: 1em;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-card {
    min-height: auto;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__article-title {
    font-size: 1.5em;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  /* Mobile content area image constraint */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__hero-content {
    padding: 20px;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
}