/* style/faq.css */
/* body đã có padding-top: var(--header-offset) từ shared.css */

.page-faq {
  background-color: #08160F; /* Nền tối từ custom color */
  color: #F2FFF6; /* Text Main từ custom color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Nhỏ hơn so với --header-offset */
  background-color: #08160F; /* Đảm bảo nền khớp với body */
  color: #F2FFF6;
  text-align: center;
  overflow: hidden;
}

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

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

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

.page-faq__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-size: clamp(2em, 4vw, 3.5em); /* H1 Font Size: Sử dụng clamp */
}

.page-faq__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

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

.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: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button custom color */
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-faq__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Sử dụng màu sáng hơn từ gradient */
  border: 2px solid #2E7A4E; /* Border custom color */
}

.page-faq__btn-secondary:hover {
  background-color: rgba(42, 209, 111, 0.1);
  transform: translateY(-2px);
}

.page-faq__section {
  padding: 50px 20px;
}

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

.page-faq__section-title {
  font-size: 2.2em;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-faq__faq-item {
  background-color: #11271B; /* Card BG custom color */
  border: 1px solid #2E7A4E; /* Border custom color */
  border-radius: 10px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
  transition: background-color 0.3s ease;
}

.page-faq__faq-item[open] {
  background-color: #0A4B2C; /* Deep Green for open state */
}

.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;
  user-select: none;
  color: #F2FFF6; /* Text Main */
}

.page-faq__faq-question::-webkit-details-marker, /* Hide default arrow for Webkit */
.page-faq__faq-question::marker { /* Hide default arrow for Firefox */
  display: none;
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #57E38D; /* Glow custom color */
}

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

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

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__image-block {
  margin-top: 40px;
  text-align: center;
  box-sizing: border-box;
}

.page-faq__image-block img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-faq__cta-bottom {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background-color: #11271B; /* Card BG custom color */
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border custom color */
}

.page-faq__cta-text {
  font-size: 1.3em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body đã có --header-offset, đây là top margin bổ sung */
  }

  .page-faq__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

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

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

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

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

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

  .page-faq__cta-bottom {
    padding: 20px;
  }

  .page-faq__cta-text {
    font-size: 1.1em;
  }

  /* Mobile image responsive adaptations */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__container,
  .page-faq__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Contrast Fixes (if needed, based on body background analysis) */
/* Body background is dark (#08160F), so text color is light (#F2FFF6) which provides good contrast. */
/* No immediate contrast fix classes needed beyond initial setup. */