/* style/faq.css */

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

.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-faq-text-main); /* Default text color for the page */
  background-color: var(--page-faq-background-color); /* Default background for the page */
}

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

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

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-faq__hero-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  max-width: 900px;
  margin-top: 20px;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3em);
  font-weight: 700;
  color: var(--page-faq-text-main);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
  font-size: clamp(1em, 1.5vw, 1.1em);
  color: var(--page-faq-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__hero-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--page-faq-button-gradient);
  color: var(--page-faq-text-main);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
}

.page-faq__hero-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-faq__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: var(--page-faq-gold-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-faq__section-description {
  font-size: 1.1em;
  color: var(--page-faq-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-faq__introduction-section,
.page-faq__registration-section,
.page-faq__transactions-section,
.page-faq__games-products-section,
.page-faq__promotions-section,
.page-faq__support-section,
.page-faq__terms-conditions-section {
  padding: 60px 0;
}

.page-faq__dark-bg {
  background-color: var(--page-faq-background-color);
  color: var(--page-faq-text-main);
}

.page-faq__bg-color {
  background-color: var(--page-faq-card-bg);
  color: var(--page-faq-text-main);
}

.page-faq__faq-item {
  background-color: var(--page-faq-card-bg);
  border: 1px solid var(--page-faq-border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--page-faq-text-main);
  cursor: pointer;
  background-color: var(--page-faq-deep-green-color);
  border-bottom: 1px solid var(--page-faq-divider-color);
  list-style: none; /* For details/summary */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--page-faq-gold-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-faq__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--page-faq-text-secondary);
  background-color: var(--page-faq-card-bg);
  border-top: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px; /* Sufficiently large for content */
  padding: 20px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

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

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

.page-faq__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 20px 0;
  object-fit: cover;
}

.page-faq__button {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  border: none;
  cursor: pointer;
}

.page-faq__button--primary {
  background: var(--page-faq-button-gradient);
  color: var(--page-faq-text-main);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.page-faq__button--secondary {
  background-color: var(--page-faq-card-bg);
  color: var(--page-faq-gold-color);
  border: 1px solid var(--page-faq-gold-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__button--secondary:hover {
  background-color: var(--page-faq-gold-color);
  color: var(--page-faq-background-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--page-faq-deep-green-color);
  border-top: 1px solid var(--page-faq-divider-color);
}

.page-faq__cta-title {
  font-size: clamp(2em, 3.5vw, 2.8em);
  color: var(--page-faq-gold-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__cta-description {
  font-size: 1.15em;
  color: var(--page-faq-text-secondary);
  max-width: 700px;
  margin: 0 auto 40px auto;
}

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

/* --- Contrast Fixes --- */
.page-faq p, .page-faq li {
  color: var(--page-faq-text-secondary); /* Ensures good contrast on dark backgrounds */
}

.page-faq__dark-section {
  background: var(--page-faq-background-color);
  color: var(--page-faq-text-main);
}

.page-faq__text-contrast-fix {
  color: var(--page-faq-text-main) !important;
  text-shadow: none !important;
}

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

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

  .page-faq__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important;
  }

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

  .page-faq__hero-description {
    font-size: clamp(0.9em, 3.5vw, 1em);
  }

  .page-faq__section-title {
    font-size: clamp(1.6em, 6vw, 2em);
  }

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

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

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

  .page-faq__introduction-section,
  .page-faq__registration-section,
  .page-faq__transactions-section,
  .page-faq__games-products-section,
  .page-faq__promotions-section,
  .page-faq__support-section,
  .page-faq__terms-conditions-section,
  .page-faq__cta-section {
    padding: 40px 0;
  }

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__hero-image-wrapper,
  .page-faq__container,
  .page-faq__faq-item,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__button,
  .page-faq__hero-button {
    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 {
    flex-direction: column;
    gap: 15px;
  }
}