/* style/faq.css */

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px; /* Adjust as needed */
  overflow: hidden;
  background-color: #0A4B2C; /* Deep Green from palette */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-faq__hero-image-container {
  width: 100%;
  position: relative;
  z-index: 1;
}

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

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: 20px; /* Space between image and content */
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

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

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

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

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

.page-faq__cta-button--secondary {
  background: none;
  border: 2px solid #2E7A4E; /* Border color */
  color: #F2FFF6;
}

.page-faq__cta-button--secondary:hover {
  background: rgba(46, 122, 78, 0.2); /* Light hover effect */
  transform: translateY(-2px);
}

/* Content Area */
.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

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

/* FAQ List */
.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-faq__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #2E7A4E; /* Border color */
  overflow: hidden; /* For details tag */
}

.page-faq__faq-item summary {
  list-style: none; /* Remove default marker */
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  padding: 10px 0;
  outline: none;
}

.page-faq__faq-item summary::-webkit-details-marker {
  display: none; /* Hide Chrome's default marker */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-faq__faq-toggle {
  font-size: 1.8rem;
  font-weight: 300;
  color: #2AD16F; /* Green from palette */
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-faq__faq-answer {
  padding-top: 15px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  border-top: 1px solid #1E3A2A; /* Divider color */
  margin-top: 15px;
}

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

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
  margin-left: 20px;
  margin-bottom: 10px;
}

.page-faq__faq-answer li {
  margin-bottom: 5px;
}

.page-faq__link-button {
  display: inline-block;
  padding: 8px 15px;
  background-color: #13994A; /* A darker green for subtle link */
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.page-faq__link-button:hover {
  background-color: #2AD16F;
}

/* Image within content */
.page-faq__image-wrapper {
  margin: 20px 0;
  text-align: center;
}

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

/* Final CTA Section */
.page-faq__cta-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  margin-top: 40px;
  box-sizing: border-box;
}

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

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

.page-faq__cta-buttons-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

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

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-faq__hero-content {
    margin-top: 15px;
  }
  .page-faq__main-title {
    font-size: 2.2rem;
  }
  .page-faq__intro-text {
    font-size: 1rem;
  }
  .page-faq__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-faq__content-area {
    padding: 40px 0px; /* Remove horizontal padding, let inner elements handle */
  }
  .page-faq__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  .page-faq__faq-item summary {
    font-size: 1.1rem;
  }
  .page-faq__faq-answer {
    font-size: 0.95rem;
  }
  .page-faq__cta-section {
    padding: 40px 15px;
    margin-top: 30px;
  }
  .page-faq__cta-title {
    font-size: 2rem;
  }
  .page-faq__cta-description {
    font-size: 1rem;
  }
  .page-faq__cta-buttons-wrapper {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Force responsive images and containers */
  .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,
  .page-faq__hero-image-container,
  .page-faq__image-wrapper,
  .page-faq__cta-buttons-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; */ /* Handled by specific elements */
    /* padding-right: 15px; */ /* Handled by specific elements */
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-faq__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-faq__faq-item {
    padding-left: 15px;
    padding-right: 15px;
  }
}