/* Base styles for page-faq */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #F3F8FF; /* Text Main */
  background-color: #08162B; /* Deep Navy from body background */
  line-height: 1.6;
}

.page-faq a {
  color: #1D5FD1; /* Auxiliary color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-faq a:hover {
  color: #2B73F6;
}

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

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

.page-faq__section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F3F8FF; /* Text Main */
}

/* Hero Section */
.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background: linear-gradient(180deg, #113B7A 0%, #08162B 100%); /* Primary color gradient */
  position: relative;
  overflow: hidden;
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-faq__main-title {
  font-weight: 700;
  line-height: 1.2;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 20px;
}

/* H1 size rule: No fixed font-size, use clamp if needed */
.page-faq__main-title {
  font-size: clamp(28px, 4vw, 48px);
}

.page-faq__hero-description {
  font-size: 18px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-faq__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

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

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

.page-faq__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Gold */
  border: 2px solid #F2C14E; /* Gold */
}

.page-faq__btn-secondary:hover {
  background: #F2C14E;
  color: #08162B; /* Deep Navy */
  transform: translateY(-2px);
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: brightness(0.8);
}

/* FAQ List */
.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

details.page-faq__faq-item {
  margin-bottom: 0;
  border-radius: 8px;
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  background: #10233F; /* 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 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F3F8FF; /* Text Main */
  font-weight: 600;
  font-size: 18px;
}

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(43, 115, 246, 0.1);
}

.page-faq__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 20px;
  background: rgba(16, 35, 63, 0.8); /* Slightly lighter Card BG */
  border-radius: 0 0 8px 8px;
  color: #AFC4E8; /* Text Secondary */
  font-size: 16px;
}

/* Dark Section */
.page-faq__dark-section {
  background-color: #08162B; /* Deep Navy */
}

.page-faq__deposit-withdrawal-faq {
  background-color: #113B7A; /* Primary color */
}

/* CTA Section */
.page-faq__cta-section {
  padding: 60px 0;
  background: linear-gradient(90deg, #08162B, #113B7A);
}

.page-faq__cta-card {
  display: flex;
  align-items: center;
  background: #10233F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  padding: 30px;
  gap: 30px;
}

.page-faq__cta-image {
  width: 40%;
  min-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.page-faq__cta-content {
  flex: 1;
  padding: 20px;
  text-align: left;
}

.page-faq__cta-content .page-faq__section-title {
  text-align: left;
  margin-bottom: 20px;
  font-size: 28px;
}

.page-faq__cta-content p {
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-faq__cta-content .page-faq__btn-primary,
.page-faq__cta-content .page-faq__btn-secondary {
  margin-right: 15px;
}

/* Responsive Styles */
@media (max-width: 1023px) {
  .page-faq__hero-section {
    padding-bottom: 40px;
  }
  .page-faq__main-title {
    font-size: clamp(24px, 5vw, 40px);
  }
  .page-faq__hero-description {
    font-size: 16px;
  }
  .page-faq__cta-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .page-faq__cta-image {
    width: 100%;
    min-width: unset;
    max-width: 600px; /* Constrain image on larger tablets */
    margin-bottom: 20px;
  }
  .page-faq__cta-content {
    padding: 0;
    text-align: center;
  }
  .page-faq__cta-content .page-faq__section-title {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-faq__section {
    padding: 30px 0;
  }
  .page-faq__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-faq__main-title {
    font-size: clamp(22px, 6vw, 36px);
  }
  .page-faq__hero-description {
    font-size: 15px;
  }
  .page-faq__hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px;
    font-size: 15px;
  }
  .page-faq__hero-content {
    padding: 15px;
  }
  
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-faq__faq-qtext {
    font-size: 16px;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }

  /* Mobile image adaptation */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-faq__container,
  .page-faq__cta-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button adaptation */
  .page-faq__cta-button,
  .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__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;
  }
}

/* Fixed CSS for game trial (not applicable to FAQ page, but included 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;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;aspect-ratio:1024/768;min-height:240px;max-height:none!important;flex:none!important;overflow:hidden;box-sizing:border-box;width:100%;}.page-faq__game-trial-frame{position:absolute;inset:0;width:100%!important;height:100%!important;min-height:0!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%;align-items:stretch;max-width:1280px;margin:0 auto;padding-bottom:24px;}.page-faq__hero-brand,.page-faq__hero-jackpot,.page-faq__game-trial{height:300px;max-height:300px;}.page-faq__game-trial{overflow:hidden;}.page-faq__game-trial-shell{display:flex;flex-direction:column;height:100%;}.page-faq__game-trial-viewport{flex:1;min-height:0;}.page-faq__game-trial-frame{height:100%;min-height:0;}.page-faq__hero-jackpot-claim{background:#c62828!important;}.page-faq__promo-strip{margin-top:16px;}}
@media (max-width:768px){.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__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;}