/* Base styles for page-faq */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

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

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

.page-faq__main-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__intro-text {
  font-size: 18px;
  color: #1F2D3D;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-faq__hero-image-wrapper {
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: #F4F7FB;
}

.page-faq__section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
}

.page-faq__section-description {
  font-size: 16px;
  color: #1F2D3D;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* FAQ Accordion Styles - details element */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

details.page-faq__faq-item[open] {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-color: #2F6BFF;
}

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 0.3s ease;
  color: #1F2D3D;
  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: #F0F5FF;
  color: #2F6BFF;
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
  color: inherit; /* Inherit color from summary */
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2F6BFF; /* Main Color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 20px;
  background: #F9FCFF; /* Slightly lighter than card BG */
  border-top: 1px solid #D6E2FF;
  border-radius: 0 0 10px 10px;
  color: #1F2D3D;
  font-size: 16px;
}

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-left: 25px;
  margin-bottom: 15px;
  list-style-type: disc;
}

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

.page-faq__faq-answer img.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__contact-cta-section {
  background: linear-gradient(135deg, #2F6BFF 0%, #6FA3FF 100%); /* Main Color to Auxiliary Color */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-faq__dark-section .page-faq__section-title,
.page-faq__dark-section .page-faq__section-description {
  color: #ffffff;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-faq__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-faq__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Main Color */
  border: 2px solid #2F6BFF; /* Main Color */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: #F0F5FF;
}

/* Responsive styles */
@media (max-width: 1023px) {
  .page-faq__main-title {
    font-size: 32px;
  }
  .page-faq__intro-text {
    font-size: 16px;
  }
  .page-faq__section-title {
    font-size: 28px;
  }
  .page-faq__section-description {
    font-size: 15px;
  }
  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;
    width: 28px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 15px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section,
  .page-faq__faq-list-section,
  .page-faq__contact-cta-section {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-faq__intro-text {
    font-size: 15px;
  }

  .page-faq__section-title {
    font-size: 24px;
  }

  .page-faq__section-description {
    font-size: 14px;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 12px 15px;
  }
  .page-faq__faq-qtext {
    font-size: 15px;
  }
  .page-faq__faq-toggle {
    font-size: 22px;
    width: 26px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 12px;
    font-size: 14px;
  }

  /* Mobile image adaptation */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__faq-list-section,
  .page-faq__contact-cta-section,
  .page-faq__faq-item,
  .page-faq__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons mobile adaptation */
  .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: 12px 20px;
    font-size: 16px;
  }

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

/* Specific styles for game trial (not applicable for FAQ page but included for completeness as per instructions) */
@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 homepage sections if they were present on FAQ page */
/* This FAQ page is an inner page, so these specific homepage elements are not generated */
/* However, per instructions, the media queries for them are included for completeness if they were to exist */
@media (max-width: 768px) {
  .page-faq__promo-strip { /* Placeholder for promo strip if it were on FAQ */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__promo-strip-track {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
    gap: 10px;
  }
  .page-faq__promo-card {
    width: 100% !important;
    max-width: 100% !important;
  }
  .page-faq__promo-card-image {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-faq__hot-games { /* Placeholder for hot games if it were on FAQ */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .page-faq__hot-games-card {
    width: 100% !important;
    max-width: 100% !important;
  }
  .page-faq__hot-games-image {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-faq__brand-intro { /* Placeholder for brand intro if it were on FAQ */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__winner-ticker { /* Placeholder for winner ticker if it were on FAQ */
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999;
  }
  body.page-faq--reward-open { /* Ensure body has padding for fixed elements */
    padding-bottom: 50px; /* Example padding for a fixed ticker */
  }
}