/* style/faq.css */
/* body đã có padding-top: var(--header-offset); trang này không cần thêm */

.page-faq {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body đã có padding-top, chỉ cần 10px ở đây */
  overflow: hidden;
  text-align: center;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-faq__hero-content {
  position: relative; /* Đảm bảo nội dung nằm dưới hình ảnh */
  max-width: 900px;
  margin-top: 40px; /* Khoảng cách giữa ảnh và nội dung */
  padding: 0 20px;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
}

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

.page-faq__section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

.page-faq__introduction-section {
  padding-bottom: 30px;
}

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

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

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

.page-faq__text-block {
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-faq__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  list-style: none; /* Hide default marker for details tag */
}

.page-faq__faq-item::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: rgba(34, 199, 104, 0.1); /* Lighter hover for contrast */
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: 600;
  color: #57E38D; /* Glow */
  margin-left: 15px;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  content: '−'; /* Change to minus when open */
}

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

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

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

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

.page-faq__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-faq__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  font-size: 1.1em;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-faq__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: #57E38D; /* Glow */
  font-size: 1.1em;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #57E38D; /* Glow */
  cursor: pointer;
}

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

.page-faq__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #0A4B2C; /* Deep Green */
}

.page-faq__cta-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__text-link {
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: bold;
}

.page-faq__text-link:hover {
  text-decoration: underline;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-faq__hero-image {
    max-height: 400px;
  }

  .page-faq__hero-content {
    margin-top: 20px;
  }

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

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

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

  .page-faq__section,
  .page-faq__cta-section {
    padding: 40px 0;
  }

  .page-faq__container {
    padding: 0 15px; /* Add padding to prevent overflow */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Buttons responsiveness */
  .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: 20px !important;
    padding-right: 20px !important;
  }

  .page-faq__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-faq__cta-title {
    font-size: 1.8em;
  }

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