.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

.page-resources__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #26A9E0; /* Brand primary color for hero */
  color: #FFFFFF;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

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

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

.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box; /* For responsiveness */
  white-space: normal; /* For responsiveness */
  word-wrap: break-word; /* For responsiveness */
}

.page-resources__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

.page-resources__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-resources__content-section {
  padding: 60px 0;
}

.page-resources__section-title {
  font-size: 2.2em;
  color: #26A9E0; /* Brand primary color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-resources__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources__text-block--white {
  color: #FFFFFF;
}

.page-resources__sub-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__sub-title--white {
  color: #FFFFFF;
}

.page-resources__heading4 {
  font-size: 1.3em;
  color: #333333;
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources__heading4--white {
  color: #FFFFFF;
}

.page-resources__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

.page-resources__list li {
  margin-bottom: 10px;
}

.page-resources__list li strong {
  color: #26A9E0;
}

.page-resources__image-wrapper {
  text-align: center;
  margin: 30px 0;
}

.page-resources__image-full {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Dark background sections */
.page-resources__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-resources__dark-bg .page-resources__list li {
  color: #FFFFFF;
}

.page-resources__dark-bg .page-resources__list li strong {
  color: #FFFFFF; /* Ensure contrast on dark bg */
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 60px 0;
  background-color: #F8F8F8; /* Light background for FAQ */
}

.page-resources__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: #FFFFFF;
  transition: background-color 0.3s ease;
}

.page-resources__faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  color: #333333;
}

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

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

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes a cross */
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px 25px 25px;
}

.page-resources__faq-answer p {
  margin: 0;
  color: #555555;
}

/* CTA Section at the bottom */
.page-resources__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0;
  color: #FFFFFF;
}

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

@media (max-width: 768px) {
  .page-resources__container {
    padding: 0 15px; /* Add padding for mobile */
  }

  .page-resources__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

  .page-resources__hero-title {
    font-size: 2em;
  }

  .page-resources__hero-description {
    font-size: 1em;
  }

  .page-resources__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    box-sizing: border-box !important;
  }

  .page-resources__content-section {
    padding: 40px 0;
  }

  .page-resources__section-title {
    font-size: 1.8em;
  }

  .page-resources__sub-title {
    font-size: 1.3em;
  }

  .page-resources__heading4 {
    font-size: 1.1em;
  }

  .page-resources__list {
    margin-left: 15px;
  }

  /* Mobile image responsiveness */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ mobile adjustments */
  .page-resources__faq-question {
    padding: 15px 20px;
  }
  .page-resources__faq-answer {
    padding: 0 20px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 10px 20px 20px 20px;
  }
}