/* style/faq.css */

.page-faq {
  background-color: #08160F; /* Background color from custom palette */
  color: #F2FFF6; /* Main text color from custom palette for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

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

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

.page-faq__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for responsive font size */
  font-weight: 700;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-faq__intro-text {
  font-size: 1.15rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-faq__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-faq__section {
  padding: 60px 0;
  border-bottom: 1px solid #1E3A2A; /* Divider color */
}

.page-faq__section:last-of-type {
  border-bottom: none;
}

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

.page-faq__container--center {
    text-align: center;
}

.page-faq__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6; /* Main text color */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-faq__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #2AD16F; /* A brighter green from the gradient */
    margin: 15px auto 0;
    border-radius: 2px;
}

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

.page-faq__faq-item {
  background-color: #11271B; /* Card BG color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 0; /* Remove default padding for details */
}

.page-faq__faq-item[open] {
  box-shadow: 0 0 20px rgba(87, 227, 141, 0.2); /* Glow color */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #F2FFF6; /* Main text color */
  cursor: pointer;
  position: relative;
  list-style: none; /* Remove default marker for summary */
}

.page-faq__faq-question::-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.8rem;
  font-weight: 300;
  color: #2AD16F; /* A brighter green */
  margin-left: 15px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to form an 'x' or just change to minus */
  content: '−'; /* Change to minus for open state */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05rem;
  color: #A7D9B8; /* Secondary text color */
  max-height: 0; /* Hidden by default for JS fallback */
  overflow: hidden; /* Hidden by default for JS fallback */
  transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* For JS fallback */
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 2000px; /* Large enough to show content for JS fallback */
    padding: 0 25px 20px;
}

/* For native <details> element, max-height/overflow is not needed for toggling */
.page-faq__faq-item[open] .page-faq__faq-answer {
    max-height: none; /* Override for native details */
    overflow: visible; /* Override for native details */
}


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

.page-faq__faq-answer img {
    max-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__button-link {
    display: inline-block;
    padding: 10px 20px;
    background: #0A4B2C; /* Deep Green for internal links */
    color: #F2FFF6;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
    border: 1px solid #2E7A4E;
}

.page-faq__button-link:hover {
    background-color: #13994A; /* A darker green from button gradient */
    color: #ffffff;
}

.page-faq__button-group {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #ffffff;
    border: none;
}

.page-faq__btn-secondary {
    background: #11271B; /* Card BG color for secondary button */
    color: #2AD16F; /* Bright green for text */
    border: 2px solid #2AD16F; /* Bright green border */
}

.page-faq__btn-secondary:hover {
    background: #2AD16F;
    color: #11271B;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 0 15px;
  }
}

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

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

  .page-faq__intro-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-faq__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

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

  .page-faq__container {
    padding: 0 15px;
  }

  .page-faq__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-faq__faq-question {
    font-size: 1.1rem;
    padding: 18px 20px;
  }

  .page-faq__faq-answer {
    font-size: 0.95rem;
    padding: 0 20px 18px;
  }

  .page-faq__button-group {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }

  .page-faq__cta-button,
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    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; /* Ensure padding inside button for text */
  }

  /* Mobile image and video responsive rules */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-image-wrapper,
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper,
  .page-faq__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-faq__video-section {
    padding-top: 10px !important; /* Small top padding for video section */
  }
}

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