/* style/faq.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */

.page-faq {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Sử dụng màu văn bản chính */
  background-color: var(--bg); /* Sử dụng màu nền chính */
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Nhỏ hơn so với var(--header-offset) */
  color: var(--text-main);
  background: linear-gradient(180deg, #08160F 0%, #11271B 100%); /* Nền gradient tối */
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

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

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold); /* Sử dụng màu Gold cho tiêu đề chính */
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.page-faq__description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-secondary); /* Sử dụng màu văn bản phụ */
  margin-bottom: 30px;
}

.page-faq__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-faq__btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--glow);
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--glow); /* Sử dụng màu Glow cho viền */
  transition: all 0.3s ease;
}

.page-faq__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  color: #ffffff;
  border-color: #ffffff;
}

.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: var(--bg);
  color: var(--text-main);
}

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

.page-faq__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--gold);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__intro-text {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__faq-category {
  margin-bottom: 40px;
  border: 1px solid var(--divider); /* Sử dụng màu Divider cho viền */
  border-radius: 10px;
  background-color: var(--card-bg);
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__category-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--glow);
  margin-bottom: 25px;
  border-bottom: 2px solid var(--deep-green); /* Sử dụng màu Deep Green */
  padding-bottom: 15px;
  font-weight: 600;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 15px;
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 15px 0;
  transition: color 0.3s ease;
  list-style: none; /* Loại bỏ marker mặc định của summary */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Loại bỏ marker cho Webkit */
}

.page-faq__faq-question:hover {
  color: var(--glow);
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--glow);
  margin-left: 15px;
}

.page-faq__faq-answer {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  padding: 10px 0 10px 20px;
  overflow: hidden;
  transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
}

/* Details element native open/close handling */
.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 1000px; /* Đủ lớn để hiển thị nội dung */
  opacity: 1;
}

.page-faq__faq-item:not([open]) .page-faq__faq-answer {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

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

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

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

.page-faq__read-more-link {
  color: var(--glow);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-faq__read-more-link:hover {
  color: #ffffff;
}

.page-faq__cta-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #11271B 0%, #0A4B2C 100%); /* Nền Deep Green */
  border-radius: 15px;
  padding: 40px;
  margin-top: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  color: var(--text-main);
}

.page-faq__cta-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-content {
  max-width: 700px;
}

.page-faq__cta-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--gold);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-faq__cta-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .page-faq__hero-section {
    padding: 40px 20px;
  }
  .page-faq__faq-list-section {
    padding: 40px 0;
  }
  .page-faq__category-title {
    font-size: 1.8rem;
  }
  .page-faq__faq-question {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }
  .page-faq__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-faq__main-title {
    font-size: 2.2rem;
  }
  .page-faq__description {
    font-size: 1rem;
  }
  .page-faq__btn-primary {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-faq__section-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  .page-faq__intro-text {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-faq__faq-category {
    padding: 20px;
    margin-bottom: 30px;
  }
  .page-faq__category-title {
    font-size: 1.6rem;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }
  .page-faq__faq-question {
    font-size: 1rem;
    padding: 12px 0;
  }
  .page-faq__faq-answer {
    font-size: 0.9rem;
    padding-left: 15px;
  }
  .page-faq__cta-banner {
    padding: 30px;
    margin-top: 40px;
  }
  .page-faq__cta-title {
    font-size: 2rem;
  }
  .page-faq__cta-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  /* 移动端图片适配强制要求 */
  .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__hero-section,
  .page-faq__faq-list-section,
  .page-faq__faq-category,
  .page-faq__cta-banner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  /* 按钮响应式适配 */
  .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;
    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-wrap: wrap !important;
    gap: 10px;
  }
  .page-faq__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

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