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

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding-bottom: 60px;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image slightly for text readability */
}

.page-resources__hero-container {
  position: relative;
}

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

.page-resources__hero-title {
  font-size: 3.2em;
  color: #FFD700; /* Gold main color */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-resources__hero-cta-btn:hover {
  background-color: #8B0000; /* Dark red on hover */
  color: #FFD700; /* Gold text on hover */
}

.page-resources__content-area {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

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

.page-resources__section-intro {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #cccccc;
}

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

.page-resources__article-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards */
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-resources__article-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-resources__article-title-link {
  color: #FFD700; /* Gold for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__article-title-link:hover {
  color: #f0e68c; /* Lighter gold on hover */
}

.page-resources__article-category {
  display: inline-block;
  background-color: #8B0000; /* Dark red for category tags */
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9em;
  margin-bottom: 15px;
}

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

.page-resources__read-more-btn {
  display: inline-block;
  background-color: #8B0000; /* Dark red for buttons */
  color: #FFD700; /* Gold text */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.page-resources__read-more-btn:hover {
  background-color: #FFD700; /* Gold on hover */
  color: #8B0000; /* Dark red text on hover */
}

.page-resources__cta-section {
  background-color: #8B0000; /* Dark red background for CTA */
  padding: 80px 20px;
  text-align: center;
  margin-top: 60px;
}

.page-resources__cta-container {
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff;
}

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

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

.page-resources__cta-btn {
  display: inline-block;
  background-color: #FFD700; /* Gold main color */
  color: #8B0000; /* Dark red auxiliary color */
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__cta-btn:hover {
  background-color: #ffffff; /* White on hover */
  color: #8B0000; /* Dark red text on hover */
}

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

@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-cta-btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__article-list {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__article-title {
    font-size: 1.5em;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1.1em;
  }
  .page-resources__cta-btn {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  /* Ensure content area images are responsive and do not overflow */
  .page-resources__article-card img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__content-area, .page-resources__cta-container {
    padding: 20px 15px;
  }
}

@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: 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__article-info {
    padding: 15px;
  }
  .page-resources__article-title {
    font-size: 1.3em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__cta-btn {
    padding: 12px 25px;
    font-size: 1em;
  }
}