.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 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;
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, #8B0000 0%, #FFD700 100%); /* Fallback gradient */
}

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

.page-resources__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  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-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-resources__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-resources__button--primary {
  background-color: #FFD700; /* Gold */
  color: #8B0000; /* Dark Red */
  border: 2px solid #FFD700;
}

.page-resources__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-resources__button--secondary {
  background-color: #8B0000; /* Dark Red */
  color: #FFD700; /* Gold */
  border: 2px solid #FFD700;
}

.page-resources__button--secondary:hover {
  background-color: #6a0000;
  transform: translateY(-2px);
}

.page-resources__button--large {
  padding: 18px 35px;
  font-size: 1.1em;
  background-color: #FFD700; /* Gold */
  color: #8B0000; /* Dark Red */
  border: 2px solid #FFD700;
}

.page-resources__button--large:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-resources__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #8B0000; /* Dark Red */
  color: #FFD700; /* Gold */
  border: 1px solid #FFD700;
}

.page-resources__button--small:hover {
  background-color: #6a0000;
}

.page-resources__articles-section,
.page-resources__cta-section,
.page-resources__faq-section {
  padding: 60px 0;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #8B0000; /* Dark Red */
  text-align: center;
  margin-bottom: 20px;
}

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px 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;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-resources__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  min-height: 60px; /* Ensure consistent title height */
}

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

.page-resources__article-title a:hover {
  color: #FFD700; /* Gold on hover */
}

.page-resources__article-category {
  font-size: 0.9em;
  color: #b39700; /* A darker gold for category */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__article-summary {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  height: 100px; /* Fixed height for summary */
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-resources__pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 10px;
}

.page-resources__pagination-link {
  display: inline-block;
  padding: 10px 15px;
  border: 1px solid #FFD700;
  border-radius: 5px;
  text-decoration: none;
  color: #8B0000;
  background-color: #ffffff;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__pagination-link:hover:not(.page-resources__pagination-link--disabled),
.page-resources__pagination-link--active {
  background-color: #FFD700;
  color: #8B0000;
  border-color: #FFD700;
}

.page-resources__pagination-link--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.page-resources__cta-section {
  background-color: #8B0000; /* Dark Red background for CTA */
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

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

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

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

.page-resources__faq-section {
  background-color: #f8f8f8;
}

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

.page-resources__faq-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-resources__faq-question {
  font-size: 1.3em;
  color: #8B0000; /* Dark Red */
  margin-bottom: 15px;
}

.page-resources__faq-answer {
  font-size: 1em;
  color: #555555;
}

/* Responsive Design */
@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-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__button {
    width: 100%;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 1em;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__faq-grid {
    grid-template-columns: 1fr;
  }
  /* Mobile content area images must not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__button--primary,
  .page-resources__button--secondary,
  .page-resources__button--large {
    padding: 12px 20px;
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
  }
}

/* Ensure content area images are at least 200px wide for all selectors within .page-resources */
.page-resources__article-image {
  min-width: 200px;
  min-height: 200px; /* Adjust if the ratio is different */
}

/* Ensure no small images are generated by CSS rules */
.page-resources__article-card img,
.page-resources__hero-image {
  /* These rules are for actual display, min-width/height are for the image files themselves */
  /* The HTML width/height attributes define the intended display size */
}

/* Ensure all images in .page-resources are not affected by filter */
.page-resources img {
  filter: none; /* Explicitly disable any potential filter from shared or other sources */
}