/* style/faq.css */

/* Base styles for the page-faq scope */
.page-faq {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background: #F4F7FB; /* Body background color */
  line-height: 1.6;
}

/* Hero Section */
.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, body handles header offset */
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Brand color gradient */
  color: #ffffff; /* White text for dark background */
}

.page-faq__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
  z-index: 1; /* Ensure content is above image if any overlap */
}

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

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

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Ensure it doesn't exceed common large desktop widths */
  margin-top: 20px;
  box-sizing: border-box;
}

.page-faq__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-faq__intro-section,
.page-faq__faq-list,
.page-faq__cta-section {
  padding: 40px 20px;
  text-align: center;
}

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

.page-faq__section-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 30px;
  color: #1F2D3D; /* Text Main */
}

.page-faq__section-title--light {
  color: #ffffff;
}

.page-faq__text-block {
  font-size: 1.05em;
  color: #333333;
  margin-bottom: 20px;
  text-align: left;
}

.page-faq__text-block--light {
  color: #f0f0f0;
}

.page-faq__highlight {
  font-weight: bold;
  color: #2F6BFF; /* Main brand color */
}

.page-faq__text-block--light .page-faq__highlight {
  color: #A5C4FF; /* Glow color for highlight on dark background */
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  max-width: 100%; /* Ensure button doesn't overflow */
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

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

.page-faq__btn-primary--small,
.page-faq__btn-secondary--small {
    padding: 8px 18px;
    font-size: 0.95em;
    margin-top: 15px;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* FAQ List */
.page-faq__faq-list {
  background: #F4F7FB; /* Background color for FAQ section */
}

.page-faq__faq-item {
  background: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.page-faq__faq-item details {
    border: none;
    box-shadow: none;
    margin-bottom: 0;
}

.page-faq__faq-item details summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #1F2D3D; /* Text Main */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.page-faq__faq-item details summary:hover {
    background-color: #f8f8f8;
}

.page-faq__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    color: #2F6BFF; /* Main brand color */
    line-height: 1;
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #333333;
  line-height: 1.7;
  text-align: left;
}

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

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

.page-faq__link {
    color: #2F6BFF;
    text-decoration: underline;
}

.page-faq__link:hover {
    color: #4A8BFF;
    text-decoration: none;
}

.page-faq__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 20px auto; /* Center image */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-faq__image--center {
    margin-left: auto;
    margin-right: auto;
}

.page-faq__game-links,
.page-faq__policy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

/* Call to Action Section */
.page-faq__cta-section {
  background: #2F6BFF; /* Main brand color */
  color: #ffffff;
  padding: 60px 20px;
}

.page-faq__cta-section .page-faq__text-block {
  color: #f0f0f0;
}

.page-faq__cta-section .page-faq__btn-primary {
  margin-top: 30px;
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #ffffff;
}

.page-faq__cta-section .page-faq__btn-primary:hover {
  background: #f0f0f0;
  color: #2F6BFF;
  border-color: #f0f0f0;
}

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

  .page-faq__main-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 15px !important;
    font-size: 1em !important;
    margin-bottom: 10px;
    margin-right: 0; /* Reset margin for single column layout */
  }

  .page-faq__hero-content .page-faq__btn-primary {
    margin-top: 20px;
  }

  .page-faq__section-title {
    font-size: 1.8em;
  }

  .page-faq__text-block {
    font-size: 0.95em;
  }

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

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

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

  /* Ensure all containers with images/buttons are responsive */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-image-wrapper,
  .page-faq__game-links,
  .page-faq__policy-links {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-faq__game-links,
  .page-faq__policy-links {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }
}

/* Desktop-specific adjustments for button groups */
@media (min-width: 769px) {
    .page-faq__game-links,
    .page-faq__policy-links {
        justify-content: flex-start; /* Align buttons to the left */
    }
}