/* style/faq.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-faq {
  color: #ffffff; /* Body background is #000000, so text should be light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #000000; /* Ensure main content background matches body or is transparent */
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #000000;
  text-align: center;
}

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

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

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

.page-faq__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive H1 font size */
  font-weight: 700;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to wrap */
}

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

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

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

.page-faq__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-faq__faq-list-section {
  padding: 60px 20px;
  background-color: #000000;
}

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

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

.page-faq__section-description {
  font-size: 16px;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly darker for summary */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

.page-faq__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: #26A9E0;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  content: "−"; /* Change content on open for details */
}

.page-faq__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 16px;
  color: #f0f0f0;
  line-height: 1.8;
}

.page-faq__faq-answer p,
.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  padding-left: 25px;
}

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

.page-faq__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: #1e87c0;
}

.page-faq__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
}

.page-faq__cta-banner {
  padding: 60px 20px;
  background-color: #26A9E0; /* Brand blue background */
  text-align: center;
  color: #ffffff;
}

.page-faq__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-faq__cta-title {
  font-size: clamp(24px, 3.5vw, 36px);
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-faq__cta-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-faq__btn-large {
  padding: 15px 40px;
  font-size: 20px;
}

.page-faq__cta-image-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.page-faq__cta-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }
  .page-faq__faq-list-section {
    padding: 40px 15px;
  }
  .page-faq__cta-banner {
    padding: 40px 15px;
  }
  .page-faq__main-title {
    font-size: clamp(24px, 5vw, 40px);
  }
  .page-faq__section-title {
    font-size: clamp(22px, 4.5vw, 36px);
  }
  .page-faq__cta-title {
    font-size: clamp(22px, 4.5vw, 32px);
  }
  .page-faq__description,
  .page-faq__section-description,
  .page-faq__cta-description {
    font-size: 16px;
  }
  .page-faq__faq-question {
    font-size: 17px;
    padding: 15px;
  }
  .page-faq__faq-answer {
    font-size: 15px;
    padding: 0 15px 15px 15px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }
  .page-faq__faq-list-section {
    padding: 30px 15px;
  }
  .page-faq__cta-banner {
    padding: 30px 15px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-faq__container,
  .page-faq__section,
  .page-faq__card,
  .page-faq__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__faq-item {
    padding: 0;
  }

  /* Images responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__hero-image-wrapper,
  .page-faq__cta-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Video responsive (if any, though not present in this HTML) */
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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;
  }
  .page-faq__video-section {
    padding-top: 10px !important;
  }
}

/* Contrast fixes for potential issues */
.page-faq__dark-section {
  background-color: #000000;
  color: #ffffff;
}
.page-faq__dark-section .page-faq__main-title,
.page-faq__dark-section .page-faq__section-title,
.page-faq__dark-section .page-faq__cta-title {
  color: #26A9E0;
}
.page-faq__dark-section .page-faq__description,
.page-faq__dark-section .page-faq__section-description,
.page-faq__dark-section .page-faq__faq-answer {
  color: #f0f0f0;
}
.page-faq__dark-section .page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.page-faq__dark-section .page-faq__faq-question {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.page-faq__dark-section .page-faq__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.12);
}
.page-faq__dark-section .page-faq__faq-toggle {
  color: #26A9E0;
}
.page-faq__dark-section .page-faq__btn-secondary {
  color: #26A9E0;
  border-color: #26A9E0;
}
.page-faq__dark-section .page-faq__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}
.page-faq__dark-section a {
  color: #26A9E0;
}
.page-faq__dark-section a:hover {
  color: #1e87c0;
}