.page-faq__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Đảm bảo không bị che bởi header */
  color: #ffffff;
  background-color: #017439; /* Màu chủ đạo của 9vnd */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 400px;
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15; /* Làm mờ ảnh nền */
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%); /* Giảm độ bão hòa màu để hòa hợp với tông xanh */
}

.page-faq__container {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-faq__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-faq__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff;
  color: #333333;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #017439; /* Màu chủ đạo */
  margin-bottom: 30px;
  text-align: center;
  padding-top: 20px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 15px;
}

.page-faq__paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
}

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

.page-faq__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #ffffff;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #f0f0f0;
  color: #017439;
}

.page-faq__faq-heading {
  margin: 0;
  font-size: 1.2em;
  color: inherit; /* Kế thừa màu từ .page-faq__faq-question */
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #017439;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f9f9f9;
  color: #555555;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Đủ lớn để chứa mọi nội dung */
  padding: 20px 25px;
}

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

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

/* Buttons */
.page-faq__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background-color: #017439; /* Màu chủ đạo */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-faq__btn-primary:hover {
  background-color: #005f2c; /* Màu xanh đậm hơn khi hover */
  transform: translateY(-2px);
}

.page-faq__btn-small {
  padding: 8px 18px;
  font-size: 0.9em;
  margin-top: 15px;
}

.page-faq__btn-large {
  padding: 15px 30px;
  font-size: 1.1em;
  margin-top: 25px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.8em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__intro-text,
  .page-faq__paragraph,
  .page-faq__faq-question {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Quan trọng: đảm bảo padding-top trên mobile */
  }
  .page-faq__main-title {
    font-size: 2.2em;
  }
  .page-faq__intro-text {
    font-size: 0.95em;
  }
  .page-faq__content-area {
    padding: 40px 15px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-faq__paragraph {
    font-size: 0.95em;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-faq__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image adaptation */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__hero-image-wrapper,
  .page-faq__content-area,
  .page-faq__container,
  .page-faq__faq-item,
  .page-faq__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile button adaptation */
  .page-faq__btn-primary,
  .page-faq__btn-small,
  .page-faq__btn-large,
  .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;
    margin-top: 10px;
  }

  /* Ensure button containers also adapt */
  .page-faq__faq-answer {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Adjust alignment as needed */
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.5em;
  }
  .page-faq__faq-question {
    font-size: 1em;
  }
}