/* General styles for the FAQ page */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #f8f8f8; /* Slightly off-white background */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 40px;
  background-color: #017439; /* Brand primary color for hero background */
}

.page-faq__hero-image {
  width: 100%;
  height: 400px; /* Fixed height for hero image on desktop */
  object-fit: cover;
  display: block;
  opacity: 0.7; /* Slightly dim the image for text readability */
}

.page-faq__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  width: 90%;
  z-index: 2;
  padding: 20px;
  box-sizing: border-box;
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-faq__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-faq__hero-button {
  display: inline-block;
  background: #C30808; /* Red for CTA */
  color: #FFFF00; /* Yellow text for CTA */
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  border: 2px solid #C30808;
}

.page-faq__hero-button:hover {
  background: #a30606;
  border-color: #a30606;
}

/* Content Section */
.page-faq__content-section {
  padding: 40px 0;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

.page-faq__section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #017439; /* Brand primary color for section titles */
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

/* FAQ List */
.page-faq__faq-list {
  margin-top: 30px;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-weight: 600;
  color: #333333;
}
details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
  display: none;
}
details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: #f5f5f5;
}
.page-faq__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.5;
  text-align: left;
  margin-right: 15px;
}
.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #017439; /* Brand primary color for toggle icon */
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
  font-size: 1rem;
}
.page-faq__faq-answer p {
  margin-bottom: 10px;
}
.page-faq__faq-answer ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 10px;
}
.page-faq__faq-answer li {
  margin-bottom: 5px;
}

/* Buttons within FAQ answers */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-right: 10px;
  margin-top: 10px;
  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: #017439; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-faq__btn-primary:hover {
  background: #005a2d;
  border-color: #005a2d;
}

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

.page-faq__btn-secondary:hover {
  background: #e0e0e0;
  color: #005a2d;
  border-color: #005a2d;
}

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

.page-faq__category-link {
  display: inline-block;
  background-color: #f0f0f0;
  color: #017439;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-faq__category-link:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Contact CTA Section */
.page-faq__contact-cta {
  background-color: #017439; /* Brand primary color */
  padding: 60px 0;
  text-align: center;
  color: #ffffff;
  border-radius: 8px;
  margin-bottom: 40px;
}

.page-faq__contact-cta .page-faq__section-title {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.3);
}

.page-faq__contact-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-faq__cta-buttons .page-faq__btn-primary {
  background: #C30808; /* Red for CTA */
  color: #FFFF00; /* Yellow text for CTA */
  border-color: #C30808;
}
.page-faq__cta-buttons .page-faq__btn-primary:hover {
  background: #a30606;
  border-color: #a30606;
}

.page-faq__cta-buttons .page-faq__btn-secondary {
  background: #ffffff;
  color: #017439;
  border-color: #ffffff;
}
.page-faq__cta-buttons .page-faq__btn-secondary:hover {
  background: #f0f0f0;
  color: #005a2d;
  border-color: #f0f0f0;
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__hero-image {
    height: 350px;
  }
  .page-faq__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-faq__section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-image {
    height: 300px;
  }
  .page-faq__hero-content {
    padding: 15px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 10px;
  }
  .page-faq__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-faq__hero-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .page-faq__container {
    padding: 15px;
  }
  .page-faq__section-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  /* FAQ items */
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-faq__faq-qtext {
    font-size: 1rem;
    margin-right: 10px;
  }
  .page-faq__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.95rem;
  }

  /* Buttons */
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    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;
  }
  .page-faq__game-categories {
    flex-direction: column;
    gap: 8px;
  }
  .page-faq__category-link {
    width: 100%;
    text-align: center;
  }

  /* Image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__hero-image {
    height: 200px; /* Adjust hero image height for smaller screens */
  }

  /* Button containers */
  .page-faq__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }
  .page-faq__cta-buttons .page-faq__btn-primary,
  .page-faq__cta-buttons .page-faq__btn-secondary {
    margin: 0;
  }

  .page-faq__contact-cta {
    padding: 40px 0;
  }
  .page-faq__contact-description {
    font-size: 1rem;
    padding: 0 15px;
  }
}

/* Ensure no filter on images */
.page-faq img {
  filter: none !important;
}