/* style/faq.css */

/* Root variables for colors */
:root {
  --page-faq-bg-color: #08160F;
  --page-faq-card-bg: #11271B;
  --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: #0A4B2C;
  --page-faq-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

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

.page-faq__hero-section {
  position: relative;
  padding: 60px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--page-faq-text-main);
  background-color: var(--page-faq-dark-bg, var(--page-faq-bg-color)); /* Use dark bg for hero */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px; /* Limit height for hero image */
  object-fit: cover;
  margin-bottom: 30px;
  border-radius: 10px;
}

.page-faq__hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-faq__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--page-faq-gold-color);
  line-height: 1.2;
}

.page-faq__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--page-faq-text-secondary);
}

.page-faq__cta-button {
  display: inline-block;
  background: var(--page-faq-button-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-faq__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

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

.page-faq__general-questions.page-faq__light-bg {
  background-color: #ffffff; /* Explicitly light background */
  color: #333333;
}

.page-faq__account-registration.page-faq__dark-bg,
.page-faq__games-betting.page-faq__dark-bg,
.page-faq__cta-bottom.page-faq__dark-bg {
  background-color: var(--page-faq-card-bg); /* Darker background for sections */
  color: var(--page-faq-text-main);
}

.page-faq__deposit-withdrawal.page-faq__light-bg,
.page-faq__security-support.page-faq__light-bg {
  background-color: #f8f8f8; /* Light background for sections */
  color: #333333;
}

.page-faq__section-title {
  font-size: 2.2em;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-faq-gold-color);
}

.page-faq__general-questions.page-faq__light-bg .page-faq__section-title,
.page-faq__deposit-withdrawal.page-faq__light-bg .page-faq__section-title,
.page-faq__security-support.page-faq__light-bg .page-faq__section-title {
  color: var(--page-faq-deep-green); /* Darker title for light backgrounds */
}

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

.page-faq__general-questions.page-faq__light-bg .page-faq__section-description,
.page-faq__deposit-withdrawal.page-faq__light-bg .page-faq__section-description,
.page-faq__security-support.page-faq__light-bg .page-faq__section-description {
  color: #555555; /* Darker description for light backgrounds */
}

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

.page-faq__faq-item {
  background-color: var(--page-faq-card-bg);
  border: 1px solid var(--page-faq-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Light background sections FAQ item overrides */
.page-faq__general-questions.page-faq__light-bg .page-faq__faq-item,
.page-faq__deposit-withdrawal.page-faq__light-bg .page-faq__faq-item,
.page-faq__security-support.page-faq__light-bg .page-faq__faq-item {
  background-color: #ffffff;
  border-color: #e0e0e0;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  color: var(--page-faq-text-main);
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker for details/summary */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-faq__general-questions.page-faq__light-bg .page-faq__faq-question,
.page-faq__deposit-withdrawal.page-faq__light-bg .page-faq__faq-question,
.page-faq__security-support.page-faq__light-bg .page-faq__faq-question {
  color: #333333;
}

.page-faq__faq-question:hover {
  background-color: rgba(var(--page-faq-glow-color-rgb, 87, 227, 141), 0.1);
}

.page-faq__general-questions.page-faq__light-bg .page-faq__faq-question:hover,
.page-faq__deposit-withdrawal.page-faq__light-bg .page-faq__faq-question:hover,
.page-faq__security-support.page-faq__light-question:hover {
  background-color: #f0f0f0;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--page-faq-glow-color);
  margin-left: 15px;
}

.page-faq__general-questions.page-faq__light-bg .page-faq__faq-toggle,
.page-faq__deposit-withdrawal.page-faq__light-bg .page-faq__faq-toggle,
.page-faq__security-support.page-faq__light-bg .page-faq__faq-toggle {
  color: var(--page-faq-deep-green);
}

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

.page-faq__general-questions.page-faq__light-bg .page-faq__faq-answer,
.page-faq__deposit-withdrawal.page-faq__light-bg .page-faq__faq-answer,
.page-faq__security-support.page-faq__light-bg .page-faq__faq-answer {
  color: #666666;
}

.page-faq__image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-faq__cta-bottom {
  text-align: center;
  padding: 80px 0;
}

.page-faq__cta-bottom .page-faq__section-title {
  color: var(--page-faq-gold-color);
}

.page-faq__cta-bottom .page-faq__section-description {
  margin-bottom: 50px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-section {
    padding: 40px 0;
  }
  .page-faq__hero-image {
    max-height: 500px;
  }
  .page-faq__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }
  .page-faq__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-faq__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-faq__hero-section {
    padding: 20px 0;
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }
  .page-faq__hero-image {
    max-height: 300px;
    margin-bottom: 20px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-faq__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-faq__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__section {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-faq__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-faq__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }
  .page-faq__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 30px auto 0 auto;
  }

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

  .page-faq__cta-bottom {
    padding: 60px 0;
  }
}