/* style/faq.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-faq {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  background-color: #1a1a2e; /* Ensure a consistent dark background */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background: linear-gradient(135deg, #1a1a2e, #0f1c3a); /* Dark gradient background */
  overflow: hidden;
  box-sizing: border-box;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px;
  box-sizing: border-box;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  filter: none; /* Ensure no CSS filter */
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff;
}

.page-faq__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for emphasis, ensures contrast */
}

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

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05em;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-faq__btn-secondary:hover {
  background-color: rgba(38, 169, 224, 0.1);
  transform: translateY(-2px);
}

/* Content Area - FAQ List */
.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #1a1a2e;
  color: #ffffff;
  box-sizing: border-box;
}

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

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

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

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: #ffffff;
  list-style: none;
}

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

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

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

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

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

.page-faq__inline-link {
  color: #26A9E0;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-faq__inline-link:hover {
  color: #1e87b3;
}

/* CTA Section */
.page-faq__cta-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 80px 20px;
  background-color: #0f1c3a; /* Darker background for distinction */
  color: #ffffff;
  text-align: left;
  box-sizing: border-box;
}

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

.page-faq__cta-title {
  font-size: 2em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
}

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

.page-faq__cta-image-wrapper {
  flex-shrink: 0;
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
}

.page-faq__cta-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  filter: none; /* Ensure no CSS filter */
}

.page-faq__btn-large {
  padding: 16px 32px;
  font-size: 1.15em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-section {
    padding: 40px 20px;
    padding-top: 10px;
  }
  .page-faq__main-title {
    font-size: 2.5em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__cta-section {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .page-faq__cta-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 15px;
  }

  .page-faq__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }

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

  .page-faq__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__content-area {
    padding: 40px 15px;
  }

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

  .page-faq__intro-text {
    font-size: 1em;
    margin-bottom: 40px;
  }

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

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

  .page-faq__cta-section {
    padding: 60px 15px;
    gap: 20px;
  }

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

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

  .page-faq__cta-image-wrapper {
    max-width: 100%;
    padding: 0 15px;
  }
  
  /* Mobile image and video responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    filter: none; /* Ensure no CSS filter */
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__content-area,
  .page-faq__cta-section,
  .page-faq__faq-list,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-faq__hero-content,
  .page-faq__faq-list {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-faq__hero-image-wrapper,
  .page-faq__cta-image-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .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;
  }
  
  .page-faq__video-section {
    padding-top: 10px !important;
  }
}