/* style/resources-qh88-faq.css */
.page-resources-qh88-faq {
  color: #333333; /* Dark text for light background */
  background-color: var(--bg-color, #f8f8f8); /* Use shared variable, fallback to light grey */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-resources-qh88-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-qh88-faq__hero-section {
  background-color: #26A9E0; /* Brand primary color for hero */
  color: #FFFFFF; /* White text on brand color */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-resources-qh88-faq__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #FFFFFF;
}

.page-resources-qh88-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-resources-qh88-faq__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login button color */
  color: #FFFFFF;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.page-resources-qh88-faq__btn-primary:hover {
  background-color: #d16b06;
}

.page-resources-qh88-faq__btn-secondary {
  display: inline-block;
  background-color: #FFFFFF;
  color: #26A9E0;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #26A9E0;
  cursor: pointer;
  font-size: 1em;
}

.page-resources-qh88-faq__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-resources-qh88-faq__section {
  padding: 60px 0;
}

.page-resources-qh88-faq__dark-section {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-resources-qh88-faq__dark-section .page-resources-qh88-faq__section-title {
  color: #FFFFFF;
}

.page-resources-qh88-faq__dark-section .page-resources-qh88-faq__faq-question {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.page-resources-qh88-faq__dark-section .page-resources-qh88-faq__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-resources-qh88-faq__dark-section .page-resources-qh88-faq__faq-toggle {
  color: #FFFFFF;
}

.page-resources-qh88-faq__dark-section .page-resources-qh88-faq__faq-answer {
  color: #f0f0f0;
}

.page-resources-qh88-faq__section-title {
  text-align: center;
  font-size: 2.2em;
  color: #26A9E0;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources-qh88-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-resources-qh88-faq__faq-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.page-resources-qh88-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

.page-resources-qh88-faq__faq-question:hover {
  background-color: #f0f0f0;
}

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

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

.page-resources-qh88-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #555555;
  font-size: 1em;
  line-height: 1.6;
}

.page-resources-qh88-faq__faq-item.active .page-resources-qh88-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px;
}

.page-resources-qh88-faq__faq-answer p {
  margin-bottom: 10px;
}

.page-resources-qh88-faq__faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 10px;
}

.page-resources-qh88-faq__faq-answer li {
  margin-bottom: 5px;
}

.page-resources-qh88-faq__image-container {
  text-align: center;
  margin: 40px auto;
  max-width: 100%;
  box-sizing: border-box;
}

.page-resources-qh88-faq__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block; /* Ensures max-width works correctly */
  margin: 0 auto;
  filter: none; /* Ensure no filter changes image color */
}

.page-resources-qh88-faq__final-cta {
  background-color: #26A9E0;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 0;
}

.page-resources-qh88-faq__final-cta .page-resources-qh88-faq__section-title {
  color: #FFFFFF;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-resources-qh88-faq__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-resources-qh88-faq__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-qh88-faq__hero-title {
    font-size: 2em;
  }

  .page-resources-qh88-faq__hero-description {
    font-size: 1em;
  }

  .page-resources-qh88-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px; /* Add padding to container */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-resources-qh88-faq__btn-primary,
  .page-resources-qh88-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important; /* Adjust padding for mobile */
  }

  .page-resources-qh88-faq__section {
    padding: 30px 0;
  }

  .page-resources-qh88-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources-qh88-faq__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-resources-qh88-faq__faq-answer {
    padding: 0 20px;
  }

  .page-resources-qh88-faq__faq-item.active .page-resources-qh88-faq__faq-answer {
    padding: 10px 20px;
  }

  /* Global image and video responsive rules for mobile */
  .page-resources-qh88-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources-qh88-faq__image-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific video responsive rules (if any video is added) */
  .page-resources-qh88-faq video,
  .page-resources-qh88-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-qh88-faq__video-section,
  .page-resources-qh88-faq__video-container,
  .page-resources-qh88-faq__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-qh88-faq__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for video section */
  }
}