/* style/faq.css */

/* Custom Colors */
: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: #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;
}

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

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  overflow: hidden;
  box-sizing: border-box;
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: var(--page-faq-text-main);
  padding: 20px;
}

.page-faq__main-title {
  color: var(--page-faq-gold);
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

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

.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: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

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

/* Section Titles */
.page-faq__section-title {
  color: var(--page-faq-gold);
  font-size: clamp(1.8em, 3vw, 2.5em);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  font-weight: 700;
}

/* General Text Blocks */
.page-faq__text-block {
  font-size: 1.05em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--page-faq-text-main);
  text-align: justify;
}

.page-faq__text-block a {
  color: var(--page-faq-secondary-color);
  text-decoration: underline;
}

/* FAQ List Section */
.page-faq__faq-list-section,
.page-faq__account-section,
.page-faq__transactions-section,
.page-faq__games-section,
.page-faq__security-section,
.page-faq__promotions-section,
.page-faq__contact-section,
.page-faq__conclusion-section {
  padding: 40px 0;
  background-color: var(--page-faq-background);
}

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

.page-faq__faq-item:hover {
  border-color: var(--page-faq-secondary-color);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--page-faq-deep-green);
  border-bottom: 1px solid var(--page-faq-divider);
  color: var(--page-faq-text-main);
  transition: background-color 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: var(--page-faq-primary-color);
  color: #ffffff;
}

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

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: inherit;
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--page-faq-text-secondary);
  background-color: var(--page-faq-card-bg);
}

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

.page-faq__faq-answer a {
  color: var(--page-faq-secondary-color);
  text-decoration: underline;
}

/* Details element specific styles for summary marker */
.page-faq__faq-item summary {
  list-style: none;
}

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

/* Image styles */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Ensure content area images are not too small */
.page-faq__introduction-section img,
.page-faq__content-area img {
  min-width: 200px;
  min-height: 200px;
}

/* Link styles */
.page-faq__link {
  color: var(--page-faq-secondary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-faq__link:hover {
  color: var(--page-faq-gold);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 15px;
  }
  .page-faq__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-faq__description {
    font-size: 1em;
  }
  .page-faq__section-title {
    font-size: clamp(1.5em, 4vw, 2em);
  }
  .page-faq__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }
  .page-faq__faq-answer {
    padding: 18px 20px;
  }
}

@media (max-width: 768px) {
  .page-faq__container {
    padding: 0 15px !important;
  }

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

  /* All image/video/button containers */
  .page-faq__hero-section,
  .page-faq__introduction-section,
  .page-faq__faq-list-section,
  .page-faq__account-section,
  .page-faq__transactions-section,
  .page-faq__games-section,
  .page-faq__security-section,
  .page-faq__promotions-section,
  .page-faq__contact-section,
  .page-faq__conclusion-section,
  .page-faq__container,
  .page-faq__hero-image-wrapper,
  .page-faq__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

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

  .page-faq__description {
    font-size: 0.95em;
  }

  .page-faq__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-faq__section-title {
    font-size: clamp(1.4em, 6vw, 2em);
    padding-top: 20px;
    margin-bottom: 25px;
  }

  .page-faq__text-block {
    font-size: 0.95em;
  }

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

  .page-faq__faq-answer {
    padding: 15px 18px;
    font-size: 0.95em;
  }
}

/* No filter on images */
.page-faq img {
  filter: none; /* Ensure no CSS filter is applied to change image color */
}

/* Restore specific filter for hero image for readability */
.page-faq__hero-image {
  filter: brightness(0.4);
}