/* -------------------------------------------------------------------------- */
/*                            FAQ Page Specific CSS                           */
/* -------------------------------------------------------------------------- */

/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Light text on dark background */
  background-color: var(--background-color); /* Deep Green */
}

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

.page-faq__hero-section {
  position: relative;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  overflow: hidden;
}

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

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-faq__main-title {
  font-size: 3em;
  font-weight: bold;
  color: var(--text-main-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
}

.page-faq__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-faq__section-description {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-faq__faq-section {
  padding: 60px 0;
  background-color: var(--card-bg-color); /* Card BG: #11271B */
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

/* FAQ Item using <details> */
details.page-faq__faq-item {
  margin-bottom: 5px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--deep-green-color); /* Deep Green: #0A4B2C */
  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: var(--text-main-color);
  font-size: 1.15em;
  font-weight: 600;
}

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: rgba(var(--gold-color-rgb), 0.1); /* Gold tint on hover */
}

.page-faq__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

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

details.page-faq__faq-item[open] .page-faq__faq-toggle {
  color: var(--text-main-color);
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: var(--card-bg-color); /* Card BG: #11271B */
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary-color);
  font-size: 1.05em;
}

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

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

/* CTA Section */
.page-faq__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--background-color); /* Deep Green */
}

.page-faq__cta-title {
  font-size: 2.8em;
  font-weight: bold;
  color: var(--text-main-color);
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-description {
  font-size: 1.15em;
  color: var(--text-secondary-color);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  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: var(--text-main-color);
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
  box-shadow: 0 5px 15px rgba(var(--glow-color-rgb), 0.2);
}

.page-faq__btn-secondary:hover {
  background: var(--glow-color);
  color: var(--deep-green-color); /* Deep Green: #0A4B2C */
  box-shadow: 0 8px 20px rgba(var(--glow-color-rgb), 0.3);
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/*                                 Media Queries                              */
/* -------------------------------------------------------------------------- */

/* Homepage Trial Reset (Mandatory for CSS output) */
@media (max-width: 1023px) {
  .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;
  }
}

/* Homepage PC Three-Column (Mandatory for CSS output) */
@media (min-width: 1024px) {
  .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 { /* Placeholder for promo strip styles */
    margin-top: 16px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-faq__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .page-faq__promo-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }
  .page-faq__promo-card-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }
  .page-faq__hot-games { /* Placeholder for hot games styles */
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-faq__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
  .page-faq__hot-games-card-name,
  .page-faq__hot-games-card-rtp,
  .page-faq__hot-games-card-desc {
    display: block;
  }
  .page-faq__hot-games-card-content {
    text-align: center;
  }
}

/* Mobile specific styles (max-width: 768px) */
@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__container {
    padding: 0 10px;
  }

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

  .page-faq__hero-description {
    font-size: 1em;
  }

  .page-faq__section-title {
    font-size: 1.8em;
  }

  .page-faq__section-description {
    font-size: 0.95em;
  }

  /* FAQ specific mobile styles */
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 18px;
    font-size: 1em;
  }

  .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;
    font-size: 0.95em;
  }

  /* CTA specific mobile styles */
  .page-faq__cta-title {
    font-size: 2em;
  }

  .page-faq__cta-description {
    font-size: 1em;
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    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__hero-section,
  .page-faq__faq-section,
  .page-faq__cta-section,
  .page-faq__container,
  .page-faq__card,
  .page-faq__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Homepage specific media queries (mandatory for output) */
  .page-faq__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* Adjusted for mobile */
    gap: 15px !important;
    overflow-x: hidden;
  }
  .page-faq__promo-card {
    flex-direction: column !important;
    text-align: center;
  }
  .page-faq__promo-card-image {
    width: 60px !important;
    height: 60px !important;
  }
  .page-faq__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
  .page-faq__hot-games-card-name,
  .page-faq__hot-games-card-rtp,
  .page-faq__hot-games-card-desc {
    display: none !important; /* Hide for mobile */
  }
  .page-faq__brand-intro { /* Assuming it would display on mobile */
    display: block !important;
  }
  .page-faq__winner-ticker { /* Placeholder for winner ticker styles */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 0;
    color: #fff;
    text-align: center;
  }
  body {
    padding-bottom: 50px; /* Adjust body padding for fixed ticker */
  }
}

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

/* Ensure contrast for specific elements based on custom colors */
.page-faq__dark-bg {
  color: var(--text-main-color);
  background: var(--background-color);
}

.page-faq__light-bg {
  color: #333333;
  background: #ffffff;
}

.page-faq__medium-bg {
  color: #000000;
  background: var(--secondary-color);
}

/* Default text color for general content */
.page-faq p, .page-faq li {
  color: var(--text-secondary-color);
}

.page-faq__card {
  background: var(--card-bg-color);
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
}

.page-faq__reward-modal { /* Placeholder for reward modal */
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  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:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.page-faq__reward-modal-content {
  background: var(--card-bg-color);
  padding: 30px;
  border-radius: 10px;
  color: var(--text-main-color);
  text-align: center;
  position: relative;
  max-width: 400px;
  width: 90%;
}

.page-faq__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-secondary-color);
  cursor: pointer;
  transition: color 0.2s ease;
}

.page-faq__reward-modal-close:hover {
  color: var(--text-main-color);
}

.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;}