/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* From shared.css body background */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  height: 500px; /* Adjusted height for better visual */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  box-sizing: border-box;
}

.page-faq__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Overlay for text readability */
  z-index: 1;
}

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

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffc107; /* Highlight with accent color */
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

/* General Section Styles */
.page-faq__content-area {
  padding: 60px 20px;
}

.page-faq__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #ffc107;
  font-weight: bold;
}

.page-faq__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

/* FAQ List Styles */
.page-faq__faq-list {
  margin-top: 40px;
}

.page-faq__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background: #007bff; /* Primary color for questions */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #0056b3;
}

.page-faq__faq-title {
  margin: 0;
  flex-grow: 1;
  color: #ffffff;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

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

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

.page-faq__faq-link {
  color: #ffc107;
  text-decoration: none;
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

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

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

.page-faq__game-link {
  background-color: #ffc107;
  color: #1a1a2e;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-faq__game-link:hover {
  background-color: #e0a800;
  color: #1a1a2e;
}

/* Call to Action Section */
.page-faq__cta-section {
  text-align: center;
  padding: 60px 20px;
  margin-top: 50px;
  background: rgba(0, 123, 255, 0.2); /* Light primary color background */
  border-radius: 10px;
  border: 1px solid rgba(0, 123, 255, 0.3);
}

.page-faq__cta-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #ffc107;
}

.page-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-faq__btn-primary {
  background-color: #ffc107;
  color: #1a1a2e;
  border: 2px solid #ffc107;
}

.page-faq__btn-primary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
}

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

.page-faq__btn-secondary:hover {
  background-color: #ffc107;
  color: #1a1a2e;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.8em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-faq__hero-section {
    height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  
  .page-faq__hero-title {
    font-size: 2.2em;
  }
  
  .page-faq__hero-description {
    font-size: 1em;
  }
  
  .page-faq__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .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: 12px 20px;
    font-size: 1em;
  }
  
  .page-faq__cta-section .page-faq__btn-primary,
  .page-faq__cta-section .page-faq__btn-secondary {
    margin-bottom: 15px; /* Add space between stacked buttons */
  }

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

  .page-faq__section-title {
    font-size: 1.8em;
  }

  .page-faq__cta-title {
    font-size: 1.8em;
  }

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

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

  /* Responsive images */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !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__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Consistent with shared */
  }

  /* Responsive video */
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-faq__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Ensure contrast for text on dark background */
.page-faq p,
.page-faq li,
.page-faq h1,
.page-faq h2,
.page-faq h3,
.page-faq h4,
.page-faq h5,
.page-faq h6 {
  color: #ffffff; /* Light text for dark body background */
}

/* Override specific elements if needed for contrast */
.page-faq__faq-question .page-faq__faq-title,
.page-faq__faq-question .page-faq__faq-toggle {
  color: #ffffff;
}

.page-faq__game-link {
  color: #1a1a2e; /* Dark text on light background */
}

.page-faq__btn-primary {
  color: #1a1a2e;
}

.page-faq__btn-secondary {
  color: #ffc107;
}

.page-faq__cta-section {
  background: rgba(0, 123, 255, 0.2);
  color: #ffffff;
}

.page-faq__cta-title {
  color: #ffc107;
}

.page-faq__cta-description {
  color: #f0f0f0;
}