/* style/faq.css */
.page-faq {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #1a1a2e; /* Ensure dark background */
}

.page-faq__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  background: linear-gradient(135deg, #1a1a2e 0%, #26A9E0 100%); /* Blend brand color */
}

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

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

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

.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

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

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

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

.page-faq__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content Area */
.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #1a1a2e;
}

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

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

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-faq__faq-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  list-style: none; /* For <summary> */
  user-select: none;
}

.page-faq__faq-item[open] > .page-faq__faq-question {
  background-color: rgba(255, 255, 255, 0.12);
}

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

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(0deg); /* No rotation for - */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #e0e0e0;
}

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

.page-faq__faq-answer ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-faq__faq-answer li {
  margin-bottom: 8px;
}

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

.page-faq__text-link {
  color: #26A9E0; /* Brand color for links */
  text-decoration: underline;
  font-weight: bold;
}

.page-faq__text-link:hover {
  color: #1e87c0;
}

.page-faq__highlight {
  color: #26A9E0;
  font-weight: bold;
}

/* Video Section */
.page-faq__video-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #1a1a2e;
}

.page-faq__video-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-faq__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 30px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.page-faq__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Ensure it's a block element */
  cursor: pointer; /* Indicates clickability */
}

.page-faq__video-cta {
  margin-top: 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

/* Contact CTA Section */
.page-faq__contact-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 60px 20px;
  background-color: #1a1a2e;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-faq__contact-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: center;
}

.page-faq__contact-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  text-align: center;
}

.page-faq__contact-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

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

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

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100%;
    max-width: 300px; /* Limit button width on mobile for better aesthetics */
    margin: 0 auto;
    padding: 12px 20px;
  }

  .page-faq__content-area,
  .page-faq__video-section,
  .page-faq__contact-cta {
    padding: 30px 15px; /* Adjust padding for mobile */
  }

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

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

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

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* All containers with images/videos */
  .page-faq__hero-image-wrapper,
  .page-faq__video-wrapper,
  .page-faq__contact-image-wrapper,
  .page-faq__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Ensure video wrapper maintains aspect ratio on mobile */
  .page-faq__video-wrapper {
    padding-bottom: 56.25% !important;
  }

  /* Specific padding for sections if needed, ensuring no overflow */
  .page-faq__hero-section,
  .page-faq__content-area,
  .page-faq__video-section,
  .page-faq__contact-cta,
  .page-faq__video-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Video section padding-top for fixed header on mobile */
  .page-faq__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-faq__faq-answer {
    padding: 0 15px 12px;
  }
}