/* style/faq.css */

/* Body background color is handled by shared.css var(--background-color) */
.page-faq {
  color: #F2FFF6; /* Main text color for dark background */
  background-color: #08160F; /* Ensure consistent background for the page content area */
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-faq__hero-image-wrapper img {
  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;
  padding: 20px;
  box-sizing: border-box;
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #A7D9B8;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-faq__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-faq__btn-secondary {
  background: #11271B;
  color: #2AD16F;
  border: 2px solid #2AD16F;
  box-shadow: 0 4px 10px rgba(17, 168, 78, 0.2);
}

.page-faq__btn-secondary:hover {
  background: #2AD16F;
  color: #F2FFF6;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(34, 199, 104, 0.4);
}

.page-faq__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #0A4B2C; /* Deep Green for content section background */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  color: #F2FFF6; /* Main text color */
  box-sizing: border-box;
}

.page-faq__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #F2C14E; /* Gold for main section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-faq__intro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #A7D9B8; /* Secondary text color */
}

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

.page-faq__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  border: 1px solid #2E7A4E; /* Border color */
  overflow: hidden;
  transition: all 0.3s ease;
  color: #F2FFF6; /* Main text color */
}

.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 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.15rem;
  color: #F2FFF6;
  background-color: #11271B;
  list-style: none;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

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

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #2AD16F;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(180deg);
}

.page-faq__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: #A7D9B8;
}

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

.page-faq__faq-answer a {
  color: #57E38D;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-faq__faq-answer a:hover {
  color: #F2C14E;
}

.page-faq__game-list {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
  margin-bottom: 15px;
}

.page-faq__game-list li {
  margin-bottom: 8px;
  padding-left: 25px;
  position: relative;
  color: #F2FFF6;
}

.page-faq__game-list li::before {
  content: '•';
  color: #2AD16F;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  position: absolute;
  left: 0;
}

.page-faq__game-list li a {
  color: #A7D9B8;
  text-decoration: none;
}

.page-faq__game-list li a:hover {
  color: #57E38D;
  text-decoration: underline;
}

.page-faq__image {
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-faq__image--full-width {
  width: 100%;
}

.page-faq__cta-section {
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
  margin-top: 50px;
  border: 1px solid #2E7A4E;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: 700;
}

.page-faq__cta-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #A7D9B8;
  max-width: 700px;
  margin: 0 auto 30px auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 15px 40px 15px;
  }

  .page-faq__hero-content {
    padding: 15px;
  }

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

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

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    margin: 0 auto;
    display: block;
    text-align: center;
  }

  .page-faq__content-area {
    padding: 40px 15px;
    border-radius: 0;
  }

  .page-faq__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-faq__intro-text {
    font-size: 0.95rem;
    margin-bottom: 40px;
  }

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

  .page-faq__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
  }

  .page-faq__cta-section {
    padding: 30px 20px;
    margin-top: 40px;
  }

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

  .page-faq__cta-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__content-area,
  .page-faq__hero-section,
  .page-faq__hero-content,
  .page-faq__faq-list,
  .page-faq__faq-item,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Padding for overall content area handled by .page-faq__content-area, .page-faq__hero-section */
    /* Individual elements like buttons and images have internal padding/margin */
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8rem;
  }

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