.page-faq {
  background-color: #08160F; /* Background color */
  color: #F2FFF6; /* Main text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
  background-color: #08160F; /* Ensure hero section background matches body */
}

.page-faq__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
}

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

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

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

.page-faq__section {
  padding: 60px 20px;
  background-color: #08160F;
}

.page-faq__dark-bg {
  background-color: #11271B;
}

.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
}

.page-faq__faq-item {
  background-color: #11271B;
  border-radius: 10px;
  padding: 20px 30px;
  border: 1px solid #2E7A4E;
  color: #F2FFF6;
}

.page-faq__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2rem;
  color: #F2FFF6;
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-faq__faq-toggle {
  font-size: 1.8rem;
  margin-left: 15px;
  color: #2AD16F;
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg);
}

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

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

.page-faq__faq-answer a {
  color: #2AD16F;
  text-decoration: underline;
}

.page-faq__image-content {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  margin: 20px auto;
  display: block;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-faq__container {
    flex-direction: row;
    align-items: flex-start;
  }
  .page-faq__account-section .page-faq__container,
  .page-faq__games-section .page-faq__container,
  .page-faq__support-section .page-faq__container,
  .page-faq__security-section .page-faq__container {
    flex-direction: row;
  }
  .page-faq__account-section .page-faq__image-content,
  .page-faq__support-section .page-faq__image-content {
    order: -1; /* Image on left for these sections */
  }
  .page-faq__faq-list {
    flex: 1;
  }
  .page-faq__image-content {
    flex: 0 0 40%;
    max-width: 40%;
    margin: 0 0 0 40px;
  }
  .page-faq__account-section .page-faq__image-content,
  .page-faq__support-section .page-faq__image-content {
    margin: 0 40px 0 0;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

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

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__section {
    padding: 40px 15px;
  }

  .page-faq__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }

  .page-faq__faq-item {
    padding: 15px 20px;
  }

  .page-faq__faq-item summary {
    font-size: 1.1rem;
  }

  .page-faq__faq-toggle {
    font-size: 1.5rem;
  }

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

  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

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

  .page-faq__image-content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 20px auto !important;
  }

  .page-faq__video-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset */
  }

  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}