/* 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 handled by shared.css */
}

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

.page-faq__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  text-align: center;
  background: linear-gradient(135deg, #26A9E0, #1a7bb0);
  color: #ffffff;
  overflow: hidden;
}

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

.page-faq__hero-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

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

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

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

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

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

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

.page-faq__content-section,
.page-faq__transaction-section,
.page-faq__games-section,
.page-faq__promo-section,
.page-faq__support-section,
.page-faq__conclusion-section {
  padding: 60px 0;
}

.page-faq__content-section,
.page-faq__games-section,
.page-faq__support-section {
  background-color: #FFFFFF; /* Light background for content */
  color: #333333;
}

.page-faq__transaction-section,
.page-faq__promo-section,
.page-faq__conclusion-section {
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
}

.page-faq__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
}

.page-faq__transaction-section .page-faq__section-title,
.page-faq__promo-section .page-faq__section-title,
.page-faq__conclusion-section .page-faq__section-title {
  color: #ffffff; /* White for titles on dark sections */
}

.page-faq__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.5;
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.page-faq__transaction-section .page-faq__faq-item,
.page-faq__promo-section .page-faq__faq-item,
.page-faq__conclusion-section .page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark sections */
  color: #ffffff;
}

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

.page-faq__transaction-section .page-faq__faq-question,
.page-faq__promo-section .page-faq__faq-question,
.page-faq__conclusion-section .page-faq__faq-question {
  color: #ffffff;
}

.page-faq__faq-question:hover {
  background-color: #e0e0e0;
}

.page-faq__transaction-section .page-faq__faq-question:hover,
.page-faq__promo-section .page-faq__faq-question:hover,
.page-faq__conclusion-section .page-faq__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-faq__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: inherit;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1.05em;
  color: #555555;
}

.page-faq__transaction-section .page-faq__faq-answer,
.page-faq__promo-section .page-faq__faq-answer,
.page-faq__conclusion-section .page-faq__faq-answer {
  color: #f0f0f0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 20px 25px;
}

/* Ensure all images in content areas are responsive and not tiny */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px; /* Minimum size for content images */
}

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

  .page-faq__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-faq__section-intro {
    font-size: 1em;
  }

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

  .page-faq__faq-question h3 {
    font-size: 1.1em;
  }

  .page-faq__faq-answer {
    padding: 0 20px;
    font-size: 0.95em;
  }

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px 20px 20px;
  }

  .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

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

  /* Ensure content areas do not overflow */
  .page-faq__content-section,
  .page-faq__transaction-section,
  .page-faq__games-section,
  .page-faq__promo-section,
  .page-faq__support-section,
  .page-faq__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* Content area images should not be smaller than 200px */
  .page-faq__content-area img,
  .page-faq__faq-answer img {
    width: auto; /* Allow image to scale down */
    max-width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
}