.page-faq {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Explicitly white background */
}

/* Hero Section */
.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background-color: #f0f8ff; /* Light background for hero section */
  position: relative;
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
}

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

.page-faq__main-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); /* Responsive H1 font size */
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-faq__intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555555;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt to container width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-faq__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-faq__btn-primary:hover {
  background-color: #1e87c2;
  border-color: #1e87c2;
}

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

.page-faq__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1e87c2;
  border-color: #1e87c2;
}

/* Accordion Section */
.page-faq__accordion-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.page-faq__container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-faq__section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-faq__accordion-group {
  margin-bottom: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-faq__group-title {
  font-size: 1.4rem;
  color: #26A9E0;
  background-color: #f9f9f9;
  padding: 20px;
  margin: 0;
  border-bottom: 1px solid #e0e0e0;
}

.page-faq__faq-item {
  border-bottom: 1px solid #eeeeee;
}

.page-faq__faq-item:last-child {
  border-bottom: none;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
  user-select: none; /* Prevent text selection on click */
}

.page-faq__faq-question:hover {
  background-color: #f0f8ff;
}

.page-faq__faq-item[open] > .page-faq__faq-question {
  background-color: #f0f8ff;
  color: #26A9E0;
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 24px;
  text-align: center;
}

.page-faq__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
}

.page-faq__faq-answer img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-faq__final-cta {
  text-align: center;
  padding: 60px 20px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 8px;
  margin-top: 60px;
}

.page-faq__final-cta-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-faq__final-cta-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-buttons--mobile-app {
  margin-top: 20px;
}

/* Reset default details marker */
.page-faq__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-faq__faq-item summary {
  list-style: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 15px 40px;
  }

  .page-faq__hero-image {
    margin-bottom: 20px;
  }

  .page-faq__main-title {
    font-size: 2rem;
  }

  .page-faq__intro-text {
    font-size: 1rem;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__accordion-section {
    padding: 40px 15px;
  }

  .page-faq__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-faq__group-title {
    font-size: 1.2rem;
    padding: 15px;
  }

  .page-faq__faq-question {
    padding: 15px;
    font-size: 1rem;
  }

  .page-faq__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.95rem;
  }

  .page-faq__final-cta {
    padding: 40px 15px;
    margin-top: 40px;
  }

  .page-faq__final-cta-title {
    font-size: 2rem;
  }

  .page-faq__final-cta-text {
    font-size: 1rem;
  }

  /* Mobile image and video responsive fix */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__accordion-section,
  .page-faq__final-cta,
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  
  .page-faq__hero-section {
    padding-top: 10px !important; /* body already handles header offset */
  }
  .page-faq__video-section {
    padding-top: 10px !important; /* body already handles header offset */
  }

  /* Ensure button containers also wrap if needed */
  .page-faq__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  /* If buttons are children of a flex container, make them stack */
  .page-faq__cta-buttons:not(.page-faq__cta-buttons--mobile-app) {
      flex-direction: column;
  }
}