/* style/faq.css */

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

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  background-color: #0d0d0d; /* Ensure a dark background for contrast */
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-faq__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

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

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

/* FAQ Section */
.page-faq__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Dark background for FAQ section */
  color: #ffffff;
}

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

.page-faq__section-intro {
  font-size: 1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

.page-faq__faq-item {
  background-color: #2a2a2a; /* Slightly lighter dark background for items */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(38, 169, 224, 0.3);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: #26A9E0; /* Brand color for question text */
  background-color: #2a2a2a;
  user-select: none;
  list-style: none; /* For details/summary */
}

.page-faq__faq-question::-webkit-details-marker, /* For Webkit browsers */
.page-faq__faq-item > summary::marker { /* Standard for details/summary marker */
  display: none;
}

.page-faq__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or just change to '-' */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  color: #f0f0f0; /* Light text for answers */
  font-size: 0.95em;
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-faq__btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

/* Call to Action Bottom Section */
.page-faq__cta-bottom-section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Dark background */
  color: #ffffff;
  text-align: center;
}

.page-faq__cta-bottom-section .page-faq__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

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

.page-faq__cta-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0;
}

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

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

.page-faq__cta-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

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

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

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

  .page-faq__section-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }

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

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

  .page-faq__cta-bottom-section {
    padding: 40px 0;
  }

  .page-faq__cta-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }

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

  .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: 0.95em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Mobile responsive for all images */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile responsive for all image/video/button containers */
  .page-faq__hero-image-wrapper,
  .page-faq__faq-item,
  .page-faq__cta-bottom-section .page-faq__container,
  .page-faq__faq-section .page-faq__container,
  .page-faq__hero-section .page-faq__hero-content,
  .page-faq__cta-bottom-section .page-faq__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent overflow */
  }

  .page-faq__btn-group {
    flex-wrap: wrap !important;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-faq__btn-group a {
    flex: 1 1 auto; /* Allow buttons to grow/shrink */
    min-width: 120px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .page-faq__cta-buttons a {
    width: 100%;
  }

}

/* Ensure content area images maintain minimum size if not explicitly set by content */
.page-faq__faq-answer img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}