/* style/faq.css */
/* Body background is dark: var(--background-color, #1a1a2e) */
/* Text in main sections should be light for contrast */

.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default text color for dark body background */
  background-color: transparent; /* inherited from body */
}

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

.page-faq__dark-bg {
  background-color: var(--background-color, #1a1a2e);
  color: #f0f0f0;
}

.page-faq__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-faq__hero-image {
  width: 1200px; /* HTML width attribute for CLS */
  height: 675px; /* HTML height attribute for CLS */
  max-width: 100%; /* Ensure responsiveness */
  height: auto;
  object-fit: cover;
  display: block;
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-top: 40px; /* Ensure content is below the image */
  padding: 0 20px;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-faq__subtitle {
  font-size: clamp(1em, 2vw, 1.2em);
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 10px;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

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

.page-faq__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

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

.page-faq__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #1e87c0;
}

.page-faq__btn-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: underline;
  margin-top: 15px;
  font-weight: 500;
}

.page-faq__btn-link:hover {
  color: #1e87c0;
}

.page-faq__section {
  padding: 60px 0;
}

.page-faq__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherit from section for contrast */
}

.page-faq__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  text-align: justify;
  color: inherit; /* Inherit from section for contrast */
}

.page-faq__introduction .page-faq__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.page-faq__faq-list-section {
  padding: 80px 0;
}

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

.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-item details {
  width: 100%;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: inherit; /* Inherit from item for contrast */
  list-style: none;
  user-select: none; /* Prevent text selection on click */
}

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

.page-faq__faq-item details summary::marker {
  display: none;
}

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

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

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: inherit; /* Inherit from item for contrast */
  text-align: justify;
}

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

.page-faq__faq-answer ul {
  list-style: disc inside;
  margin-bottom: 10px;
  padding-left: 20px;
  color: inherit;
}

.page-faq__faq-answer li {
  margin-bottom: 5px;
  color: inherit;
}

.page-faq__cta-section {
  text-align: center;
  padding: 80px 0;
}

/* Image sizing for content */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

  .page-faq__container {
    padding: 0 15px;
  }

  .page-faq__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

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

  .page-faq__subtitle {
    font-size: 1em;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    margin: 8px 0 !important;
    padding: 15px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

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

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

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

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

  /* Mandatory mobile image/video/container responsive styles */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure images take full width of their container */
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px;
    padding-right: 15px; */ /* Handled by .page-faq__container */
    overflow: hidden !important; /* Prevent content overflow */
  }

  .page-faq__introduction .page-faq__text-block {
    padding: 0 15px;
  }
  .page-faq__faq-group {
    padding: 0 15px;
  }
  .page-faq__faq-item {
    margin-left: 0;
    margin-right: 0;
  }
}