/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #000000, so text is white */
  background-color: transparent; /* Inherit from body or shared, ensuring text contrast */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #000000; /* Dark background for hero */
  color: #ffffff;
  text-align: center;
  overflow: hidden; /* Prevent image overflow */
}

.page-faq__hero-content {
  max-width: 900px;
  z-index: 1;
  margin-bottom: 40px;
}

.page-faq__main-title {
  font-size: 3.5em;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(38, 169, 224, 0.7);
}

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-faq__btn-primary {
  background-color: #26A9E0; /* Brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

.page-faq__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-faq__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Make it a background element */
  filter: grayscale(50%); /* Subtle filter, not color changing */
}

/* General Section Styles */
.page-faq__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 5px rgba(38, 169, 224, 0.5);
}

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

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

/* Video Section */
.page-faq__video-section {
  background-color: #0d0d0d; /* Slightly lighter dark background */
  padding: 60px 0;
  color: #ffffff;
}

.page-faq__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  max-width: 1000px; /* Limit video width */
  box-sizing: border-box;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-faq__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer; /* Indicate it's clickable */
  display: block; /* Ensure it behaves as a block element for max-width */
}

.page-faq__cta-video {
  text-align: center;
  margin-top: 30px;
}

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

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

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for items */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(38, 169, 224, 0.3);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(38, 169, 224, 0.2); /* Brand color for question background */
  transition: background-color 0.3s ease;
  color: #ffffff;
}

.page-faq__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.4);
}

.page-faq__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

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

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

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

.page-faq__faq-answer .page-faq__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 15px 0;
  display: block;
}

.page-faq__faq-answer .page-faq__btn-primary,
.page-faq__faq-answer .page-faq__btn-secondary {
  margin-top: 15px;
  display: inline-block; /* Ensure they don't take full width if not needed */
}

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

.page-faq__btn-text {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 5px;
  background-color: rgba(38, 169, 224, 0.1);
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #26A9E0;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-text:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Call to Action Section */
.page-faq__call-to-action {
  background-color: #26A9E0; /* Brand color background */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-faq__call-to-action .page-faq__section-title {
  color: #ffffff;
  text-shadow: none;
}

.page-faq__call-to-action .page-faq__section-description {
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.8em;
  }
}

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

  .page-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-faq__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-faq__description-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-faq__cta-group {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    margin: 0 auto; /* Center buttons */
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-faq__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-faq__section-description {
    font-size: 0.95em;
    margin: 0 auto 30px;
  }

  .page-faq__video-section,
  .page-faq__faq-section,
  .page-faq__call-to-action {
    padding: 40px 0;
  }

  .page-faq__video-wrapper {
    margin: 20px auto;
  }
  
  /* Images responsive */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive */
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video containers responsive */
  .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;
  }
  
  /* General containers responsive */
  .page-faq__section, /* Added for general sections */
  .page-faq__card, /* No cards used, but good to have */
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__faq-question {
    padding: 15px;
  }

  .page-faq__faq-question h3 {
    font-size: 1.1em;
  }

  .page-faq__faq-toggle {
    font-size: 1.2em;
  }

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

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

  .page-faq__game-links {
    flex-direction: column;
  }

  .page-faq__btn-text {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    font-size: 0.9em;
  }
}