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

.page-faq {
  color: #ffffff; /* Do body background là #0a0a0a (dark), nên text chính phải là màu sáng */
  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;
  padding: 10px 0 60px 0; /* body đã có padding-top, hero chỉ cần padding nhỏ */
  background-color: #0a0a0a; /* Ensure consistency with body background */
  overflow: hidden;
}

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

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-faq__hero-content {
  max-width: 800px;
  margin-top: -150px; /* Overlap slightly for design, but not text over image */
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__description {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c2;
  border-color: #1e87c2;
}

.page-faq__faq-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-faq__section-title {
  font-size: 2.2rem;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark background */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-faq__faq-qtext {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

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

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

.page-faq__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-faq__faq-answer a:hover {
    color: #1e87c2;
}

.page-faq__game-links, .page-faq__content-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.page-faq__btn-small {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: rgba(38, 169, 224, 0.2);
    color: #26A9E0;
    border: 1px solid #26A9E0;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

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

.page-faq__cta-section {
  background-color: #26A9E0;
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-faq__cta-section .page-faq__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-faq__cta-section .page-faq__description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-faq__hero-content {
    margin-top: -80px; /* Less overlap on mobile */
  }

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

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

  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

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

  .page-faq__faq-section,
  .page-faq__cta-section {
    padding: 40px 15px; /* Adjust padding for mobile */
  }

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

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

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

  /* Mobile image/video/container responsiveness */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__hero-image-wrapper,
  .page-faq__content-area,
  .page-faq__faq-section,
  .page-faq__cta-section,
  .page-faq__faq-list,
  .page-faq__faq-item,
  .page-faq__game-links,
  .page-faq__content-links {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-faq__hero-section {
      padding-left: 0 !important;
      padding-right: 0 !important;
  }

  .page-faq__hero-content {
      padding-left: 15px !important;
      padding-right: 15px !important;
  }

  .page-faq__game-links, .page-faq__content-links {
      flex-direction: column;
  }

  .page-faq__btn-small {
      width: 100% !important;
      max-width: 100% !important;
  }
}

@media (min-width: 769px) {
  .page-faq__hero-section {
    padding-top: 10px; /* Small top padding for desktop */
  }
  .page-faq__hero-content {
    max-width: 800px;
  }
  .page-faq__hero-image {
    width: 100%; /* Ensure desktop image maintains its width */
  }
}

/* Ensure content area images are not too small */
.page-faq__faq-answer img {
    min-width: 200px;
    min-height: 200px;
    width: auto; /* Allow natural sizing, but respect min */
    height: auto;
}