/* =========================================================================
   Guides / Answer pages — themed to match ministry-style.css
   Brand tokens: teal #055C5A / turquoise #168785 / gold #ECBE09 / ink #001918
   Fonts: Satoshi throughout (matches the site's hero/section styling)
   ========================================================================= */

/* ---------- Hero (mirrors #about-us-hero) ---------- */
.answer-page #guide-hero {
  background-image: linear-gradient(
      rgba(0, 25, 24, 0.55),
      rgba(0, 25, 24, 0.55)
    ),
    url("/images/ministry/hero-banner-2.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 90px 0 80px;
}
.answer-page #guide-hero .wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.answer-page .guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-family: "Satoshi", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}
.answer-page .guide-breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}
.answer-page .guide-breadcrumb a:hover {
  color: #ecbe09;
}
.answer-page .guide-breadcrumb .sep {
  opacity: 0.5;
}
.answer-page #guide-hero h1 {
  font-family: "Satoshi", sans-serif;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
  max-width: 1000px;
}
.answer-page #guide-hero .guide-lede {
  font-family: "Satoshi", sans-serif;
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 500;
  line-height: 1.62;
  color: #e7f1f1;
  max-width: 840px;
}

/* ---------- Article body ---------- */
.answer-page #guide-content {
  padding: 90px 0 30px;
}
.answer-page #guide-content .wrapper {
  max-width: 740px;
  margin: 0 auto;
}
.answer-page .guide-section {
  margin-bottom: 52px;
}
.answer-page .guide-section:last-child {
  margin-bottom: 0;
}
.answer-page .guide-section h2 {
  font-family: "Satoshi", sans-serif;
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: #001918;
  margin-bottom: 18px;
}
.answer-page .guide-section h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 14px;
  border-radius: 4px;
  background: linear-gradient(103deg, #055c5a, #168785);
}
.answer-page .guide-section p {
  font-family: "Satoshi", sans-serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.78;
  color: #3a3f3f;
  margin-bottom: 20px;
}
.answer-page .guide-section p:last-child {
  margin-bottom: 0;
}

/* ---------- FAQ (native <details>, styled like accordion-n) ---------- */
.answer-page #guide-faq {
  padding: 40px 0 20px;
}
.answer-page #guide-faq .wrapper {
  max-width: 900px;
  margin: 0 auto;
}
.answer-page .guide-faq-heading {
  text-align: center;
  color: #001918;
  font-family: "Satoshi", sans-serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  margin-bottom: 44px;
}
.answer-page .guide-faq-item {
  border-radius: 18px;
  overflow: hidden;
  margin: 16px 0;
  background: #fff;
  box-shadow: 0 18px 60px 0 rgba(22, 135, 133, 0.12);
  border: 1px solid rgba(22, 135, 133, 0.1);
  transition: box-shadow 0.2s ease-in-out;
}
.answer-page .guide-faq-item[open] {
  box-shadow: 0 30px 80px 0 rgba(22, 135, 133, 0.22);
}
.answer-page .guide-faq-item > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 26px 64px 26px 30px;
  font-family: "Satoshi", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #001918;
  transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}
.answer-page .guide-faq-item > summary::-webkit-details-marker {
  display: none;
}
.answer-page .guide-faq-item > summary::after {
  content: "+";
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Satoshi", sans-serif;
  font-size: 28px;
  line-height: 1;
  color: #055c5a;
  transition: color 0.2s ease-in-out;
}
.answer-page .guide-faq-item > summary:hover {
  background: #055c5a;
  color: #fff;
}
.answer-page .guide-faq-item > summary:hover::after {
  color: #fff;
}
.answer-page .guide-faq-item[open] > summary {
  background: #055c5a;
  color: #fff;
}
.answer-page .guide-faq-item[open] > summary::after {
  content: "\2013";
  color: #fff;
}
.answer-page .guide-faq-answer {
  padding: 22px 30px 28px;
  font-family: "Satoshi", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: #3a3f3f;
}

/* ---------- Card grid (related guides + hub listing) ---------- */
.answer-page #guide-related {
  padding: 80px 0 30px;
}
.answer-page .guide-cards-heading {
  text-align: center;
  color: #001918;
  font-family: "Satoshi", sans-serif;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 700;
  margin-bottom: 44px;
}
.answer-page .guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.answer-page .guide-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 32px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 2px 23px 2px rgba(5, 92, 90, 0.1);
  border: 1px solid rgba(22, 135, 133, 0.1);
  text-decoration: none;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out,
    background 0.3s ease-in-out;
}
.answer-page .guide-card:hover {
  background: #055c5a;
  transform: translateY(-6px);
  box-shadow: 0 34px 70px rgba(5, 92, 90, 0.24);
}
.answer-page .guide-card h3 {
  font-family: "Satoshi", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #001918;
}
.answer-page .guide-card p {
  font-family: "Satoshi", sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  color: #4a4f4f;
}
.answer-page .guide-card .guide-card-cta {
  margin-top: auto;
  font-family: "Satoshi", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #055c5a;
}
.answer-page .guide-card:hover h3,
.answer-page .guide-card:hover p,
.answer-page .guide-card:hover .guide-card-cta {
  color: #fff;
}

/* ---------- Hub-specific spacing ---------- */
.answer-page.guides-hub #guide-content {
  padding: 90px 0 40px;
}
.answer-page.guides-hub #guide-content .wrapper {
  max-width: 1200px;
}

/* Clearance so the floating footer-top card doesn't crowd the last section */
.answer-page main {
  padding-bottom: 40px;
}

/* ---------- Accessibility: focus states + reduced motion ---------- */
.answer-page .guide-card:focus-visible,
.answer-page .guide-breadcrumb a:focus-visible {
  outline: 3px solid #168785;
  outline-offset: 3px;
}
.answer-page .guide-faq-item > summary:focus-visible {
  outline: 3px solid #168785;
  outline-offset: -3px;
}
@media (prefers-reduced-motion: reduce) {
  .answer-page .guide-card,
  .answer-page .guide-faq-item,
  .answer-page .guide-faq-item > summary,
  .answer-page .guide-faq-item > summary::after,
  .answer-page .guide-breadcrumb a {
    transition: none;
  }
  .answer-page .guide-card:hover {
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1366px) {
  .answer-page #guide-content {
    padding: 70px 0 24px;
  }
  .answer-page .guide-faq-item > summary {
    font-size: 19px;
  }
}
@media (max-width: 1036px) {
  .answer-page #guide-hero {
    padding: 60px 0 55px;
  }
  .answer-page #guide-content {
    padding: 55px 0 20px;
  }
  .answer-page #guide-content .wrapper {
    max-width: 100%;
  }
  .answer-page .guide-section {
    margin-bottom: 38px;
  }
  .answer-page .guide-faq-item > summary {
    font-size: 18px;
    padding: 22px 56px 22px 24px;
  }
  .answer-page .guide-faq-answer {
    padding: 20px 24px 24px;
  }
  .answer-page #guide-related {
    padding: 60px 0 20px;
  }
  .answer-page .guide-card {
    padding: 30px 26px;
  }
}

/* ---------- Phone-specific readability boost (50+ audience) ---------- */
@media (max-width: 640px) {
  .answer-page #guide-hero .guide-lede {
    font-size: 19px;
    line-height: 1.65;
  }
  .answer-page .guide-section p {
    font-size: 21px;
    line-height: 1.8;
    margin-bottom: 22px;
  }
  .answer-page .guide-faq-item > summary {
    font-size: 19px;
  }
  .answer-page .guide-faq-answer {
    font-size: 19px;
    line-height: 1.75;
  }
  .answer-page .guide-card p {
    font-size: 18px;
    line-height: 1.6;
  }
}
