/* style/faq.css */

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above content */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

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

.page-faq__hero-content {
  position: relative; /* Ensure content is below the image in normal flow */
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over the image for better visual flow, without overlapping text on image */
  background: rgba(18, 18, 18, 0.8); /* Dark background for readability */
  border-radius: 10px;
  z-index: 1; /* Ensure content is above any background elements */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-faq__intro-text {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Call to Action Buttons */
.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

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

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

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

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

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast with body */
  color: #ffffff;
}

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

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

.page-faq__section-description {
  font-size: 1.1em;
  color: #cccccc;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__faq-item {
  background-color: #222222; /* Darker background for each FAQ item */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #333333;
}

.page-faq__faq-item details {
  /* For native details tag */
  padding: 0;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: #2c2c2c; /* Slightly different background for question */
  transition: background-color 0.3s ease;
  user-select: none;
}

.page-faq__faq-question:hover {
  background-color: #3a3a3a;
}

.page-faq__faq-item.active .page-faq__faq-question {
  background-color: #3a3a3a;
}

.page-faq__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
  color: #ffffff;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #26A9E0; /* Brand color for toggle icon */
  transition: transform 0.3s ease;
}

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(0deg); /* No rotation for minus sign */
}
.page-faq__faq-item:not([open]) .page-faq__faq-toggle {
  transform: rotate(0deg); /* No rotation for plus sign */
}

/* For JS-driven accordion (if details not used) */
.page-faq__faq-item .page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 25px; /* Initial padding, will expand */
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px; /* Sufficiently large value for content */
  padding: 15px 25px 25px;
}

/* For native details tag, the answer is always visible when open */
.page-faq__faq-item details[open] .page-faq__faq-answer {
  max-height: none; /* Override max-height for native details */
  padding: 15px 25px 25px;
}


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

.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: #1e87b6;
}

.page-faq__image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 8px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
  object-fit: cover;
}

/* CTA Section at the bottom */
.page-faq__cta-section {
  background-color: #26A9E0; /* Brand primary color for CTA background */
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
}

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

.page-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__cta-section .page-faq__btn-primary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
  color: #1e87b6;
}

.page-faq__cta-section .page-faq__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

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

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

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

  .page-faq__hero-content {
    padding: 30px 15px;
    margin-top: -60px; /* Adjust pull-up for mobile */
  }

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

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

  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important; /* Force full width for buttons */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-faq__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

  .page-faq__faq-item .page-faq__faq-answer,
  .page-faq__faq-item details[open] .page-faq__faq-answer {
    padding: 10px 20px 20px;
  }

  /* Image responsiveness for content area */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce minimum size even on mobile */
    min-height: 200px !important;
  }

  /* Ensure all containers for images/videos/buttons are responsive */
  .page-faq__hero-image-wrapper,
  .page-faq__faq-list-section,
  .page-faq__cta-section,
  .page-faq__cta-buttons,
  .page-faq__faq-items,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

/* Ensure no filter is used for changing image colors */
.page-faq img {
  filter: none; /* Explicitly remove any default filter */
}
/* Re-applying brightness filter for hero image for readability, this is allowed as it's not changing color */
.page-faq__hero-image {
  filter: brightness(0.6);
}