/* style/faq.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không thêm lại tại đây */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Mặc định cho toàn trang, sẽ bị ghi đè bởi các khu vực cụ thể */
  background-color: var(--background, #08160F);
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Padding-top nhỏ, không dùng var(--header-offset) */
  overflow: hidden;
  box-sizing: border-box;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  z-index: 0;
  min-height: 400px; /* Đảm bảo hình ảnh đủ lớn */
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(17, 39, 27, 0.7); /* Card BG với độ trong suốt */
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  color: var(--text-main, #F2FFF6);
  margin-top: 150px; /* Đẩy nội dung xuống dưới hình ảnh hero */
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Sử dụng clamp cho kích thước tiêu đề chính */
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

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

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

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

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

.page-faq__faq-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 25px 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border, #2E7A4E);
  color: var(--text-main, #F2FFF6);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.3em;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  list-style: none; /* Dành cho details/summary */
}

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

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

.page-faq__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--deep-green, #0A4B2C);
  color: var(--glow, #57E38D);
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Biểu tượng xoay khi mở */
}

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

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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;
  white-space: normal; /* Cho phép xuống dòng */
  word-wrap: break-word; /* Cho phép xuống dòng */
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

.page-faq__btn-secondary:hover {
  background-color: var(--deep-green, #0A4B2C);
  border-color: var(--glow, #57E38D);
  color: var(--glow, #57E38D);
}

/* =======================================
   Responsive Design
   ======================================= */

/* Desktop */
@media (min-width: 1025px) {
  .page-faq__hero-image {
    height: 600px;
  }
  .page-faq__hero-section {
    height: 600px;
    padding-bottom: 0;
  }
  .page-faq__hero-content {
    margin-top: 0; /* Trên desktop, nội dung có thể nằm trên ảnh nếu cần */
    padding: 30px 40px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .page-faq__hero-section {
    padding: 10px 15px 40px;
  }
  .page-faq__hero-image {
    min-height: 350px;
  }
  .page-faq__hero-content {
    margin-top: 100px;
    padding: 30px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }
  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: 2em;
  }
  .page-faq__faq-question {
    font-size: 1.2em;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__hero-image {
    min-height: 300px;
  }

  .page-faq__hero-content {
    margin-top: 80px;
    padding: 20px;
  }

  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__faq-item,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__hero-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset */
    padding-bottom: 30px;
  }

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

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

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

  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

  .page-faq__faq-item {
    padding: 20px;
  }

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

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