/* style/faq.css */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--background-color, #1a1a2e); /* Ensure consistency with shared body background */
}

.page-faq__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  text-align: center;
  background: linear-gradient(135deg, #26A9E0, #1a1a2e);
  color: #ffffff;
  overflow: hidden;
}

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

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  cursor: pointer;
  border: 2px solid transparent;
}

.page-faq__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
}

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

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

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

.page-faq__video-section {
  background-color: #ffffff; /* Light background for video */
  color: #333333;
  padding: 60px 20px;
  text-align: center;
}

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

.page-faq__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 30px auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

.page-faq__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.page-faq__video-caption {
  font-size: 1em;
  color: #555555;
  margin-top: 15px;
}

.page-faq__content-area {
  background-color: #f8f8f8; /* Light background for FAQ content */
  color: #333333;
  padding: 60px 20px;
}

.page-faq__intro-text {
  font-size: 1.1em;
  margin-bottom: 40px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-faq__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  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;
  cursor: pointer;
  background-color: #f0f8ff;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #e0f0ff;
}

.page-faq__question-title {
  margin: 0;
  color: #26A9E0;
}

.page-faq__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px 25px 25px;
}

.page-faq__faq-answer p {
  margin-bottom: 0;
  color: #555555;
}

.page-faq__cta-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 50px 20px;
  text-align: center;
  border-radius: 10px;
  margin-top: 50px;
}

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

.page-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.8em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile fixed header spacing */
  }
  .page-faq__hero-title {
    font-size: 2.2em;
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    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__video-section,
  .page-faq__content-area {
    padding: 40px 15px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__intro-text {
    font-size: 0.95em;
  }
  .page-faq__faq-question {
    padding: 18px 20px;
    font-size: 1.05em;
  }
  .page-faq__faq-answer {
    padding: 0 20px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px 20px 20px;
  }
  .page-faq__cta-section {
    padding: 40px 15px;
  }
  .page-faq__cta-title {
    font-size: 1.6em;
  }
  .page-faq__cta-description {
    font-size: 0.95em;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }
  /* Mobile video responsiveness */
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__cta-title {
    font-size: 1.4em;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}