/* style/faq.css */
/* 
  Màu sắc:
  - Chủ đạo: #26A9E0 (Xanh dương)
  - Phụ trợ: #FFFFFF (Trắng)
  - Đăng nhập: #EA7C07 (Cam)
  - Nền: #FFFFFF (Trắng)
  - Chữ: #333333 (Xám đậm) hoặc #000000 (Đen) trên nền sáng
*/

.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background #FFFFFF */
  background-color: #FFFFFF; /* Ensure consistency with body background */
}

/* Header offset for fixed header */
.page-faq__hero-section {
  padding-top: var(--header-offset, 120px);
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  background: linear-gradient(135deg, #26A9E0, #1a7bb0); /* Gradient with brand color */
  color: #FFFFFF;
  padding: 60px 20px;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 30px;
}

.page-faq__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-faq__lead-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2; /* Subtle background image */
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.page-faq__content-area {
  padding: 60px 0;
  background-color: #f8f8f8; /* Slightly off-white background for contrast */
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for main titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto 50px auto;
  border-radius: 8px;
  overflow: hidden;
}

.page-faq__faq-item {
  background-color: #FFFFFF;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.3em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f0f8ff; /* Light blue background for question */
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg);
}
.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #e6f2ff;
  border-bottom: 1px solid #d0e0e9;
}

.page-faq__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1.05em;
  color: #555555;
  border-top: 1px solid #f0f0f0;
}

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

.page-faq__faq-answer h3 {
  font-size: 1.15em;
  color: #26A9E0; /* Brand color for sub-questions */
  margin-top: 20px;
  margin-bottom: 10px;
}

.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);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-faq__cta-section {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(135deg, #26A9E0, #1a7bb0);
  color: #FFFFFF;
  border-radius: 8px;
  margin-top: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
}

.page-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-faq__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color for primary action */
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
  background-color: #d16b06;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.8em;
  }
  .page-faq__lead-text {
    font-size: 1.1em;
  }
  .page-faq__section-title {
    font-size: 2.2em;
  }
  .page-faq__faq-question {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
  }
  .page-faq__main-title {
    font-size: 2em;
  }
  .page-faq__lead-text {
    font-size: 1em;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }
  .page-faq__faq-answer {
    font-size: 0.95em;
    padding: 12px 20px 20px;
  }
  .page-faq__faq-answer h3 {
    font-size: 1.05em;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__cta-description {
    font-size: 1em;
  }
  .page-faq__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }

  /* Mobile image, video, button adaptations */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers that hold images/videos/buttons */
  .page-faq__hero-section,
  .page-faq__content-area,
  .page-faq__container,
  .page-faq__faq-list,
  .page-faq__faq-item,
  .page-faq__faq-answer,
  .page-faq__cta-section,
  .page-faq__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  /* Add padding to containers if needed to prevent edge-to-edge content */
  .page-faq__container,
  .page-faq__faq-list,
  .page-faq__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Button responsive */
  .page-faq__btn-primary {
    max-width: 100% !important;
    width: 100% !important; /* Make buttons full width */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-faq__faq-answer {
    font-size: 0.9em;
    padding: 10px 15px 15px;
  }
  .page-faq__cta-title {
    font-size: 1.6em;
  }
}