/* General Styling for FAQ Page */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background: #F5F7FA; /* Default page background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-faq__hero-section {
  display: flex;
  flex-direction: column; /* Default to column for smaller screens, then row for larger */
  align-items: center;
  gap: 30px;
  padding: 40px 15px 60px;
  text-align: center;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand gradient */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-faq__hero-content {
  max-width: 800px;
  z-index: 2;
}

.page-faq__main-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 42px);
}

.page-faq__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-faq__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-faq__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

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

/* Content Sections */
.page-faq__content-section {
  padding: 50px 0;
}

.page-faq__dark-section {
  background: #E53935; /* Using brand primary color */
  color: #ffffff; /* White text for dark background */
}

.page-faq__light-bg {
  background: #ffffff; /* White background */
  color: #333333; /* Dark text for light background */
}

.page-faq__section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherit color from parent section */
  font-size: clamp(24px, 3vw, 32px);
}

.page-faq__paragraph {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: left;
}

.page-faq__content-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* FAQ Accordion Styling (details/summary) */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #E0E0E0;
  overflow: hidden;
  background: #FFFFFF; /* Card BG color */
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  color: #333333; /* Text Main color */
}
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; /* Hide default marker */
  transition: background-color 0.3s ease;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}
details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}
details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: #f5f5f5;
}
.page-faq__faq-qtext {
  flex: 1;
  text-align: left;
}
.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #E53935; /* Use brand color for toggle */
  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 8px 8px;
  font-size: 15px;
  line-height: 1.7;
}
details.page-faq__faq-item .page-faq__faq-answer p {
  margin-bottom: 10px;
}
details.page-faq__faq-item .page-faq__faq-answer ul {
  list-style: disc;
  margin-left: 20px;
  padding-left: 0;
}
details.page-faq__faq-item .page-faq__faq-answer li {
  margin-bottom: 5px;
}

/* Bottom CTA */
.page-faq__cta-bottom {
  text-align: center;
  margin-top: 40px;
  padding: 30px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.page-faq__cta-text {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333333;
  font-weight: 500;
}

.page-faq__btn-large {
  padding: 16px 40px;
  font-size: 18px;
}

/* Final CTA Section */
.page-faq__final-cta {
  padding: 60px 0;
  text-align: center;
  background: #FF5A4F; /* Auxiliary brand color */
  color: #ffffff;
}
.page-faq__final-cta .page-faq__section-title {
    color: #ffffff;
}
.page-faq__final-cta .page-faq__paragraph {
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Copyright Info */
.page-faq__copyright-info {
  text-align: center;
  padding: 20px 15px;
  font-size: 14px;
  color: #666666;
  background: #f0f0f0;
  border-top: 1px solid #e0e0e0;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-faq__hero-section {
    flex-direction: row; /* Row layout for larger screens */
    text-align: left;
    padding: 60px 30px 80px;
  }
  .page-faq__hero-content {
    flex: 1;
    text-align: left;
  }
  .page-faq__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }
  .page-faq__cta-buttons {
    justify-content: flex-start;
  }
}

/* Mobile Specific Adjustments */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 20px 15px 40px;
    gap: 20px;
  }
  .page-faq__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-faq__intro-text {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px; /* Add padding to container */
    box-sizing: border-box;
  }
  .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; /* Ensure internal padding for text */
    padding-right: 15px;
  }

  .page-faq__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .page-faq__paragraph {
    font-size: 15px;
  }
  .page-faq__content-image {
    margin: 20px auto;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
    font-size: 16px;
  }
  .page-faq__faq-qtext {
    font-size: 16px;
  }
  .page-faq__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
    font-size: 14px;
  }

  /* Universal image and container responsive styles */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__content-section,
  .page-faq__faq-section,
  .page-faq__cta-bottom,
  .page-faq__final-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* --- START: HOMEPAGE SPECIFIC CSS BLOCKS (REQUIRED FOR OUTPUT, NOT FOR FAQ PAGE USAGE) --- */
/* These blocks are included as per strict output format requirements, even if not directly used by faq.html's classes. */
@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;
  }
}

/* Additional homepage specific elements required in output CSS, even if not used by faq.html */
@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);
  }
}
/* Generic game trial overlay styles that might be present in shared or base CSS */
.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;
}
/* Ensure the reward modal close button is styled if the modal is included in JS */
.page-faq__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  color: #333;
}
.page-faq__reward-modal-close:hover {
  background: #f0f0f0;
}

/* Additional rules for mobile buttons, images, and containers */
@media (max-width: 768px) {
  .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;
  }
  .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;
  }
}
/* --- END: HOMEPAGE SPECIFIC CSS BLOCKS --- */