/* style/faq.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không cần thêm ở đây */

.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body đã có padding-top, đây chỉ 10px */
  background-color: #0A4B2C; /* Deep Green */
}

.page-faq__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px;
  border-radius: 8px; /* Slightly rounded corners for aesthetics */
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-faq__hero-description {
  font-size: 1.15rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  text-align: center;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #ffffff;
  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);
  opacity: 0.9;
}

.page-faq__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Gold */
  border: 2px solid #F2C14E; /* Gold */
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-faq__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

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

.page-faq__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-faq__section-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-faq__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border */
  transition: all 0.3s ease;
}

.page-faq__faq-item:hover {
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.3);
  transform: translateY(-2px);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B; /* Card BG */
  position: relative;
  list-style: none; /* For details/summary */
}

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

.page-faq__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-faq__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: #2AD16F;
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-faq__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.05rem;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
  max-height: 0; /* For JS-controlled collapse */
  overflow: hidden; /* For JS-controlled collapse */
  transition: max-height 0.5s ease-out, padding 0.5s ease-out; /* For JS-controlled collapse */
}

.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 2000px; /* Arbitrarily large for expansion */
  padding-top: 10px; /* Add some padding when open */
}

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

.page-faq__faq-answer a {
  color: #2AD16F; /* Link color */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-faq__faq-answer a:hover {
  color: #57E38D; /* Glow */
}

.page-faq__cta-section {
  text-align: center;
  padding: 50px 20px;
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  margin-top: 50px;
  border: 1px solid #2E7A4E; /* Border */
}

.page-faq__cta-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-faq__cta-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Ensure all images meet minimum size requirements */
.page-faq img {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    max-width: 768px;
  }
  .page-faq__content-area {
    padding: 40px 15px;
  }
  .page-faq__section-description {
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 15px 40px 15px;
  }
  .page-faq__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-faq__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-faq__content-area {
    padding: 30px 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-faq__section-title {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }
  .page-faq__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-faq__faq-question {
    font-size: 1.05rem;
    padding: 18px 20px;
  }
  .page-faq__faq-answer {
    font-size: 0.95rem;
    padding: 0 20px 18px 20px;
  }
  .page-faq__faq-item[open] .page-faq__faq-answer {
    padding-top: 8px;
  }
  .page-faq__cta-section {
    padding: 40px 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-faq__cta-title {
    font-size: clamp(1.3rem, 5vw, 2rem);
  }
  .page-faq__cta-description {
    font-size: 1rem;
  }

  /* Mobile image and video responsiveness */
  .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,
  .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; /* Prevent overflow */
  }
  .page-faq__video-section {
    padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  .page-faq__faq-question {
    font-size: 1rem;
    padding: 15px 18px;
  }
  .page-faq__faq-answer {
    padding: 0 18px 15px 18px;
  }
  .page-faq__cta-title {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }
}