/* style/faq.css */
/* body đã padding-top: var(--header-offset); trang này không được viết lại biến đó */

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

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
  background-color: #08160F; /* Background */
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  max-width: 1200px; /* Constrain image width on larger screens */
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
  position: relative;
}

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

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background: transparent;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border color */
}

.page-faq__btn-secondary:hover {
  background: rgba(46, 122, 78, 0.2); /* Deep Green with opacity */
  transform: translateY(-2px);
}

.page-faq__faq-section {
  padding: 80px 20px;
  background-color: #08160F; /* Background */
}

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

.page-faq__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

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

.page-faq__faq-item {
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-faq__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  list-style: none;
  outline: none;
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  font-size: 1.15em;
  transition: background-color 0.3s ease;
}

.page-faq__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-faq__faq-item summary:hover {
  background-color: #1E3A2A; /* Divider for hover */
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F; /* A lighter green for the toggle */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
  line-height: 1.8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 1000px; /* Arbitrary large value for smooth expansion */
  padding-top: 10px;
}

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

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

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

.page-faq__link-text:hover {
  text-decoration: underline;
}

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

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }
  .page-faq__hero-content {
    max-width: 700px;
  }
  .page-faq__faq-section {
    padding: 60px 15px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 20px 15px;
    padding-top: 10px !important; /* body handles --header-offset, small top padding */
  }
  .page-faq__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-faq__description {
    font-size: 1em;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .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;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 15px;
  }
  .page-faq__faq-section {
    padding: 40px 15px;
  }
  .page-faq__section-title {
    font-size: clamp(1.6em, 5vw, 2.2em);
    margin-bottom: 30px;
  }
  .page-faq__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-faq__faq-answer {
    padding: 0 20px 15px;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-image-wrapper,
  .page-faq__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__hero-image-wrapper {
    padding: 0;
  }
  .page-faq__hero-image {
    border-radius: 5px;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-section {
    padding: 15px 10px;
    padding-top: 10px !important;
  }
  .page-faq__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-faq__description {
    font-size: 0.95em;
  }
  .page-faq__faq-item summary {
    font-size: 0.95em;
    padding: 12px 15px;
  }
  .page-faq__faq-answer {
    padding: 0 15px 12px;
  }
  .page-faq__section-title {
    font-size: clamp(1.4em, 6vw, 2em);
  }
  .page-faq__cta-bottom {
    padding: 20px 15px;
  }
  .page-faq__cta-text {
    font-size: 1.1em;
  }
  .page-faq__container,
  .page-faq__cta-buttons {
    padding-left: 10px;
    padding-right: 10px;
  }
}