/* General styles for FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

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

.page-faq__hero-section {
  text-align: center;
  padding: 20px 0 40px;
  background-color: #140C0C;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  max-width: 1000px;
  border-radius: 10px;
  margin-bottom: 30px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__main-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #F3C54D; /* Gold */
  line-height: 1.2;
}

.page-faq__intro-text {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF1E8;
}

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

/* FAQ Accordion Styles (details + summary) */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background: #2A1212; /* Card BG */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
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;
}
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: #7E0D0D; /* Deep Red */
}
.page-faq__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF1E8;
}
.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 20px;
  background: #140C0C; /* Background */
  border-radius: 0 0 10px 10px;
  color: #FFF1E8;
}
.page-faq__faq-answer p {
  margin: 0;
  font-size: 16px;
}

.page-faq__button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
}

.page-faq__security-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 8px;
  margin: 20px auto;
  display: block;
}

/* CTA Section */
.page-faq__cta-section {
  text-align: center;
  padding: 50px 20px;
  background-color: #2A1212; /* Card BG */
  border-radius: 10px;
  margin-top: 50px;
  margin-bottom: 50px;
  border: 1px solid #6A1E1E;
}

.page-faq__cta-title {
  font-size: clamp(24px, 3vw, 36px);
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
}

.page-faq__cta-description {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px;
  color: #FFF1E8;
}

.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: 17px;
  font-weight: bold;
  text-decoration: none;
  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, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #FFF1E8; /* Text Main */
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #FFC06A 0%, #E87A24 100%);
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background: #2A1212; /* Card BG */
  color: #F3C54D; /* Gold */
  border: 2px solid #F3C54D;
}

.page-faq__btn-secondary:hover {
  background: #F3C54D;
  color: #140C0C; /* Background */
  transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 1023px) {
  /* Homepage trial layout CSS (boilerplate, won't apply to FAQ page due to BEM classes) */
  .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 trial layout CSS (boilerplate, won't apply to FAQ page due to BEM classes) */
  .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;
  }
  /* Placeholder for other homepage modules if they were present */
  /* .page-faq__promo-strip { margin-top: 16px; } */
}

/* General mobile adaptation for FAQ page */
@media (max-width: 768px) {
  .page-faq__container {
    padding: 0 15px !important;
  }

  .page-faq__hero-section {
    padding: 15px 0 30px;
  }

  .page-faq__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-faq__intro-text {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-faq__section-title {
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 25px;
  }

  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;
  }
  .page-faq__faq-answer p {
    font-size: 15px;
  }

  .page-faq__cta-section {
    padding: 40px 15px;
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .page-faq__cta-title {
    font-size: 28px;
  }

  .page-faq__cta-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  /* Mobile button adaptation */
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-faq__button-group {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image adaptation */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Homepage boilerplate for 768px (won't apply to FAQ page) */
  .page-faq__promo-strip-track {
    grid-template-columns: repeat(2,1fr) !important; /* Example for promo strip */
    overflow-x: hidden !important;
    padding: 0 15px;
  }
  .page-faq__hot-games-grid {
    grid-template-columns: repeat(2,1fr) !important; /* Example for hot games */
    padding: 0 15px;
  }
  /* Placeholder for other homepage modules if they were present */
}

/* Homepage boilerplate CSS (game trial overlay, reward modal) */
.page-faq__game-trial-overlay{z-index:5;pointer-events:auto;}.page-faq__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}.page-faq__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}.page-faq__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}.page-faq__reward-modal{position:fixed;inset:0;z-index:10000;}
.page-faq__reward-modal-close {
  background: none;
  border: none;
  color: #FFF1E8;
  font-size: 30px;
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  z-index: 10001;
}