/* style/faq.css */

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

.page-faq__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #E53935;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

/* HERO Section */
.page-faq__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background-color: #ffffff;
  text-align: center;
}

.page-faq__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  gap: 40px;
}

.page-faq__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  text-align: left;
  color: #333333;
}

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

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

.page-faq__hero-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-faq__side-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

/* FAQ Section */
.page-faq__faq-section {
  background-color: #F5F7FA; /* Background color for FAQ section */
  padding: 60px 0;
}

.page-faq__faq-list {
  margin-top: 30px;
}

.page-faq__faq-item {
  background-color: #FFFFFF; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #333333; /* Text Main */
  cursor: pointer;
  background-color: #FFFFFF;
  user-select: none;
  list-style: none; /* Hide default marker for details/summary */
  -webkit-tap-highlight-color: transparent; /* Prevent tap highlight on mobile */
}

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

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #E53935;
}

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

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

.page-faq__faq-answer a {
  color: #E53935;
  text-decoration: underline;
}

.page-faq__image-block {
  text-align: center;
  margin-top: 40px;
}

.page-faq__image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

/* CTA Section */
.page-faq__cta-section {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient as background */
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

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

.page-faq__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #ffffff;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-faq__btn-primary {
  background: #ffffff;
  color: #E53935; /* Primary brand color */
  border: 2px solid #ffffff;
}

.page-faq__btn-primary:hover {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

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

.page-faq__btn-secondary:hover {
  background: #ffffff;
  color: #E53935;
  border-color: #ffffff;
}

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

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-faq__hero-content,
  .page-faq__hero-image {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .page-faq__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

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

  .page-faq__cta-title {
    font-size: 2.2em;
  }

  .page-faq__cta-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  /* 1. HERO Section */
  .page-faq__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px !important;
  }

  .page-faq__hero-container {
    padding: 20px 15px !important;
    gap: 20px !important;
  }

  .page-faq__hero-content {
    text-align: center !important;
  }

  .page-faq__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
    margin-bottom: 15px !important;
  }

  .page-faq__hero-description {
    font-size: 1em !important;
    margin-bottom: 20px !important;
  }

  .page-faq__side-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 4. Content sections (FAQ, CTA) */
  .page-faq__container {
    padding: 30px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__section-title {
    font-size: 1.8em !important;
    margin-bottom: 20px !important;
  }

  .page-faq__faq-question {
    padding: 15px 20px !important;
    font-size: 1em !important;
  }

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

  /* 5. General images and containers */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__image-block img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 6. Buttons and button containers */
  .page-faq__cta-section {
    padding: 50px 15px !important;
  }

  .page-faq__cta-title {
    font-size: 1.8em !important;
    margin-bottom: 15px !important;
  }

  .page-faq__cta-description {
    font-size: 1em !important;
    margin-bottom: 30px !important;
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}

/* No specific Module 1 (three-column intro) or Seven Tab Game section for this FAQ page */
/* Therefore, rules for these are not included as they are not present in the HTML. */