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

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 0;
  margin-bottom: 40px;
}

.page-resources__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: rgba(26, 32, 44, 0.8); /* Slightly transparent dark overlay for text readability */
}

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

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: rgba(26, 32, 44, 0.7); /* Dark overlay for text */
  border-radius: 8px;
}

.page-resources__hero-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-resources__hero-cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A202C;
  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-cta-button:hover {
  background-color: #e5c100;
  transform: translateY(-2px);
}

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

.page-resources__section-header {
  text-align: center;
  margin-bottom: 50px;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources__section-subtitle {
  font-size: 1.1em;
  color: #cccccc;
  max-width: 800px;
  margin: 0 auto;
}

.page-resources__articles-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);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-resources__article-image {
  width: 100%;
  height: 220px; /* 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.6em;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

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

.page-resources__read-more-button {
  display: inline-block;
  background-color: #E53E3E; /* Emphasize with red accent */
  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__read-more-button:hover {
  background-color: #c53030;
}

.page-resources__cta-section {
  background-color: #FFD700;
  padding: 60px 20px;
  text-align: center;
  margin-top: 60px;
}

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

.page-resources__cta-title {
  font-size: 2.2em;
  color: #1A202C;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__cta-description {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #1A202C;
  color: #FFD700;
  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: #0d1017;
  transform: translateY(-3px);
}

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

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

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

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

  .page-resources__hero-image, .page-resources__article-image {
    max-width: 100%;
    height: auto; /* Ensure images scale down */
  }

  /* Critical: Ensure content images don't overflow on mobile */
  .page-resources__articles-section img, .page-resources__hero-section img {
    max-width: 100%;
    height: auto;
  }

  .page-resources__hero-content {
    padding: 30px 15px;
  }

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

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

  /* Ensure all images within .page-resources are at least 200px or scale responsively */
  .page-resources img {
    max-width: 100%;
    min-width: 200px; /* Minimum width for content images */
    height: auto;
    min-height: 200px; /* Minimum height for content images */
    object-fit: cover;
  }
  .page-resources__article-image {
    height: 180px; /* Adjust height for smaller screens */
  }
}