/* style/resources.css */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--black-color); /* Body background from shared.css */
}

/* Ensure main content area has appropriate padding-top for fixed header */
.page-content.page-resources {
  padding-top: var(--header-offset, 120px); /* Apply offset if not handled by shared body */
  background-color: #ffffff; /* Default background for the main content area */
}

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

/* Hero Section */
.page-resources__hero-section {
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff; /* White text for brand color background */
}

.page-resources__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-resources__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #ffffff;
}

/* Content Sections */
.page-resources__content-section {
  padding: 60px 0;
}

.page-resources__section-title {
  font-size: 2.2em;
  margin-bottom: 30px;
  text-align: center;
  color: #26A9E0; /* Brand color for titles on light background */
}

.page-resources__sub-title {
  font-size: 1.6em;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for subtitles on light background */
}

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

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

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

/* CTA Buttons */
.page-resources__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-resources__cta-buttons--center {
  margin-top: 60px;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.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: #d16b06;
  border-color: #d16b06;
}

.page-resources__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand color for secondary CTA */
  border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b7;
}

.page-resources__btn-primary--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Color Contrast Handling */
.page-resources__dark-bg {
  background-color: #26A9E0;
  color: #ffffff; /* White text on dark background */
}

.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text on light background */
}

.page-resources__text-contrast-fix {
  color: #ffffff; /* Ensure white text on dark backgrounds */
}

.page-resources__inline-link {
  color: #ffffff;
  text-decoration: underline;
}

.page-resources__light-bg .page-resources__inline-link {
  color: #26A9E0;
}

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

.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;
}

.page-resources__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #26A9E0;
  background-color: #f0f8ff; /* Light blue background for summary */
}

.page-resources__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-resources__faq-qtext {
  flex-grow: 1;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-resources__faq-answer {
  padding: 0 20px 20px;
  font-size: 1.1em;
  color: #555555;
}

/* CTA Banner */
.page-resources__cta-banner {
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0;
  color: #ffffff;
}

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

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

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

@media (max-width: 768px) {
  .page-content.page-resources {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__hero-section,
  .page-resources__content-section,
  .page-resources__faq-section,
  .page-resources__cta-banner {
    padding: 40px 0;
  }
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description,
  .page-resources__paragraph,
  .page-resources__faq-answer p {
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__sub-title {
    font-size: 1.4em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources a[class*="button"],
  .page-resources a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__banner-title {
    font-size: 2em;
  }
  .page-resources__btn-primary--large {
    font-size: 1.1em;
    padding: 15px 30px;
  }
}