@import url('/fonts/cormorant-figtree.css');

/* Luminous "WHO IT IS FOR - Ministries we support" section upgrade */
/* Preserves #n5sl Corey interactive profile carousel card 100% unchanged */

#ministry-types.n5-mt {
  position: relative;
  overflow: visible;
  background: linear-gradient(180deg, #eef5ff 0%, #f7fbff 52%, #eef5ff 100%) !important;
  padding: 58px 24px 66px !important;
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
}

#ministry-types.n5-mt::before {
  display: none !important;
}

#ministry-types .n5-wrap.n5-mt-grid {
  position: relative;
  max-width: 1260px;
  margin: 0 auto;
  padding: 40px 42px 42px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 10%, rgba(191, 219, 254, 0.42) 0%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 92% 8%, rgba(186, 230, 253, 0.46) 0%, rgba(255, 255, 255, 0) 44%),
    radial-gradient(circle at 84% 92%, rgba(191, 219, 254, 0.48) 0%, rgba(255, 255, 255, 0) 46%),
    radial-gradient(circle at 14% 88%, rgba(219, 234, 254, 0.40) 0%, rgba(255, 255, 255, 0) 44%),
    linear-gradient(135deg, #ffffff 0%, #f9fcff 52%, #f1f7ff 100%);
  border: 1.5px solid rgba(147, 197, 253, 0.48);
  box-shadow:
    0 24px 64px -26px rgba(30, 64, 175, 0.16),
    0 0 38px rgba(147, 197, 253, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1.05fr);
  gap: 38px;
  align-items: center;
  box-sizing: border-box;
}

/* Eyebrow honey-gold pill */
#ministry-types .n5-eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 0;
  padding: 6px 15px;
  margin: 0 0 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe594 0%, #f6c343 100%);
  border: 1px solid rgba(217, 155, 22, 0.35);
  color: #0e2240 !important;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
  box-shadow:
    0 6px 14px -6px rgba(217, 155, 22, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

#ministry-types .n5-eyebrow::before {
  display: none !important;
  content: none !important;
}

/* Heading row + animated sky-blue soundwave SVG */
#ministry-types .mv-head-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 0 0 14px;
}

#ministry-types h2.n5-h {
  font-family: 'Cormorant', Georgia, serif !important;
  font-size: clamp(36px, 3.6vw, 48px) !important;
  font-weight: 700 !important;
  line-height: 1.06 !important;
  letter-spacing: -0.015em !important;
  color: #0e2240 !important;
  margin: 0 !important;
  text-align: left;
}

#ministry-types .mv-wave {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
  user-select: none;
}

#ministry-types .mv-wave svg {
  display: block;
  overflow: visible;
}

#ministry-types .mv-wave-head svg {
  width: 122px;
  height: 36px;
}

#ministry-types .mv-wave-quote svg {
  width: 112px;
  height: 34px;
}

#ministry-types .mv-wave rect {
  transform-box: fill-box;
  transform-origin: center;
  animation: mvWavePulse 2.8s ease-in-out infinite;
}

@keyframes mvWavePulse {
  0%, 100% {
    transform: scaleY(1);
    opacity: 0.78;
  }
  50% {
    transform: scaleY(0.62);
    opacity: 1;
  }
}

/* Lead paragraph */
#ministry-types .n5-mt-lead {
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.6;
  color: #2b3d59;
  margin: 0 0 22px;
  max-width: 540px;
}

/* 10 luminous white rounded ministry cards */
#ministry-types .n5-mt-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#ministry-types .n5-mt-chips li {
  position: relative;
  display: block;
  padding: 0 !important;
  margin: 0;
  background: #ffffff;
  border: 1px solid rgba(147, 197, 253, 0.42);
  border-radius: 15px;
  box-shadow:
    0 8px 22px -12px rgba(30, 64, 175, 0.16),
    0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  overflow: visible;
}

#ministry-types .n5-mt-chips li:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.56);
  box-shadow:
    0 16px 30px -12px rgba(37, 99, 235, 0.22),
    0 2px 6px rgba(15, 23, 42, 0.05);
}

#ministry-types .n5-mt-chips li.sn-open {
  z-index: 30;
  border-color: #2563eb;
}

#ministry-types .sn-chip-btn {
  position: relative;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  gap: 11px !important;
  width: 100%;
  min-height: 76px;
  padding: 12px 104px 12px 13px !important;
  border-radius: 14px;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 56%, #f8fbff 100%);
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
  font-family: 'Figtree', system-ui, sans-serif;
  color: #0e2240;
}

#ministry-types .sn-chip-btn:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

/* Left soft-sky rounded icon tile + crisp royal-blue SVG */
#ministry-types .mv-icon-tile {
  position: relative;
  z-index: 2;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(180deg, #f2f8ff 0%, #e1efff 100%);
  border: 1px solid rgba(147, 197, 253, 0.62);
  box-shadow:
    0 5px 12px -5px rgba(37, 99, 235, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#ministry-types .n5-mt-chips .mv-icon-tile svg {
  width: 20px !important;
  height: 20px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  fill: none !important;
  stroke: #2563eb !important;
  stroke-width: 1.85 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Ministry card title */
#ministry-types .mv-card-title {
  position: relative;
  z-index: 2;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 13.75px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: #0e2240;
  display: block;
}

/* Right photorealistic thumbnail with smooth left-edge white gradient fade */
#ministry-types .mv-thumb-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 47%;
  max-width: 134px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  border-radius: 0 14px 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
}

#ministry-types .mv-thumb-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.55) 18%, rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
}

#ministry-types .mv-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.35s ease;
}

#ministry-types .n5-mt-chips li:hover .mv-thumb {
  transform: scale(1.06);
}

/* Hide legacy left CTA box once buttons are moved into the unified 3-CTA row below Mark 10:45 */
#ministry-types .sn-mt-cta.mv-cta-moved {
  display: none !important;
}

/* Right column: keep .n5-mt-stage and #n5sl 100% unchanged! Only style figcaption below it */
#ministry-types .n5-mt-card {
  margin: 0;
  display: flex;
  flex-direction: column;
}

#ministry-types .n5-mt-card figcaption {
  position: relative;
  z-index: 1;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 20px !important;
  margin-top: 28px !important;
}

#ministry-types .mv-quote-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

#ministry-types .n5-mt-cap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#ministry-types .n5-mt-q {
  font-family: 'Cormorant', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 600 !important;
  font-size: 21px !important;
  line-height: 1.38 !important;
  color: #0e2240 !important;
}

#ministry-types .n5-mt-ref {
  font-family: 'Figtree', system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #166534 !important;
  margin-top: 2px;
}

/* 3 honey-gold CTA buttons below Mark 10:45 */
#ministry-types .mv-cta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

#ministry-types .mv-cta-row a.n5-btn.n5-btn-gold {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100% !important;
  min-height: 70px;
  padding: 12px 13px !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #ffeaa8 0%, #f9cf5b 54%, #f0b932 100%) !important;
  border: 1px solid rgba(217, 155, 22, 0.45) !important;
  color: #0e2240 !important;
  font-family: 'Figtree', system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.24 !important;
  text-align: left !important;
  text-decoration: none !important;
  box-shadow:
    0 12px 24px -12px rgba(217, 155, 22, 0.62),
    0 2px 6px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

#ministry-types .mv-cta-row a.n5-btn.n5-btn-gold:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #fff1be 0%, #fcd86e 54%, #f4c343 100%) !important;
  box-shadow:
    0 16px 28px -10px rgba(217, 155, 22, 0.72),
    0 4px 10px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  color: #09172e !important;
}

#ministry-types .mv-cta-row a.n5-btn.n5-btn-gold:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

#ministry-types .mv-cta-ico {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  stroke: #0e2240;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#ministry-types .mv-cta-label {
  display: block;
}

/* Tablet & smaller desktop */
@media (max-width: 1080px) {
  #ministry-types .n5-wrap.n5-mt-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px 28px 34px;
  }

  #ministry-types .n5-mt-lead {
    max-width: none;
  }
}

/* Mobile */
@media (max-width: 640px) {
  #ministry-types.n5-mt {
    padding: 34px 12px 44px !important;
  }

  #ministry-types .n5-wrap.n5-mt-grid {
    padding: 24px 16px 26px;
    border-radius: 22px;
    gap: 28px;
  }

  #ministry-types .mv-head-row {
    gap: 8px 12px;
  }

  #ministry-types .mv-wave-head svg {
    width: 96px;
    height: 28px;
  }

  #ministry-types .n5-mt-chips {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  #ministry-types .sn-chip-btn {
    min-height: 74px;
    padding: 12px 126px 12px 13px !important;
  }

  #ministry-types .mv-thumb-wrap {
    width: 44%;
    max-width: 142px;
  }

  #ministry-types .mv-quote-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  #ministry-types .n5-mt-q {
    font-size: 19px !important;
  }

  #ministry-types .mv-cta-row {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  #ministry-types .mv-cta-row a.n5-btn.n5-btn-gold {
    min-height: 58px;
    justify-content: flex-start;
    padding: 12px 18px !important;
    font-size: 14.5px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ministry-types .mv-wave rect {
    animation: none !important;
  }

  #ministry-types .n5-mt-chips li,
  #ministry-types .mv-thumb,
  #ministry-types .mv-cta-row a.n5-btn.n5-btn-gold {
    transition: none !important;
  }
}
