/* faq.css — self-contained styles for the FAQ page */

/* 0. CSS Variables (mirrors site defaults; safe if already set in style.css) */
:root {
  --primary:       #198754;
  --primary-hover: #146c43;
  --card-bg:       #fff;
}

/* 1. Full-page green background & wrapper */
html, body {
  margin: 0;
  padding: 0;
}
main.about-page {
  background: var(--primary) !important;
  padding: 2rem 0 6rem;
}

/* 2. White card container */
.content-box {
  background: var(--card-bg) !important;
  width: 98%;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  padding: 4rem;
}

/* 3. Inner container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 4. Hero section */
.content-hero {
  background-size: cover;
  background-position: center;
  padding: 6rem 0;
  text-align: center;
  color: #fff;
}
/* Placeholder hero background
   Falls back to the site hero image  */
.content-hero.hero-bg-faq {
  background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)),
              url('../images/hero-image.jpg') center/cover no-repeat;
}
.content-hero .hero-overlay {
  background: rgba(0,0,0,0.5);
  display: inline-block;
  padding: 2rem;
  border-radius: 0.5rem;
}
.content-hero h1 {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}
.content-hero p {
  font-size: 1.2rem;
}

/* 5. Fade-in utility */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 6. Section headings & scroll-triggered underline */
.content-section {
  margin: 3.5rem 0;
  text-align: left;
}
.content-section h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
  color: var(--primary);
}
.content-section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 1.2s ease-out;
}
.content-section.animate-underline h2::after {
  transform: translateX(-50%) scaleX(1);
}

/* 7. Body text & lists */
.content-section > p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #333;
}
.content-section a {
  color: var(--primary);
  text-decoration: underline;
}
.content-section a:hover {
  color: var(--primary-hover);
}

/* 8. FAQ accordion items */
.faq-item {
  border: 1px solid #e6e6e6;
  border-radius: 0.5rem;
  margin-bottom: 0.85rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-item[open] {
  border-color: var(--primary);
  box-shadow: 0 3px 12px rgba(25,135,84,0.12);
}

.faq-item summary {
  list-style: none;              /* remove default marker */
  cursor: pointer;
  padding: 1.15rem 3rem 1.15rem 1.5rem;
  position: relative;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1f2d3d;
  line-height: 1.5;
  transition: background 0.2s ease, color 0.2s ease;
}
.faq-item summary::-webkit-details-marker {
  display: none;                 /* remove default marker (Safari/Chrome) */
}
.faq-item summary:hover {
  background: #f6faf7;
  color: var(--primary);
}
.faq-item summary:focus-visible {
  outline: 3px solid rgba(25,135,84,0.35);
  outline-offset: -3px;
}

/* Plus / minus indicator */
.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--primary);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after {
  content: "\2212";              /* minus sign */
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  border-top: 1px solid #f0f0f0;
}
.faq-answer p {
  margin: 1rem 0 0;
  line-height: 1.65;
  color: #333;
}
.faq-answer ul {
  margin: 1rem 0 0 1.25rem;
  padding: 0;
  list-style: disc outside;
  color: #333;
}
.faq-answer ul li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

/* 9. Responsive tweaks */
@media (max-width: 600px) {
  .content-box {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 2rem 1rem;
    border-radius: 0;
  }
  .content-hero {
    padding: 4rem 1rem;
  }
  .content-hero .hero-overlay {
    display: block;
    width: 100%;
    margin: 0;
    padding: 1.5rem;
    border-radius: 0.25rem;
  }
  .content-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  .content-hero p {
    font-size: 1rem;
  }
  .content-section {
    margin: 2.5rem 0;
  }
  .faq-item summary {
    font-size: 1rem;
    padding: 1rem 2.5rem 1rem 1.1rem;
  }
  .faq-answer {
    padding: 0 1.1rem 1.1rem;
  }
}
