/* style/faqs.css */
.page-faqs {
  color: #ffffff; /* Body background is dark (#0a0a0a), so use light text */
  background-color: #0a0a0a;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-faqs__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  background-color: #0a0a0a;
  overflow: hidden;
}

.page-faqs__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-faqs__hero-content {
  max-width: 900px;
  margin-top: 40px;
  z-index: 1;
  color: #ffffff;
}

.page-faqs__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  color: #26A9E0;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-faqs__btn-primary,
.page-faqs__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faqs__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  margin: 0 10px;
}

.page-faqs__btn-primary:hover {
  background: #1e87b7;
  border-color: #1e87b7;
  transform: translateY(-2px);
}

.page-faqs__btn-secondary {
  background: #EA7C07; /* Sử dụng màu 'Login' cho nút phụ */
  color: #ffffff;
  border: 2px solid #EA7C07;
  margin: 0 10px;
}

.page-faqs__btn-secondary:hover {
  background: #c76706;
  border-color: #c76706;
  transform: translateY(-2px);
}

.page-faqs__video-section {
  width: 100%;
  padding: 40px 20px;
  background-color: #1a1a1a;
  text-align: center;
  box-sizing: border-box;
}

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

.page-faqs__section-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 25px;
  font-weight: 600;
}

.page-faqs__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;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.page-faqs__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block; /* Ensure it respects max-width */
}

.page-faqs__video-link {
  display: block; /* Make the entire video area clickable */
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.page-faqs__video-description {
  font-size: 1em;
  color: #cccccc;
  margin-top: 15px;
}

.page-faqs__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #0a0a0a;
  box-sizing: border-box;
}

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

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

.page-faqs__faq-item {
  background-color: #1a1a1a; /* Dark background for FAQ items */
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faqs__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  background-color: #1a1a1a;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-faqs__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-faqs__faq-item summary:hover {
  background-color: #262626;
}

.page-faqs__faq-qtext {
  flex-grow: 1;
  color: #26A9E0;
}

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

.page-faqs__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
}

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

.page-faqs__faq-answer .page-faqs__btn-secondary {
  margin-top: 15px;
}

.page-faqs__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-faqs__cta-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #26A9E0; /* Brand color for CTA background */
  color: #ffffff;
}

.page-faqs__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-faqs__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faqs__hero-content {
    margin-top: 30px;
  }
  .page-faqs__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-faqs__section-title,
  .page-faqs__content-title,
  .page-faqs__cta-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-faqs {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faqs__hero-section {
    padding: 40px 15px;
  }
  .page-faqs__hero-image {
    border-radius: 4px;
  }
  .page-faqs__main-title {
    font-size: clamp(1.8em, 6vw, 2.8em);
    margin-bottom: 15px;
  }
  .page-faqs__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-faqs__btn-primary,
  .page-faqs__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    padding: 15px 20px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-faqs__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-faqs__video-section,
  .page-faqs__content-area,
  .page-faqs__cta-section {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-faqs__video-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }
  .page-faqs__video-container,
  .page-faqs__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-faqs video,
  .page-faqs__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faqs__section-title,
  .page-faqs__content-title,
  .page-faqs__cta-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }
  .page-faqs__faq-item summary {
    padding: 15px 20px;
    font-size: 1.05em;
  }
  .page-faqs__faq-answer {
    padding: 0 20px 15px;
  }
  .page-faqs__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-faqs__main-title {
    font-size: clamp(1.5em, 7vw, 2.5em);
  }
  .page-faqs__section-title,
  .page-faqs__content-title,
  .page-faqs__cta-title {
    font-size: 1.4em;
  }
  .page-faqs__faq-item summary {
    font-size: 1em;
  }
  .page-faqs__faq-answer {
    font-size: 0.95em;
  }
}