.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); /* Ensures content is not hidden by fixed header */
}

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

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FFD700, #8B0000); /* Gradient fallback if image fails */
  padding: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 0.3; /* Subtle background effect */
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-resources__hero-button, .page-resources__intro-button, .page-resources__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #8B0000;
  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;
  border: 2px solid #FFD700;
}

.page-resources__hero-button:hover, .page-resources__intro-button:hover, .page-resources__cta-button:hover {
  background-color: #8B0000;
  color: #FFD700;
  border-color: #FFD700;
}

.page-resources__introduction-section,
.page-resources__articles-section,
.page-resources__deep-dive-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-resources__introduction-section {
  text-align: center;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
  border-radius: 8px;
  padding: 60px 20px;
}

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

.page-resources__section-text, .page-resources__paragraph {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: left;
}

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

.page-resources__article-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__article-image {
  width: 100%;
  height: 225px; /* Ensures consistent image height for cards */
  object-fit: cover;
  display: block;
}

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

.page-resources__article-title {
  font-size: 1.6em;
  color: #8B0000;
  margin-bottom: 15px;
  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: 1em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__read-more-button {
  display: inline-block;
  background-color: #FFD700;
  color: #8B0000;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.page-resources__read-more-button:hover {
  background-color: #8B0000;
  color: #FFD700;
}

.page-resources__call-to-action {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: #8B0000;
  border-radius: 10px;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-text {
  font-size: 1.5em;
  margin-bottom: 25px;
  font-weight: bold;
  color: #FFD700;
}

.page-resources__sub-title {
  font-size: 2em;
  color: #8B0000;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 10px;
}

/* Ensure all content area images are not too small */
.page-resources img:not(.page-resources__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__sub-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-content {
    padding: 60px 15px;
  }
  .page-resources__hero-button, .page-resources__intro-button, .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__introduction-section, .page-resources__articles-section, .page-resources__deep-dive-section {
    padding: 40px 0;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 180px;
  }
  .page-resources__cta-text {
    font-size: 1.2em;
  }
  /* Mobile content area image overflow prevention */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__hero-image {
    height: 100%; /* Adjust hero image height for mobile */
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__hero-content {
    padding: 40px 10px;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__sub-title {
    font-size: 1.5em;
  }
  .page-resources__article-title {
    font-size: 1.4em;
  }
  .page-resources__article-summary {
    font-size: 0.9em;
  }
  .page-resources__cta-text {
    font-size: 1em;
  }
}