.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #f8f8f8;
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #0A1931, #223654);
  color: #ffffff;
  /* Apply header offset to the first section */
  padding-top: var(--header-offset, 120px);
}

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

.page-faq__main-title {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #E0B400; /* Use auxiliary color for title */
}

.page-faq__hero-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #E0B400; /* Auxiliary color for CTA button */
  color: #0A1931; /* Dark text for auxiliary button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-faq__cta-button:hover {
  background: #ffcc00;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__content-area {
  padding: 60px 20px;
  background-color: #ffffff;
  color: #333333;
}

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

.page-faq__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #0A1931;
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__intro-text {
  font-size: 17px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
}

.page-faq__faq-list {
  margin-top: 30px;
}

/* FAQ容器样式 */
.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* 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: #555555;
}

/* 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 để chứa mọi nội dung */
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

/* Vấn đề FAQ */
.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  border: 1px solid #e0e0e0;
  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: #f5f5f5;
  border-color: #d0d0d0;
}

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

/* Tiêu đề vấn đề FAQ */
.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #0A1931;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện click */
}

/* Biểu tượng chuyển đổi */
.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #E0B400; /* Auxiliary color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn chặn biểu tượng chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: #0A1931;
  transform: rotate(180deg);
}

.page-faq__image-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-faq__image-wrapper img {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  max-width: 100%;
  height: auto;
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto;
}

.page-faq__cta-section {
  padding: 80px 20px;
  background: #0A1931;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-faq__cta-content {
  position: relative;
  z-index: 2;
}

.page-faq__cta-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #E0B400;
}

.page-faq__cta-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

.page-faq__cta-button--large {
  padding: 18px 50px;
  font-size: 22px;
  border-radius: 10px;
}

.page-faq__image-wrapper--cta {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.15;
  /* filter: grayscale(100%);  Allowed for decorative effect, not changing original color */
}

.page-faq__image-wrapper--cta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-faq__main-title {
    font-size: 32px;
  }

  .page-faq__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-faq__cta-button {
    padding: 12px 25px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__content-area {
    padding: 40px 15px;
  }

  .page-faq__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-faq__intro-text {
    font-size: 15px;
    margin-bottom: 40px;
  }

  .page-faq__faq-question {
    padding: 15px 18px;
  }

  .page-faq__faq-question h3 {
    font-size: 16px;
  }

  .page-faq__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

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

  .page-faq__image-wrapper img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-faq__cta-section {
    padding: 60px 15px;
  }

  .page-faq__cta-title {
    font-size: 30px;
  }

  .page-faq__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-faq__cta-button--large {
    padding: 15px 35px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Ensure all containers with images/buttons are responsive */
  .page-faq__container,
  .page-faq__faq-list,
  .page-faq__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-faq__faq-item {
    padding-left: 0;
    padding-right: 0;
  }
}