/* style/faq.css */

/* Custom Colors */
:root {
  --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-btn-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); /* Main text color for the page */
  background-color: var(--page-faq-background); /* Overall page background */
}

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

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

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

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding: 30px 0;
  margin-top: -80px; /* Pull content up slightly over the image for visual flow */
  background: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--page-faq-border);
}

.page-faq__main-title {
  font-size: clamp(2rem, 4vw, 3rem); /* Responsive font size */
  font-weight: 700;
  color: var(--page-faq-text-main);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

.page-faq__description {
  font-size: 1.1rem;
  color: var(--page-faq-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-faq__btn-primary {
  background: var(--page-faq-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
  transform: translateY(-2px);
}

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

.page-faq__btn-secondary:hover {
  background-color: var(--page-faq-glow);
  color: var(--page-faq-background);
  transform: translateY(-2px);
}

.page-faq__btn-link {
  color: var(--page-faq-gold);
  border: none;
  background: none;
  padding: 0;
  text-decoration: underline;
  font-weight: normal;
}

.page-faq__btn-link:hover {
  color: var(--page-faq-glow);
}

/* General Section Styling */
.page-faq__section {
  padding: 80px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-faq__container {
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--page-faq-text-main);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__section-description {
  font-size: 1rem;
  color: var(--page-faq-text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ List Styling */
.page-faq__faq-list-section {
  background-color: var(--page-faq-background);
}

.page-faq__faq-items-wrapper {
  text-align: left;
  border-top: 1px solid var(--page-faq-divider);
}

.page-faq__faq-item {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--page-faq-divider);
}

.page-faq__faq-item details {
  width: 100%;
}

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

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

.page-faq__faq-question::-webkit-details-marker {
  display: none;
}

.page-faq__faq-question::marker {
  display: none;
}

.page-faq__faq-qtext {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--page-faq-gold);
  margin-left: 15px;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  color: var(--page-faq-glow);
}

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

.page-faq__faq-answer p {
  margin-bottom: 15px;
}

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

.page-faq__image-inline {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Contact CTA */
.page-faq__contact-cta {
  background-color: var(--page-faq-card-bg);
  border-radius: 15px;
  padding: 50px 30px;
  margin-top: 60px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--page-faq-border);
}

.page-faq__contact-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--page-faq-text-main);
  margin-bottom: 15px;
}

.page-faq__contact-description {
  font-size: 1rem;
  color: var(--page-faq-text-secondary);
  margin-bottom: 30px;
}

/* Responsible Gambling CTA */
.page-faq__responsible-gambling-cta {
  background-color: var(--page-faq-deep-green);
  padding: 60px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    margin-top: -60px;
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-faq__hero-content {
    margin-top: -40px;
    padding: 20px;
    border-radius: 10px;
  }

  .page-faq__main-title {
    font-size: 2rem; /* Adjusted for mobile */
    margin-bottom: 10px;
  }

  .page-faq__description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    box-sizing: border-box !important;
  }

  .page-faq__section {
    padding: 50px 15px;
  }

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

  .page-faq__section-description {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

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

  .page-faq__faq-answer {
    font-size: 0.9rem;
    padding-bottom: 15px;
  }

  .page-faq__image-inline {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-faq__faq-list-section,
  .page-faq__contact-cta,
  .page-faq__responsible-gambling-cta,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px;
    padding-right: 0px;
  }

  .page-faq__contact-cta {
    padding: 30px 20px;
    margin-top: 40px;
  }

  .page-faq__contact-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-content {
    margin-top: -30px;
    padding: 15px;
  }

  .page-faq__main-title {
    font-size: 1.7rem;
  }

  .page-faq__section-title {
    font-size: 1.6rem;
  }

  .page-faq__faq-question {
    font-size: 0.95rem;
  }

  .page-faq__faq-toggle {
    font-size: 1.2rem;
  }
}