/* style/faq.css */
/* 
 * Trang Câu hỏi thường gặp (FAQ) cho u888 one.
 * Tất cả các class sử dụng BEM naming convention: .page-faq__element-name.
 * Đảm bảo tương phản màu sắc đạt chuẩn WCAG AA.
 * Tối ưu hóa cho responsive design trên mọi thiết bị.
 */

/* ==========================================================================
   Global Styles for .page-faq (scoped to main content)
   ========================================================================== */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #121212 (dark), so use light text */
  background-color: transparent; /* Main content background is handled by body or sections */
  padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Ensure padding-top for fixed header offset */
.page-faq__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop and mobile offset controlled by shared */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero section */
  background-color: #1a1a1a; /* Dark background for hero */
  color: #ffffff;
  overflow: hidden;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 60px; /* Default desktop padding */
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  margin-bottom: 40px; /* Space between text and image */
}

.page-faq__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for title */
  line-height: 1.2;
}

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

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

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

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly dim image for text readability */
}

/* ==========================================================================
   Video Section
   ========================================================================== */
.page-faq__video-section {
  background-color: #1e1e1e; /* Dark background for video section */
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
}

.page-faq__video-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-faq__video-title {
  font-size: 2.5em;
  color: #26A9E0;
  margin-bottom: 20px;
}

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

.page-faq__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 30px;
  background-color: #000; /* Black background for video area */
}

.page-faq__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer; /* Indicate video is clickable */
}

.page-faq__video-cta {
  margin-top: 20px;
}

/* ==========================================================================
   Main FAQ List Area
   ========================================================================== */
.page-faq__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #121212; /* Dark background for main content area */
  color: #ffffff;
}

.page-faq__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-faq__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-faq__faq-category {
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

.page-faq__category-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 30px;
  border-left: 5px solid #26A9E0;
  padding-left: 15px;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background for items */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1); /* Darker background for question */
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.2); /* Hover effect using brand color */
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #26A9E0; /* Brand color for toggle icon */
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to a cross/minus */
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px; /* Initial padding for collapsed state */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.03); /* Lighter dark background for answer */
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content, !important for priority */
  padding: 15px 25px 25px 25px; /* Padding when expanded */
}

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

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

.page-faq__image-in-content {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 10px;
  display: block; /* Ensure it behaves as a block element */
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Call to Action Section
   ========================================================================== */
.page-faq__cta-section {
  background-color: #1e1e1e; /* Dark background for CTA section */
  padding: 60px 20px;
  text-align: center;
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-faq__cta-title {
  font-size: 2.2em;
  color: #26A9E0;
  margin-bottom: 20px;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.05em;
  text-align: center;
  white-space: nowrap; /* Prevent text wrapping by default */
}

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

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

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

.page-faq__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 3em;
  }
  .page-faq__hero-description {
    font-size: 1.1em;
  }
  .page-faq__hero-content {
    margin-right: 0;
  }
}