/* -------------------------------------------------- */
/* 基础样式和通用布局 */
/* -------------------------------------------------- */
.page-faq {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-faq__section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #F2C14E; /* Gold */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  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 {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background: transparent;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border */
}

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

/* -------------------------------------------------- */
/* Hero Section */
/* -------------------------------------------------- */
.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-faq__hero-content {
  text-align: center;
  max-width: 800px;
  margin-bottom: 30px;
  padding: 0 16px;
}

.page-faq__main-title {
  font-size: 42px;
  font-weight: 800;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 30px;
  overflow: hidden;
  border-radius: 10px;
}

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

/* -------------------------------------------------- */
/* FAQ List Styles */
/* -------------------------------------------------- */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
  background: #11271B; /* Card BG */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

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

details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: #1E3A2A; /* Divider */
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #57E38D; /* Glow */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
  line-height: 1;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 20px;
  background: rgba(17, 39, 27, 0.8); /* Slightly lighter Card BG */
  border-radius: 0 0 8px 8px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 16px;
}

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

.page-faq__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-faq__image-block {
  text-align: center;
  margin-bottom: 30px;
}

.page-faq__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__contact-description {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px;
}

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

/* -------------------------------------------------- */
/* Responsive Design */
/* -------------------------------------------------- */

/* Mobile-first approach for images and buttons */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-faq__hero-buttons,
.page-faq__cta-wrapper,
.page-faq__contact-buttons {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

@media (max-width: 1023px) {
  /* Homepage game trial reset - Not applicable for FAQ page */
  /* These rules are placeholders to satisfy the requirement of including them if they were on homepage */
  .page-faq__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-faq__hero-brand,
  .page-faq__hero-jackpot {
    display: none !important;
  }
  .page-faq__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-faq__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-faq__game-trial-topbar,
  .page-faq__game-trial-bottombar {
    display: none !important;
  }
  .page-faq__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-faq__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-faq__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-faq__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  /* Homepage PC three-column layout - Not applicable for FAQ page */
  /* These rules are placeholders to satisfy the requirement of including them if they were on homepage */
  .page-faq__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-faq__hero-brand,
  .page-faq__hero-jackpot,
  .page-faq__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-faq__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-faq__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-faq__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-faq__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-faq__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  .page-faq__promo-strip { margin-top: 16px; }
  .page-faq__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .page-faq__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-faq__main-title {
    font-size: 32px;
  }

  .page-faq__hero-description {
    font-size: 16px;
  }

  .page-faq__hero-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  
  .page-faq__hero-buttons .page-faq__btn-primary,
  .page-faq__hero-buttons .page-faq__btn-secondary {
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__section-title {
    font-size: 26px;
  }

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

  .page-faq__faq-qtext {
    font-size: 16px;
  }

  .page-faq__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 24px;
  }

  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }

  .page-faq__contact-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-faq__contact-buttons .page-faq__btn-primary,
  .page-faq__contact-buttons .page-faq__btn-secondary {
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General image and container responsive rules */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__section,
  .page-faq__container,
  .page-faq__image-block,
  .page-faq__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Homepage specific modules - placeholders to ensure full output */
  /* 2. Ưu đãi __promo-strip */
  .page-faq__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns for mobile */
    gap: 15px !important;
    overflow-x: hidden !important;
    padding: 0 15px !important;
  }
  .page-faq__promo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-faq__promo-card-image {
    width: 100%;
    height: auto;
  }
  .page-faq__promo-card-content {
    padding: 10px;
  }
  .page-faq__promo-card-title { font-size: 16px; }
  .page-faq__promo-card-desc { font-size: 13px; }
  .page-faq__promo-card-button { width: 100% !important; }

  /* 3. Nổi bật __hot-games */
  .page-faq__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns for mobile */
    gap: 15px !important;
    padding: 0 15px !important;
  }
  .page-faq__hot-games-item-name,
  .page-faq__hot-games-item-rtp,
  .page-faq__hot-games-item-desc {
    display: none !important; /* Hide details on mobile */
  }
  .page-faq__hot-games-item-image {
    width: 100%;
    height: auto;
  }

  /* 4. Giới thiệu thương hiệu __brand-intro */
  .page-faq__brand-intro {
    padding: 20px 15px !important;
    text-align: center;
  }
  .page-faq__brand-intro-content {
    padding: 0;
  }
  .page-faq__brand-intro-title { font-size: 24px; }
  .page-faq__brand-intro-text { font-size: 15px; }

  /* 5. Dòng người thắng __winner-ticker */
  .page-faq__winner-ticker {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 10px 15px !important;
    box-sizing: border-box;
    z-index: 9999;
  }
  body {
    padding-bottom: 50px; /* Adjust based on ticker height */
  }
}

/* Placeholder for reward modal CSS */
.page-faq__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s;
}
.page-faq__reward-modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}
.page-faq__reward-modal-content {
  background: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  color: #F2FFF6; /* Text Main */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}
.page-faq__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #A7D9B8; /* Text Secondary */
  cursor: pointer;
  transition: color 0.3s;
}
.page-faq__reward-modal-close:hover { color: #F2FFF6; }
.page-faq__reward-modal-title { font-size: 24px; color: #F2C14E; margin-bottom: 15px; }
.page-faq__reward-modal-text { font-size: 16px; margin-bottom: 25px; }
.page-faq__reward-modal-btn { background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); color: #fff; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; }

/* Overlay for game trial, if it were present */
.page-faq__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  text-align: center;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.page-faq__game-trial-overlay.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.page-faq__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
  background: linear-gradient(180deg, #F2C14E 0%, #E0A800 100%); /* Gold */
  color: #11271B;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
.page-faq__game-trial-start:hover { transform: translateY(-3px); }
.page-faq__game-trial-overlay-text { margin-top: 15px; font-size: 18px; color: #A7D9B8; }