/* style/faq.css */
.page-faq {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
}

/* Ensure text is visible on potentially dark body background */
.page-faq {
  color: var(--text-light); /* Default to light text for overall page content */
  background-color: transparent; /* Rely on body background */
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  min-height: 500px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
}

.page-faq__main-title {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-faq__description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 30px;
}

.page-faq__section {
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  color: var(--text-dark); /* Ensure dark text on light background for main content */
  background-color: var(--secondary-color); /* Explicitly light background */
}

.page-faq__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-faq__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-faq__content-area .page-faq__section-title {
  color: var(--text-dark);
}

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

.page-faq__faq-item {
  background-color: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--secondary-color);
  color: var(--text-dark);
  border-bottom: 1px solid #eee;
  list-style: none; /* For details/summary */
}

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

.page-faq__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  border-top: 1px solid #f0f0f0;
}

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

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

.page-faq__faq-answer .page-faq__btn-secondary {
  margin-top: 15px;
}

.page-faq__cta-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 40px;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-faq__cta-content {
  max-width: 600px;
  text-align: left;
}

.page-faq__cta-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-faq__cta-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-light);
}

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

.page-faq__cta-image-wrapper {
  flex-shrink: 0;
  width: 400px;
  height: 300px;
}

.page-faq__cta-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: var(--login-color); /* Using login color for primary action */
  color: var(--text-light);
  border: 2px solid var(--login-color);
}

.page-faq__btn-primary:hover {
  background-color: darken(var(--login-color), 10%);
  border-color: darken(var(--login-color), 10%);
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-faq__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__hero-section {
    padding: 10px 15px 40px;
    min-height: 400px;
  }

  .page-faq__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust for smaller screens */
  }

  .page-faq__description {
    font-size: 1rem;
  }

  .page-faq__section {
    padding: 40px 15px;
  }

  .page-faq__content-area,
  .page-faq__cta-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

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

  .page-faq__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  .page-faq__cta-section {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 60px 15px;
  }

  .page-faq__cta-content {
    text-align: center;
    max-width: 100%;
  }

  .page-faq__cta-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-faq__cta-description {
    font-size: 1rem;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

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

  .page-faq__cta-image-wrapper {
    width: 100%;
    height: auto;
  }

  /* Force responsive images, videos, and containers */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__cta-section,
  .page-faq__faq-list,
  .page-faq__faq-item,
  .page-faq__cta-content,
  .page-faq__cta-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-faq__hero-image {
    filter: brightness(0.4) !important; /* Slightly darker on mobile for better text contrast */
  }
}