.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--black-color); /* Assuming --black-color is dark, text color will be overridden for sections */
}

.page-resources__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

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

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-resources__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

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

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

.page-resources__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff; /* Explicitly set for light background */
  color: #333333;
}

.page-resources__container {
  max-width: 100%;
  margin: 0 auto;
}

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: #26A9E0;
  font-weight: bold;
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-resources__btn-primary {
  display: inline-block;
  background: #26A9E0;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #26A9E0;
}

.page-resources__btn-primary:hover {
  background-color: #1a78a2;
  transform: translateY(-2px);
}

.page-resources__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #26A9E0;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a78a2;
  transform: translateY(-2px);
}

.page-resources__btn--margin-top {
  margin-top: 30px;
}

.page-resources__section-guides,
.page-resources__section-news {
  background-color: #ffffff;
  color: #333333;
}

.page-resources__container--flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-resources__container--reverse {
  flex-direction: row-reverse;
}

.page-resources__text-content {
  flex: 1;
}

.page-resources__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-resources__image-content {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__guide-list,
.page-resources__policy-list,
.page-resources__news-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-resources__list-item {
  background-color: #f9f9f9;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.05em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-resources__list-item::before {
  content: '✓';
  color: #26A9E0;
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
  flex-shrink: 0;
}

.page-resources__section-policies,
.page-resources__section-news.page-resources__dark-bg {
  background-color: #26A9E0; /* Brand primary color as background */
  color: #ffffff; /* White text for contrast */
}

.page-resources__section-title--white {
  color: #ffffff;
}

.page-resources__text-content--white .page-resources__text-block,
.page-resources__text-content--white .page-resources__list-item {
  color: #f0f0f0;
}

.page-resources__list-item--white {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-resources__list-item--white::before {
  color: #ffffff;
}

.page-resources__faq-list {
  margin-top: 30px;
}

.page-resources__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: #333333;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: #f0f0f0;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg);
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #fdfdfd;
  color: #555555;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-resources__faq-answer p {
  margin-bottom: 0;
}

.page-resources__text-block--center {
  text-align: center;
}

.page-resources__text-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-resources__text-link:hover {
  text-decoration: underline;
}

.page-resources__text-block--margin-top {
  margin-top: 30px;
}

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

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

.page-resources__cta-title {
  font-size: 2.8em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__cta-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 40px;
  line-height: 1.8;
}

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

/* 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__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-resources__content-area {
    padding: 40px 15px;
  }
  .page-resources__container--flex {
    flex-direction: column;
    gap: 30px;
  }
  .page-resources__container--reverse {
    flex-direction: column;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-resources__text-block {
    font-size: 1em;
  }
  .page-resources__list-item {
    padding: 12px 15px;
    font-size: 0.95em;
  }
  .page-resources__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-resources__faq-answer {
    padding: 15px;
  }
  .page-resources__cta-section {
    padding: 60px 15px;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Image responsive adaptations */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-section,
  .page-resources__content-area,
  .page-resources__cta-section,
  .page-resources__image-wrapper,
  .page-resources__text-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-resources__container--flex,
  .page-resources__cta-buttons {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-section {
    height: 400px;
  }
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__hero-buttons {
    flex-direction: column;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
}

/* Color Contrast Fixes (if needed, based on body background assumed dark) */
.page-resources__dark-bg {
  color: #ffffff; /* Deep background with light text */
}

.page-resources__light-bg {
  color: #333333; /* Light background with dark text */
}

/* Specific elements for dark backgrounds */
.page-resources__section-policies.page-resources__dark-bg h2,
.page-resources__section-news.page-resources__dark-bg h2 {
  color: #ffffff;
}

.page-resources__section-policies.page-resources__dark-bg .page-resources__list-item,
.page-resources__section-news.page-resources__dark-bg .page-resources__list-item {
  color: #ffffff;
}

.page-resources__section-policies.page-resources__dark-bg .page-resources__list-item::before,
.page-resources__section-news.page-resources__dark-bg .page-resources__list-item::before {
  color: #ffffff;
}