/* style/faq.css */

/* Body background color is from shared.css, assumed dark, so text will be light */
.page-faq {
  color: #F2FFF6; /* Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #08160F; /* Background */
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  overflow: hidden;
  background-color: #08160F; /* Background */
}

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

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

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
  position: relative;
}

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

.page-faq__subtitle {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-faq__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #ffffff; /* White text for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-faq__section {
  padding: 60px 20px;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

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

.page-faq__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-faq__section-description {
  font-size: clamp(0.9em, 1.2vw, 1.1em);
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-faq__faq-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 20px 25px;
  transition: all 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

.page-faq__faq-item:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(1.1em, 1.5vw, 1.3em);
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  padding: 10px 0;
  list-style: none; /* For details/summary */
}

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

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 20px;
  color: #2AD16F; /* Brighter green for toggle */
}

.page-faq__faq-answer {
  font-size: clamp(0.95em, 1.1vw, 1.05em);
  color: #A7D9B8; /* Text Secondary */
  padding-top: 15px;
  line-height: 1.7;
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
}

.page-faq__faq-item:not(details) .page-faq__faq-answer {
  max-height: 0;
  opacity: 0;
}

.page-faq__faq-item.active:not(details) .page-faq__faq-answer {
  max-height: 2000px; /* Large enough to accommodate content */
  opacity: 1;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  color: #A7D9B8; /* Text Secondary */
}

.page-faq__faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  color: #A7D9B8; /* Text Secondary */
}

.page-faq__faq-answer li {
  margin-bottom: 8px;
  color: #A7D9B8; /* Text Secondary */
}

.page-faq__faq-answer strong {
  color: #F2FFF6; /* Text Main */
}

.page-faq__image-inline {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__call-to-action {
  text-align: center;
  padding: 80px 20px;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
}

.page-faq__final-cta {
  margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding on mobile */
  }

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

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

  .page-faq__btn-primary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 15px; /* Add margin for stacking */
  }

  .page-faq__hero-cta {
    margin-top: 25px; /* Adjust margin for hero CTA */
  }

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

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

  .page-faq__faq-question {
    font-size: 1em;
  }

  .page-faq__faq-toggle {
    font-size: 1.2em;
  }

  .page-faq__faq-answer {
    font-size: 0.9em;
  }

  .page-faq__image-inline,
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__call-to-action {
    padding: 50px 15px;
  }

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

  .page-faq__section-description {
    font-size: 0.9em;
  }
}

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