/* style/faq.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body có nền tối #1a1a2e, nên chữ là màu trắng */
  background-color: transparent; /* Dựa vào màu nền của body */
}

.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Hình ảnh ở trên, văn bản ở dưới */
  align-items: center;
  padding-bottom: 60px; /* Khoảng cách dưới nội dung */
  padding-top: 10px; /* Khoảng cách nhỏ ở trên, body xử lý offset header */
  text-align: center;
  overflow: hidden; /* Đảm bảo không tràn */
}

.page-faq__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px; /* Khoảng cách giữa hình ảnh và nội dung */
  min-width: 200px;
  min-height: 200px;
}

.page-faq__hero-content {
  max-width: 800px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-faq__main-title {
  font-size: 2.5em;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0; /* Màu thương hiệu cho H1 */
}

.page-faq__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal; /* Cho phép xuống dòng */
  word-wrap: break-word; /* Cho phép xuống dòng */
  box-sizing: border-box;
  max-width: 100%; /* Đảm bảo responsive */
}

.page-faq__btn-primary {
  background-color: #26A9E0; /* Màu thương hiệu */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-faq__btn-primary:hover {
  background-color: #1e87b8;
  border-color: #1e87b8;
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-faq__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-faq__intro-section,
.page-faq__faq-list-section,
.page-faq__cta-section {
  padding: 60px 0;
}

.page-faq__section-title {
  font-size: 2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Màu thương hiệu */
}

.page-faq__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-faq__image-small {
  width: 100%;
  max-width: 600px; /* Hình ảnh nhỏ hơn */
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-faq__faq-category {
  margin-bottom: 50px;
}

.page-faq__category-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 30px;
  color: #26A9E0;
  text-align: center;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Màu trắng hơi trong suốt trên nền body tối */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff; /* Đảm bảo chữ màu trắng trên nền item */
}

.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;
  color: #ffffff; /* Chữ câu hỏi màu trắng */
  background-color: rgba(255, 255, 255, 0.05); /* Vùng câu hỏi hơi tối hơn */
}

.page-faq__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0; /* Màu thương hiệu cho biểu tượng bật/tắt */
}

.page-faq__faq-item[open] > .page-faq__faq-question .page-faq__faq-toggle {
  content: "−"; /* Được thay đổi bởi JS, nhưng tốt để có dự phòng */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #f0f0f0; /* Chữ câu trả lời màu xám nhạt */
}

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

.page-faq__read-more-link {
  color: #26A9E0; /* Màu thương hiệu cho liên kết */
  text-decoration: underline;
  font-weight: bold;
}

.page-faq__read-more-link:hover {
  color: #1e87b8;
}

/* Đối với thẻ <details>, ẩn dấu mặc định */
.page-faq__faq-item summary {
  list-style: none;
}
.page-faq__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-faq__dark-section {
  background-color: #1a1a2e; /* Khớp với nền body để nhất quán, nhưng ở đây là cho CTA */
  color: #ffffff;
  padding: 60px 0;
}

/* Thiết kế responsive */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2em;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__category-title {
    font-size: 1.4em;
  }
  .page-faq__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }
  .page-faq__faq-answer {
    padding: 0 20px 18px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-bottom: 40px;
  }
  .page-faq__hero-image {
    margin-bottom: 20px;
  }
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Thêm padding cho nút */
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
  }
  .page-faq__intro-section,
  .page-faq__faq-list-section,
  .page-faq__cta-section {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 1.6em;
    margin-bottom: 30px;
  }
  .page-faq__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-faq__category-title {
    font-size: 1.2em;
    margin-bottom: 20px;
  }
  .page-faq__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-faq__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.95em;
  }

  /* Responsive hình ảnh trên di động */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-content,
  .page-faq__cta-buttons,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__hero-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset, cấm dùng var(--header-offset) ở đây */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-faq__intro-section .page-faq__container,
  .page-faq__faq-list-section .page-faq__container,
  .page-faq__cta-section .page-faq__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Đảm bảo hình ảnh nội dung không nhỏ hơn 200px */
.page-faq__image-full,
.page-faq__image-small {
  min-width: 200px;
  min-height: 200px;
}

/* Đảm bảo không sử dụng filter trên hình ảnh */
.page-faq img {
  filter: none;
}