/* style/faq.css */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text is light */
  background-color: #0a0a0a; /* Ensure consistency with shared.css body background */
}

.page-faq__hero-section {
  position: relative;
  padding: 80px 20px 60px; /* Adjusted padding for FAQ page, not a full hero image */
  background: linear-gradient(135deg, #1A2B4C, #3A4B6C);
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Apply header offset if shared doesn't, otherwise set to 0 */
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__main-title {
  font-size: 42px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-faq__cta-button {
  display: inline-block;
  background: #FFD700;
  color: #1A2B4C;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

.page-faq__cta-button--secondary {
  background: #1A2B4C;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-faq__cta-button--secondary:hover {
  background: #FFD700;
  color: #1A2B4C;
  transform: translateY(-2px);
}

.page-faq__content-section {
  padding: 60px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark for content section */
}

.page-faq__container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-faq__section-title {
  font-size: 32px;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-faq__faq-list {
  margin-top: 30px;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #1A2B4C; /* Dark blue-grey background for questions */
  color: #ffffff;
  border: 1px solid #3A4B6C;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-faq__faq-question:hover {
  background: #2A3B5C;
  border-color: #4A5B7C;
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #2a2a2a; /* Darker background for answers */
  color: #e0e0e0;
  border-radius: 0 0 8px 8px;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-faq__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.page-faq__contact-cta {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background: #1A2B4C;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__contact-cta p {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 25px;
}

/* Image responsiveness */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure images cover their area */
}

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

  .page-faq__description {
    font-size: 16px;
  }

  .page-faq__section-title {
    font-size: 28px;
  }

  .page-faq__faq-question {
    padding: 16px 20px;
  }

  .page-faq__faq-question h3 {
    font-size: 17px;
  }

  .page-faq__faq-toggle {
    font-size: 26px;
    width: 30px;
    height: 30px;
  }

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

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 18px 20px !important;
  }

  .page-faq__faq-answer p {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 15px 40px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset if needed */
  }

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

  .page-faq__description {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .page-faq__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-faq__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .page-faq__faq-item {
    margin-bottom: 12px;
  }

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

  .page-faq__faq-question h3 {
    font-size: 16px;
  }

  .page-faq__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 10px;
  }

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

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

  .page-faq__faq-answer p {
    font-size: 14px;
  }

  .page-faq__contact-cta {
    margin-top: 40px;
    padding: 25px;
  }

  .page-faq__contact-cta p {
    font-size: 18px;
    margin-bottom: 20px;
  }

  /* Mobile image and container responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__content-section,
  .page-faq__contact-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific override for elements that should not be 100% width if any */
  /* No specific small images like gamelogo items on this FAQ page */
}