/* style/faq.css */
.page-faq {
  background-color: #08160F; /* Nền tối theo yêu cầu */
  color: #F2FFF6; /* Chữ sáng cho nền tối */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-faq__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 10px 20px 60px; /* Nhỏ top padding, body đã handle header offset */
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Làm mờ ảnh nền để chữ dễ đọc */
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #F2FFF6;
  text-align: center;
  padding: 20px;
  background: rgba(17, 39, 27, 0.7); /* Nền bán trong suốt cho nội dung */
  border-radius: 10px;
}

.page-faq__main-title {
  font-size: clamp(2em, 5vw, 3.2em);
  font-weight: bold;
  color: #F2C14E; /* Màu vàng Gold cho tiêu đề chính */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #A7D9B8;
}

.page-faq__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-faq__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Màu vàng Gold cho tiêu đề phụ */
  margin-bottom: 40px;
  font-weight: bold;
}

.page-faq__text-block {
  font-size: 1.05em;
  color: #F2FFF6;
  margin-bottom: 20px;
  text-align: left;
}

.page-faq__text-block strong {
  color: #F2C14E;
}

.page-faq__text-block ul,
.page-faq__text-block ol {
  list-style-position: inside;
  text-align: left;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-faq__text-block li {
  margin-bottom: 10px;
  color: #A7D9B8;
}

.page-faq__faq-section {
  background-color: #11271B; /* Màu nền Card BG */
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-faq__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #11A84E; /* Main color */
  color: #F2FFF6;
  border-bottom: 1px solid #2E7A4E;
  list-style: none; /* For details/summary */
}

.page-faq__faq-item[open] > .page-faq__faq-question {
  background-color: #22C768; /* Auxiliary color when open */
}

.page-faq__faq-qtext {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #A7D9B8;
}

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

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

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

.page-faq__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-section {
  padding: 80px 20px;
  background-color: #08160F;
  text-align: center;
}

.page-faq__gold-button {
  background: linear-gradient(180deg, #F2C14E 0%, #E0A800 100%);
  color: #08160F;
}

.page-faq__gold-button:hover {
  background: linear-gradient(180deg, #E0A800 0%, #F2C14E 100%);
}

/* Ensure details summary marker is hidden */
details > summary::-webkit-details-marker {
  display: none;
}
details > summary {
  list-style: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-faq__section {
    padding: 40px 15px;
  }

  .page-faq__hero-section {
    min-height: 400px;
    padding: 10px 15px 40px;
  }

  .page-faq__hero-content {
    padding: 15px;
  }

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

  .page-faq__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-faq__text-block {
    font-size: 0.95em;
  }

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

  .page-faq__faq-answer {
    padding: 15px 20px;
    font-size: 0.9em;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  /* Mobile button responsiveness */
  .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;
    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;
  }
}