/* style/faq.css */

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

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

.page-faq h1, .page-faq h2, .page-faq h3 {
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq h1 {
  /* No fixed font-size for h1, rely on font-weight, line-height, max-width */
  font-weight: 700;
  text-align: center;
  max-width: 900px; /* Constrain width for better readability */
  margin-left: auto;
  margin-right: auto;
}

.page-faq h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
}

.page-faq h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 500;
}

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

/* Buttons */
.page-faq__cta-button, .page-faq__btn-primary, .page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.6);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

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

.page-faq__small-btn {
  padding: 8px 18px;
  font-size: 0.9rem;
  margin-top: 10px;
  margin-right: 10px;
}

.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

/* Sections */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px; /* Space below content */
  padding-top: 10px; /* Small top padding for visual separation from header */
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  color: #F2FFF6;
}

.page-faq__hero-content p {
  color: #A7D9B8;
  font-size: 1.1rem;
}

.page-faq__faq-section {
  padding: 80px 0;
  background-color: #08160F; /* Dark background from custom palette */
  border-top: 1px solid #1E3A2A;
  border-bottom: 1px solid #1E3A2A;
}

.page-faq__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #A7D9B8;
  font-size: 1.05rem;
}

.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__faq-item {
  background-color: #11271B; /* Card BG from custom palette */
  border: 1px solid #2E7A4E;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text for dark card background */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.15rem;
  color: #F2FFF6;
  background-color: #11271B;
  border-bottom: 1px solid #1E3A2A;
  user-select: none; /* Prevent text selection on click */
}

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

.page-faq__faq-item[open] .page-faq__faq-question {
  border-bottom: 1px solid #2E7A4E;
}

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #A7D9B8;
}

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

.page-faq__faq-answer .page-faq__image-content {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 15px;
  margin-bottom: 15px;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-faq__contact-cta {
  text-align: center;
  padding: 50px 20px;
  background-color: #0A4B2C; /* Deep Green from custom palette */
  border-radius: 10px;
  margin-top: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__contact-title {
  color: #F2FFF6;
  margin-bottom: 15px;
}

.page-faq__contact-description {
  color: #A7D9B8;
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.page-faq__outro-section {
  padding: 80px 0;
  text-align: center;
  background-color: #08160F;
}

.page-faq__outro-title {
  color: #F2FFF6;
}

.page-faq__outro-description {
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #A7D9B8;
  font-size: 1.05rem;
}

/* Image specific styles */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 30px 15px;
  }
  .page-faq__section-title {
    font-size: 2.2rem;
  }
  .page-faq__faq-question {
    font-size: 1.1rem;
    padding: 18px 20px;
  }
  .page-faq__faq-answer {
    padding: 18px 20px;
  }
}

@media (max-width: 768px) {
  .page-faq h1 {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }
  .page-faq h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }
  .page-faq h3 {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }
  .page-faq p {
    font-size: 1rem;
  }

  .page-faq__hero-section {
    padding-bottom: 40px;
  }
  .page-faq__hero-content {
    padding: 20px 15px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .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;
  }
  .page-faq__small-btn {
    margin-right: 0;
    width: auto !important; /* Allow small buttons to be inline */
  }
  .page-faq__faq-section {
    padding: 60px 0;
  }
  .page-faq__section-description {
    margin-bottom: 40px;
  }
  .page-faq__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-faq__faq-answer {
    padding: 15px;
  }
  .page-faq__contact-cta {
    padding: 30px 15px;
    margin-top: 30px;
  }
  .page-faq__outro-section {
    padding: 60px 0;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  /* Video responsiveness (if any, though not explicitly in FAQ) */
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-faq__video-section {
    padding-top: 10px !important;
  }
}