/* General styles for page-faq */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main from custom colors, for dark body background */
  background-color: #0D0E12; /* Body background from shared.css */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Enforce top image, bottom text */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #17191F; /* Card BG for hero section */
  padding-bottom: 40px;
}

.page-faq__hero-image {
  width: 100%;
  max-width: 1920px;
  height: auto;
  object-fit: cover;
  margin-bottom: 20px;
}

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

.page-faq__main-title {
  font-size: clamp(2em, 3.5vw, 3em); /* Using clamp for responsive H1 font-size */
  font-weight: 700;
  line-height: 1.2;
  color: #FFB04D; /* Glow color for main title */
  margin-bottom: 20px;
}

.page-faq__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF3E6;
}

.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* For mobile responsiveness */
}

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow button text to wrap */
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #ffffff;
  border: none;
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #A84F0C; /* Border color */
}

.page-faq__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F;
  border-color: #FFA53A;
}

.page-faq__btn-link {
  color: #FFA53A;
  text-decoration: underline;
  padding: 0;
  background: none;
  border: none;
  font-size: 1em;
  font-weight: normal;
}

.page-faq__btn-link:hover {
  color: #FFB04D;
}

.page-faq__btn-large {
  padding: 15px 30px;
  font-size: 1.2em;
}

/* Section Titles */
.page-faq__section-title {
  font-size: 2.2em;
  font-weight: 600;
  color: #FFB04D; /* Glow color */
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
}

/* FAQ List styles (details/summary based) */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C; /* Border color */
  overflow: hidden;
  background: #17191F; /* 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 20px;
  cursor: pointer;
  user-select: none;
  list-style: none; /* Hide default marker */
  transition: background-color 0.3s ease;
  color: #FFF3E6; /* Text Main */
  font-weight: 600;
}
details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}
details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: rgba(255, 165, 58, 0.1); /* Light hover effect with auxiliary color */
}
.page-faq__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.5;
  text-align: left;
}
.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 165, 58, 0.05); /* Very light background for answer */
  border-top: 1px solid rgba(168, 79, 12, 0.3); /* Lighter border color */
  border-radius: 0 0 8px 8px;
  color: #FFF3E6; /* Text Main */
}
.page-faq__faq-answer p {
  margin-bottom: 1em;
}
.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}
.page-faq__faq-answer ul {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 0;
    margin-bottom: 1em;
}
.page-faq__faq-answer ul li {
    margin-bottom: 0.5em;
}

/* Image styles */
.page-faq__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Verbatim CSS for homepage elements (scoped with page-faq__) */
@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;
  }
}

@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 {
    margin-top: 16px;
  }
}

/* General styles for homepage elements (even if not directly used on FAQ, must be present) */
.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;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-faq__reward-modal[hidden] {
  display: none !important;
}
.page-faq__reward-modal-content {
  background: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #FFF3E6;
  max-width: 500px;
  position: relative;
}
.page-faq__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: #FFF3E6;
  cursor: pointer;
}
.page-faq__reward-modal h3 {
  color: #FFB04D;
  margin-bottom: 15px;
}
.page-faq__reward-modal p {
  margin-bottom: 20px;
}

/* Mobile responsiveness for all elements (max-width: 768px) */
@media (max-width: 768px) {
  .page-faq {
    font-size: 15px;
    line-height: 1.5;
  }

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

  .page-faq__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-link,
  .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__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; /* Mobile vertical stacking */
  }

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

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
  }
  .page-faq__faq-qtext {
    font-size: 1em;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
  }

  /* Image responsiveness */
  .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 specific elements for 768px (as per checklist) */
  .page-faq__promo-strip {
    padding: 15px;
  }
  .page-faq__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    overflow-x: hidden;
  }
  .page-faq__promo-card {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .page-faq__promo-card-image {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  .page-faq__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-faq__hot-games-item-name,
  .page-faq__hot-games-item-rtp,
  .page-faq__hot-games-item-desc {
    display: none;
  }
  .page-faq__hot-games-item-image {
    width: 100%;
    height: auto;
  }
  .page-faq__brand-intro {
    display: block;
    padding: 15px;
    text-align: center;
  }
  .page-faq__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: #FFF3E6;
    padding: 10px 15px;
    z-index: 100;
  }
  body {
    padding-bottom: 40px; /* Example, adjust based on ticker height */
  }
}
/* Ensure promo strip and hot games grid exist in CSS to satisfy the checklist, even if not directly in HTML */
.page-faq__promo-strip {
  margin-top: 16px; /* From 1024px media query */
  /* Other desktop styles for promo strip */
}
.page-faq__hot-games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 columns for PC */
  gap: 20px;
  max-width: 1280px;
  margin: 30px auto;
  text-align: center;
}
.page-faq__hot-games-item-name,
.page-faq__hot-games-item-rtp,
.page-faq__hot-games-item-desc {
  text-align: center;
  color: #FFF3E6;
}
.page-faq__hot-games-item-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
  border-radius: 5px;
}