/* style/faq.css */
/* Body padding-top handled by shared.css */

.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Main text color */
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding */
  overflow: hidden;
  background-color: #08160F;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-faq__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(17, 39, 27, 0.7); /* Card BG with transparency */
  border-radius: 10px;
}

.page-faq__main-title {
  color: #F2FFF6;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  font-size: clamp(28px, 4vw, 48px); /* H1 font size constraint */
}

.page-faq__description {
  color: #A7D9B8; /* Secondary text color */
  font-size: 18px;
  margin-bottom: 30px;
}

.page-faq__section-title {
  color: #F2FFF6;
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #08160F; /* Ensure background consistency */
  color: #F2FFF6;
}

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

.page-faq__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  color: #F2FFF6;
  font-weight: bold;
  font-size: 20px;
  background-color: #1E3A2A; /* Divider color for question background */
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green on hover */
}

.page-faq__faq-toggle {
  font-size: 24px;
  line-height: 1;
  width: 24px;
  text-align: center;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  content: '−';
}

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

.page-faq__faq-item summary {
  list-style: none;
}

.page-faq__faq-answer {
  padding: 20px 30px;
  color: #A7D9B8; /* Secondary text color */
  font-size: 16px;
  line-height: 1.8;
  border-top: 1px solid #2E7A4E; /* Border color */
}

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

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

.page-faq__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.page-faq__game-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.page-faq__btn-game {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-faq__btn-game:hover {
  background-color: #13994A;
  transform: translateY(-2px);
}

.page-faq__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  transition: opacity 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: #57E38D; /* Glow color for secondary button text */
  border: 2px solid #57E38D; /* Glow color for border */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  margin-top: 15px;
}

.page-faq__btn-secondary:hover {
  background-color: #57E38D;
  color: #11271B;
  transform: translateY(-2px);
}

.page-faq__cta-section {
  position: relative;
  text-align: center;
  padding: 80px 20px;
  background-color: #08160F;
  overflow: hidden;
}

.page-faq__cta-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6);
}

.page-faq__cta-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 800px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.page-faq__cta-title {
  color: #F2FFF6;
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__cta-description {
  color: #A7D9B8;
  font-size: 18px;
  margin-bottom: 40px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    max-width: 700px;
  }
  .page-faq__main-title {
    font-size: clamp(24px, 5vw, 42px);
  }
  .page-faq__section-title {
    font-size: 32px;
  }
  .page-faq__cta-title {
    font-size: 36px;
  }
}

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

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

  .page-faq__hero-content {
    position: static;
    transform: none;
    padding: 20px;
    background: rgba(17, 39, 27, 0.9); /* More opaque background on mobile */
    margin-top: 20px;
  }

  .page-faq__hero-image {
    filter: brightness(0.5); /* Darker image when text is not overlaid */
  }

  .page-faq__main-title {
    font-size: clamp(22px, 6vw, 38px);
    margin-bottom: 10px;
  }

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

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

  .page-faq__content-area {
    padding: 30px 15px;
  }

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

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

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

  .page-faq__game-links {
    flex-direction: column;
    gap: 8px;
  }

  .page-faq__btn-game {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    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;
    margin-top: 10px;
  }

  .page-faq__cta-section {
    padding: 60px 15px;
  }

  .page-faq__cta-title {
    font-size: 30px;
  }

  .page-faq__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  /* Ensure all content containers are responsive */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__content-area,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(20px, 7vw, 34px);
  }
  .page-faq__section-title {
    font-size: 24px;
  }
  .page-faq__cta-title {
    font-size: 26px;
  }
  .page-faq__faq-question {
    font-size: 16px;
  }
  .page-faq__faq-answer {
    font-size: 14px;
  }
}