.page-resources {
  color: #333333; /* Default dark text for light body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding: 0; /* Hero image handles vertical spacing */
}

.page-resources__hero-container {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.page-resources__hero-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 400px; /* Ensure hero image is large enough */
}

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

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold brand color for emphasis */
  line-height: 1.2;
}

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

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

.page-resources__hero-button:hover,
.page-resources__cta-button:hover {
  background-color: #e6c200;
  color: #6a0000;
}

.page-resources__articles-section,
.page-resources__cta-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #f9f9f9; /* Light background for sections */
}

.page-resources__articles-container,
.page-resources__cta-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-resources__section-title,
.page-resources__cta-title {
  font-size: 2.8em;
  color: #8B0000; /* Dark red brand color */
  margin-bottom: 20px;
}

.page-resources__section-description,
.page-resources__cta-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-resources__article-content {
  padding: 25px;
}

.page-resources__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #8B0000;
  line-height: 1.3;
}

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

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

.page-resources__article-summary {
  font-size: 0.95em;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-resources__article-button {
  display: inline-block;
  background-color: #8B0000; /* Dark red brand color */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title,
  .page-resources__cta-title {
    font-size: 2.2em;
  }
  .page-resources__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-button,
  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__section-title,
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__section-description,
  .page-resources__cta-description {
    font-size: 0.95em;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 200px;
  }
  /* Ensure images in content area are responsive and not smaller than 200px */
  .page-resources__articles-section img,
  .page-resources__cta-section img { /* Added to ensure all content area images are covered */
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
  .page-resources__hero-content {
    width: 90%;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__hero-button,
  .page-resources__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-resources__section-title,
  .page-resources__cta-title {
    font-size: 1.5em;
  }
  .page-resources__section-description,
  .page-resources__cta-description {
    font-size: 0.9em;
  }
  .page-resources__articles-section,
  .page-resources__cta-section {
    padding: 40px 15px;
  }
}