/* style/faq.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */

/* Base styles for page-faq */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden; /* Prevent content overflow */
  box-sizing: border-box;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px; /* Space between image and text */
  box-sizing: border-box;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-faq__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #26A9E0; /* Brand color for H1 */
  margin-bottom: 20px;
  /* No fixed font-size, rely on font-weight, line-height, etc. */
  /* If absolutely needed, use clamp: font-size: clamp(2.2rem, 4vw, 3.5rem); */
}

.page-faq__hero-description {
  font-size: 1.1em;
  color: #f0f0f0; /* Slightly off-white for contrast */
  margin-bottom: 30px;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt */
}

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

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

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

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

/* FAQ Section */
.page-faq__faq-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for FAQ area */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

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

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

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

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Card background */
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-faq__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.15em;
  color: #ffffff;
  outline: none;
  list-style: none; /* Remove default marker */
}

.page-faq__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

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

.page-faq__faq-qtext {
  margin-right: 15px;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: 300;
  line-height: 1;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #26A9E0;
  color: #ffffff;
  flex-shrink: 0;
}

.page-faq__faq-item[open] .page-faq__faq-question {
  color: #26A9E0; /* Highlight question when open */
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
  margin-left: 20px;
  margin-bottom: 15px;
  list-style-position: inside;
}

.page-faq__faq-answer li {
  margin-bottom: 8px;
}

.page-faq__faq-answer h3 {
  font-size: 1.3em;
  color: #26A9E0;
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-faq__faq-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 20px 0;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Promo CTA Section */
.page-faq__promo-cta-section {
  padding: 60px 0;
  box-sizing: border-box;
}

.page-faq__promo-cta-section .page-faq__container {
  padding: 40px 20px;
  border-radius: 12px;
  text-align: center;
}

.page-faq__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-faq__promo-title {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-faq__cta-buttons--center {
  justify-content: center;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-faq__hero-section {
    padding-bottom: 40px;
  }
  .page-faq__main-title {
    font-size: 2.8em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__promo-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 15px 30px; /* Small top padding, more bottom padding */
  }

  .page-faq__hero-image-wrapper {
    margin-bottom: 20px;
  }
  
  .page-faq__hero-content {
    padding: 0 10px;
  }

  .page-faq__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Clamp for H1 on mobile */
    margin-bottom: 15px;
  }

  .page-faq__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px; /* Max width for stacked buttons */
    margin: 0 auto;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-inline {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important; /* Adjust padding for mobile */
    font-size: 1em !important;
  }

  .page-faq__faq-section {
    padding: 40px 0;
  }

  .page-faq__container {
    padding: 0 15px;
  }

  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-faq__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-faq__faq-qtext {
    margin-right: 10px;
  }

  .page-faq__faq-toggle {
    width: 25px;
    height: 25px;
    font-size: 1.2em;
  }

  .page-faq__faq-answer {
    padding: 0 20px 15px;
  }

  /* Image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__hero-section,
  .page-faq__hero-image-wrapper,
  .page-faq__promo-cta-section .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Specific padding for sections if needed */
  .page-faq__promo-cta-section .page-faq__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-faq__faq-section .page-faq__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-faq__faq-image {
    min-width: unset; /* Allow smaller display if needed, but still keep >200px from imageRequirements */
    min-height: unset;
  }

  .page-faq__promo-title {
    font-size: 1.5em;
  }

  .page-faq__promo-description {
    font-size: 0.95em;
  }
}

/* Ensure content area images are at least 200px */
.page-faq__faq-answer img {
  min-width: 200px;
  min-height: 200px;
}