/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF;
}

.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;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  padding-bottom: 60px;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-faq__hero-section .page-faq__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

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

.page-faq__hero-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

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

.page-faq__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 0;
}

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

/* Intro Video Section */
.page-faq__intro-video-section {
  padding: 60px 0;
  text-align: center;
  background-color: #f8f9fa; /* Light background */
  color: #333333;
}

.page-faq__intro-video-section .page-faq__section-title {
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-faq__intro-video-section .page-faq__section-subtitle {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto 20px auto;
  background-color: #000;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-faq__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
}

.page-faq__video-caption {
  font-style: italic;
  color: #555555;
  margin-top: 10px;
}

/* Main Content Area */
.page-faq__content-area {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-faq__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-faq__section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #EA7C07; /* Login color for accent */
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-faq__text-block {
  font-size: 1.05em;
  margin-bottom: 30px;
  text-align: justify;
}

.page-faq__text-block a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-faq__text-block a:hover {
  text-decoration: underline;
}

/* FAQ List */
.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.page-faq__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  list-style: none; /* For details tag */
}

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

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #e0f2f7; /* Lighter shade of primary */
  border-bottom-color: #26A9E0;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #EA7C07; /* Login color for accent */
  transition: transform 0.3s ease;
}

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

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  color: #555555;
}

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-faq__faq-answer li {
  margin-bottom: 8px;
}

.page-faq__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

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

.page-faq__faq-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.page-faq__game-link {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

/* CTA Section at the bottom */
.page-faq__cta-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  border-radius: 8px;
  margin-top: 40px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.page-faq__cta-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: #ffffff;
}

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

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__hero-cta,
.page-faq__promo-cta,
.page-faq__contact-cta {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary,
.page-faq__hero-cta {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border-color: #EA7C07;
}

.page-faq__btn-primary:hover,
.page-faq__hero-cta:hover {
  background-color: #d16e06;
  border-color: #d16e06;
  transform: translateY(-2px);
}

.page-faq__btn-secondary,
.page-faq__promo-cta,
.page-faq__contact-cta {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #26A9E0;
}

.page-faq__btn-secondary:hover,
.page-faq__promo-cta:hover,
.page-faq__contact-cta:hover {
  background-color: #e0f2f7;
  color: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
}

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

  .page-faq__hero-description {
    font-size: 1.1em;
  }

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

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

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

  /* Hero Section */
  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-faq__hero-title {
    font-size: 2em;
  }

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

  .page-faq__hero-image-wrapper {
    max-width: 100%;
  }

  /* Intro Video Section */
  .page-faq__intro-video-section {
    padding: 40px 0;
  }

  .page-faq__intro-video-section .page-faq__section-subtitle {
    font-size: 1em;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Main Content Area */
  .page-faq__content-area {
    padding: 40px 0;
  }

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

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

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

  .page-faq__faq-image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__game-categories {
    flex-direction: column;
    align-items: center;
  }

  /* CTA Section */
  .page-faq__cta-section {
    padding: 40px 15px;
    margin-top: 30px;
  }

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

  .page-faq__cta-description {
    font-size: 1em;
  }

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

  /* Buttons */
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__hero-cta,
  .page-faq__promo-cta,
  .page-faq__contact-cta,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    overflow: hidden !important;
  }
}