/* style/faq.css */
.page-faq {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-faq__hero-section {
  position: relative;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-faq__hero-section .page-faq__container {
  position: relative;
  z-index: 2;
}

.page-faq__hero-title {
  font-size: 3.5em;
  color: #FFFF00; /* Use custom color for prominent title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.4;
}

.page-faq__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  color: #FFFF00; /* Use custom color for section titles */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-faq__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #017439; /* Primary color for sub-titles in light sections */
}

.page-faq__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.page-faq__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-faq__list-item {
  margin-bottom: 10px;
}

.page-faq__introduction-section,
.page-faq__account-section,
.page-faq__promotions-section,
.page-faq__cta-final {
  padding: 60px 0;
  text-align: center;
}

.page-faq__faq-section,
.page-faq__games-section,
.page-faq__support-section {
  padding: 60px 0;
  text-align: center;
}

/* Color scheme adaptation */
.page-faq__dark-bg {
  background-color: #017439; /* Primary color for dark sections */
  color: #ffffff;
}

.page-faq__light-bg {
  background-color: #ffffff; /* Auxiliary color for light sections */
  color: #333333; /* Dark text for light background */
}

.page-faq__light-bg .page-faq__section-title {
  color: #017439; /* Primary color for titles in light sections */
}

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

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items in dark sections */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-faq__light-bg .page-faq__faq-item {
  background-color: #f8f8f8; /* Light background for items in light sections */
  border: 1px solid #e0e0e0;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff; /* White text for questions in dark sections */
  background-color: rgba(0, 0, 0, 0.2); /* Darker background for question in dark sections */
  transition: background-color 0.3s ease;
  list-style: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.page-faq__light-bg .page-faq__faq-question {
  color: #333333; /* Dark text for questions in light sections */
  background-color: #e0e0e0;
}

.page-faq__faq-question:hover {
  background-color: rgba(0, 0, 0, 0.3); /* Slightly darker on hover */
}

.page-faq__light-bg .page-faq__faq-question:hover {
  background-color: #d0d0d0;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-faq__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1.05em;
  color: #f0f0f0; /* Light text for answers in dark sections */
}

.page-faq__light-bg .page-faq__faq-answer {
  color: #444444; /* Darker text for answers in light sections */
}

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

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

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

/* Details tag specific styles to hide default marker */
.page-faq__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-faq__faq-item summary {
  list-style: none;
}

.page-faq__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom color for primary button (Register/Login) */
  color: #FFFF00; /* Custom font color for primary button */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  margin: 10px;
}

.page-faq__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  display: inline-block;
  background-color: #ffffff; /* Auxiliary color for secondary button */
  color: #017439; /* Primary color for secondary button text */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid #017439;
  cursor: pointer;
  margin: 10px;
}

.page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-faq__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-faq__hero-title {
    font-size: 2.2em;
  }
  .page-faq__hero-description {
    font-size: 1.1em;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__sub-title {
    font-size: 1.3em;
  }
  .page-faq__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-faq__faq-answer {
    font-size: 1em;
    padding: 10px 20px 20px;
  }
  .page-faq__btn-primary, .page-faq__btn-secondary {
    font-size: 1em;
    padding: 12px 25px;
    margin: 8px;
  }

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

  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .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;
  }
  
  .page-faq__cta-button,
  .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-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;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__section-title {
    font-size: 1.5em;
  }
  .page-faq__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-faq__btn-primary, .page-faq__btn-secondary {
    width: 100%;
    margin: 5px 0;
  }
}