/* style/faq.css */
.page-faq {
  background-color: #0A0A0A; /* Page background color */
  color: #FFF6D6; /* Main text color for contrast */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0.3; /* Subtle background image */
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-faq__hero-text-container {
  margin-top: 60px; /* Space from top of content area */
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FFF6D6;
  margin-bottom: 15px;
  line-height: 1.2;
  max-width: 900px;
}

.page-faq__hero-description {
  font-size: 1.1rem;
  color: #FFD36B;
  margin-bottom: 30px;
  max-width: 800px;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-small,
.page-faq__btn-game {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text on bright button */
  border: 2px solid transparent;
}

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

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

.page-faq__btn-secondary:hover {
  background-color: #FFD36B;
  color: #111111;
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #0A0A0A; /* Consistent background */
  color: #FFF6D6;
}

.page-faq__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #F2C14E;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-faq__intro-text {
  font-size: 1.05rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #FFF6D6;
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: #111111; /* Card background color */
  border: 1px solid #3A2A12;
  border-radius: 10px;
  overflow: hidden;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #111111; /* Question background */
  color: #FFF6D6; /* Question text color */
  font-weight: 600;
  font-size: 1.15rem;
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-faq__faq-question h3 {
  margin: 0;
  color: #F2C14E;
  font-size: 1.15rem;
}

.page-faq__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  width: 30px;
  text-align: center;
  color: #FFD36B;
  transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg); /* Plus to Minus visual effect */
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6; /* Answer text color */
  font-size: 1rem;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px;
  padding-top: 0;
}

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

.page-faq__btn-small {
  display: inline-block;
  padding: 8px 15px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 10px;
}

.page-faq__btn-small:hover {
  opacity: 0.9;
}

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

.page-faq__btn-game {
  background-color: #3A2A12;
  color: #FFD36B;
  border: 1px solid #FFD36B;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
}

.page-faq__btn-game:hover {
  background-color: #FFD36B;
  color: #111111;
}

.page-faq__cta-section {
  background-color: #0A0A0A;
  padding: 80px 20px;
  text-align: center;
}

.page-faq__cta-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 40px;
}

.page-faq__cta-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: #F2C14E;
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1rem;
  color: #FFF6D6;
  margin-bottom: 30px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-bottom: 40px;
  }

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

  .page-faq__main-title {
    font-size: 2.2rem;
  }

  .page-faq__hero-description {
    font-size: 1rem;
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-small,
  .page-faq__btn-game {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
  }

  .page-faq__cta-buttons,
  .page-faq__game-links {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }

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

  .page-faq__section-title {
    font-size: 2rem;
  }

  .page-faq__faq-question h3 {
    font-size: 1rem;
  }

  .page-faq__faq-answer {
    padding: 0 15px;
  }

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px;
    padding-top: 0;
  }

  /* Mobile image and video responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__hero-content,
  .page-faq__cta-section,
  .page-faq__cta-container,
  .page-faq__faq-list,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure text contrast on mobile */
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-faq__faq-question {
    padding: 15px;
  }
  .page-faq__faq-toggle {
    font-size: 1.5rem;
  }
}