/* General styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background: #ffffff; /* Explicitly white for content areas */
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  margin-bottom: 30px;
  overflow: hidden;
  display: flex; /* For image and content to stack or be positioned */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff; /* Text color for hero content over image */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-faq__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive H1 font size */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  color: #f0f0f0;
}

.page-faq__btn-primary {
  display: inline-block;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary:hover {
  background-color: #1a8ccf;
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #26A9E0; /* Brand primary color */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #26A9E0;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-faq__main-content {
  padding: 40px 0;
  background-color: #f9f9f9;
}

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

.page-faq__section-title,
.page-faq__faq-group-title,
.page-faq__cta-title {
  font-size: 32px;
  font-weight: 700;
  color: #26A9E0; /* Brand primary color */
  margin-bottom: 25px;
  text-align: center;
}

.page-faq__section-description,
.page-faq__cta-description {
  font-size: 17px;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__faq-category-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
}

.page-faq__category-link {
  background-color: #FFFFFF;
  border: 1px solid #26A9E0;
  color: #26A9E0;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__category-link:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-faq__faq-list {
  margin-bottom: 50px;
}

/* FAQ Accordion styles */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
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; /* Remove default marker */
  transition: background-color 0.3s ease;
}
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: #f5f5f5;
}
.page-faq__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #26A9E0; /* Brand primary color */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-top: 1px solid #eee;
  border-radius: 0 0 8px 8px;
}
.page-faq__faq-answer p {
  margin: 0;
  padding-top: 15px;
  font-size: 16px;
  color: #555555;
}

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

.page-faq__cta-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.page-faq__cta-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-faq__cta-description {
  color: #f0f0f0;
  max-width: 700px;
  margin: 0 auto 30px auto;
}

.page-faq__cta-section .page-faq__btn-primary {
  background-color: #EA7C07; /* Custom 'Login' color, but used for CTA */
  border-color: #EA7C07;
}

.page-faq__cta-section .page-faq__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

.page-faq__copyright-info {
  background-color: #1a1a1a;
  color: #bbbbbb;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

/* --- MANDATORY HOMEPAGE-SPECIFIC CSS BLOCKS (as per prompt) --- */
/* A. @media (max-width: 1023px) must be output as is */
@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;
  }
}

/* B. @media (min-width: 1024px) must be output as is */
@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;
  }
}

/* C. @media (max-width: 768px) must be output as is (general responsive rules for this page) */
@media (max-width: 768px) {
  .page-faq__hero-content {
    padding: 60px 15px;
  }
  .page-faq__main-title {
    font-size: clamp(24px, 6vw, 38px);
    margin-bottom: 15px;
  }
  .page-faq__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .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__faq-category-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .page-faq__category-link {
    width: 100%;
    text-align: center;
    padding: 10px 15px;
    font-size: 15px;
  }

  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;
    width: 24px;
    margin-left: 10px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
  }
  .page-faq__faq-answer p {
    font-size: 15px;
  }

  .page-faq__section-title,
  .page-faq__faq-group-title,
  .page-faq__cta-title {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .page-faq__section-description,
  .page-faq__cta-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-faq__image-inline {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* General image and container responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__section,
  .page-faq__container,
  .page-faq__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Placeholder for promo-strip (not present on FAQ, but required by prompt for 768px output) */
  .page-faq__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important;
    overflow-x: hidden !important;
    gap: 10px !important;
  }
  /* Placeholder for hot-games (not present on FAQ, but required by prompt for 768px output) */
  .page-faq__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    overflow-x: hidden !important;
    gap: 10px !important;
  }
  /* Placeholder for winner-ticker (not present on FAQ, but required by prompt for 768px output) */
  .page-faq__winner-ticker {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 100 !important;
  }
  body {
    padding-bottom: 50px; /* Adjust if winner-ticker is fixed at bottom */
  }
}
/* Other general styles for homepage elements (as required by prompt, even if not on FAQ) */
.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-close{position:absolute;top:10px;right:10px;font-size:24px;color:#fff;cursor:pointer;z-index:10001;}