/* style/faq.css */
/* Body background is #0a0a0a (dark), so text color should be light (#ffffff) */

.page-faq {
  color: #ffffff; /* Default text color for the page content */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body handles the main background */
}

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

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for text readability */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-faq__main-title {
  color: #ffffff;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.page-faq__description {
  color: #f0f0f0;
  margin-bottom: 30px;
  font-size: 1.1em;
}

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

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

.page-faq__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-faq__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-faq__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-faq__btn-primary--large {
  padding: 15px 30px;
  font-size: 1.1em;
}

.page-faq__faq-section {
  padding: 60px 20px;
}

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

.page-faq__section-title {
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.2em;
}

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

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

.page-faq__faq-item {
  background: rgba(255, 255, 255, 0.08); /* Light background for contrast */
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-faq__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  list-style: none;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-faq__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Allow click on summary, not just text */
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
  pointer-events: none; /* Allow click on summary, not just toggle */
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  content: '−'; /* Changed by JS */
}

.page-faq__faq-answer {
  padding: 20px;
  padding-top: 0;
  color: #e0e0e0;
  font-size: 0.95em;
}

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

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

.page-faq__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-faq__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.page-faq__game-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-faq__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__game-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 15px auto;
  border-radius: 5px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-faq__game-title {
  color: #26A9E0;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-faq__game-card p {
  color: #f0f0f0;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.page-faq__btn-text {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-faq__btn-text:hover {
  color: #1e87c0;
  text-decoration: underline;
}

.page-faq__cta-bottom-section {
  padding: 60px 20px;
  text-align: center;
}

.page-faq__cta-bottom-section .page-faq__container {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 50px;
  border-radius: 10px;
}

.page-faq__cta-title {
  color: #ffffff;
  font-size: 2.2em;
  margin-bottom: 20px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 30px;
  }
  .page-faq__main-title {
    font-size: 2.5em;
  }
  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }
  .page-faq__hero-content {
    padding: 20px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8em, 5vw, 2.2em); /* Use clamp for H1 */
  }
  .page-faq__description {
    font-size: 1em;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-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__faq-section,
  .page-faq__cta-bottom-section {
    padding: 40px 15px;
  }

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

  .page-faq__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }

  .page-faq__faq-answer {
    padding: 15px;
    padding-top: 0;
  }

  .page-faq__game-categories {
    grid-template-columns: 1fr;
  }

  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__section-description,
  .page-faq__cta-description {
    font-size: 0.95em;
  }
  
  /* Images responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min size on mobile too */
    min-height: 200px !important;
  }

  /* Image containers responsive */
  .page-faq__hero-image-wrapper,
  .page-faq__game-card,
  .page-faq__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-content {
    padding: 15px;
  }
  .page-faq__main-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }
  .page-faq__cta-bottom-section .page-faq__container {
    padding: 30px 20px;
  }
}