/* style/faq.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */

.page-faq {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Nhỏ hơn so với --header-offset */
  gap: 30px;
  text-align: center;
  background-color: var(--background, #08160F);
}

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

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Sử dụng clamp cho H1 */
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 800px; /* Kích thước tối đa cho ảnh hero */
  overflow: hidden;
  border-radius: 10px;
}

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

.page-faq__introduction-section,
.page-faq__faq-list-section,
.page-faq__cta-section {
  padding: 40px 20px;
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

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

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

.page-faq__text-block {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  text-align: center;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Quan trọng cho responsive button */
  white-space: normal; /* Cho phép chữ xuống dòng */
  word-wrap: break-word; /* Ngắt từ */
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* Luôn là màu trắng cho nút chính */
  border: none;
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border, #2E7A4E);
}

.page-faq__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Sử dụng màu border làm nền */
  transform: translateY(-2px);
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Cho phép các nút xuống dòng trên mobile */
}

.page-faq__faq-item {
  background-color: var(--card-bg, #11271B); /* Màu nền cho thẻ FAQ */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--border, #2E7A4E);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  font-size: 1.1em;
  position: relative;
}

.page-faq__faq-question::-webkit-details-marker {
  display: none;
}

.page-faq__faq-question::marker {
  display: none;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Xoay dấu + thành X khi mở */
}

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

.page-faq__faq-answer p {
  margin-bottom: 15px;
  color: var(--text-secondary, #A7D9B8);
}

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

/* --- Responsive Design --- */
@media (min-width: 769px) {
  .page-faq__hero-section {
    flex-direction: row; /* Trên desktop, ảnh và nội dung cạnh nhau */
    text-align: left;
    padding: 80px 40px;
  }

  .page-faq__hero-content {
    flex: 1;
    padding-right: 30px;
  }

  .page-faq__hero-image-wrapper {
    flex: 1;
  }

  .page-faq__main-title {
    text-align: left;
  }

  .page-faq__description {
    text-align: left;
  }

  .page-faq__cta-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body đã có padding-top, chỉ cần 10px */
  }

  .page-faq__main-title {
    font-size: 2em; /* Điều chỉnh font-size cho mobile */
  }

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

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

  .page-faq__introduction-section,
  .page-faq__faq-list-section,
  .page-faq__cta-section {
    padding: 30px 15px;
  }

  .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Responsive cho tất cả hình ảnh */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Responsive cho tất cả video (nếu có) */
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !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;
  }

  /* Responsive cho tất cả nút */
  .page-faq__cta-button,
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Thêm padding ngang cho nút */
    padding-right: 15px;
  }

  .page-faq__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Các nút xếp chồng lên nhau */
    gap: 10px;
  }

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

  .page-faq__faq-answer {
    padding: 0 20px 15px;
  }
}