/* style/faq.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không được viết lại */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --login-button-color: #EA7C07;
}

.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Body background is light, so text is dark */
  background-color: var(--secondary-color); /* Explicitly set for content area if needed, though body is white */
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background-color: var(--secondary-color);
  text-align: center;
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 1;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

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

.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  border: 2px solid var(--primary-color);
}

.page-faq__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

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

.page-faq__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-faq__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: 15px;
}

.page-faq__section {
  padding: 60px 20px;
  background-color: var(--secondary-color);
}

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

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

.page-faq__section-title--spacing {
  margin-top: 80px;
}

.page-faq__section-description {
  font-size: 1.1em;
  color: var(--text-color-dark);
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__faq-group {
  margin-bottom: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-faq__faq-group-title {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  padding: 18px 25px;
  font-size: 1.4em;
  font-weight: 600;
  margin: 0;
}

.page-faq__faq-item {
  border-top: 1px solid #e0e0e0;
  background-color: var(--secondary-color);
}

.page-faq__faq-item:first-of-type {
  border-top: none;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-color-dark);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

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

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

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

.page-faq__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-faq__image-card {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 25px;
  border-top: 1px solid #e0e0e0;
  background-color: var(--secondary-color);
}

.page-faq__image-card--reversed {
  flex-direction: row-reverse;
}

.page-faq__card-image {
  width: 40%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-faq__card-content {
  flex: 1;
}

.page-faq__video-section {
  background-color: var(--primary-color); /* Dark background */
  color: var(--text-color-light); /* Light text */
  padding: 60px 20px;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-faq__video-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-faq__video-title {
  font-size: 2.2em;
  color: var(--text-color-light);
  margin-bottom: 15px;
}

.page-faq__video-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-faq__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-faq__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-faq__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-faq__video-cta-text {
  font-size: 1.1em;
  color: var(--text-color-light);
}

.page-faq__text-link {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: 600;
}

.page-faq__text-link:hover {
  color: lighten(var(--secondary-color), 10%);
}

.page-faq__cta-section {
  background-color: var(--secondary-color);
  padding: 80px 20px;
  text-align: center;
}

.page-faq__cta-title {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  color: var(--text-color-dark);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-faq__hero-content {
    max-width: 700px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__faq-group-title {
    font-size: 1.2em;
  }
  .page-faq__faq-question {
    font-size: 1em;
  }
  .page-faq__image-card {
    flex-direction: column;
  }
  .page-faq__image-card--reversed {
    flex-direction: column;
  }
  .page-faq__card-image {
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
  }
  .page-faq__card-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 15px 40px;
  }
  .page-faq__main-title {
    font-size: clamp(1.6em, 6vw, 2.5em);
  }
  .page-faq__description {
    font-size: 1em;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__section {
    padding: 40px 15px;
  }
  .page-faq__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__section-description {
    font-size: 0.95em;
  }
  .page-faq__faq-group-title {
    font-size: 1.1em;
  }
  .page-faq__faq-question {
    font-size: 0.95em;
    padding: 15px 20px;
  }
  .page-faq__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9em;
  }
  .page-faq__image-card {
    padding: 15px;
  }
  .page-faq__card-image {
    margin-bottom: 15px;
  }

  /* Mobile specific image, video, button adaptations */
  .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-image-wrapper,
  .page-faq__video-container,
  .page-faq__video-wrapper,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-faq__video-section {
    padding-top: 10px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-faq__video-title {
    font-size: 1.8em;
  }
  .page-faq__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.4em, 7vw, 2em);
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__faq-group-title {
    font-size: 1em;
  }
  .page-faq__faq-question {
    font-size: 0.9em;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    font-size: 0.9em;
    padding: 12px 20px;
  }
  .page-faq__video-title {
    font-size: 1.5em;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
}