/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-faq a {
  color: #2AD16F; /* Link color */
  text-decoration: none;
}

.page-faq a:hover {
  text-decoration: underline;
  color: #57E38D; /* Glow color on hover */
}

/* Section styling */
.page-faq__section {
  padding: 40px 20px;
  border-bottom: 1px solid #1E3A2A; /* Divider color */
}

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

.page-faq__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px; /* Added for mobile responsiveness */
  box-sizing: border-box;
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background-color: #08160F;
  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;
  opacity: 0.2; /* Slightly dim the background image */
  display: block;
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: #F2FFF6;
}

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

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

/* Section Titles */
.page-faq__section-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #F2FFF6;
  margin-bottom: 20px;
  text-align: center;
}

.page-faq__section-description {
  font-size: 1.05em;
  color: #A7D9B8;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-faq__faq-item {
  background-color: #11271B; /* Card background color */
  border-radius: 8px;
  overflow: hidden;
  color: #F2FFF6; /* Main text color for card */
  border: 1px solid #2E7A4E; /* Border color */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: #11271B; /* Card background color */
  color: #F2FFF6;
  list-style: none; /* For details/summary */
}

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

.page-faq__faq-question:hover {
  background-color: #1a3224; /* Slightly lighter on hover */
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2AD16F;
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Secondary text color for answer */
}

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

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

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

/* Call to Action Section */
.page-faq__cta-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #0A4B2C; /* Deep Green for CTA background */
}

.page-faq__container--cta {
  max-width: 800px;
}

.page-faq__cta-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2FFF6;
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  color: #A7D9B8;
  margin-bottom: 40px;
}

/* Buttons */
.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff; /* White text for buttons */
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  margin: 10px;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-faq__cta-button--secondary {
  background: transparent;
  border: 2px solid #2AD16F; /* Border for secondary button */
  color: #2AD16F;
}

.page-faq__cta-button--secondary:hover {
  background: #2AD16F;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__hero-section {
    padding: 60px 15px;
  }

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

  .page-faq__intro-text,
  .page-faq__section-description,
  .page-faq__cta-description {
    font-size: 1em;
  }

  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: 1.8em;
  }

  .page-faq__section {
    padding: 30px 15px;
  }

  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1.05em;
  }

  .page-faq__faq-answer {
    padding: 0 20px 15px;
  }

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

  /* Button responsiveness */
  .page-faq__cta-button,
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    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;
    margin: 10px 0; /* Stack buttons vertically */
  }

  .page-faq__cta-section .page-faq__container--cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 15px; /* Ensure container padding */
  }

  /* Video responsiveness (if any) */
  .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;
  }
}