/* style/faq.css */

/* Variables from custom palette */
:root {
  --page-faq-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-faq-card-bg: #11271B;
  --page-faq-background: #08160F;
  --page-faq-text-main: #F2FFF6;
  --page-faq-text-secondary: #A7D9B8;
  --page-faq-border: #2E7A4E;
  --page-faq-glow: #57E38D;
  --page-faq-gold: #F2C14E;
  --page-faq-divider: #1E3A2A;
  --page-faq-deep-green: #0A4B2C;
  --page-faq-primary-color: #11A84E;
  --page-faq-secondary-color: #22C768;
}

.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-faq-text-main); /* Light text on dark body background */
  background-color: var(--page-faq-background); /* Body background from custom palette */
}

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

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--page-faq-deep-green);
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 600px; /* Limit hero image height */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-faq__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--page-faq-text-main);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-faq__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--page-faq-text-secondary);
  margin-bottom: 30px;
}

.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: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-faq__btn-primary {
  background: var(--page-faq-button-gradient);
  color: var(--page-faq-text-main);
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: var(--page-faq-primary-color);
  border: 2px solid var(--page-faq-primary-color);
}

.page-faq__btn-secondary:hover {
  background-color: var(--page-faq-primary-color);
  color: var(--page-faq-text-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--page-faq-text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-faq__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--page-faq-gold);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-faq__text-block {
  font-size: 1rem;
  color: var(--page-faq-text-secondary);
  margin-bottom: 20px;
}

.page-faq__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-faq__numbered-list {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-faq__list-item {
  font-size: 1rem;
  color: var(--page-faq-text-secondary);
  margin-bottom: 10px;
  padding-left: 10px;
  position: relative;
}

.page-faq__list-item::before {
  content: '✔';
  color: var(--page-faq-primary-color);
  position: absolute;
  left: -15px;
}

.page-faq__numbered-list .page-faq__list-item::before {
  content: none; /* Remove custom bullet for numbered list */
}

.page-faq__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  display: block;
}

.page-faq__image--center {
  margin-left: auto;
  margin-right: auto;
}

.page-faq__overview-section,
.page-faq__financial-section,
.page-faq__games-section,
.page-faq__conclusion-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for these sections */
  color: #333333; /* Dark text for light background */
}

.page-faq__overview-section .page-faq__section-title,
.page-faq__financial-section .page-faq__section-title,
.page-faq__games-section .page-faq__section-title,
.page-faq__conclusion-section .page-faq__section-title {
  color: var(--page-faq-deep-green); /* Darker green for titles on light background */
}

.page-faq__overview-section .page-faq__text-block,
.page-faq__financial-section .page-faq__text-block,
.page-faq__games-section .page-faq__text-block,
.page-faq__conclusion-section .page-faq__text-block,
.page-faq__overview-section .page-faq__list-item,
.page-faq__financial-section .page-faq__list-item,
.page-faq__games-section .page-faq__list-item,
.page-faq__conclusion-section .page-faq__list-item {
  color: #555555; /* Slightly lighter dark text for readability */
}

.page-faq__guide-section,
.page-faq__security-section,
.page-faq__promotions-section,
.page-faq__support-section,
.page-faq__responsible-gambling-section {
  padding: 60px 0;
  background-color: var(--page-faq-card-bg); /* Dark background for these sections */
  color: var(--page-faq-text-main); /* Light text for dark background */
}

/* FAQ Accordion Styling */
.page-faq__faq-item {
  background-color: var(--page-faq-deep-green);
  border: 1px solid var(--page-faq-border);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--page-faq-text-main);
}

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

.page-faq__faq-question:hover {
  background-color: var(--page-faq-primary-color);
}

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

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 10px;
  color: var(--page-faq-gold);
}

.page-faq__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: var(--page-faq-text-secondary);
}

/* Details element specific styling */
.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: var(--page-faq-primary-color);
}

.page-faq__btn--center {
  margin: 30px auto 0 auto;
  display: block;
  width: fit-content;
}

.page-faq__cta-buttons--bottom {
  margin-top: 40px;
}

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

  .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__hero-section {
    min-height: 400px;
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-faq__hero-content {
    padding: 15px;
    max-width: 90%;
  }

  .page-faq__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-faq__subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

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

  .page-faq__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-faq__sub-title {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-faq__overview-section,
  .page-faq__guide-section,
  .page-faq__financial-section,
  .page-faq__security-section,
  .page-faq__games-section,
  .page-faq__promotions-section,
  .page-faq__support-section,
  .page-faq__responsible-gambling-section,
  .page-faq__conclusion-section {
    padding: 40px 0;
  }

  /* Responsive images */
  .page-faq img {
    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__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

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