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

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

.page-resources__hero-section {
  background-color: #0A2342; /* Main brand color for hero background */
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Overlay with dark blue for text readability */
  z-index: 0;
}

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

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

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
}

.page-resources__btn-primary {
  background-color: #FFD700; /* Gold accent for primary button */
  color: #0A2342;
  border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2342;
}

.page-resources__intro-section {
  padding: 60px 0;
  background-color: #f0f0f0;
  text-align: center;
}

.page-resources__intro-title {
  font-size: 2.5em;
  color: #0A2342;
  margin-bottom: 20px;
}

.page-resources__intro-text {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__featured-articles {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-resources__section-title {
  font-size: 2.8em;
  color: #0A2342;
  text-align: center;
  margin-bottom: 50px;
}

.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;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 480px; /* Ensure cards have consistent height */
}

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

.page-resources__card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistent image display */
  object-fit: cover;
  display: block;
}

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

.page-resources__card-title {
  font-size: 1.6em;
  color: #0A2342;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-resources__card-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

.page-resources__card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__read-more {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0A2342;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__read-more:hover {
  background-color: #FFD700;
  color: #0A2342;
}

.page-resources__why-choose-section {
  background-color: #0A2342;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-resources__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-resources__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.page-resources__feature-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-resources__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter changes image color */
  border-radius: 5px;
}

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

.page-resources__feature-text {
  font-size: 1em;
  color: #cccccc;
}

.page-resources__cta-section {
  padding: 80px 0;
  background-color: #f0f0f0;
  text-align: center;
}

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

.page-resources__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 15px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-buttons,
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-resources__intro-title {
    font-size: 2em;
  }
  .page-resources__section-title,
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__articles-grid,
  .page-resources__why-choose-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__card-image,
  .page-resources__feature-icon {
    max-width: 100%; /* Ensure images don't overflow on mobile */
    height: auto; /* Maintain aspect ratio */
  }
  .page-resources__article-card {
    min-height: auto;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__hero-image,
  .page-resources__card-image,
  .page-resources__feature-icon {
    filter: none; /* Explicitly remove any filters */
  }
  /* Content area images must not be smaller than 200px */
  .page-resources img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
  }
  .page-resources__feature-icon {
    width: 200px; /* Ensure feature icons are not too small */
    height: 150px;
    object-fit: contain;
    margin: 0 auto 20px auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title,
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__card-title {
    font-size: 1.4em;
  }
  .page-resources__feature-title {
    font-size: 1.5em;
  }
}