/* style/faq.css */
.page-faq {
  background-color: #08160F;
  color: #F2FFF6;
  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;
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding for the first section */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

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

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

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

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__intro-text {
  font-size: 1.1rem;
  color: #A7D9B8;
  margin-bottom: 30px;
}

.page-faq__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-faq__btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: #08160F;
}

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

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

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

.page-faq__faq-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  overflow: hidden;
  color: #F2FFF6;
}

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

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

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

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #57E38D;
  width: 24px;
  text-align: center;
  transition: transform 0.2s 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 20px 20px 20px;
  font-size: 1rem;
  color: #A7D9B8;
  border-top: 1px solid #1E3A2A;
  margin-top: -1px; /* Overlap border with summary bottom */
}

.page-faq__faq-answer p {
  margin-bottom: 10px;
}

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

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

.page-faq__cta-section {
  background-color: #11271B;
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid #2E7A4E;
  position: relative;
  overflow: hidden;
}

.page-faq__cta-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #F2FFF6;
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1rem;
  color: #A7D9B8;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.page-faq__cta-button {
  margin-top: 20px;
}

.page-faq__cta-image {
  max-width: 600px;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-faq__container,
  .page-faq__hero-content,
  .page-faq__cta-section .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  .page-faq__btn-primary {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-faq__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .page-faq__section-description {
    font-size: 0.95rem;
  }

  .page-faq__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }

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

  .page-faq__cta-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-faq__cta-description {
    font-size: 1rem;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__hero-image-wrapper,
  .page-faq__faq-answer,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .page-faq__btn-primary,
  .page-faq__cta-button {
    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__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}