/* style/faq.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-faq {
  background-color: var(--bg-color, #08160F);
  color: var(--text-main, #F2FFF6);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom for content */
}

.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 as body handles header offset */
  background-color: var(--deep-green, #0A4B2C);
  text-align: center;
}

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

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-faq__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Use clamp for responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

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

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

.page-faq__btn-primary {
  background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
  color: var(--text-main, #F2FFF6);
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border-color, #2E7A4E);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-secondary:hover {
  background: var(--deep-green, #0A4B2C);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  background-color: var(--card-bg, #11271B); /* Darker background for content area */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-faq__section-title {
  font-size: 2.5em;
  color: var(--gold, #F2C14E);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__intro-text {
  font-size: 1.05em;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__faq-category-title {
  font-size: 2em;
  color: var(--text-main, #F2FFF6);
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--divider, #1E3A2A);
  padding-bottom: 10px;
  font-weight: 600;
}

.page-faq__faq-item {
  background-color: var(--deep-green, #0A4B2C); /* Slightly lighter than card-bg */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color, #2E7A4E);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-item[open] {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details summary */
}

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

.page-faq__faq-question:hover {
  background-color: var(--glow, #57E38D);
  color: #08160F; /* Dark text on hover for contrast */
}

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

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-secondary, #A7D9B8);
  font-size: 1em;
  line-height: 1.7;
}

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

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

.page-faq__cta-section {
  background-color: var(--deep-green, #0A4B2C);
  padding: 60px 20px;
  text-align: center;
  border-radius: 12px;
  max-width: 1200px;
  margin: 40px auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-faq__cta-title {
  font-size: 2.2em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-faq__cta-description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive Design --- */

/* General image responsive styles */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All image containers */
.page-faq__hero-image-wrapper,
.page-faq__faq-answer {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Mobile specific styles */
@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-faq__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

  .page-faq__description {
    font-size: 1em;
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-faq__content-area {
    padding: 20px 15px;
    margin: 20px auto;
  }

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

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

  .page-faq__faq-category-title {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

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

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

  .page-faq__cta-section {
    padding: 40px 15px;
    margin: 20px auto;
  }

  .page-faq__cta-title {
    font-size: 1.8em;
  }

  .page-faq__cta-description {
    font-size: 1em;
  }

  /* Ensure all images are responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure all containers containing images/buttons/videos are responsive */
  .page-faq__hero-image-wrapper,
  .page-faq__hero-content,
  .page-faq__cta-buttons,
  .page-faq__content-area,
  .page-faq__faq-list,
  .page-faq__faq-item,
  .page-faq__faq-answer,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
}