/* style/faq.css */

/* Base styles for the FAQ page, ensuring text is visible on dark body background */
.page-faq {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #26A9E0, #1a7bb5); /* Brand color gradient */
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  box-sizing: border-box;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for image container */
  margin-bottom: 30px; /* Space between image and text */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

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

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

.page-faq__description--white {
  color: #ffffff;
}

.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  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: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

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

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

.page-faq__btn-secondary {
  background: #FFFFFF;
  color: #26A9E0; /* Main brand color as text */
  border: 2px solid #26A9E0;
}

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

/* Content Area */
.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background for content area */
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  color: #ffffff; /* Light text for content area */
}

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

.page-faq__section-title--white {
  color: #FFFFFF;
}

/* FAQ List */
.page-faq__faq-list {
  margin-bottom: 60px;
}

.page-faq__faq-item {
  background-color: #2a2a2a; /* Darker background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  background-color: #3a3a3a; /* Slightly darker for question header */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #26A9E0; /* Highlight when open */
  color: #FFFFFF;
}

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

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

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

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
}

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

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

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

.page-faq__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: #4dc2ff;
}

/* Content Images */
.page-faq__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Call to Action Section */
.page-faq__call-to-action {
  background: linear-gradient(135deg, #26A9E0, #1a7bb5);
  padding: 60px 20px;
  text-align: center;
  border-radius: 8px;
  margin-top: 60px;
  box-sizing: border-box;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-faq__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

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

  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important; /* Force full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

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

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

  .page-faq__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure all image containers also adapt */
  .page-faq__hero-image-wrapper,
  .page-faq__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-faq__call-to-action {
    padding: 40px 15px;
  }
  
  /* General container for content sections to prevent overflow */
  .page-faq__hero-section,
  .page-faq__content-area,
  .page-faq__call-to-action {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Catch any overflow */
  }
}

/* Ensure no filter on images */
.page-faq img {
  filter: none !important;
}

/* Content area images minimum size check */
.page-faq__content-area img {
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
}