@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* FamilyLife Korea 웹사이트 — 색상은 CCC싱글즈 매칭앱(familylife-matching)과 같은 토큰 */
:root {
  --purple-900: #2a1c66;
  --purple-800: #3f2a94;
  --purple-700: #5638c2;
  --purple-600: #6d4de0;
  --purple-300: #b9a8f5;
  --purple-100: #ece6fd;
  --purple-50: #f6f3ff;
  --green-700: #006a5a;
  --green-600: #13795b;
  --green-100: #d8efe8;
  --green-50: #effaf5;
  --cream: #fff8ee;
  --cream-2: #fbf1e2;
  --amber: #f3bd48;
  --red: #d9534f;
  --red-100: #fde8e7;
  --ink: #1d1930;
  --ink-2: #453f5c;
  --muted: #77718c;
  --line: #e8e3f3;
  --bg: #fffcf7;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(63, 42, 148, 0.25);
  --shadow-lg: 0 24px 60px -24px rgba(42, 28, 102, 0.35);
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 16px;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -0.025em; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 3px solid var(--purple-300); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }
.bg-cream { background: var(--cream); }
.bg-lav { background: var(--purple-50); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-600); }
.h-display { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.18; }
.h-sec { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); line-height: 1.75; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); flex-wrap: wrap; }
.sec-head .t { display: grid; gap: 12px; max-width: 640px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1.2;
  background: var(--purple-700); color: #fff; transition: transform .15s var(--ease), background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--purple-800); box-shadow: var(--shadow); }
.btn:active { transform: scale(.97); }
.btn.green { background: var(--green-600); }
.btn.green:hover { background: var(--green-700); }
.btn.ghost { background: var(--purple-50); color: var(--purple-700); }
.btn.ghost:hover { background: var(--purple-100); box-shadow: none; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.line:hover { box-shadow: inset 0 0 0 1.5px var(--purple-300); background: #fff; }
.btn.white { background: #fff; color: var(--purple-800); }
.btn.white:hover { background: var(--purple-50); }
.btn.glass { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.btn.glass:hover { background: rgba(255,255,255,.26); }
.btn.danger { background: var(--red-100); color: var(--red); }
.btn.sm { padding: 9px 15px; font-size: 13px; }
.btn.lg { padding: 17px 30px; font-size: 16px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn .ic { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--purple-700); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--green-100); color: var(--green-700); }
.badge.purple { background: var(--purple-100); color: var(--purple-700); }
.badge.gray { background: #f0eef5; color: var(--muted); }
.badge.amber { background: #fdf0d8; color: #a86a0c; }
.badge.red { background: var(--red-100); color: var(--red); }

/* 상단 */
.topbar { background: var(--purple-900); color: #ddd5ff; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar a:hover { color: #fff; }
.topbar .sns { display: flex; gap: 14px; align-items: center; }
.topbar .sns svg { width: 16px; height: 16px; }
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 252, 247, .92); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.hdr.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(42,28,102,.4); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: auto; }
.brand .kr { font-size: 12px; font-weight: 700; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; line-height: 1.3; }
.gnav { display: flex; align-items: center; gap: 4px; }
.gnav > .it { position: relative; }
.gnav > .it > a { display: flex; align-items: center; gap: 4px; padding: 10px 16px; font-weight: 600; font-size: 15.5px; border-radius: 999px; color: var(--ink-2); }
.gnav > .it > a:hover, .gnav > .it.open > a { background: var(--purple-50); color: var(--purple-700); }
.gnav > .it > a.on { color: var(--purple-700); }
.gnav > .it > a svg { width: 14px; height: 14px; transition: transform .2s; }
.gnav > .it.open > a svg { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; width: 760px;
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 22px; display: grid; grid-template-columns: 1fr 1fr 220px; gap: 6px 10px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.gnav > .it.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega a.m { display: flex; gap: 12px; padding: 10px 12px; border-radius: 14px; align-items: center; }
.mega a.m:hover { background: var(--purple-50); }
.mega a.m img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; }
.mega a.m b { display: block; font-size: 15px; }
.mega a.m small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.mega .side { grid-row: 1 / span 4; grid-column: 3; background: var(--cream); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.mega .side h4 { font-size: 16px; }
.mega .side p { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.mega .side .btn { margin-top: auto; }
.mini { position: absolute; top: calc(100% + 10px); left: 0; min-width: 200px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s var(--ease), visibility .18s; }
.gnav > .it.open .mini { opacity: 1; visibility: visible; transform: none; }
.mini a { display: block; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; }
.mini a:hover { background: var(--purple-50); color: var(--purple-700); }
.hdr .acts { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.menu-btn svg { width: 24px; height: 24px; }
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(29, 25, 48, .45); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.drawer.open { opacity: 1; visibility: visible; }
.drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 88vw); background: var(--bg); padding: 20px; overflow: auto; transform: translateX(100%); transition: transform .28s var(--ease); }
.drawer.open .panel { transform: none; }
.drawer .close { float: right; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.drawer nav { clear: both; padding-top: 12px; display: grid; gap: 2px; }
.drawer nav > a, .drawer summary { display: block; padding: 13px 10px; font-weight: 700; font-size: 17px; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer details a { display: block; padding: 10px 18px; font-size: 15px; color: var(--ink-2); }
.drawer .btn { margin-top: 18px; }
@media (max-width: 1020px) {
  .gnav, .hdr .acts .btn.line { display: none; }
  .menu-btn { display: inline-flex; }
  .brand .kr { display: none; }
  .topbar .hide-m { display: none; }
}
@media (max-width: 520px) { .hdr .acts .btn.apply { display: none; } .hdr .wrap { height: 64px; } .brand img { height: 32px; } }

/* 히어로 */
.hero { position: relative; min-height: clamp(560px, 86vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.hero .bgimg { position: absolute; inset: 0; z-index: -2; }
.hero .bgimg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 0% 100%, rgba(32, 20, 60, .82) 0%, rgba(40, 24, 64, .55) 38%, rgba(40, 24, 64, 0) 68%); }
.hero .wrap { padding-block: 96px clamp(64px, 9vh, 110px); }
.hero .copy { max-width: 620px; display: grid; gap: 22px; }
.hero .eyebrow { color: #c9f0e2; }
.hero p.lead { color: rgba(255,255,255,.88); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.hero .rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero .rise:nth-child(2) { animation-delay: .12s; } .hero .rise:nth-child(3) { animation-delay: .24s; } .hero .rise:nth-child(4) { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* 대상별 입구 */
.paths { margin-top: -64px; position: relative; z-index: 3; }
.paths .grid { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.paths a { padding: 26px 22px; display: grid; gap: 8px; border-right: 1px solid var(--line); transition: background .2s; }
.paths a:last-child { border-right: 0; }
.paths a:hover { background: var(--purple-50); }
.paths .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--purple-100); color: var(--purple-700); }
.paths .ic svg { width: 24px; height: 24px; }
.paths b { font-size: 16.5px; }
.paths small { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.paths .go { font-size: 13px; font-weight: 700; color: var(--green-600); margin-top: 2px; }
@media (max-width: 960px) { .paths .grid { grid-template-columns: 1fr 1fr; } .paths a { border-bottom: 1px solid var(--line); } .paths a:last-child { grid-column: span 2; } }
@media (max-width: 520px) { .paths { margin-top: -40px; } .paths a { padding: 18px 16px; } .paths small { display: none; } }

/* 사역 카드 */
.mcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mcards.four { grid-template-columns: repeat(4, 1fr); }
.mcard { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s; }
.mcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mcard .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--purple-50); position: relative; }
.mcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mcard:hover .ph img { transform: scale(1.05); }
.mcard .ph .badge { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.94); color: var(--purple-700); }
.mcard .bd { padding: 20px 20px 22px; display: grid; gap: 6px; flex: 1; align-content: start; }
.mcard h3 { font-size: 19px; }
.mcard p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.mcard .for { font-size: 12.5px; color: var(--green-700); font-weight: 700; }
.mcard.wide { grid-column: span 2; flex-direction: row; }
.mcard.wide .ph { aspect-ratio: auto; flex: 1.1; min-height: 260px; }
.mcard.wide .bd { flex: 1; align-content: center; padding: 30px; }
.mcard.wide h3 { font-size: 24px; }
@media (max-width: 1080px) { .mcards, .mcards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .mcards, .mcards.four { grid-template-columns: 1fr; } .mcard.wide { grid-column: auto; flex-direction: column; } .mcard.wide .ph { min-height: 0; aspect-ratio: 4/3; } }

/* 숫자 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div { padding: 30px 20px; border-right: 1px solid var(--line); display: grid; gap: 4px; }
.stats > div:last-child { border-right: 0; }
.stats b { font-size: clamp(32px, 4vw, 48px); font-weight: 800; color: var(--purple-700); letter-spacing: -0.03em; line-height: 1.1; }
.stats span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div:nth-child(2) { border-right: 0; } .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* 영상 띠 */
.vband { background: radial-gradient(1200px 500px at 85% 10%, #4d34b0 0%, transparent 60%), var(--purple-900); color: #fff; }
.vband .grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.vband .eyebrow { color: #a8e6d2; }
.vband p { color: rgba(255,255,255,.8); }
.vlist { display: grid; gap: 10px; margin-top: 26px; }
.vlist button { display: flex; gap: 14px; align-items: center; text-align: left; padding: 10px; border-radius: 16px; transition: background .2s; color: #fff; }
.vlist button:hover, .vlist button.on { background: rgba(255,255,255,.1); }
.vlist button.on { box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.vlist img { width: 112px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; flex: none; }
.vlist b { display: block; font-size: 15px; }
.vlist small { color: rgba(255,255,255,.65); font-size: 13px; }
@media (max-width: 900px) { .vband .grid { grid-template-columns: 1fr; } }

.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.yt iframe, .yt img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.yt .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,.05)); }
.yt .play span { width: 78px; height: 78px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; transition: transform .2s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.yt .play svg { width: 30px; height: 30px; color: var(--purple-700); margin-left: 4px; }
.yt .play:hover span { transform: scale(1.08); }
.yt .cap { position: absolute; left: 20px; bottom: 16px; right: 20px; color: #fff; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.5); text-align: left; }

/* 일정 */
.sched { display: grid; gap: 14px; }
.srow { display: grid; grid-template-columns: 130px 1fr auto; gap: 24px; align-items: center; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: border-color .2s, box-shadow .2s; }
.srow:hover { border-color: var(--purple-300); box-shadow: var(--shadow); }
.srow .d { display: grid; line-height: 1.2; }
.srow .d b { font-size: 26px; color: var(--purple-700); letter-spacing: -0.03em; }
.srow .d small { color: var(--muted); font-size: 13px; }
.srow h4 { font-size: 18px; }
.srow p { font-size: 14px; color: var(--ink-2); }
@media (max-width: 680px) { .srow { grid-template-columns: 1fr; gap: 10px; padding: 18px; } .srow .d { grid-auto-flow: column; justify-content: start; gap: 10px; align-items: baseline; } }

/* 소식 카드 */
.ncards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ncard { display: grid; gap: 12px; align-content: start; }
.ncard .ph { aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--purple-50); }
.ncard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ncard:hover .ph img { transform: scale(1.04); }
.ncard h3 { font-size: 17px; line-height: 1.45; }
.ncard:hover h3 { color: var(--purple-700); }
.ncard .meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
@media (max-width: 1000px) { .ncards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ncards { grid-template-columns: 1fr; } }

/* SNS */
.sns-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sns-card { border-radius: 22px; padding: 26px; display: grid; gap: 10px; align-content: start; min-height: 200px; position: relative; overflow: hidden; color: #fff; transition: transform .25s var(--ease); }
.sns-card:hover { transform: translateY(-4px); }
.sns-card svg.big { width: 34px; height: 34px; }
.sns-card b { font-size: 19px; }
.sns-card small { opacity: .85; font-size: 14px; line-height: 1.55; }
.sns-card .go { margin-top: auto; font-weight: 700; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.sns-card.ig { background: linear-gradient(135deg, #7a4fe0, #c2489a 60%, #f0a24a); }
.sns-card.youtube { background: #1d1930; }
.sns-card.cafe { background: #0f7a45; }
.sns-card.blog { background: #13795b; }
.sns-card.kakao { background: #fee500; color: #3a1d1d; }
@media (max-width: 900px) { .sns-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .sns-grid { grid-template-columns: 1fr; } .sns-card { min-height: 0; } }

/* 마무리 CTA */
.cta-band { position: relative; border-radius: 30px; overflow: hidden; color: #fff; isolation: isolate; padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(19, 90, 70, .92), rgba(19, 121, 91, .55)); }
.cta-band .ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } .cta-band .ctas { justify-content: flex-start; } }

/* 하단 */
.ftr { background: #17132a; color: #b9b3cc; font-size: 14px; padding-top: 72px; }
.ftr .grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; }
.ftr h5 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ftr a:hover { color: #fff; }
.ftr .logo { filter: brightness(0) invert(1); height: 36px; width: auto; margin-bottom: 18px; }
.ftr .sns { display: flex; gap: 8px; margin-top: 18px; }
.ftr .sns a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.ftr .sns a:hover { background: var(--purple-700); }
.ftr .sns svg { width: 18px; height: 18px; }
.ftr .bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.ftr .bottom .links { display: flex; gap: 16px; }
@media (max-width: 860px) { .ftr .grid { grid-template-columns: 1fr 1fr; } .ftr .grid > :first-child { grid-column: span 2; } }

/* 서브 페이지 머리 */
.phead { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.phead > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.phead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(30, 18, 76, .86), rgba(42, 28, 102, .35)); }
.phead .wrap { padding-block: clamp(72px, 10vw, 128px) clamp(56px, 7vw, 88px); display: grid; gap: 16px; max-width: var(--wrap); }
.phead .crumb { font-size: 13px; color: rgba(255,255,255,.75); display: flex; gap: 8px; }
.phead .crumb a:hover { color: #fff; }
.phead p { color: rgba(255,255,255,.88); max-width: 620px; }
.phead .eyebrow { color: #a8e6d2; }
.phead.plain { color: var(--ink); background: var(--cream); }
.phead.plain::after { display: none; }
.phead.plain p { color: var(--ink-2); }
.phead.plain .crumb { color: var(--muted); }
.phead.plain .eyebrow { color: var(--green-600); }

/* 사역 상세 */
.subnav { position: sticky; top: 76px; z-index: 30; background: rgba(255,252,247,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { padding: 15px 14px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a.on, .subnav a:hover { color: var(--purple-700); border-color: var(--purple-700); }
@media (max-width: 520px) { .subnav { top: 64px; } }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); margin-top: -48px; position: relative; z-index: 3; }
.facts > div { padding: 22px 24px; border-right: 1px solid var(--line); display: grid; gap: 4px; }
.facts > div:last-child { border-right: 0; }
.facts small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.facts b { font-size: 15.5px; line-height: 1.45; }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div:nth-child(2) { border-right: 0; } .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split .ph { border-radius: 26px; overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); }
.split .ph img { width: 100%; height: 100%; object-fit: cover; }
.split .txt { display: grid; gap: 18px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313795b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: st; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: grid; gap: 10px; align-content: start; counter-increment: st; }
.step::before { content: counter(st, decimal-leading-zero); font-weight: 800; font-size: 14px; color: var(--purple-600); letter-spacing: .05em; }
.step h4 { font-size: 18px; }
.step p { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: 240px; gap: 14px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.gallery img:first-child { grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; } .gallery img:first-child { grid-column: span 2; grid-row: auto; } }
.linkrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.lcard { display: flex; gap: 14px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s, transform .2s var(--ease); }
.lcard:hover { border-color: var(--purple-300); transform: translateY(-2px); }
.lcard .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--purple-50); color: var(--purple-700); display: grid; place-items: center; flex: none; }
.lcard .ic svg { width: 20px; height: 20px; }
.lcard b { display: block; font-size: 15px; }
.lcard small { color: var(--muted); font-size: 13px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 20px 4px; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--purple-600); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 22px; color: var(--ink-2); }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .related { grid-template-columns: 1fr; } }

/* 폼 */
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 36px); }
label.field { display: block; font-size: 14px; font-weight: 700; color: var(--ink-2); }
label.field .req { color: var(--red); margin-left: 2px; }
label.field input, label.field select, label.field textarea {
  display: block; width: 100%; margin-top: 7px; padding: 13px 15px; font-size: 16px; font-weight: 400;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
label.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
label.field input:focus, label.field select:focus, label.field textarea:focus { border-color: var(--purple-600); box-shadow: 0 0 0 4px var(--purple-100); }
label.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
label.field.bad input, label.field.bad select, label.field.bad textarea { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-100); }
label.field .err { display: none; color: var(--red); font-size: 12.5px; font-weight: 600; margin-top: 6px; }
label.field.bad .err { display: block; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .fgrid { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--purple-700); flex: none; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14.5px; transition: all .15s; }
.seg input:checked + span { background: var(--purple-700); border-color: var(--purple-700); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--purple-300); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; background: #fff; border: 1px solid var(--line); color: var(--ink-2); transition: all .15s; }
.chips button:hover { border-color: var(--purple-300); }
.chips button.on { background: var(--purple-700); border-color: var(--purple-700); color: #fff; }

/* 게시판 */
.board { border-top: 2px solid var(--ink); }
.board .row { display: grid; grid-template-columns: 90px 1fr 110px 110px; gap: 16px; padding: 18px 8px; border-bottom: 1px solid var(--line); align-items: center; font-size: 15px; }
.board .row.head { font-size: 13px; color: var(--muted); font-weight: 700; padding-block: 12px; }
.board .row a.t { font-weight: 600; display: flex; gap: 8px; align-items: center; }
.board .row a.t:hover { color: var(--purple-700); }
.board .row a.t svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.board .row .c { text-align: center; color: var(--muted); font-size: 14px; }
@media (max-width: 680px) { .board .row { grid-template-columns: 1fr auto; gap: 6px 12px; } .board .row.head { display: none; } .board .row > :first-child { grid-column: 1 / -1; } .board .row .c.who { display: none; } }
.post { max-width: 820px; margin-inline: auto; }
.post .meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.post .body { font-size: 17px; line-height: 1.9; white-space: pre-wrap; }
.post .cover { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; }
.post .cover img { width: 100%; height: 100%; object-fit: cover; }
.answer { background: var(--purple-50); border-radius: 18px; padding: 24px; display: grid; gap: 8px; border-left: 4px solid var(--purple-600); }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); }

/* 알림 */
.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 0; background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 14px; font-size: 14.5px; z-index: 120; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s var(--ease); pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: none; }
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(29,25,48,.5); display: grid; place-items: center; padding: 16px; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.modal.open { opacity: 1; visibility: visible; }
.modal .box { background: #fff; border-radius: 24px; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px; transform: translateY(12px) scale(.98); transition: transform .25s var(--ease); }
.modal.open .box { transform: none; }

/* 스크롤 등장 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > :nth-child(2) { transition-delay: .06s; } .stagger.in > :nth-child(3) { transition-delay: .12s; } .stagger.in > :nth-child(4) { transition-delay: .18s; }
.stagger.in > :nth-child(5) { transition-delay: .24s; } .stagger.in > :nth-child(6) { transition-delay: .3s; } .stagger.in > :nth-child(7) { transition-delay: .36s; } .stagger.in > :nth-child(8) { transition-delay: .42s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .stagger > *, .hero .rise { opacity: 1; transform: none; }
}

section[id], div[id].anchor { scroll-margin-top: 140px; }

/* 좁은 화면 다듬기 */
@media (max-width: 620px) {
  .eyebrow { letter-spacing: .08em; }
  .hero { min-height: 640px; }
  .hero .bgimg img { object-position: 72% 20%; }
  .hero::after { background: linear-gradient(0deg, rgba(30, 18, 76, .92) 0%, rgba(42, 28, 102, .6) 45%, rgba(42, 28, 102, .05) 75%); }
  .hero .ctas .btn { flex: 1 1 100%; }
  .mcard:not(.wide) { flex-direction: row; }
  .mcard:not(.wide) .ph { width: 116px; flex: none; aspect-ratio: auto; }
  .mcard:not(.wide) .bd { padding: 16px; }
  .mcard:not(.wide) h3 { font-size: 17px; }
  .mcard:not(.wide) p { font-size: 13.5px; }
  .mcards { gap: 14px; }
  .mcard .ph .badge { left: 8px; top: 8px; font-size: 11px; padding: 2px 7px; }
  .related .mcard { flex-direction: row; }
}
.facts { margin-top: -36px; }
@media (max-width: 820px) { body[data-page="ministry"] .phead .wrap { padding-bottom: 76px; } }

/* 평가 반영 */
.story { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(32px, 6vw, 96px); }
.story .ph { margin-left: calc((100vw - min(var(--wrap), 100vw - 40px)) / -2); height: clamp(420px, 48vw, 640px); border-radius: 0 32px 32px 0; overflow: hidden; }
.story .ph img { width: 100%; height: 100%; object-fit: cover; }
.story .txt { display: grid; gap: 20px; max-width: 480px; }
.story .big { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; }
.story .big em { font-style: normal; color: var(--purple-700); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story .ph { margin-left: -20px; margin-right: -20px; border-radius: 0; height: 320px; } }
.rposts { display: grid; gap: 10px; margin-top: 28px; }
.rposts a { display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.7); border: 1px solid var(--line); }
.rposts a:hover { border-color: var(--purple-300); }
.rposts img { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.rposts b { display: block; font-size: 15.5px; }
.rposts small { color: var(--muted); font-size: 13px; }
.mcard.wide .meta2 { display: grid; gap: 4px; margin: 10px 0 14px; padding: 14px 16px; background: var(--cream); border-radius: 14px; font-size: 14px; color: var(--ink-2); }
.mcard.wide .bd .btn { justify-self: start; }
.subnav { --fade: linear-gradient(90deg, #000 85%, transparent); }
@media (max-width: 760px) { .subnav .wrap { -webkit-mask-image: var(--fade); mask-image: var(--fade); padding-right: 40px; } }
.visit-card { background: #fff; border-radius: 24px; border: 1px solid var(--line); overflow: hidden; }
.visit-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.visit-card div { padding: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.mcard .ph img, .gallery img, .split .ph img { filter: saturate(1.03) sepia(.05); }
@media (max-width: 620px) {
  .hero { min-height: 0; display: block; background: var(--purple-900); }
  .hero .bgimg { position: relative; inset: auto; aspect-ratio: 4 / 3; z-index: 0; }
  .hero .bgimg img { object-position: 50% 40%; }
  .hero::after { display: none; }
  .hero .wrap { padding-block: 28px 84px; }
  .paths { margin-top: -56px; }
}

/* 사역 카드는 화면 크기와 상관없이 모두 같은 크기 */
.mcard h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.6em * 2); }
.mcard .for { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 620px) {
  .mcard:not(.wide) { height: 136px; }
  .mcard:not(.wide) .ph { height: 100%; }
  .mcard:not(.wide) .bd { align-content: center; gap: 4px; min-width: 0; }
  .mcard:not(.wide) p { line-height: 1.5; min-height: calc(1.5em * 2); }
}
