/* style/faq.css */
.page-faq {
  background-color: #08160F; /* Nền tối theo yêu cầu */
  color: #F2FFF6; /* Chữ sáng cho nền tối */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Nhỏ gọn, không trùng với body padding */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Làm mờ ảnh nền để chữ nổi bật */
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background: rgba(17, 39, 27, 0.7); /* Card BG with transparency */
  border-radius: 10px;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* H1 font size with clamp */
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: #A7D9B8;
  margin-bottom: 30px;
}

/* General Section Styling */
.page-faq__intro-section, .page-faq__faq-list-section, .page-faq__cta-section {
  padding: 60px 0;
  background-color: #08160F;
}

.page-faq__section-title, .page-faq__cta-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-faq__section-text, .page-faq__cta-description {
  font-size: 1.1em;
  color: #A7D9B8;
  text-align: center;
  margin-bottom: 30px;
}

.page-faq__section-image {
  display: block;
  margin: 30px auto 0 auto;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

/* FAQ List Section */
.page-faq__faq-item-wrapper {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #1E3A2A; /* Divider */
  padding-bottom: 15px;
}

.page-faq__faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  cursor: pointer;
  font-size: 1.2em;
  color: #F2FFF6;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-faq__faq-question:hover {
  color: #2AD16F;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  color: #57E38D; /* Glow */
}

.page-faq__faq-answer {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 1em;
  color: #A7D9B8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding-top 0.5s ease-out, padding-bottom 0.5s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer { /* For <details> tag */
  max-height: 2000px; /* Sufficiently large to show content */
  padding-top: 15px;
  padding-bottom: 15px;
}

.page-faq__faq-item.active .page-faq__faq-answer { /* For JS controlled div */
  max-height: 2000px !important;
  padding-top: 15px;
  padding-bottom: 15px;
}

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

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

/* Hide default marker for <details> */
.page-faq__faq-item > summary {
  list-style: none;
}

.page-faq__faq-item > summary::-webkit-details-marker {
  display: none;
}

/* CTA Section */
.page-faq__cta-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%); /* Deep Green to Background */
}

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

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6;
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px rgba(42, 209, 111, 0.6);
}

.page-faq__btn-secondary {
  background: transparent;
  color: #F2FFF6;
  border: 2px solid #2E7A4E; /* Border */
}

.page-faq__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Deep Green with transparency */
  border-color: #57E38D; /* Glow */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 15px;
  }

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

  .page-faq__hero-description {
    font-size: clamp(0.9em, 1.3vw, 1.1em);
  }

  .page-faq__faq-question {
    font-size: 1.1em;
  }
}

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

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

  .page-faq__hero-description {
    font-size: clamp(0.8em, 2vw, 1em);
  }

  .page-faq__intro-section, .page-faq__faq-list-section, .page-faq__cta-section {
    padding: 40px 0;
  }

  .page-faq__section-title, .page-faq__cta-title {
    font-size: clamp(1.6em, 4.5vw, 2em);
    margin-bottom: 25px;
  }

  .page-faq__section-text, .page-faq__cta-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-faq__faq-question {
    font-size: 1em;
    padding: 12px 0;
  }

  .page-faq__faq-answer {
    font-size: 0.9em;
  }

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

  .page-faq__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* Mandatory responsive styles for images, videos, buttons, containers */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq video, .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__container,
  .page-faq__hero-content,
  .page-faq__faq-item-wrapper,
  .page-faq__cta-buttons,
  .page-faq__cta-button,
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .page-faq__cta-button,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__hero-section {
    padding-top: 10px !important; /* body already handles offset */
  }
}