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

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

.page-faq__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-faq__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-faq__hero-content {
  text-align: center;
  padding: 40px 20px;
  background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white overlay */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin-top: -150px; /* Overlap with image for visual effect */
  position: relative; /* Ensure it's above the image for text readability */
  z-index: 1;
}

.page-faq__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

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

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

.page-faq__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ Section */
.page-faq__faq-section {
  padding: 60px 0;
  background: #26A9E0; /* Brand primary color background */
  color: #ffffff; /* White text for dark background */
}

.page-faq__faq-section .page-faq__section-title {
  color: #ffffff;
}

.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__faq-item {
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #f8f8f8;
  color: #333333;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* Hide default details marker */
  -webkit-touch-callout: none; /* Disable callout on iOS */
  -webkit-user-select: none; /* Disable text selection on iOS */
  -khtml-user-select: none; /* Disable text selection on Konqueror */
  -moz-user-select: none; /* Disable text selection on Firefox */
  -ms-user-select: none; /* Disable text selection on Internet Explorer/Edge */
  user-select: none; /* Disable text selection */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none;
}

.page-faq__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Ensure click on summary works */
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  pointer-events: none; /* Ensure click on summary works */
}

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

.page-faq__faq-answer {
  padding: 20px 25px;
  background-color: #ffffff;
  color: #555555;
  font-size: 1em;
  line-height: 1.8;
  border-top: 1px solid #eee;
}

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

.page-faq__faq-answer strong {
  color: #26A9E0;
}

/* CTA Section */
.page-faq__cta-section {
  padding: 60px 0;
  background: #FFFFFF;
  color: #333333;
  text-align: center;
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-faq__btn-secondary:hover {
  background: #1e87b3;
  border-color: #1e87b3;
}

/* Placeholder for required CSS elements (not directly used on FAQ but required by prompt) */
.page-faq__home-content { border: 1px solid #FBB00D; border-radius: 10px; height: 650px; overflow-y: auto; }
.page-faq__row-games, .page-faq__row-sport, .page-faq__row-coop { background-color: #1A202C; padding: 40px 20px; max-width: 1330px; margin: 0 auto; }
.page-faq__games-title, .page-faq__sport-title, .page-faq__coop-title { color: #fff; text-align: center; }
.page-faq__slider-wrapper { overflow: hidden; }
.page-faq__slider-track { display: flex; flex-wrap: nowrap; gap: 16px; }
.page-faq__game-slide { flex: 0 0 200px; max-width: 200px; }
.page-faq__banners-top-wrapper { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; max-width: 900px; margin: 0 auto; }
.page-faq__banner-item img {   object-fit: contain; margin: 0 auto; display: block; }
.page-faq__blog-masonry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.page-faq__blog-card-link { display: flex; flex-direction: column; height: 100%; }
.page-faq__btn-outline { margin-top: auto; }
.page-faq__blog-slider-track { display: flex; flex-wrap: nowrap; gap: 20px; }
.page-faq__blog-slide { flex: 0 0 calc(33.333% - 14px); max-width: calc(33.333% - 14px); }

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    margin-top: -100px;
    padding: 30px 15px;
  }

  .page-faq__main-title {
    font-size: clamp(2em, 3.5vw, 2.8em);
  }

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

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

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

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

  /* Placeholder for required CSS elements */
  .page-faq__game-slide { flex: 0 0 180px; max-width: 180px; }
  .page-faq__banners-top-wrapper { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-faq__blog-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-faq__blog-slide { flex: 0 0 calc(50% - 10px); max-width: calc(50% - 10px); }
}

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

  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__intro-section,
  .page-faq__faq-section,
  .page-faq__cta-section,
  .page-faq__hero-content,
  .page-faq__faq-list,
  .page-faq__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-faq__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    margin-bottom: 20px;
  }

  .page-faq__hero-image {
    max-height: 400px;
  }

  .page-faq__hero-content {
    margin-top: -80px !important;
    padding: 25px 15px !important;
  }

  .page-faq__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important;
    line-height: 1.3 !important;
  }

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

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

  .page-faq__text-block {
    font-size: 1em !important;
  }

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

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

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .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: 12px 15px !important;
  }

  .page-faq__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  /* Required Mobile CSS elements */
  .page-faq__home-content {
    height: auto !important;
    overflow-y: visible !important;
  }
  .page-faq__row-games, .page-faq__row-sport, .page-faq__row-coop {
    padding: 20px 0 !important;
  }
  .page-faq__games-title, .page-faq__sport-title, .page-faq__coop-title {
    font-size: 1.5em !important;
  }
  .page-faq__slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
  .page-faq__game-slide { flex: 0 0 160px !important; max-width: 160px !important; }
  .page-faq__banners-top-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .page-faq__banner-item img {   }
  .page-faq__blog-masonry { grid-template-columns: 1fr !important; }
  .page-faq__blog-slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
  .page-faq__blog-slide { flex: 0 0 100% !important; max-width: 100% !important; }
  .page-faq__blog-card-link { height: auto !important; }
}