/* style/faq.css */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background */
}

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

/* Hero Section */
.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: #017439; /* Brand primary color */
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  max-width: 800px;
}

.page-faq__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 900px;
}

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

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

.page-faq__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background-color: #FFFFFF;
  color: #017439; /* Brand primary color */
  border: 2px solid #017439;
}

.page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-faq__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 30px;
  border-radius: 10px;
  object-fit: cover; /* Cover for desktop */
}

/* Content Section */
.page-faq__content-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333;
}

.page-faq__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #017439;
}

.page-faq__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Accordion (FAQ) Styles */
.page-faq__accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  color: #333333;
}

.page-faq__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  list-style: none; /* Hide default marker */
  color: #017439;
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-faq__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
  transition: transform 0.3s ease;
}

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

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

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

.page-faq__faq-answer ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
}

.page-faq__faq-answer li {
  margin-bottom: 8px;
}

.page-faq__inline-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 15px;
  background-color: #017439;
  color: #FFFFFF;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
}

.page-faq__inline-btn:hover {
  background-color: #005a2e;
}

/* CTA Bottom Section */
.page-faq__cta-bottom {
  padding: 60px 0;
  background-color: #017439;
  color: #FFFFFF;
  text-align: center;
}

.page-faq__cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-faq__cta-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Global image responsiveness */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-faq__container {
    padding: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-faq__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-faq__main-title {
    font-size: 2rem;
    max-width: 100%;
  }

  .page-faq__hero-description {
    font-size: 1rem;
    max-width: 100%;
  }

  .page-faq__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

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

  .page-faq__hero-image {
    object-fit: contain; /* Contain for mobile */
    aspect-ratio: unset;
    max-height: none;
    margin-top: 20px;
  }

  /* Content Section */
  .page-faq__content-section {
    padding: 40px 0;
  }

  .page-faq__section-title {
    font-size: 2rem;
    padding: 0 15px;
  }

  .page-faq__section-description {
    font-size: 1rem;
    padding: 0 15px;
    margin-bottom: 30px;
  }

  /* Accordion */
  .page-faq__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

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

  .page-faq__inline-btn {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  /* CTA Bottom Section */
  .page-faq__cta-bottom {
    padding: 40px 0;
  }

  .page-faq__cta-title {
    font-size: 1.8rem;
    padding: 0 15px;
  }

  .page-faq__cta-description {
    font-size: 1rem;
    padding: 0 15px;
    margin-bottom: 20px;
  }

  /* General image and container rules for mobile */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* No game-grid, winner-list specific rules needed for FAQ page */