/* style/faq.css */

/* Custom Colors */
:root {
  --page-faq-main-color: #11A84E;
  --page-faq-accent-color: #22C768;
  --page-faq-bg-color: #08160F;
  --page-faq-card-bg: #11271B;
  --page-faq-text-main: #F2FFF6;
  --page-faq-text-secondary: #A7D9B8;
  --page-faq-border-color: #2E7A4E;
  --page-faq-glow-color: #57E38D;
  --page-faq-gold-color: #F2C14E;
  --page-faq-divider-color: #1E3A2A;
  --page-faq-deep-green: #0A4B2C;
  --page-faq-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-faq {
  font-family: 'Arial', sans-serif;
  color: var(--page-faq-text-main); /* Default text color for the page */
  background-color: var(--page-faq-bg-color); /* Matches body background if not overridden by shared */
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
  background-color: var(--page-faq-deep-green);
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

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

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--page-faq-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-faq__hero-description {
  font-size: 1.1rem;
  color: var(--page-faq-text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0 10px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  min-width: 200px; /* Ensure buttons are not too small */
}

.page-faq__btn-primary {
  background: var(--page-faq-btn-gradient);
  color: var(--page-faq-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-faq__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--page-faq-accent-color);
  border: 2px solid var(--page-faq-accent-color);
}

.page-faq__btn-secondary:hover {
  background: var(--page-faq-accent-color);
  color: var(--page-faq-bg-color);
  transform: translateY(-3px);
}

.page-faq__intro-section,
.page-faq__questions-section,
.page-faq__cta-section,
.page-faq__outro-section {
  padding: 40px 20px;
  background-color: var(--page-faq-bg-color);
  border-bottom: 1px solid var(--page-faq-divider-color);
}

.page-faq__intro-section:last-of-type, /* Adjust for last section if needed */
.page-faq__outro-section {
  border-bottom: none;
}

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

.page-faq__section-title,
.page-faq__cta-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--page-faq-gold-color);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-faq__section-title::after,
.page-faq__cta-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--page-faq-accent-color);
  border-radius: 2px;
}

.page-faq__section-description,
.page-faq__cta-description,
.page-faq__outro-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--page-faq-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-faq__faq-item {
  background-color: var(--page-faq-card-bg);
  border: 1px solid var(--page-faq-border-color);
  border-radius: 10px;
  overflow: hidden;
  color: var(--page-faq-text-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  background-color: var(--page-faq-deep-green);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-faq-text-main);
  cursor: pointer;
  list-style: none; /* For details/summary */
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-question:hover {
  background-color: var(--page-faq-divider-color);
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-faq-accent-color);
}

.page-faq__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-faq-text-secondary);
}

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

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
  margin-left: 20px;
  margin-bottom: 15px;
  list-style-position: inside;
}

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

.page-faq__faq-answer a {
  color: var(--page-faq-accent-color);
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: var(--page-faq-glow-color);
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

  .page-faq__main-title {
    font-size: 2rem; /* Clamp handles this, but explicitly for clarity */
    margin-bottom: 15px;
  }

  .page-faq__hero-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    margin: 10px 0 !important;
    padding: 10px 20px;
    font-size: 0.95rem;
    min-width: unset; /* Remove min-width for mobile */
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-faq__intro-section,
  .page-faq__questions-section,
  .page-faq__cta-section,
  .page-faq__outro-section {
    padding: 30px 15px;
  }

  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: 1.8rem; /* Clamp handles this */
    margin-bottom: 20px;
  }

  .page-faq__section-description,
  .page-faq__cta-description,
  .page-faq__outro-text {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

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

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

  /* Image responsive rules */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-faq__video-section {
    padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
  }
}