/* style/faq.css */
/* body đã có padding-top: var(--header-offset) từ shared.css */

.page-faq {
  color: var(--text-main);
  background-color: var(--bg-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--deep-green);
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-faq__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  z-index: 1;
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-faq__description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

.page-faq__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
}

.page-faq__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: var(--glow);
}

.page-faq__btn-small {
  background: var(--deep-green);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  font-size: 0.9rem;
  margin-top: 15px;
}

.page-faq__btn-small:hover {
  background: var(--glow);
  color: var(--bg-color);
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--bg-color);
}

.page-faq__section-title {
  font-size: 2.5rem;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-faq__sub-section-title {
  font-size: 2rem;
  color: var(--glow);
  margin-top: 50px;
  margin-bottom: 30px;
  font-weight: 600;
  border-bottom: 2px solid var(--divider);
  padding-bottom: 10px;
}

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

.page-faq__faq-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  background-color: var(--deep-green);
  border-color: var(--glow);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: transparent;
  position: relative;
  list-style: none;
}

.page-faq__faq-question::-webkit-details-marker {
  display: none;
}

.page-faq__faq-question:hover {
  color: var(--glow);
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--glow);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Change '+' to 'x' or similar visual cue */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-secondary);
  font-size: 1rem;
}

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  padding-left: 20px;
}

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

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

.page-faq__contact-promo {
  background-color: var(--deep-green);
  padding: 80px 20px;
  text-align: center;
  color: var(--text-main);
}

.page-faq__contact-promo-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-faq__contact-promo-title {
  font-size: 2.2rem;
  color: var(--glow);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__contact-promo-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-faq__section-title {
    font-size: 2rem;
  }
  .page-faq__sub-section-title {
    font-size: 1.75rem;
  }
  .page-faq__faq-question {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__hero-section {
    padding-bottom: 40px;
  }

  .page-faq__hero-image-wrapper {
    max-height: 300px;
  }

  .page-faq__hero-content {
    padding: 0 15px;
  }

  .page-faq__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-faq__description {
    font-size: 1rem;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-small {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-faq__content-area {
    padding: 40px 15px;
  }

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

  .page-faq__sub-section-title {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-faq__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  .page-faq__image-inline {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__contact-promo {
    padding: 60px 15px;
  }

  .page-faq__contact-promo-title {
    font-size: 1.8rem;
  }

  .page-faq__contact-promo-description {
    font-size: 1rem;
  }

  /* Ensure all image containers are responsive */
  .page-faq__hero-image-wrapper,
  .page-faq__content-area,
  .page-faq__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  .page-faq__section-title {
    font-size: 1.6rem;
  }
  .page-faq__sub-section-title {
    font-size: 1.3rem;
  }
  .page-faq__faq-question {
    font-size: 0.95rem;
  }
  .page-faq__description {
    font-size: 0.9rem;
  }
  .page-faq__contact-promo-title {
    font-size: 1.6rem;
  }
  .page-faq__contact-promo-description {
    font-size: 0.9rem;
  }
}