/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  background-color: #08160F; /* Background color from custom palette */
  color: #F2FFF6; /* Main text color from custom palette */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  overflow: hidden;
}

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

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle overlay for text readability */
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: #F2FFF6; /* Ensure text is readable over image */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

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

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

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

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

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

/* FAQ List */
.page-faq__faq-list {
  margin-top: 30px;
}

.page-faq__faq-item {
  background-color: #11271B; /* Card BG color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #1A3427; /* Slightly lighter background for question */
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker for details/summary */
}

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

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #0A4B2C; /* Deep Green on open */
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #57E38D; /* Glow color for toggle */
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or '-' */
}

.page-faq__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #A7D9B8;
  background-color: #11271B;
}

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

.page-faq__faq-answer ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-faq__faq-answer li {
  margin-bottom: 8px;
  color: #A7D9B8;
}

.page-faq__faq-answer a {
  color: #57E38D; /* Link color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-faq__faq-answer a:hover {
  color: #F2C14E; /* Gold on hover */
}

/* CTA Section */
.page-faq__cta-section {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
  margin-top: 50px;
  border: 1px solid #2E7A4E;
}

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

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq a[class*="button"],
.page-faq a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main color */
  border: none;
}

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

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

.page-faq__btn-secondary:hover {
  background-color: rgba(87, 227, 141, 0.1); /* Slight background on hover */
  color: #F2FFF6;
  border-color: #57E38D;
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }

  .page-faq__section-title {
    font-size: 2em;
  }
}

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

  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-faq__hero-content {
    max-width: 100%;
    padding: 0 15px;
  }

  .page-faq__main-title {
    font-size: clamp(1.6em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-faq__subtitle {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-faq__content-area {
    padding: 30px 15px;
  }

  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-faq__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-faq__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95em;
  }

  .page-faq__cta-section {
    padding: 30px 20px;
    margin-top: 40px;
  }

  .page-faq__cta-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }

  .page-faq__cta-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* Force responsive images, videos, and buttons */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__hero-image-wrapper,
  .page-faq__hero-image,
  .page-faq__content-area,
  .page-faq__cta-section,
  .page-faq__faq-item,
  .page-faq__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .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-bottom: 10px; /* Space between stacked buttons */
  }
  
  /* If multiple buttons in a row, stack them on mobile */
  .page-faq__hero-content > .page-faq__btn-primary {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  /* Specific for FAQ buttons in answers */
  .page-faq__faq-answer .page-faq__btn-secondary {
    display: block;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
  }
}