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

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Ensure hero section has a minimum height */
  padding-top: var(--header-offset, 120px); /* Account for fixed header on desktop */
}

.page-resources__hero-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #FFFFFF; /* Light text over dark hero image */
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for readability */
  border-radius: 10px;
}

.page-resources__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #FFFFFF;
}

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

.page-resources__hero-button, .page-resources__article-button, .page-resources__cta-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.page-resources__hero-button {
  background-color: #FCBC45; /* Login color for primary CTA */
  color: #000000; /* Dark text for contrast */
  border: none;
}

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

.page-resources__articles-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-resources__section-title {
  font-size: 2.8rem;
  color: #000000;
  text-align: center;
  margin-bottom: 60px;
}

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

.page-resources__article-card {
  background-color: #000000; /* Dark card background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-resources__article-title {
  font-size: 1.7rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-resources__article-title a {
  color: #FCBC45; /* Highlight title links */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-resources__article-summary {
  font-size: 1rem;
  color: #b3b3b3; /* Lighter text for summary on dark background */
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__article-button {
  background-color: #FCBC45;
  color: #000000;
  border: none;
  align-self: flex-start;
}

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

.page-resources__cta-section {
  background-color: #FCBC45; /* Accent color for CTA */
  padding: 80px 20px;
  text-align: center;
}

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

.page-resources__cta-description {
  font-size: 1.3rem;
  color: #333333;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.page-resources__cta-button {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3rem;
  }
  .page-resources__hero-description {
    font-size: 1.1rem;
  }
  .page-resources__section-title {
    font-size: 2.5rem;
  }
  .page-resources__cta-title {
    font-size: 2.5rem;
  }
  .page-resources__cta-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px);
  }
  .page-resources__hero-content {
    padding: 15px;
  }
  .page-resources__hero-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }
  .page-resources__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .page-resources__hero-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-resources__section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-card {
    margin-bottom: 20px;
  }
  .page-resources__article-image {
    height: 200px;
    min-width: 200px; /* Enforce min-size for images */
    min-height: 200px; /* Enforce min-size for images */
  }
  .page-resources__article-title {
    font-size: 1.5rem;
  }
  .page-resources__article-summary {
    font-size: 0.9rem;
  }
  .page-resources__cta-section {
    padding: 60px 20px;
  }
  .page-resources__cta-title {
    font-size: 2rem;
  }
  .page-resources__cta-description {
    font-size: 1rem;
  }
  /* Ensure content images do not overflow on mobile */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__container {
    overflow-x: hidden; /* Prevent horizontal scroll from content */
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8rem;
  }
  .page-resources__hero-description {
    font-size: 0.9rem;
  }
  .page-resources__section-title {
    font-size: 1.8rem;
  }
  .page-resources__article-title {
    font-size: 1.3rem;
  }
  .page-resources__cta-title {
    font-size: 1.8rem;
  }
}