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

.page-faq__section {
  padding: 40px 0;
  margin: 0 auto;
  max-width: 1280px;
  width: 100%;
  box-sizing: border-box;
}

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

.page-faq__hero-section {
  background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%);
  padding: 60px 0 20px;
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

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

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

.page-faq__hero-description {
  font-size: clamp(16px, 1.8vw, 20px);
  margin-bottom: 30px;
  max-width: 900px;
  line-height: 1.5;
}

.page-faq__hero-image-container {
  width: 100%;
  max-width: 1200px;
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

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

.page-faq__section-title {
  font-size: clamp(24px, 3vw, 36px);
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-faq__faq-list {
  margin-top: 20px;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #D6E2FF; /* Border color */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2F6BFF; /* Primary color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}

details.page-faq__faq-item[open] .page-faq__faq-toggle {
  color: #1F2D3D;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 20px 20px;
  background: #F9F9F9;
  border-top: 1px solid #eee;
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  color: #333333;
}

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

.page-faq__faq-answer ol, .page-faq__faq-answer ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

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

.page-faq__image-answer {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 8px;
  object-fit: cover;
}

.page-faq__cta-section {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  color: #ffffff;
  text-align: center;
  padding: 60px 0;
  border-radius: 10px;
  margin: 40px auto;
}

.page-faq__cta-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-faq__cta-description {
  font-size: clamp(16px, 1.8vw, 20px);
  max-width: 800px;
  margin: 0 auto 30px;
  padding: 0 15px;
}

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

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

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

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Primary color */
  border: 2px solid #2F6BFF; /* Primary color */
}

.page-faq__btn-secondary:hover {
  background: #F4F7FB; /* Background */
  color: #1F2D3D; /* Text Main */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 1023px) {
  .page-faq__hero-section {
    padding: 40px 0 20px;
  }
  .page-faq__main-title {
    font-size: 36px;
  }
  .page-faq__hero-description {
    font-size: 18px;
  }
  .page-faq__hero-image-container {
    max-width: 90%;
  }
  .page-faq__faq-qtext {
    font-size: 17px;
  }
  .page-faq__faq-toggle {
    font-size: 26px;
    width: 28px;
  }
  .page-faq__cta-title {
    font-size: 32px;
  }
  .page-faq__cta-description {
    font-size: 18px;
  }
  .page-faq__btn-primary, .page-faq__btn-secondary {
    padding: 12px 24px;
    font-size: 17px;
  }
}

@media (min-width: 1024px) {
  /* No specific desktop layout for this FAQ page that requires 3-column game trial */
  /* This media query block is required to be present as per instructions */
  .page-faq__home-hero { /* Placeholder for homepage specific styling */
    display: block; 
    grid-template-columns: none; 
    height: auto; 
    max-height: none; 
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-faq__hero-brand, .page-faq__hero-jackpot { /* Placeholder for homepage specific styling */
    display: none;
  }
  .page-faq__game-trial { /* Placeholder for homepage specific styling */
    width: 100%; 
    max-width: 100%; 
    height: auto; 
    max-height: none; 
    overflow: hidden; 
    margin: 0 auto; 
    padding: 0 0 12px; 
    box-sizing: border-box;
  }
  .page-faq__game-trial-shell { /* Placeholder for homepage specific styling */
    height: auto; 
    max-height: none; 
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-faq__game-trial-topbar, .page-faq__game-trial-bottombar { /* Placeholder for homepage specific styling */
    display: none;
  }
  .page-faq__game-trial-viewport { /* Placeholder for homepage specific styling */
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none;
    min-height: 240px;
    max-height: none;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-faq__game-trial-frame { /* Placeholder for homepage specific styling */
    position: absolute;
    inset: 0;
    width: 100%; 
    height: 100%; 
    min-height: 0; 
    max-height: none; 
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-faq__game-trial-overlay { /* Placeholder for homepage specific styling */
    z-index: 5;
    pointer-events: auto;
  }
  .page-faq__game-trial-start { /* Placeholder for homepage specific styling */
    z-index: 6;
    pointer-events: auto;
    touch-action: manipulation;
  }
  /* Specific overrides for homepage game trial, if this were index.html */
  .page-index__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-index__hero-brand,
  .page-index__hero-jackpot,
  .page-index__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-index__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-index__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-index__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-index__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-index__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  /* Placeholder for homepage promo and hot games */
  .page-index__promo-strip { margin-top: 16px; }
  .page-index__promo-strip-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .page-index__hot-games-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; }
}

@media (max-width: 768px) {
  .page-faq__section {
    padding: 30px 0;
  }
  .page-faq__hero-section {
    padding: 30px 0 15px;
  }
  .page-faq__main-title {
    font-size: 30px;
  }
  .page-faq__hero-description {
    font-size: 16px;
  }
  .page-faq__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
  }
  .page-faq__faq-qtext {
    font-size: 16px;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }
  .page-faq__faq-answer p {
    margin-bottom: 10px;
  }
  .page-faq__faq-answer ol, .page-faq__faq-answer ul {
    margin-left: 15px;
    margin-bottom: 10px;
  }
  .page-faq__cta-section {
    padding: 40px 0;
    margin: 30px auto;
  }
  .page-faq__cta-title {
    font-size: 28px;
  }
  .page-faq__cta-description {
    font-size: 16px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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;
  }
  .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 homepage specific styling, ensuring it's present */
  .page-index__promo-strip-track { grid-template-columns: repeat(2, 1fr); overflow-x: hidden; }
  .page-index__hot-games-grid { grid-template-columns: repeat(2, 1fr); }
  .page-index__hot-games-name, .page-index__hot-games-rtp, .page-index__hot-games-desc { display: none; }
  .page-index__brand-intro { display: block; }
  .page-index__winner-ticker { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 999; }
  body { padding-bottom: 60px; /* Adjust based on ticker height */ }
  main.page-content { padding-bottom: 60px; /* Adjust based on ticker height */ }
}

/* Ensure color contrast for elements */
.page-faq {
  color: #1F2D3D; /* Text Main */
}

.page-faq__card {
  background: #FFFFFF; /* Card BG */
  color: #1F2D3D;
  border: 1px solid #D6E2FF; /* Border */
}

.page-faq__dark-section {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
}

.page-faq p, .page-faq li {
  color: #333333;
}