.page-faq__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1280px;
  margin: 0 auto;
  color: var(--text-main, #F3F8FF);
}

.page-faq__hero-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

.page-faq__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main, #F3F8FF);
  letter-spacing: -0.02em;
}

.page-faq__description {
  font-size: 18px;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto 30px;
  color: var(--text-secondary, #AFC4E8);
}

.page-faq__content-area {
  padding: 40px 0;
  background: var(--deep-navy, #08162B);
  color: var(--text-main, #F3F8FF);
}

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

.page-faq__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--glow, #4FA8FF);
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border, #244D84);
  overflow: hidden;
  background: var(--card-bg, #10233F);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

details.page-faq__faq-item[open] {
  border-color: var(--glow, #4FA8FF);
}

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(--text-main, #F3F8FF);
}

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(--deep-navy-rgb), 0.5); /* Using RGB for transparency */
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #F3F8FF);
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold, #F2C14E);
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg);
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: rgba(var(--deep-navy-rgb), 0.3);
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary, #AFC4E8);
  font-size: 16px;
  line-height: 1.7;
}

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 15px;
  margin-right: 10px;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-faq__btn-secondary {
  background: transparent;
  color: var(--gold, #F2C14E);
  border: 2px solid var(--gold, #F2C14E);
}

.page-faq__btn-secondary:hover {
  background: var(--gold, #F2C14E);
  color: var(--deep-navy, #08162B);
  transform: translateY(-2px);
}

.page-faq__cta-section {
  background: linear-gradient(90deg, #113B7A 0%, #1D5FD1 100%);
  padding: 60px 0;
  text-align: center;
  color: #F3F8FF;
}

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

.page-faq__cta-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #F3F8FF;
}

.page-faq__cta-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #AFC4E8;
}

.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 15px;
}

/* Ensure images are responsive and not smaller than 200px */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Default image sizes for content, ensuring minimums */
.page-faq__faq-answer img {
  min-width: 200px;
  min-height: 200px;
}


/* Responsive Styles */
@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;
  }
  /* Placeholder for other PC modules if this were homepage */
  /* .page-faq__promo-strip { margin-top: 16px; } */
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 10px;
    padding-bottom: 20px;
  }

  .page-faq__main-title {
    font-size: 28px;
  }

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

  .page-faq__hero-image {
    max-width: 100%;
    margin-top: 20px;
  }

  .page-faq__content-area {
    padding: 30px 0;
  }

  .page-faq__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
  }

  .page-faq__faq-qtext {
    font-size: 16px;
  }

  .page-faq__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 24px;
  }

  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 20px;
    font-size: 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-right: 0;
    margin-bottom: 10px;
  }
  .page-faq__btn-primary:last-child,
  .page-faq__btn-secondary:last-child {
    margin-bottom: 0;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
  }

  .page-faq__cta-section {
    padding: 40px 0;
  }

  .page-faq__cta-title {
    font-size: 28px;
  }

  .page-faq__cta-description {
    font-size: 16px;
  }

  /* General image and container responsiveness for mobile */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__container,
  .page-faq__hero-content,
  .page-faq__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Placeholder for other homepage specific rules if this were homepage */
  /* .page-faq__promo-strip-track { grid-template-columns: repeat(4,1fr); overflow-x:hidden; } */
  /* .page-faq__hot-games-grid { grid-template-columns: repeat(2,1fr); } */
  /* .page-faq__winner-ticker { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 9999; } */
  /* body { padding-bottom: 60px; } */
}

/* Custom CSS for deep-navy-rgb variable */
:root {
  --deep-navy-rgb: 8, 22, 43; /* RGB values for #08162B */
}

/* Ensure color contrast for main text on dark body background */
.page-faq {
  color: var(--text-main, #F3F8FF); /* Must use light text on dark body background */
}

/* Card and container background/text colors */
.page-faq__card,
.page-faq__faq-item {
  background: var(--card-bg, #10233F); /* Dark background */
  color: var(--text-main, #F3F8FF); /* Light text */
}

/* Button specific colors are defined above with custom values */

/* Ensure content area paragraphs and list items have appropriate color */
.page-faq__faq-answer p {
  color: var(--text-secondary, #AFC4E8);
}