/* CSS Reset & Base Styles (from shared.css) are assumed to be loaded. */

:root {
  --page-faq-bg: #08160F;
  --page-faq-card-bg: #11271B;
  --page-faq-text-main: #F2FFF6;
  --page-faq-text-secondary: #A7D9B8;
  --page-faq-border: #2E7A4E;
  --page-faq-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-faq-glow: #57E38D;
  --page-faq-gold: #F2C14E;
  --page-faq-divider: #1E3A2A;
  --page-faq-deep-green: #0A4B2C;
}

.page-faq {
  background-color: var(--page-faq-bg);
  color: var(--page-faq-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  overflow: hidden;
  color: var(--page-faq-text-main);
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Slightly dim the background image */
  filter: brightness(0.6); /* Darken further for text contrast */
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background: rgba(17, 39, 27, 0.7); /* Card B G with transparency */
  border-radius: 10px;
  margin-top: 40px; /* Adjust as needed for visual balance */
}

.page-faq__main-title {
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--page-faq-gold); /* Using Gold for emphasis */
  line-height: 1.2;
}

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

.page-faq__cta-button {
  display: inline-block;
  padding: 14px 28px;
  background: var(--page-faq-button-gradient);
  color: var(--page-faq-text-main);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section Titles */
.page-faq__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--page-faq-gold);
  text-align: center;
  margin-bottom: 20px;
}

.page-faq__section-subtitle {
  font-size: 1.1em;
  color: var(--page-faq-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* FAQ Accordion */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--page-faq-border);
  overflow: hidden;
  background: var(--page-faq-card-bg);
  box-shadow: 0 2px 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;
  color: var(--page-faq-text-main);
  font-size: 1.1em;
  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(--page-faq-deep-green), 0.5); /* Slightly lighter dark green */
}

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

.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--page-faq-gold);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: rgba(var(--page-faq-deep-green), 0.3); /* Lighter dark green */
  border-radius: 0 0 8px 8px;
  color: var(--page-faq-text-secondary);
}

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

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

.page-faq__faq-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  object-fit: cover;
}

.page-faq__inline-button {
  display: inline-block;
  padding: 8px 15px;
  background: var(--page-faq-deep-green);
  color: var(--page-faq-text-main);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  margin-top: 15px;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__inline-button:hover {
  background: var(--page-faq-border);
}

/* Contact CTA Section */
.page-faq__contact-cta-section {
  text-align: center;
}

.page-faq__dark-section {
  background: var(--page-faq-deep-green);
  color: var(--page-faq-text-main);
}

.page-faq__cta-title {
  font-size: 2.2em;
  color: var(--page-faq-gold);
  margin-bottom: 15px;
}

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

.page-faq__cta-button--secondary {
  background: var(--page-faq-gold);
  color: var(--page-faq-deep-green);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-faq__cta-button--secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

/* Mobile Responsiveness */
@media (max-width: 1023px) {
  /* Homepage specific rules for 1023px, included as per strict instruction, but will not apply to .page-faq */
  .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 specific rules for 1024px, included as per strict instruction, but will not apply to .page-faq */
  .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;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-content {
    margin-top: 20px;
    padding: 15px;
  }
  .page-faq__main-title {
    font-size: 2.2em;
  }
  .page-faq__description {
    font-size: 1em;
  }
  .page-faq__cta-button {
    font-size: 1em;
    padding: 12px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__section-subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-faq__faq-qtext {
    font-size: 1em;
  }
  .page-faq__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 20px;
  }
  .page-faq__contact-cta-section {
    padding: 30px 0;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__cta-description {
    font-size: 1em;
  }

  /* General image responsiveness for content area */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* General container responsiveness */
  .page-faq__container,
  .page-faq__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button container responsiveness */
  .page-faq__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-faq__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  /* Homepage specific mobile styles (if applicable to this page, otherwise ignored) */
  .page-faq__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* Adjusted for smaller screens */
    overflow-x: hidden;
  }
  .page-faq__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .page-faq__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 10px 15px;
    box-sizing: border-box;
  }
  body {
    padding-bottom: 50px; /* Adjust if ticker is present */
  }
  .page-faq__hero-brand, .page-faq__hero-jackpot {
    display: none;
  }
}

/* Ensure no filter is used on images */
.page-faq img {
  filter: none; /* Explicitly remove any filters */
}

/* Default background/text for content areas */
.page-faq__content-area, .page-faq__text-block {
  color: var(--page-faq-text-main);
  background: var(--page-faq-bg);
}

.page-faq p, .page-faq li {
  color: var(--page-faq-text-secondary);
}

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

.page-faq__dark-section {
  background: var(--page-faq-deep-green);
  color: var(--page-faq-text-main);
}

.page-faq__btn-primary {
  background: var(--page-faq-button-gradient);
  color: #ffffff; /* Button text always white */
  border: 2px solid transparent;
}

.page-faq__btn-secondary {
  background: var(--page-faq-gold);
  color: var(--page-faq-deep-green); /* Using brand deep green for contrast */
  border: 2px solid var(--page-faq-gold);
}

.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;}
/* Continue full block: promo/hot-games/brand-intro/winner-ticker etc */