/* Base styles for page-faq */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #f5f5f5;
}

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

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

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1280px;
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-faq__hero-content {
  max-width: 900px;
  padding: 0 16px;
}

.page-faq__main-title {
  font-size: 3em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #F2C14E; /* Gold for main title */
}

.page-faq__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #AFC4E8; /* Secondary text color */
}

.page-faq__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.05em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 160px;
  box-sizing: border-box;
  max-width: 100%;
  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.2);
}

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

.page-faq__btn-secondary {
  background: transparent;
  color: #F3F8FF;
  border: 2px solid #244D84; /* Border color */
}

.page-faq__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #4FA8FF; /* Glow color */
  transform: translateY(-2px);
}

.page-faq__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #113B7A; /* Main brand color */
}

.page-faq__dark-section .page-faq__section-title {
  color: #F3F8FF; /* Light text for dark sections */
}

.page-faq__categories-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-faq__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.page-faq__category-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  text-decoration: none;
  color: #333333;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-faq__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  border-color: #1D5FD1;
}

.page-faq__category-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #113B7A;
}

.page-faq__category-desc {
  font-size: 0.95em;
  color: #666666;
}

.page-faq__faq-list-section {
  padding: 60px 0;
}

.page-faq__dark-section {
  background-color: #10233F; /* Card BG color */
}

.page-faq__dark-section .page-faq__faq-item {
  border: 1px solid #244D84; /* Border color */
  background: #08162B; /* Deep Navy */
}

.page-faq__dark-section .page-faq__faq-question {
  color: #F3F8FF; /* Main text color */
}

.page-faq__dark-section .page-faq__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-faq__dark-section .page-faq__faq-toggle {
  color: #AFC4E8; /* Secondary text color */
}

.page-faq__dark-section .page-faq__faq-answer {
  background: #1B3357; /* Divider color */
  color: #AFC4E8;
}

/* FAQ Accordion Styles */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #ffffff;
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #333333;
}

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: #f5f5f5;
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

.page-faq__link-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 15px;
  background: #1D5FD1;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

.page-faq__link-btn:hover {
  background: #2B73F6;
}

.page-faq__cta-section {
  background: #10233F; /* Card BG */
  color: #F3F8FF;
  padding: 80px 0;
  text-align: center;
}

.page-faq__cta-section .page-faq__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-faq__cta-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-faq__cta-content .page-faq__section-title {
  color: #F2C14E;
  margin-bottom: 20px;
}

.page-faq__cta-content p {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #AFC4E8;
}

.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
@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;
  }
}

@media (max-width: 768px) {
  .page-faq__main-title {
    font-size: 2.2em;
  }

  .page-faq__description {
    font-size: 1em;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 1em;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-faq__category-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .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;
  }

  /* Placeholder for promo-strip (not present on FAQ page, but required for homepage output) */
  .page-faq__promo-strip-track {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: hidden;
  }
  /* Placeholder for hot-games (not present on FAQ page, but required for homepage output) */
  .page-faq__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* FAQ Accordion specific styles for the toggle icon */
details.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg);
}

/* Additional styles for image and button responsiveness */
.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-buttons,
.page-faq__button-group,
.page-faq__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Image color filter restriction */
.page-faq img {
  filter: none; /* Ensure no filter is applied to change image color */
}