/* General page styles for page-faq */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #f9f9f9; /* Light background for content area */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  background-color: #0A0A0A; /* Dark background for the hero section */
  padding-top: 10px; /* Small top padding as shared.css handles body padding */
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 400px; /* Adjust as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-faq__hero-content {
  padding: 40px 15px;
  text-align: center;
  color: #FFF6D6; /* Text Main for dark background */
  position: relative;
  z-index: 2;
}

.page-faq__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #F2C14E; /* Brand color for H1 */
}

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

/* Call to Action Buttons */
.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

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

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #0A0A0A; /* Dark text for light button */
  border: none;
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Brand color for text */
  border: 2px solid #F2C14E; /* Border with brand color */
}

.page-faq__btn-secondary:hover {
  background: #F2C14E;
  color: #0A0A0A;
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 40px 0;
}

.page-faq__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #F2C14E; /* Brand color for section titles */
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__faq-category {
  margin-bottom: 30px;
}

.page-faq__category-title {
  font-size: 24px;
  font-weight: 600;
  color: #0A0A0A; /* Dark text for category titles */
  margin-bottom: 20px;
  border-bottom: 2px solid #F2C14E;
  padding-bottom: 10px;
}

/* FAQ Item Styles (using <details>) */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #3A2A12; /* Border color from custom palette */
  overflow: hidden;
  background: #111111; /* Card B G for FAQ item background */
  color: #FFF6D6; /* Text Main for content */
  box-shadow: 0 4px 12px 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 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px;
  font-weight: 600;
  color: #F2C14E; /* Brand color for questions */
}
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: #222222; /* Slightly lighter dark background on hover */
}

.page-faq__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}
.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B; /* Glow color for toggle icon */
  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: #0A0A0A; /* Background color for answer area */
  border-radius: 0 0 8px 8px;
  color: #FFF6D6; /* Text Main for answer content */
}
.page-faq__faq-answer p {
  margin-bottom: 10px;
}
.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
  padding-left: 25px;
  margin-bottom: 10px;
}
.page-faq__faq-answer li {
  margin-bottom: 5px;
}
.page-faq__faq-answer a {
  color: #FFD36B; /* Glow color for links in answer */
  text-decoration: underline;
}
.page-faq__faq-answer a:hover {
  color: #F2C14E;
}
.page-faq__faq-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px 0;
  border-radius: 5px;
}

/* Bottom CTA Section */
.page-faq__cta-section {
  background-color: #111111; /* Card B G for CTA section */
  padding: 60px 15px;
  text-align: center;
  color: #FFF6D6; /* Text Main for CTA section */
  margin-top: 40px;
}

.page-faq__cta-title {
  font-size: 36px;
  font-weight: 700;
  color: #F2C14E;
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* --- Responsive Design --- */

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__hero-content {
    padding: 20px 10px;
  }
  .page-faq__main-title {
    font-size: 28px;
  }
  .page-faq__intro-text {
    font-size: 16px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 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;
    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__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-faq__category-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
    font-size: 16px;
  }
  .page-faq__faq-qtext {
    font-size: 15px;
  }
  .page-faq__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
    margin-left: 10px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
  }
  .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__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 other required 768px blocks (promo, hot-games, brand-intro, winner-ticker) - not applicable to FAQ page HTML, but required in CSS output */
  .page-faq__promo-strip { /* Homepage specific */
    /* No promo strip on FAQ page */
  }
  .page-faq__hot-games { /* Homepage specific */
    /* No hot games on FAQ page */
  }
  .page-faq__brand-intro { /* Homepage specific */
    /* No brand intro on FAQ page */
  }
  .page-faq__winner-ticker { /* Homepage specific */
    /* No winner ticker on FAQ page */
  }
}

/* Mandatory Homepage specific CSS blocks (as per prompt, even if not directly used by this FAQ page HTML) */
/* A. @media (max-width: 1023px) must be output as is */
@media (max-width: 1023px) {
  .page-faq__home-hero { /* This class is not used in FAQ page HTML */
    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, /* This class is not used in FAQ page HTML */
  .page-faq__hero-jackpot { /* This class is not used in FAQ page HTML */
    display: none !important;
  }
  .page-faq__game-trial { /* This class is not used in FAQ page HTML */
    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 { /* This class is not used in FAQ page HTML */
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-faq__game-trial-topbar, /* This class is not used in FAQ page HTML */
  .page-faq__game-trial-bottombar { /* This class is not used in FAQ page HTML */
    display: none !important;
  }
  .page-faq__game-trial-viewport { /* This class is not used in FAQ page HTML */
    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 { /* This class is not used in FAQ page HTML */
    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 { /* This class is not used in FAQ page HTML */
    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, /* This class is not used in FAQ page HTML */
  .page-faq__hero-jackpot, /* This class is not used in FAQ page HTML */
  .page-faq__game-trial { /* This class is not used in FAQ page HTML */
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-faq__game-trial { /* This class is not used in FAQ page HTML */
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-faq__game-trial-shell { /* This class is not used in FAQ page HTML */
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-faq__game-trial-viewport { /* This class is not used in FAQ page HTML */
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-faq__game-trial-frame { /* This class is not used in FAQ page HTML */
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-faq__hero-jackpot-claim {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%) !important;
    color: #0A0A0A !important;
  }
}

/* Global is-hidden for general use (e.g., modals) */
.is-hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Reward Modal (if applicable, not explicitly requested for FAQ but good to have a placeholder if game trial is involved) */
.page-faq__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  transition: opacity 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.page-faq__reward-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.page-faq__reward-modal-content {
  background-color: #111111; /* Card B G */
  color: #FFF6D6; /* Text Main */
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  text-align: center;
  position: relative;
  border: 1px solid #F2C14E;
}

.page-faq__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #FFF6D6;
  font-size: 24px;
  cursor: pointer;
}