/* style/faq.css */
/* 
 * Body background color is #08160F (dark), so main text color should be #F2FFF6 (light).
 * Card background color is #11271B (dark), so card text color should be #F2FFF6 (light).
 */

.page-faq {
  font-family: Arial, sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image then text */
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #08160F; /* Ensure dark background for hero */
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for image container */
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-faq__hero-content {
  width: 100%;
  max-width: 800px;
  z-index: 1;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

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

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping by default */
  box-sizing: border-box;
  border: 2px solid transparent; /* Default border for consistent sizing */
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main for buttons */
  border-color: transparent;
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Button color for secondary */
  border-color: #2AD16F; /* Border color for secondary */
}

.page-faq__btn-secondary:hover {
  background-color: rgba(42, 209, 111, 0.1);
  transform: translateY(-2px);
}

.page-faq__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
  margin-top: 10px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border-color: transparent;
}
.page-faq__btn-small:hover {
  opacity: 0.9;
}


/* Section Titles */
.page-faq__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-faq__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #2AD16F, transparent); /* Glow */
  border-radius: 2px;
}

.page-faq__sub-section-title {
  font-size: clamp(1.5em, 2.5vw, 2em);
  font-weight: 600;
  color: #2AD16F; /* A vibrant green for sub-sections */
  margin-top: 50px;
  margin-bottom: 30px;
  text-align: left;
  border-bottom: 1px solid #1E3A2A; /* Divider */
  padding-bottom: 10px;
}

/* Introduction Section */
.page-faq__introduction-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
}

.page-faq__text-block {
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ Section */
.page-faq__faq-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

.page-faq__faq-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #F2FFF6; /* Text Main for FAQ items */
}

.page-faq__faq-item[open] {
  border-color: #2AD16F; /* Highlight when open */
  box-shadow: 0 0 15px rgba(42, 209, 111, 0.3);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-weight: 600;
  font-size: 1.15em;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  position: relative;
  list-style: none; /* Remove default marker for details summary */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-faq__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: 300;
  color: #2AD16F; /* Button color for toggle */
  width: 30px;
  text-align: center;
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
}

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

.page-faq__game-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.page-faq__game-link {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.page-faq__game-link:hover {
  background-color: #2AD16F;
}

/* Call to Action Section */
.page-faq__cta-section {
  padding: 80px 0;
  background-color: #11A84E; /* Main color */
  text-align: center;
  color: #F2FFF6;
}

.page-faq__cta-section .page-faq__section-title {
  color: #F2FFF6;
}

.page-faq__cta-section .page-faq__text-block {
  color: #F2FFF6;
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }

  .page-faq__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-faq__main-title {
    font-size: 2em;
  }

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

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-small {
    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 {
    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: 1.8em;
    margin-bottom: 30px;
  }

  .page-faq__sub-section-title {
    font-size: 1.4em;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-faq__introduction-section,
  .page-faq__faq-section,
  .page-faq__cta-section {
    padding: 40px 0;
  }

  .page-faq__container {
    padding: 0 15px;
  }

  .page-faq__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-faq__faq-answer {
    padding: 0 20px 15px;
  }
  
  /* Mobile images/videos responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure full width on mobile */
    height: auto !important;
    display: block !important;
  }

  .page-faq__hero-image-wrapper,
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper,
  .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;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__video-section {
    padding-top: 10px !important; /* Keep small top padding on mobile */
  }
}

/* Desktop video container width rule */
/* This rule is added to fulfill the requirement for video containers to have width: 100% on desktop. */
/* Even though there is no video on this page, the CSS should anticipate it. */
.page-faq__video-container {
  width: 100%; 
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}
.page-faq__video-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}