.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); /* Ensure content is below fixed header */
  background-color: #FFFFFF; /* Explicitly setting background to auxiliary color */
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
  color: #FFFFFF; /* White text over hero image */
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1; /* Image below overlay */
}

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay for text readability */
  z-index: 0; /* Overlay above image */
}

.page-resources__hero-container {
  position: relative;
  z-index: 1; /* Text above overlay */
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

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

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

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

.page-resources__hero-button:hover {
  background-color: #e0a73d;
}

.page-resources__articles-section {
  padding: 60px 20px;
  background-color: #f8f8f8;
}

.page-resources__content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-resources__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-resources__article-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;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

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

.page-resources__article-image {
  width: 100%;
  height: auto; /* Changed from fixed height to maintain aspect ratio with HTML attributes */
  aspect-ratio: 4/3; /* Based on HTML width="400" height="300" */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure it meets min size */
  min-height: 200px; /* Ensure it meets min size */
}

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

.page-resources__article-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  min-height: 60px; /* Ensure consistent title height for layout stability */
}

.page-resources__article-title a {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
}

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

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

.page-resources__article-button {
  display: inline-block;
  background-color: #000000; /* Main color for button */
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-resources__article-button:hover {
  background-color: #333333;
}

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

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

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

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

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

.page-resources__cta-button:hover {
  background-color: #e0a73d;
}

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

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

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 20px;
  }

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

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

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

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

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

  .page-resources__section-intro {
    font-size: 0.95em;
  }

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

  .page-resources__article-image {
    height: 200px; /* Adjust height for smaller screens, but ensure min-height is met */
  }

  .page-resources__article-title {
    font-size: 1.4em;
    min-height: auto;
  }

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

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

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

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

  /* Enforce minimum image size and prevent overflow for content images */
  .page-resources img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce min-width */
    min-height: 200px; /* Enforce min-height */
  }
  .page-resources__article-image {
    min-width: 200px;
    min-height: 200px;
  }
}

/* Ensure all content images meet the minimum size requirement */
.page-resources img:not(.shared-logo):not(.shared-icon) {
  min-width: 200px;
  min-height: 200px;
}