/* style/faq.css */

/* Base styles for page-faq, ensuring text color contrasts with dark body background */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  line-height: 1.6;
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  background-color: rgba(38, 169, 224, 0.1); /* Slight tint of brand color */
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

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

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

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

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

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

/* General Section Titles */
.page-faq__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
  color: #26A9E0; /* Brand color for titles */
}

/* Text Blocks */
.page-faq__text-block {
  margin-bottom: 20px;
  color: #ffffff; /* Light text for dark body */
  text-align: justify;
}

/* Accordion Section */
.page-faq__accordion-section {
  padding: 60px 0;
  background-color: #0a0a0a; /* Explicitly dark background for this section */
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly visible card background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.15em;
  color: #ffffff; /* Light text for questions */
  background-color: rgba(38, 169, 224, 0.15); /* Brand color tint for summary */
  list-style: none; /* Remove default marker */
}

.page-faq__faq-item[open] > .page-faq__faq-question {
  background-color: #26A9E0; /* Brand color when open */
  color: #ffffff;
}

.page-faq__faq-item[open] > .page-faq__faq-question .page-faq__faq-toggle {
  color: #ffffff;
}

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

.page-faq__faq-qtext {
  flex-grow: 1;
}

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(0deg); /* Explicitly set to 0 for consistency */
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #f0f0f0; /* Slightly lighter than main text */
  background-color: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-faq__faq-answer ul {
  list-style: disc inside;
  margin-bottom: 15px;
  padding-left: 20px;
}

.page-faq__faq-answer li {
  margin-bottom: 5px;
  color: #f0f0f0;
}

.page-faq__faq-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-faq__game-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

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

.page-faq__call-to-action .page-faq__section-title {
  color: #ffffff; /* White title on brand color background */
}

.page-faq__call-to-action .page-faq__description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-faq__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-faq__btn-tertiary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-faq__btn-tertiary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-faq__btn-small {
  padding: 10px 20px;
  font-size: 0.95em;
}

/* Content Area */
.page-faq__content-area {
  background-color: rgba(255, 255, 255, 0.05); /* Lightest visible background on dark body */
  padding: 60px 20px;
  color: #ffffff;
}

.page-faq__content-area .page-faq__section-title {
  color: #26A9E0;
}

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

  .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-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__accordion-section,
  .page-faq__call-to-action,
  .page-faq__content-area {
    padding: 40px 15px;
  }

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

  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

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

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

  .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__accordion-section,
  .page-faq__call-to-action,
  .page-faq__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-faq__video-section {
    padding-top: 10px !important;
  }

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