.page-faq {
  color: #f0f0f0; /* Light text for general page content on dark body background */
  background-color: transparent; /* Rely on body's background from shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background-color: #26A9E0; /* Primary brand color for hero background */
  color: #FFFFFF;
  overflow: hidden;
}

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

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

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

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.page-faq__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-faq__hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-faq__btn-primary:hover {
  background-color: #d46c00;
  border-color: #d46c00;
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-faq__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
  transform: translateY(-2px);
}

.page-faq__section {
  padding: 60px 20px;
  background-color: transparent; /* Rely on body's background */
}

.page-faq__section--spacing {
  padding-top: 40px;
}

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

.page-faq__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: #26A9E0; /* Primary brand color for section titles */
}

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

.page-faq__faq-item {
  background-color: #ffffff; /* White background for FAQ item for readability */
  color: #333333; /* Dark text for readability on white background */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-weight: 600;
  font-size: 1.1em;
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
  color: #333333;
  list-style: none; /* For details/summary */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #eaf6ff; /* Lighter background when open */
  border-bottom: 1px solid #26A9E0;
}

.page-faq__faq-qtext {
  flex-grow: 1;
  color: #333333;
}

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate + to X or similar */
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  background-color: #ffffff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 2000px; /* Sufficiently large to reveal content */
  padding: 20px 25px;
}

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

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-faq__cta-section {
  background-color: #26A9E0; /* Primary brand color for CTA section */
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.page-faq__cta-section .page-faq__section-title,
.page-faq__cta-section .page-faq__description {
  color: #FFFFFF;
  position: relative;
  z-index: 1;
}

.page-faq__cta-section .page-faq__section-title {
  margin-bottom: 20px;
}

.page-faq__cta-section .page-faq__description {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-faq__cta-section .page-faq__cta-buttons {
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.page-faq__image-content--cta {
  position: absolute;
  bottom: -20px;
  right: -50px;
  opacity: 0.2;
  filter: grayscale(100%); /* Use grayscale for background decorative image, not color change */
  z-index: 0;
  max-width: 400px;
  width: 100%;
  height: auto;
  min-width: 200px;
  min-height: 200px;
}

/* Video responsiveness - included for compliance */
.page-faq__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background-color: #1a1a1a; /* Example dark background */
  color: #FFFFFF;
}

.page-faq__video-container {
  width: 100%; /* Desktop must have width: 100% */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
}

.page-faq__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-faq__section-title {
    font-size: clamp(1.6em, 4vw, 2.2em);
  }
  .page-faq__faq-question {
    font-size: 1em;
    padding: 18px 20px;
  }
  .page-faq__faq-answer {
    padding: 18px 20px;
  }
  .page-faq__hero-image-wrapper {
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section,
  .page-faq__section,
  .page-faq__cta-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-faq__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-faq__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-faq__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 30px;
  }

  .page-faq__hero-cta-buttons,
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq 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-faq__faq-question {
    padding: 15px 18px;
    font-size: 0.95em;
  }

  .page-faq__faq-answer {
    padding: 15px 18px;
    font-size: 0.9em;
  }

  .page-faq img {
    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__cta-section,
  .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;
  }

  /* Video specific mobile adjustments */
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__video-section {
    padding-top: 10px !important;
  }

  .page-faq__image-content--cta {
    position: static;
    opacity: 0.1;
    filter: grayscale(100%);
    margin-top: 20px;
    max-width: 100%;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }
  .page-faq__section-title {
    font-size: clamp(1.4em, 7vw, 1.8em);
  }
  .page-faq__description {
    font-size: 0.9em;
  }
  .page-faq__faq-question {
    font-size: 0.9em;
    padding: 12px 15px;
  }
  .page-faq__faq-answer {
    padding: 12px 15px;
    font-size: 0.85em;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}