/* style/faq.css */
/* body đã có padding-top: var(--header-offset) từ shared.css; không lặp lại ở đây */
.page-faq {
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Màu chữ mặc định cho nền sáng */
  background-color: var(--background-color, #ffffff); /* Fallback to white if var not set */
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px; /* Padding nhỏ ở trên, nhiều hơn ở dưới */
  text-align: center;
  overflow: hidden;
}

.page-faq__dark-bg {
  background-color: #26A9E0; /* Màu chủ đạo của thương hiệu */
  color: #ffffff; /* Chữ trắng cho nền tối */
}

.page-faq__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

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

.page-faq__hero-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
  z-index: 1;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Kích thước font chữ đáp ứng cho H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.page-faq__btn-primary {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b7;
  border-color: #1e87b7;
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-faq__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 30px;
  text-align: center;
}

.page-faq__section-title--white {
  color: #ffffff;
}

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

.page-faq__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-faq__faq-item[open] {
  background-color: #eaf6fc;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  list-style: none; /* Ẩn dấu mặc định của summary */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Ẩn dấu mặc định cho trình duyệt webkit */
}

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

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  color: #555555;
  background-color: #f9f9f9;
}

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

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

.page-faq__cta-support {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background-color: #f0f8ff;
  border-radius: 8px;
  border: 1px solid #d0e8f8;
}

.page-faq__cta-support p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-faq__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #26A9E0;
  color: #ffffff;
}

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

/* Responsive design */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 15px 40px;
  }
  .page-faq__main-title {
    font-size: clamp(1.6em, 6vw, 2.2em) !important;
  }
  .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: 10px 15px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__content-area {
    padding: 30px 15px;
  }
  .page-faq__section-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-faq__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }
  .page-faq__cta-support {
    padding: 20px;
  }
  .page-faq__cta-support p {
    font-size: 1em;
  }
  .page-faq__cta-section {
    padding: 60px 15px;
  }
  .page-faq__description--white {
    font-size: 1em;
  }

  /* Responsive images */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Responsive containers for images/content */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-image-wrapper,
  .page-faq__cta-buttons,
  .page-faq__cta-support,
  .page-faq__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Fixed header spacing - only small top padding for first section */
  .page-faq__hero-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset, không lặp lại ở đây */
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.4em, 7vw, 2em) !important;
  }
  .page-faq__section-title {
    font-size: 1.4em;
  }
}