.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for body, assuming dark background from shared.css var(--black-color) */
  background-color: transparent; /* Rely on shared.css body background */
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

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

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-faq__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__link-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

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

.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);
  border-color: #ffffff;
}

.page-faq__link-button {
  background-color: #EA7C07; /* Login color for links within FAQ answers */
  color: #ffffff;
  border: 2px solid #EA7C07;
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-faq__link-button:hover {
  background-color: #c96806;
  border-color: #c96806;
}

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

.page-faq__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-faq__general-section,
.page-faq__transaction-section,
.page-faq__promotions-section,
.page-faq__security-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 0;
}

.page-faq__account-section,
.page-faq__games-section,
.page-faq__support-section {
  background-color: #f8f8f8; /* Light background for contrast */
  color: #333333;
  padding: 60px 0;
}

.page-faq__account-section .page-faq__section-title,
.page-faq__games-section .page-faq__section-title,
.page-faq__support-section .page-faq__section-title {
  color: #333333;
}

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

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

.page-faq__dark-section .page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #f0f0f0;
}

.page-faq__dark-section .page-faq__faq-item[open] .page-faq__faq-question {
  background-color: rgba(255, 255, 255, 0.05);
}

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

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

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

.page-faq__dark-section .page-faq__faq-answer {
  color: #e0e0e0;
}

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

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

.page-faq__final-cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #f0f0f0;
  color: #333333;
}

.page-faq__final-cta-section .page-faq__section-title {
  color: #26A9E0;
}

.page-faq__final-cta-text {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-section {
    padding: 40px 20px;
  }

  .page-faq__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-faq__intro-text {
    font-size: 1em;
  }

  .page-faq__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 30px 15px;
  }

  .page-faq__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-faq__intro-text {
    font-size: 0.95em;
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__link-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.9em;
    margin: 0 auto;
  }

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

  .page-faq__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }

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

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

  /* Mobile Image/Video/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__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper,
  .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;
    overflow: hidden !important;
  }

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