/* style/faq.css */

/* Base styles for page-faq */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background from shared.css */
}

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

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

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden;
  color: #ffffff;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Adjust as needed for hero image aspect ratio */
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  margin-top: -200px; /* Overlap with image slightly for visual appeal, but text is below */
  padding-top: 20px; /* Ensure space above text content */
  background: rgba(10, 10, 10, 0.7); /* Dark semi-transparent background for text */
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  box-sizing: border-box;
}

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

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

.page-faq__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em); /* Responsive font size */
  font-weight: 600;
  margin-bottom: 40px;
  text-align: center;
  color: #26A9E0;
}

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

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  background-color: rgba(38, 169, 224, 0.2); /* Slightly darker for question header */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
  -webkit-touch-callout: none; /* Disable callout on iOS */
  -webkit-user-select: none;   /* Disable text selection on iOS */
  -khtml-user-select: none;    /* Disable text selection on Konqueror HTML */
  -moz-user-select: none;      /* Disable text selection on Firefox */
  -ms-user-select: none;       /* Disable text selection on Internet Explorer/Edge */
  user-select: none;           /* Disable text selection on modern browsers */
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 0.95em;
  color: #f0f0f0;
}

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

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

.page-faq__faq-answer li {
  margin-bottom: 8px;
}

.page-faq__faq-answer img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin-top: 20px;
  border: 2px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border-color: #26A9E0;
  margin-left: 15px;
}

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

.page-faq__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #0d0d0d; /* Slightly different dark background */
  color: #ffffff;
}

.page-faq__cta-title {
  font-size: clamp(2em, 4vw, 2.5em);
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

.page-faq__image-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  margin-top: 15px;
}

.page-faq__image-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__image-card p {
  font-size: 0.9em;
  color: #f0f0f0;
}

/* Ensure images in content sections are responsive and meet min size */
.page-faq__section img {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-faq__container {
    padding: 0 15px;
  }

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

  .page-faq__hero-content {
    margin-top: -100px; /* Adjust overlap for mobile */
    padding: 20px;
    max-width: 95%;
  }

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

  .page-faq__intro-text {
    font-size: 1em;
  }

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

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

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

  .page-faq__faq-answer {
    padding: 15px 20px;
    font-size: 0.9em;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0;
    margin-bottom: 10px;
    padding: 10px 15px;
  }

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

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__cta-section,
  .page-faq__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Ensure video elements are responsive, though not present on this page */
  .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;
  }
}

/* Ensure elements with dark background have light text */
.page-faq__dark-bg {
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-faq__dark-section h2, .page-faq__dark-section p {
  color: #ffffff;
}

/* Text colors for general content to ensure contrast on dark body background */
.page-faq p,
.page-faq li,
.page-faq a:not([class*="btn"]) {
  color: #f0f0f0; /* Light grey for general text */
}

.page-faq a:not([class*="btn"]) {
  color: #26A9E0; /* Brand color for links */
  text-decoration: underline;
}

.page-faq a:not([class*="btn"]):hover {
  color: #1a7fb0;
}