.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);
}

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  text-align: center;
}

.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;
  filter: brightness(0.6); /* Darken image slightly for text readability */
}

.page-resources__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 800px;
  padding: 20px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent dark background for text */
  border-radius: 10px;
}

.page-resources__hero-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: #FFFFFF; /* White for hero title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFFFFF; /* White for hero description */
}

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

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

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

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

.page-resources__section-title {
  font-size: 2.2em;
  color: #000000; /* Black for section titles */
  text-align: center;
  margin-bottom: 40px;
}

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

.page-resources__article-card {
  background-color: #f9f9f9; /* Light grey background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-resources__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block; /* Ensure image takes full width of its container */
}

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

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #000000; /* Black for card titles */
}

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

.page-resources__card-title a:hover {
  color: #FCBC45; /* Login color on hover */
}

.page-resources__card-summary {
  font-size: 0.95em;
  color: #555555; /* Dark grey for summary text */
  margin-bottom: 20px;
}

.page-resources__card-button {
  display: inline-block;
  background-color: #000000; /* Main color for card buttons */
  color: #FFFFFF; /* White text for card buttons */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__card-button:hover {
  background-color: #333333;
  transform: translateY(-1px);
}

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

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

.page-resources__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FFFFFF; /* White for CTA title */
}

.page-resources__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #f0f0f0; /* Off-white for CTA description */
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color for CTA button */
  color: #000000; /* Black text for CTA button */
  padding: 18px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

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

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

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

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

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 100px); /* Adjust for mobile header */
  }

  .page-resources__hero-content {
    padding: 15px;
    max-width: 90%;
  }

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

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

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

  .page-resources__articles-section {
    padding: 40px 0;
  }

  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

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

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

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

  .page-resources__cta-section {
    padding: 60px 20px;
  }

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

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

  .page-resources__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }

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

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

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

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

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

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

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

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