/* style/faq.css */

/* Base styles for the page content area */
.page-faq {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Main text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Space above footer */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom for content */
  box-sizing: border-box;
  text-align: center;
}

.page-faq__hero-image {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px; /* Space between image and content */
  display: block; /* Ensure no extra space below image */
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1; /* Ensure content is above any potential background elements */
  color: #F2FFF6; /* Ensure text color is bright on dark background */
}

.page-faq__hero-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6; /* Main text color */
}

.page-faq__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Secondary text color */
}

.page-faq__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styling */
.page-faq__faq-list-section,
.page-faq__cta-bottom {
  padding: 60px 0;
  background-color: #08160F; /* Consistent dark background */
  color: #F2FFF6;
}

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

.page-faq__section-title,
.page-faq__cta-bottom-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #F2FFF6; /* Main text color */
}

.page-faq__section-description,
.page-faq__cta-bottom-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #A7D9B8; /* Secondary text color */
}

/* FAQ Item Styling */
.page-faq__faq-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden; /* For transition on details close */
  color: #F2FFF6; /* Main text color */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: #11271B; /* Card B G */
  color: #F2FFF6; /* Main text color */
  list-style: none; /* Hide default marker for summary */
}

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

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow color for toggle */
}

.page-faq__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Secondary text color */
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  max-height: 0;
  overflow: hidden;
}

/* Ensure answers are visible when details is open */
.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 1000px; /* Arbitrarily large value for smooth transition */
  padding-top: 10px;
}

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

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

/* Image within FAQ answer */
.page-faq__image-inline {
  width: 100%;
  max-width: 600px; /* Example max width for inline images */
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Call to Action Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff; /* White text on dark green */
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Glow color for secondary text */
  border: 2px solid #57E38D; /* Glow color border */
}

.page-faq__btn-secondary:hover {
  background-color: #57E38D;
  color: #08160F; /* Dark background color for hover text */
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(87, 227, 141, 0.4);
}

.page-faq__cta-bottom-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on mobile */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.4em;
  }
  .page-faq__section-title,
  .page-faq__cta-bottom-title {
    font-size: 1.8em;
  }
  .page-faq__faq-question {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-faq__hero-section {
    padding: 10px 15px 40px;
  }
  .page-faq__container {
    padding: 0 15px;
  }
  .page-faq__faq-list-section,
  .page-faq__cta-bottom {
    padding: 40px 0;
  }

  /* Images responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__hero-image {
    margin-bottom: 20px;
  }
  .page-faq__image-inline {
    max-width: 100% !important;
    width: 100% !important;
    margin: 15px auto;
  }

  /* Image containers responsive */
  .page-faq__hero-section,
  .page-faq__faq-list-section,
  .page-faq__cta-bottom,
  .page-faq__container,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Override specific padding for container inside sections */
  .page-faq__faq-list-section .page-faq__container,
  .page-faq__cta-bottom .page-faq__container {
      padding-left: 0 !important;
      padding-right: 0 !important;
  }


  /* Buttons responsive */
  .page-faq__hero-cta,
  .page-faq__cta-bottom-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to button group */
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Text adjustments */
  .page-faq__hero-title {
    font-size: 2em;
  }
  .page-faq__section-title,
  .page-faq__cta-bottom-title {
    font-size: 1.6em;
  }
  .page-faq__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-faq__faq-answer {
    padding: 0 15px 15px;
  }
  .page-faq p,
  .page-faq li {
    font-size: 15px;
  }
}

/* Ensure text contrast for default P and LI elements */
.page-faq p,
.page-faq li,
.page-faq__faq-answer p {
  color: #A7D9B8; /* Secondary text color for general content */
}