/* style/faq.css */

/* --- General Styles & Body Background Adaption --- */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  /* Body background is #08160F (Deep Green), so text should be light */
  color: var(--text-main, #F2FFF6); /* Text Main: #F2FFF6 */
  background-color: var(--background, #08160F); /* Background: #08160F */
}

/* Fixed header spacing - body already handles padding-top */
/* No padding-top: var(--header-offset) here */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small decorative top padding */
  text-align: center;
  background-color: var(--background, #08160F);
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-faq__hero-content {
  max-width: 900px;
  margin-bottom: 40px; /* Space between text and image */
  z-index: 2; /* Ensure text is above image if any overlap */
}

.page-faq__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* H1 font size with clamp */
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-faq__intro-text {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8); /* Text Secondary: #A7D9B8 */
  margin-bottom: 30px;
}

.page-faq__hero-image {
  width: 100%;
  max-width: 1200px; /* Adjust max-width as needed for desktop */
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--background, #08160F);
}

.page-faq__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
}

.page-faq__description-text {
  font-size: 1.05em;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

/* --- Accordion (FAQ) Styles --- */
.page-faq__accordion-container {
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--card-bg, #11271B); /* Card BG: #11271B */
  border: 1px solid var(--border, #2E7A4E); /* Border: #2E7A4E */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-item {
  border-bottom: 1px solid var(--divider, #1E3A2A); /* Divider: #1E3A2A */
  padding: 0;
  margin: 0;
}

.page-faq__faq-item:last-child {
  border-bottom: none;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

/* Hide default details marker */
.page-faq__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-faq__faq-item summary::marker {
  display: none;
}

.page-faq__faq-question:hover {
  background-color: rgba(34, 199, 104, 0.1); /* Slightly lighter on hover */
}

.page-faq__faq-question .page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow, #57E38D); /* Glow: #57E38D */
}

.page-faq__faq-item[open] > .page-faq__faq-question .page-faq__faq-toggle {
  content: "−";
}

.page-faq__faq-answer {
  padding: 0 30px 20px 30px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

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

.page-faq__faq-answer a {
  color: var(--glow, #57E38D);
  text-decoration: none;
  font-weight: 500;
}

.page-faq__faq-answer a:hover {
  text-decoration: underline;
}

.page-faq__faq-answer .page-faq__btn-primary,
.page-faq__faq-answer .page-faq__btn-secondary {
  margin-top: 15px;
  margin-right: 10px;
}

.page-faq__game-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 15px;
}

.page-faq__game-list li {
  margin-bottom: 8px;
}

.page-faq__game-list li a {
  color: var(--glow, #57E38D);
  text-decoration: none;
}

.page-faq__game-list li a:hover {
  text-decoration: underline;
}

/* --- Image & Button Styles --- */
.page-faq__image-inline {
  width: 100%;
  max-width: 600px; /* Example size, adjust as needed */
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
  max-width: 100%; /* Ensure button doesn't overflow */
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-faq__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--text-main, #F2FFF6); /* Text Main: #F2FFF6 */
  border: 2px solid var(--border, #2E7A4E); /* Border: #2E7A4E */
}

.page-faq__btn-secondary:hover {
  background: rgba(46, 122, 78, 0.2); /* Deep Green with opacity */
  transform: translateY(-2px);
}

/* --- Contact CTA Section --- */
.page-faq__contact-cta {
  text-align: center;
  padding: 60px 30px;
  margin-top: 60px;
  border-radius: 12px;
  background-color: var(--deep-green, #0A4B2C); /* Deep Green: #0A4B2C */
  border: 1px solid var(--border, #2E7A4E);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-faq__contact-title {
  font-size: clamp(1.5em, 3vw, 2.5em);
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
}

.page-faq__contact-text {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-faq__hero-section {
    padding: 40px 20px;
    padding-top: 10px;
  }
  .page-faq__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-faq__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-faq__hero-content {
    margin-bottom: 30px;
  }

  .page-faq__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-faq__intro-text {
    font-size: 1em;
  }

  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__content-area {
    padding: 40px 15px;
  }

  .page-faq__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 30px;
  }

  .page-faq__description-text {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-faq__accordion-container {
    margin-top: 30px;
  }

  .page-faq__faq-question {
    padding: 18px 20px;
    font-size: 1.05em;
  }

  .page-faq__faq-answer {
    padding: 0 20px 18px 20px;
    font-size: 0.95em;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__hero-image,
  .page-faq__image-inline {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__contact-cta {
    padding: 40px 20px;
    margin-top: 40px;
  }

  .page-faq__contact-title {
    font-size: clamp(1.3em, 4.5vw, 2em);
  }

  .page-faq__contact-text {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-faq__faq-question {
    font-size: 1em;
  }
  .page-faq__faq-answer {
    font-size: 0.9em;
  }
}