/* style/faq.css */

/* Body background is #000000 (dark), so default text should be light */
.page-faq {
  color: #ffffff; /* Default text color for the page content */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body handles the actual background, this ensures content blocks can use their own */
}

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

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #000000; /* Dark background for hero */
  color: #ffffff;
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  max-width: 1200px; /* Example display width for hero */
  border-radius: 8px;
  object-fit: cover;
}

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

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

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

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

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

.page-faq__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-faq__introduction-section,
.page-faq__deposit-withdrawal-section,
.page-faq__games-betting-section,
.page-faq__support-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for these sections */
  color: #333333; /* Dark text for light background */
}

.page-faq__questions-section,
.page-faq__promotions-section,
.page-faq__security-safety-section,
.page-faq__conclusion-section {
  padding: 60px 0;
  background-color: #000000; /* Dark background for these sections */
  color: #ffffff; /* Light text for dark background */
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
}

.page-faq__introduction-section .page-faq__section-title,
.page-faq__deposit-withdrawal-section .page-faq__section-title,
.page-faq__games-betting-section .page-faq__section-title,
.page-faq__support-section .page-faq__section-title {
  color: #26A9E0;
}

.page-faq__questions-section .page-faq__section-title,
.page-faq__promotions-section .page-faq__section-title,
.page-faq__security-safety-section .page-faq__section-title,
.page-faq__conclusion-section .page-faq__section-title {
  color: #ffffff;
}

.page-faq__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark sections */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-faq__introduction-section .page-faq__faq-item,
.page-faq__deposit-withdrawal-section .page-faq__faq-item,
.page-faq__games-betting-section .page-faq__faq-item,
.page-faq__support-section .page-faq__faq-item {
  background-color: #f8f8f8; /* Light background for light sections */
  border: 1px solid #e0e0e0;
  color: #333333;
}

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

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

.page-faq__faq-item:hover .page-faq__faq-question {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-faq__introduction-section .page-faq__faq-item:hover .page-faq__faq-question,
.page-faq__deposit-withdrawal-section .page-faq__faq-item:hover .page-faq__faq-question,
.page-faq__games-betting-section .page-faq__faq-item:hover .page-faq__faq-question,
.page-faq__support-section .page-faq__faq-item:hover .page-faq__faq-question {
  background-color: #f0f0f0;
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.page-faq__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.7;
}

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

/* Ensure links in text blocks have good contrast */
.page-faq__text-block a {
  color: #26A9E0; /* Brand color for links */
  text-decoration: underline;
}

.page-faq__text-block a:hover {
  color: #1e87b8;
}

/* Image styling for content area */
.page-faq__content-image {
  width: 100%;
  height: auto;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin: 20px 0;
  display: block;
}

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

  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
  }

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

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

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-faq__introduction-section,
  .page-faq__questions-section,
  .page-faq__deposit-withdrawal-section,
  .page-faq__promotions-section,
  .page-faq__games-betting-section,
  .page-faq__security-safety-section,
  .page-faq__support-section,
  .page-faq__conclusion-section {
    padding: 40px 0;
  }

  .page-faq__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* Ensure all image containers are responsive */
  .page-faq__hero-image-wrapper,
  .page-faq__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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