/* General styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

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

.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 40px; /* Small top padding, larger bottom for content */
  background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%); /* Card BG to Background */
}

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

.page-faq__main-title {
  font-size: 3.5rem; /* Will be clamped or reduced on mobile */
  font-weight: 700;
  color: #FFB04D; /* Glow color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}
@media (max-width: 1023px) {
  .page-faq__main-title {
    font-size: clamp(2rem, 5vw, 3rem); /* Clamp for responsive H1 */
  }
}

.page-faq__description {
  font-size: 1.1rem;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
}

.page-faq__hero-image-container {
  width: 100%;
  max-width: 1000px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

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

.page-faq__section {
  padding: 60px 0;
}

.page-faq__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFA53A; /* Auxiliary color */
  text-align: center;
  margin-bottom: 20px;
}

.page-faq__section-intro {
  font-size: 1.1rem;
  color: #FFF3E6; /* Text Main */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* FAQ Accordion Styles - Using <details> and <summary> */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px; /* More rounded corners */
  border: 1px solid #A84F0C; /* Border color */
  overflow: hidden;
  background: #17191F; /* Card BG */
}
details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Slightly more padding */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF3E6; /* Text Main */
  font-size: 1.1rem;
  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(255, 165, 58, 0.1); /* Light hover effect with auxiliary color */
}
.page-faq__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}
.page-faq__faq-toggle {
  font-size: 28px; /* Larger toggle */
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  flex-shrink: 0;
  margin-left: 20px; /* More space */
  width: 32px;
  text-align: center;
}
details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px; /* Consistent padding */
  background: #0D0E12; /* Background color for answer */
  border-radius: 0 0 10px 10px;
  color: #FFF3E6; /* Text Main */
}
.page-faq__faq-answer p {
  margin-bottom: 1em;
}
.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-bottom: 1em;
  padding-left: 25px;
}
.page-faq__faq-answer li {
  margin-bottom: 0.5em;
}

/* CTA Section */
.page-faq__cta-section {
  background: linear-gradient(90deg, #FF8C1A 0%, #FFA53A 100%); /* Gradient using brand colors */
  padding: 80px 0;
  text-align: center;
}

.page-faq__cta-content {
  max-width: 900px;
}

.page-faq__cta-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #FFF3E6; /* Light text on dark/orange background */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__cta-description {
  font-size: 1.2rem;
  color: #FFF3E6; /* Light text */
  margin-bottom: 40px;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Button styles */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box; /* Include padding/border in width */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Custom button gradient */
  color: #FFF3E6; /* Light text */
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-faq__btn-secondary {
  background: transparent;
  color: #FFF3E6; /* Light text */
  border: 2px solid #FFA53A; /* Auxiliary color border */
}

.page-faq__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F; /* Card BG for text on hover */
  transform: translateY(-2px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 0 20px;
  }
  .page-faq__main-title {
    font-size: clamp(2rem, 7vw, 2.5rem);
    padding: 0 15px;
  }
  .page-faq__description {
    font-size: 1rem;
    padding: 0 15px;
  }
  .page-faq__section {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 2rem;
    padding: 0 15px;
  }
  .page-faq__section-intro {
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 28px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 20px;
  }
  .page-faq__faq-answer p,
  .page-faq__faq-answer ul,
  .page-faq__faq-answer ol {
    font-size: 0.95rem;
  }
  .page-faq__cta-section {
    padding: 50px 0;
  }
  .page-faq__cta-title {
    font-size: 2rem;
    padding: 0 15px;
  }
  .page-faq__cta-description {
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
  }
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* --- Start of boilerplate homepage CSS (REQUIRED BY PROMPT) --- */
@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;
  }
}

/* Additional boilerplate mobile sections from prompt (REQUIRED BY PROMPT) */
@media (max-width: 768px) {
  .page-faq__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* Example for 2 columns on mobile */
    gap: 15px;
    overflow-x: hidden;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-faq__promo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-faq__promo-card-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    min-height: 200px; /* Ensure images are not too small */
    object-fit: cover;
  }
  .page-faq__promo-card-content {
    padding: 15px;
  }

  .page-faq__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-faq__hot-games-item {
    text-align: center;
  }
  .page-faq__hot-games-item img {
    width: 100%;
    height: auto;
    max-width: 100%;
    min-height: 200px; /* Ensure images are not too small */
    object-fit: cover;
  }
  .page-faq__hot-games-name,
  .page-faq__hot-games-rtp,
  .page-faq__hot-games-desc {
    display: block;
    font-size: 0.9em;
    margin-top: 5px;
  }

  .page-faq__brand-intro {
    padding: 30px 15px;
    text-align: center;
  }
  .page-faq__brand-intro-content {
    font-size: 1rem;
  }

  .page-faq__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: #FFF3E6;
    padding: 10px 0;
    z-index: 999;
  }
  body {
    padding-bottom: 50px; /* Adjust based on ticker height */
  }

  /* Universal image and container rules for mobile (REQUIRED BY PROMPT) */
  .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;
  }
  /* Button container mobile adaptation (REQUIRED BY PROMPT) */
  .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;
    flex-direction: column; /* Often better for vertical stack of buttons on mobile */
  }
  .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;
  }
}
/* --- End of boilerplate homepage CSS --- */