/* Custom Colors */
:root {
  --e2betvip-primary: #11A84E;
  --e2betvip-secondary: #22C768;
  --e2betvip-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --e2betvip-card-bg: #11271B;
  --e2betvip-background: #08160F;
  --e2betvip-text-main: #F2FFF6;
  --e2betvip-text-secondary: #A7D9B8;
  --e2betvip-border: #2E7A4E;
  --e2betvip-glow: #57E38D;
  --e2betvip-gold: #F2C14E;
  --e2betvip-divider: #1E3A2A;
  --e2betvip-deep-green: #0A4B2C;
}

/* Base Styles for FAQ Page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--e2betvip-text-main); /* Default text color for dark body background */
  background-color: var(--e2betvip-background); /* Ensure body background is respected */
}

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

.page-faq__section-title,
.page-faq__cta-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--e2betvip-text-main);
  margin-bottom: 30px;
  text-align: center;
  padding-top: 40px;
}

.page-faq__section-title {
  color: var(--e2betvip-deep-green);
}

.page-faq__dark-section .page-faq__section-title {
  color: var(--e2betvip-text-main);
}

.page-faq__hero-section {
  background: var(--e2betvip-deep-green);
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
}

.page-faq__hero-content {
  max-width: 800px;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: var(--e2betvip-gold);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.page-faq__intro-text {
  font-size: 1.1em;
  color: var(--e2betvip-text-secondary);
  margin-bottom: 30px;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 900px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-faq__content-area {
  padding: 40px 0;
  background-color: var(--e2betvip-background);
}

.page-faq__faq-list {
  margin-bottom: 50px;
}

/* FAQ Accordion Styles (Details/Summary based) */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--e2betvip-border);
  overflow: hidden;
  background: var(--e2betvip-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 0.3s ease;
  font-weight: 600;
  color: var(--e2betvip-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: var(--e2betvip-deep-green);
  color: var(--e2betvip-gold);
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.5;
  text-align: left;
  font-weight: 700;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--e2betvip-secondary);
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease, color 0.3s ease;
}

details[open] .page-faq__faq-toggle {
  color: var(--e2betvip-gold);
  transform: rotate(45deg);
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: rgba(17, 39, 27, 0.7);
  border-radius: 0 0 8px 8px;
  color: var(--e2betvip-text-secondary);
  font-size: 1em;
}

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

.page-faq__faq-answer img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
}

.page-faq__content-image {
  border: 1px solid var(--e2betvip-border);
}

/* CTA Section */
.page-faq__cta-section {
  background: var(--e2betvip-deep-green);
  padding: 60px 20px;
  text-align: center;
  border-radius: 10px;
  margin-top: 50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-title {
  font-size: 2.5em;
  color: var(--e2betvip-gold);
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  color: var(--e2betvip-text-secondary);
  max-width: 800px;
  margin: 0 auto 40px;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-faq__btn-primary {
  background: var(--e2betvip-button-gradient);
  color: var(--e2betvip-text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--e2betvip-gold);
  border: 2px solid var(--e2betvip-gold);
}

.page-faq__btn-secondary:hover {
  background: var(--e2betvip-gold);
  color: var(--e2betvip-deep-green);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1023px) {
  /* Homepage game trial reset (as per strict instruction) */
  .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 game trial PC layout (as per strict instruction) */
  .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 PC modules if they were on FAQ page, e.g., __promo-strip, __hot-games */
  /* .page-faq__promo-strip { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1280px; margin-left: auto; margin-right: auto; } */
  /* .page-faq__hot-games { max-width: 1280px; margin: 40px auto; } */
  /* .page-faq__hot-games-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; } */
  /* .page-faq__hot-games-item-name, .page-faq__hot-games-item-rtp, .page-faq__hot-games-item-desc { display: block; text-align: center; } */
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 30px 15px;
  }

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

  .page-faq__intro-text {
    font-size: 0.95em;
  }

  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: 1.8em;
    padding-top: 20px;
    margin-bottom: 20px;
  }

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

  .page-faq__faq-qtext {
    font-size: 1em;
  }

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

  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 18px 18px;
  }

  .page-faq__faq-answer p {
    font-size: 0.95em;
  }

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

  .page-faq__cta-title {
    font-size: 2em;
  }

  .page-faq__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .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: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 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;
  }

  /* Placeholder for other mobile modules if they were on FAQ page */
  /* .page-faq__promo-strip-track { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); overflow-x: hidden; } */
  /* .page-faq__hot-games-grid { grid-template-columns: repeat(2, 1fr); } */
  /* .page-faq__hot-games-item-name, .page-faq__hot-games-item-rtp, .page-faq__hot-games-item-desc { display: none; } */
  /* .page-faq__winner-ticker { bottom: 0; } */
  /* body { padding-bottom: 60px; } */
}

/* Ensure images within content areas are responsive and not too small */
.page-faq__content-area img {
  min-width: 200px;
  min-height: 200px;
}

/* Game Trial Overlay & Modal (as per strict instruction for JS field) */
.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: white;
  text-align: center;
  transition: opacity 0.3s ease;
}

.page-faq__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
  opacity: 0;
}

.page-faq__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
  background: var(--e2betvip-button-gradient);
  color: var(--e2betvip-text-main);
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-faq__game-trial-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-faq__game-trial-shell {
  border: 1px solid var(--e2betvip-border);
  border-radius: 10px;
  overflow: hidden;
}

.page-faq__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-faq__reward-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.page-faq__reward-modal-content {
  background: var(--e2betvip-card-bg);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  color: var(--e2betvip-text-main);
}

.page-faq__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2em;
  color: var(--e2betvip-text-secondary);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.page-faq__reward-modal-close:hover {
  color: var(--e2betvip-gold);
}

.page-faq__reward-modal-content h3 {
  font-size: 2em;
  color: var(--e2betvip-gold);
  margin-bottom: 15px;
}

.page-faq__reward-modal-content p {
  font-size: 1.1em;
  color: var(--e2betvip-text-secondary);
  margin-bottom: 25px;
}

.page-faq__reward-modal-content .page-faq__btn-primary {
  margin-top: 15px;
}

/* Contrast Fixes */
.page-faq__dark-bg {
  color: var(--e2betvip-text-main);
  background: var(--e2betvip-background);
}
.page-faq__light-bg {
  color: #333333;
  background: #ffffff;
}
.page-faq__medium-bg {
  color: #000000;
  background: var(--e2betvip-secondary);
}

.page-faq__content-area, .page-faq__text-block {
  color: var(--e2betvip-text-main);
  background: var(--e2betvip-background);
}
.page-faq p, .page-faq li {
  color: var(--e2betvip-text-secondary);
}
.page-faq__card {
  background: var(--e2betvip-card-bg);
  color: var(--e2betvip-text-main);
  border: 1px solid var(--e2betvip-border);
}
.page-faq__dark-section {
  background: var(--e2betvip-deep-green);
  color: var(--e2betvip-text-main);
}

/* Ensure body padding-top is handled by shared.css */
/* .page-faq { padding-top: var(--header-offset, 0); } */