.page-faq {
  color: #ffffff; /* Body background is dark (#1A1A1A), so use light text */
  background-color: var(--secondary-color, #1A1A1A);
}

.page-faq__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
  text-align: center;
  background: #1A1A1A;
  color: #ffffff;
}

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

.page-faq__main-title {
  font-size: 3.2em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-faq__intro-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

.page-faq__btn-primary {
  background: #FFD700;
  color: #1A1A1A;
  border: 2px solid #FFD700;
}

.page-faq__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
}

.page-faq__btn-secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-faq__btn-secondary:hover {
  background: #FFD700;
  color: #1A1A1A;
}

.page-faq__accordion-section {
  padding: 60px 20px;
  background: #1A1A1A;
  color: #ffffff;
}

.page-faq__section--dark-bg {
  background: #1A1A1A;
  color: #ffffff;
}

.page-faq__container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-faq__accordion-wrapper {
  margin-top: 30px;
}

/* FAQ容器样式 */
.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #333333; /* Slightly lighter background for FAQ items */
}

/* FAQ默认状态 - 答案隐藏 */
.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #f0f0f0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important đảm bảo ưu tiên, giá trị đủ lớn */
  padding: 20px !important;
  opacity: 1;
  background: #282828;
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #333333;
  border: 1px solid #444444;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-faq__faq-question:hover {
  background: #444444;
  border-color: #555555;
}

.page-faq__faq-question:active {
  background: #555555;
}

/* 问题标题样式 */
.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #FFD700;
}

/* 切换图标 */
.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

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

.page-faq__image--inline {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 8px;
}

.page-faq__outro-section {
  padding: 60px 20px;
  text-align: center;
  background: #1A1A1A;
  color: #ffffff;
}

.page-faq__outro-text {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* ---------------------------------------------------------------------------------------------------- */
/* 🚨 Mobile Responsive Styles (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px);
  }

  .page-faq__main-title {
    font-size: 2.8em;
  }

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

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

  .page-faq__accordion-section,
  .page-faq__outro-section {
    padding: 40px 15px;
  }

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

  .page-faq__faq-toggle {
    font-size: 26px;
    width: 30px;
    height: 30px;
  }
}

/* ---------------------------------------------------------------------------------------------------- */
/* 🚨 Mobile Responsive Styles (max-width: 768px) - MUST INCLUDE ALL REQUIRED SECTIONS */
@media (max-width: 768px) {
  /* HERO 主图区域 (page-faq__hero-section) */
  .page-faq__hero-section {
    padding: 40px 15px !important;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-faq__main-title {
    font-size: 2em !important;
    margin-bottom: 15px !important;
  }

  .page-faq__intro-description {
    font-size: 0.95em !important;
    margin-bottom: 25px !important;
  }

  /* 按钮与按钮容器 (page-faq__cta-buttons, page-faq__btn-primary, page-faq__btn-secondary) */
  .page-faq__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px !important;
    overflow: hidden !important;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  /* 其他内容模块 (page-faq__accordion-section, page-faq__outro-section) */
  .page-faq__accordion-section,
  .page-faq__outro-section {
    padding: 30px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-faq__container {
    padding: 0 !important; /* Remove container padding if any */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* 通用图片与容器 (page-faq img, page-faq__image--inline) */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-faq__image--inline {
    margin-top: 15px !important;
  }

  /* FAQ specific styles for mobile */
  .page-faq__faq-item {
    margin-bottom: 10px !important;
  }

  .page-faq__faq-question {
    padding: 15px !important;
    flex-wrap: wrap !important;
  }

  .page-faq__faq-question h3 {
    font-size: 1em !important;
    margin-bottom: 0 !important;
    width: calc(100% - 40px) !important;
  }

  .page-faq__faq-toggle {
    margin-left: 10px !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 20px !important;
  }

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

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px !important;
  }

  .page-faq__faq-answer p {
    font-size: 0.95em !important;
  }

  .page-faq__outro-text {
    font-size: 0.95em !important;
  }
}