/* Base styles for the FAQ page */
.page-faq {
  color: #F3F8FF; /* Text Main */
  background-color: var(--deep-navy); /* Body background from shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-faq__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: #08162B; /* Deep Navy */
  text-align: center;
}

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

.page-faq__main-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #F2C14E; /* Gold */
  line-height: 1.2;
  max-width: 100%;
}

.page-faq__intro-text {
  font-size: 18px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 25px;
}

.page-faq__hero-image-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

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

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

.page-faq__section-description {
  font-size: 16px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #AFC4E8; /* Text Secondary */
}

.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: #08162B; /* Deep Navy */
}

/* FAQ Accordion Styles */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  background: #10233F; /* 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: #F3F8FF; /* 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: #1B3357; /* Slightly lighter for hover */
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3F8FF; /* Text Main */
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* 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: #08162B; /* Deep Navy - slightly darker for contrast */
  border-radius: 0 0 10px 10px;
  color: #AFC4E8; /* Text Secondary */
}

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin: 10px 0 10px 20px;
  padding: 0;
}

.page-faq__faq-answer li {
  margin-bottom: 5px;
}

.page-faq__faq-answer a {
  color: #4FA8FF; /* Glow */
  text-decoration: underline;
}

.page-faq__faq-answer img {
  margin-top: 15px;
  border-radius: 8px;
  width: 100%;
  height: auto;
  max-width: 800px; /* Example content image size */
}

/* Buttons */
.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;
  text-align: center;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button color */
  color: #F3F8FF; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Gold */
  border: 2px solid #F2C14E; /* Gold */
}

.page-faq__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  color: #F3F8FF;
  transform: translateY(-2px);
}

.page-faq__cta-section {
  text-align: center;
  padding: 40px 0;
  background-color: #10233F; /* Card BG */
  margin-top: 30px;
  border-radius: 10px;
}

.page-faq__cta-title {
  font-size: 28px;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-faq__cta-description {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Trust Section */
.page-faq__trust-section {
  padding: 60px 0;
  background-color: #08162B;
}

.page-faq__trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-faq__trust-item {
  text-align: center;
  background: #10233F;
  padding: 30px 20px;
  border-radius: 10px;
  border: 1px solid #244D84;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__trust-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-faq__trust-title {
  font-size: 22px;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-faq__trust-description {
  font-size: 15px;
  color: #AFC4E8;
}

.page-faq__contact-promo {
  padding: 60px 0;
  background-color: #113B7A; /* Primary color */
  text-align: center;
}

.page-faq__contact-promo .page-faq__section-title {
  color: #F3F8FF; /* Text Main */
}

.page-faq__contact-promo .page-faq__section-description {
  color: #AFC4E8; /* Text Secondary */
}

/* --- MANDATORY HOMEPAGE CSS BLOCKS (as per prompt) --- */
/* This block is required in the output CSS, even for an FAQ page. */
@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;
  }
}

/* This block is required in the output CSS, even for an FAQ page. */
@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;
  }
}

/* This block is required in the output CSS, even for an FAQ page. */
@media (max-width: 768px) {
  /* General mobile adaptations */
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__main-title {
    font-size: 30px;
  }
  .page-faq__intro-text,
  .page-faq__section-description {
    font-size: 15px;
  }
  .page-faq__section-title {
    font-size: 28px;
  }

  /* FAQ specific mobile styles */
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
  }
  .page-faq__faq-qtext {
    font-size: 16px;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    margin-left: 10px;
    width: 24px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
  }

  /* Buttons and button containers */
  .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,
  .page-faq__cta-section .page-faq__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  /* Images and image containers */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__hero-image-wrapper,
  .page-faq__faq-answer img,
  .page-faq__trust-section .page-faq__container,
  .page-faq__contact-promo .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__trust-grid {
    grid-template-columns: 1fr;
  }

  /* Homepage specific media queries for promo/hot-games/brand-intro/winner-ticker */
  /* As per prompt, these MUST be present, even if functionally irrelevant to FAQ */
  .page-faq__promo-strip-track {
    grid-template-columns: repeat(2, 1fr); /* Example for mobile promo strip */
    overflow-x: hidden;
  }
  .page-faq__hot-games-grid {
    grid-template-columns: repeat(2, 1fr); /* Example for mobile hot games */
    overflow-x: hidden;
  }
  .page-faq__hot-games-item-name,
  .page-faq__hot-games-item-rtp,
  .page-faq__hot-games-item-desc {
    display: none; /* Hide text below game images on mobile */
  }
  .page-faq__brand-intro {
    display: block; /* Ensure brand intro is visible if present */
  }
  .page-faq__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
  }
  body {
    padding-bottom: 50px; /* Adjust body padding for fixed ticker */
  }
  /* No need to hide hero-brand/jackpot again, already handled by 1023px */
}

/* General game trial overlay styles (as per prompt) */
.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.is-hidden {
  display: none !important;
}
.page-faq__reward-modal-close {
  background: #c62828;
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  position: absolute;
  top: 10px;
  right: 10px;
}