/* style/faq.css */

:root {
  --niceph-primary: #F2C14E;
  --niceph-secondary: #FFD36B;
  --niceph-card-bg: #111111;
  --niceph-bg: #0A0A0A;
  --niceph-text-main: #FFF6D6;
  --niceph-border: #3A2A12;
  --niceph-glow: #FFD36B;
  --niceph-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-faq {
  font-family: Arial, sans-serif;
  color: var(--niceph-text-main); /* Main text color for the page */
  background-color: var(--niceph-bg); /* Page background from custom colors */
  line-height: 1.6;
}

.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Desktop padding-top */
  padding-bottom: 40px;
  background: linear-gradient(135deg, var(--niceph-primary), var(--niceph-secondary));
  color: #000000; /* Ensure contrast for the gradient background */
  position: relative;
  overflow: hidden;
}

.page-faq__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 2;
}

.page-faq__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #000000; /* Ensure contrast on gradient */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-faq__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #333333; /* Ensure contrast on gradient */
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
  margin-top: 30px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--niceph-border);
}

.page-faq__section:last-of-type {
  border-bottom: none;
}

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

.page-faq__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--niceph-primary);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

.page-faq__faq-item {
  background-color: var(--niceph-card-bg);
  border: 1px solid var(--niceph-border);
  border-radius: 8px;
  overflow: hidden;
  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 25px;
  cursor: pointer;
  background-color: var(--niceph-card-bg);
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-question-title {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--niceph-text-main);
  margin: 0;
}

.page-faq__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--niceph-primary);
  transition: transform 0.3s ease;
  line-height: 1;
}

.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;
  color: var(--niceph-text-main);
  background-color: rgba(255, 255, 255, 0.03);
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Important to override initial 0 */
  padding: 15px 25px 20px;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  color: var(--niceph-text-main);
}

.page-faq__faq-answer a {
  color: var(--niceph-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-faq__faq-answer a:hover {
  color: var(--niceph-primary);
  text-decoration: underline;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 15px;
  border: none;
}

.page-faq__btn-primary {
  background: var(--niceph-button-gradient);
  color: #ffffff; /* White text for dark gradient */
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #E0B45C 0%, #B88210 100%);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

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

.page-faq__btn-secondary:hover {
  background: var(--niceph-primary);
  color: #000000; /* Black text for light background */
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-faq__image-wrapper {
  margin-top: 50px;
  text-align: center;
}

.page-faq__content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

.page-faq__cta-bottom {
  padding: 80px 0;
  text-align: center;
  background: var(--niceph-card-bg);
}

.page-faq__cta-container {
  max-width: 900px;
}

.page-faq__cta-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--niceph-text-main);
}

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

/* Desktop layout for sections with image and text */
@media (min-width: 769px) {
  .page-faq__getting-started,
  .page-faq__games-betting,
  .page-faq__payments-bonuses,
  .page-faq__security-responsible-gaming,
  .page-faq__support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }

  .page-faq__getting-started .page-faq__container,
  .page-faq__payments-bonuses .page-faq__container,
  .page-faq__support .page-faq__container {
    order: 1;
    flex: 1;
  }

  .page-faq__getting-started .page-faq__image-wrapper,
  .page-faq__payments-bonuses .page-faq__image-wrapper,
  .page-faq__support .page-faq__image-wrapper {
    order: 2;
    flex: 1;
  }

  .page-faq__games-betting .page-faq__container,
  .page-faq__security-responsible-gaming .page-faq__container {
    order: 2;
    flex: 1;
  }

  .page-faq__games-betting .page-faq__image-wrapper,
  .page-faq__security-responsible-gaming .page-faq__image-wrapper {
    order: 1;
    flex: 1;
  }

  .page-faq__hero-image-wrapper {
    margin-top: 50px;
    max-width: 1200px;
  }
}

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

  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
    padding-bottom: 30px;
  }

  .page-faq__main-title {
    font-size: 2.2em;
  }

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

  .page-faq__section {
    padding: 40px 0;
  }

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

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

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

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

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

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

  .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;
  }

  .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;
    flex-direction: column;
  }

  .page-faq__btn-secondary {
    margin-left: 0;
  }

  .page-faq__image-wrapper {
    margin-top: 30px;
  }
}