/* 난산교회 홈페이지 공통 스타일 */
:root {
  --purple: #774e92;
  --purple-dark: #4b2d63;
  --purple-deep: #2c1a3d;
  --blue: #4b8bcb;
  --blue-soft: #e8f1fa;
  --ink: #1f1b24;
  --muted: #6b6475;
  --line: #e9e4ef;
  --soft: #f7f4fa;
  --bg: #ffffff;
  --gold: #e7b65a;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(44, 26, 61, .12);
  --wrap: 1200px;
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 알림줄 ---------- */
.notice-bar { background: var(--purple-deep); color: #fff; font-size: 14px; }
.notice-bar .wrap { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.notice-bar .pill { background: var(--gold); color: var(--purple-deep); font-weight: 700; font-size: 12px; padding: 2px 10px; border-radius: 99px; flex: none; }
.notice-bar .txt { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-bar .more { opacity: .8; display: inline-flex; align-items: center; gap: 4px; flex: none; }
.notice-bar .more:hover { opacity: 1; }

/* ---------- 헤더 + 메가메뉴 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 44px; height: 44px; }
.brand .name { display: flex; flex-direction: column; line-height: 1.1; }
.brand .slogan { font-size: 12px; color: var(--muted); letter-spacing: -.01em; }
.brand strong { font-size: 25px; font-weight: 800; color: var(--purple); letter-spacing: -.03em; }
.brand .en { font-size: 10px; letter-spacing: .18em; color: var(--purple); font-weight: 600; }

.gnb { flex: 1; display: flex; justify-content: center; height: 100%; }
.gnb > ul { list-style: none; margin: 0; padding: 0; display: flex; height: 100%; }
.gnb > ul > li > a { display: flex; align-items: center; height: 100%; padding: 0 26px; font-size: 18px; font-weight: 700; position: relative; }
.gnb > ul > li > a::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 3px; background: var(--purple); transform: scaleX(0); transition: transform .2s; }
.gnb > ul > li > a:hover::after, .gnb > ul > li > a.on::after { transform: scaleX(1); }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(44,26,61,.08); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s; }
.site-header.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega .wrap { display: grid; grid-template-columns: 240px repeat(5, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 32px; }
.mega .intro { background: var(--soft); border-radius: var(--radius); padding: 22px; }
.mega .intro b { display: block; font-size: 18px; color: var(--purple); margin-bottom: 6px; }
.mega .intro p { margin: 0; font-size: 14px; color: var(--muted); }
.mega h4 { margin: 0 0 10px; font-size: 15px; color: var(--purple); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: 6px 0; color: var(--muted); font-size: 15px; }
.mega li a:hover { color: var(--purple); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.btn-yt { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 99px; background: #ff0033; color: #fff; font-weight: 700; font-size: 14px; }
.btn-yt .icon { width: 18px; height: 18px; }
.btn-cms { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 99px; border: 2px solid #2f8f4e; color: #2f8f4e; font-weight: 700; font-size: 14px; }
.btn-cms:hover { background: #2f8f4e; color: #fff; }
.btn-cms .icon { width: 17px; height: 17px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); }
.menu-toggle .icon { width: 28px; height: 28px; }

/* 모바일 메뉴 */
.m-nav { position: fixed; inset: 0; z-index: 100; background: rgba(20,12,28,.5); opacity: 0; visibility: hidden; transition: .2s; }
.m-nav.show { opacity: 1; visibility: visible; }
.m-nav .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(360px, 88vw); background: #fff; padding: 20px 24px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; }
.m-nav.show .panel { transform: none; }
.m-nav .close { background: none; border: 0; float: right; padding: 6px; }
.m-nav .close .icon { width: 26px; height: 26px; }
.m-nav h4 { margin: 28px 0 6px; font-size: 19px; color: var(--purple); clear: both; }
.m-nav ul { list-style: none; margin: 0; padding: 0; }
.m-nav li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ---------- 메인 배너 (이 달의 행사) ---------- */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center 40%; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1.12); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(44,26,61,.92) 0%, rgba(75,45,99,.78) 42%, rgba(75,45,99,.25) 75%, rgba(44,26,61,.35) 100%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 60px; padding-bottom: 130px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; letter-spacing: .04em; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 99px; }
.hero .eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: block; }
.hero h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.15; margin: 20px 0 14px; font-weight: 800; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: clamp(17px, 2vw, 21px); opacity: .92; margin: 0 0 34px; max-width: 620px; }
.hero-days { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 14px; margin-bottom: 28px; }
.hero-day { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 18px 20px; backdrop-filter: blur(6px); }
.hero-day .d { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.hero-day .d small { font-size: 15px; font-weight: 600; margin-left: 6px; opacity: .85; }
.hero-day .tag { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--purple-deep); background: var(--gold); padding: 1px 10px; border-radius: 99px; }
.hero-day .who { font-size: 19px; font-weight: 700; margin-top: 6px; }
.hero-day .note { font-size: 13px; opacity: .8; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 16px; opacity: .95; margin-bottom: 30px; }
.hero .meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero .meta .icon { width: 19px; height: 19px; color: var(--gold); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 99px; font-weight: 700; font-size: 16px; transition: .15s; border: 2px solid transparent; }
.btn .icon { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: var(--purple-deep); }
.btn-gold:hover { background: #f1c46c; }
.btn-line { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.12); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }

/* ---------- 바로가기 버튼 줄 ---------- */
.quick { position: relative; z-index: 5; margin-top: -70px; }
.quick ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.quick a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 8px; font-weight: 700; font-size: 16px; text-align: center; transition: .18s; height: 100%; }
.quick a:hover { transform: translateY(-4px); color: var(--purple); }
.quick .ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--purple); }
.quick .ic .icon { width: 26px; height: 26px; }
.quick li:nth-child(even) .ic { background: var(--blue-soft); color: var(--blue); }

/* ---------- 공통 섹션 ---------- */
.section { padding: 100px 0; }
.section.soft { background: var(--soft); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head .kicker { font-size: 14px; font-weight: 800; letter-spacing: .14em; color: var(--blue); text-transform: uppercase; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 6px 0 0; letter-spacing: -.03em; line-height: 1.25; }
.sec-head p { margin: 10px 0 0; color: var(--muted); }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--purple); }
.more-link .icon { width: 18px; height: 18px; }

/* ---------- 비전 3칸 ---------- */
.vision { text-align: center; }
.vision .en { font-size: clamp(40px, 6vw, 76px); font-weight: 200; letter-spacing: .02em; line-height: 1; color: var(--purple); }
.vision .en b { font-weight: 800; }
.vision h2 { font-size: clamp(26px, 3vw, 36px); margin: 18px 0 8px; letter-spacing: -.03em; }
.vision .sub { color: var(--muted); margin: 0 0 46px; }
.loves { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.love { padding: 40px 24px 36px; color: #fff; }
.love:nth-child(1) { background: #6fa3d6; }
.love:nth-child(2) { background: var(--blue); }
.love:nth-child(3) { background: #3a6fab; }
.love .icon { width: 52px; height: 52px; stroke-width: 1.5; margin: 0 auto 16px; }
.love h3 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.love .ref { opacity: .85; font-size: 15px; font-weight: 600; }
.love p { margin: 14px 0 0; font-size: 15px; opacity: .92; }

/* ---------- 설교 카드 ---------- */
.sermons { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; }
.sermon { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 0 var(--line), 0 6px 20px rgba(44,26,61,.06); display: flex; flex-direction: column; text-align: left; border: 0; padding: 0; color: inherit; transition: .18s; }
.sermon:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sermon .thumb { position: relative; aspect-ratio: 16/9; background: #ddd center/cover; }
.sermon .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.35)); }
.sermon .play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--purple); }
.sermon .play .icon { width: 26px; height: 26px; fill: currentColor; stroke: none; margin-left: 4px; }
.sermon .body { padding: 20px 22px 24px; }
.sermon.pending { cursor: default; }
.sermon.pending:hover { transform: none; box-shadow: 0 2px 0 var(--line), 0 6px 20px rgba(44,26,61,.06); }
.sermon.pending .thumb { filter: grayscale(.6) brightness(.8); }
.sermon.pending .play { opacity: .5; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--soft); color: var(--purple); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.sermon .date { font-size: 14px; color: var(--muted); margin-left: 8px; }
.sermon h3 { margin: 10px 0 4px; font-size: 21px; letter-spacing: -.02em; line-height: 1.35; }
.sermon:first-child h3 { font-size: 26px; }
.sermon .ref { color: var(--muted); font-size: 15px; }

/* ---------- 교회소식 + 예배안내 ---------- */
.two-col { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.news-list li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.news-list .cat { font-size: 13px; font-weight: 800; color: var(--purple); padding-top: 3px; }
.news-list b { display: block; font-size: 17px; }
.news-list span { color: var(--muted); font-size: 15px; }
.family { margin-top: 26px; background: var(--soft); border-radius: var(--radius); padding: 22px 24px; }
.family h3 { margin: 0 0 10px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.family h3 .icon { color: var(--purple); }
.family p { margin: 4px 0; font-size: 15px; color: var(--muted); }
.family p b { color: var(--ink); margin-right: 8px; }

.worship-card { background: linear-gradient(160deg, var(--purple) 0%, var(--purple-deep) 100%); color: #fff; border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); }
.worship-card h3 { margin: 0 0 18px; font-size: 24px; display: flex; align-items: center; gap: 10px; }
.worship-card h3 .icon { color: var(--gold); }
.times { list-style: none; margin: 0; padding: 0; }
.times li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.times li:last-child { border-bottom: 0; }
.times b { font-weight: 600; }
.times span { font-weight: 800; color: var(--gold); text-align: right; white-space: nowrap; }
.times small { display: block; font-size: 13px; opacity: .75; font-weight: 400; }
.worship-card .live { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-size: 14px; background: rgba(255,255,255,.1); border-radius: 12px; padding: 12px 14px; }
.worship-card .live .icon { width: 22px; height: 22px; color: #ff4d6d; }

/* ---------- 처음 오셨나요 ---------- */
.welcome { position: relative; color: #fff; overflow: hidden; }
.welcome .bg { position: absolute; inset: 0; background: center/cover; }
.welcome::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(44,26,61,.9), rgba(44,26,61,.55)); }
.welcome .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.welcome .kicker { color: var(--gold); font-weight: 800; letter-spacing: .14em; font-size: 14px; }
.welcome h2 { font-size: clamp(30px, 4vw, 46px); margin: 10px 0 18px; letter-spacing: -.03em; line-height: 1.25; }
.welcome p { font-size: 18px; opacity: .92; margin: 0 0 12px; }
.welcome .cards { display: grid; gap: 14px; }
.welcome .card { display: flex; gap: 16px; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 18px 20px; backdrop-filter: blur(6px); transition: .15s; }
.welcome .card:hover { background: rgba(255,255,255,.18); }
.welcome .card .icon { width: 30px; height: 30px; color: var(--gold); }
.welcome .card b { display: block; font-size: 18px; }
.welcome .card span { font-size: 14px; opacity: .8; }

/* ---------- 역사 · 해피난산 ---------- */
.history-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.big-year { font-size: clamp(70px, 11vw, 150px); font-weight: 900; line-height: .9; letter-spacing: -.05em; color: var(--purple); }
.big-year small { display: block; font-size: 20px; line-height: 1.45; letter-spacing: 0; font-weight: 700; color: var(--blue); margin-top: 18px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px; }
.timeline li::before { content: ""; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--purple); }
.timeline b { color: var(--purple); font-size: 18px; margin-right: 10px; }
.timeline span { color: var(--muted); }

.happy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.happy { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 0 var(--line); display: flex; flex-direction: column; }
.happy .img { aspect-ratio: 4/3; background: var(--soft) center/cover; }
.happy .body { padding: 22px; }
.happy h3 { margin: 6px 0 6px; font-size: 21px; letter-spacing: -.02em; }
.happy p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 오시는 길 ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.visit .info { padding: 40px; }
.visit .info h3 { margin: 0 0 20px; font-size: 26px; }
.visit dl { margin: 0 0 26px; display: grid; grid-template-columns: 70px 1fr; gap: 10px 14px; }
.visit dt { font-weight: 800; color: var(--purple); }
.visit dd { margin: 0; }
.visit .photo { background: center/cover; min-height: 320px; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--purple-deep); color: rgba(255,255,255,.75); padding: 56px 0 40px; font-size: 15px; }
.site-footer .top { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: start; }
.site-footer .f-brand img { width: 220px; }
.site-footer .en { margin-top: 14px; font-size: 13px; letter-spacing: .2em; color: rgba(255,255,255,.5); }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer address b { color: #fff; margin-right: 6px; }
.site-footer .sns a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 99px; color: #fff; }
.site-footer .sns .icon { width: 20px; height: 20px; }
.site-footer .copy { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.5); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- 영상 팝업 ---------- */
.video-modal { position: fixed; inset: 0; z-index: 200; background: rgba(10,6,14,.85); display: none; align-items: center; justify-content: center; padding: 20px; }
.video-modal.show { display: flex; }
.video-modal .box { width: min(1000px, 100%); aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; position: relative; }
.video-modal iframe { width: 100%; height: 100%; border: 0; }
.video-modal .close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.15); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.video-modal .close .icon { width: 26px; height: 26px; }

/* ---------- 하위 페이지 공통 ---------- */
.page-hero { position: relative; color: #fff; padding: 110px 0 70px; overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; background: center/cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(44,26,61,.9), rgba(75,45,99,.55)); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .crumb { font-size: 14px; opacity: .75; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); margin: 8px 0 10px; letter-spacing: -.03em; line-height: 1.15; }
.page-hero p { margin: 0; font-size: 18px; opacity: .9; max-width: 640px; }
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 16px 18px; font-weight: 700; color: var(--muted); white-space: nowrap; border-bottom: 3px solid transparent; }
.subnav a:hover, .subnav a.on { color: var(--purple); border-bottom-color: var(--purple); }
.lead-text { font-size: 19px; line-height: 1.8; color: var(--ink); }
.muted { color: var(--muted); }
.nw { white-space: nowrap; }
.note-box { background: var(--soft); border-left: 4px solid var(--purple); border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 24px 0; color: var(--muted); font-size: 15px; }

.statements { display: grid; gap: 14px; margin: 30px 0 0; }
.statement { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.statement .num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; font-weight: 800; }
.statement p { margin: 6px 0 0; font-size: 18px; }

.pastor { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start; }
.pastor .photo { border-radius: var(--radius); background: linear-gradient(180deg, var(--soft), #e9e1f1); overflow: hidden; position: sticky; top: calc(var(--header-h) + 80px); }
.pastor .photo { margin: 0; background: #fff; box-shadow: var(--shadow); }
.pastor .photo img { width: 100%; }
.pastor .photo figcaption { padding: 16px 20px 18px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font-size: 16px; color: var(--muted); }
.pastor .photo figcaption b { width: 100%; font-size: 19px; color: var(--purple); }
.pastor .sign { margin-top: 26px; font-size: 18px; }
.pastor .sign b { font-size: 26px; margin-left: 8px; letter-spacing: .1em; }
.pastor blockquote { margin: 0 0 22px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.45; letter-spacing: -.02em; color: var(--purple); }
.pastor p { margin: 0 0 16px; }
.bio { list-style: none; margin: 26px 0 0; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.bio h4 { margin: 14px 0 2px; font-size: 14px; color: var(--purple); letter-spacing: .04em; }
.bio h4:first-child { margin-top: 0; }
.bio ul { list-style: none; margin: 0; padding: 0; }
.bio li { padding: 6px 0 6px 18px; position: relative; }
.bio li::before { content: ""; position: absolute; left: 0; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }

.group-photo { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.group-photo .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 4px; }
.group-photo img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 40%; }
@media (max-width: 600px) { .group-photo .pair { grid-template-columns: 1fr; grid-auto-flow: row; } }
.group-photo figcaption { padding: 14px 22px; font-weight: 700; color: var(--purple); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.people .grp { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.people .grp h3 { margin: 0 0 8px; font-size: 15px; color: var(--purple); }
.people .grp p { margin: 0; font-size: 18px; font-weight: 600; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature .img { border-radius: var(--radius); min-height: 360px; background: center/cover; box-shadow: var(--shadow); }
.feature h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 6px 0 16px; letter-spacing: -.03em; line-height: 1.25; }
.feature ul { padding-left: 20px; color: var(--muted); }

/* 청춘부흥회 */
.radio { background: linear-gradient(160deg, #1d1030, #3b1f5c); color: #fff; }
.radio-grid { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: center; }
.radio .poster { width: 100%; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.radio h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.25; margin: 8px 0 16px; letter-spacing: -.03em; }
.radio p { opacity: .9; }
.radio p b { color: #f1c46c; }
.onair { display: grid; grid-template-columns: 80px 1fr; gap: 10px 16px; margin: 22px 0; padding: 22px 24px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); }
.onair dt { font-weight: 800; color: #f1c46c; }
.onair dd { margin: 0; font-weight: 600; }
.onair dd span { font-weight: 400; opacity: .75; font-size: 15px; }
.radio .hosts { font-size: 15px; opacity: .75; }
@media (max-width: 900px) { .radio-grid { grid-template-columns: 1fr; gap: 32px; } .radio .poster { max-width: 420px; margin: 0 auto; } }

/* 역사관 */
.era { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 50px 0; border-top: 1px solid var(--line); }
.era:first-child { border-top: 0; padding-top: 0; }
.era .head { position: sticky; top: calc(var(--header-h) + 80px); align-self: start; }
.era .head .range { font-size: 15px; font-weight: 800; color: var(--blue); letter-spacing: .06em; }
.era .head h3 { margin: 6px 0 10px; font-size: 28px; letter-spacing: -.03em; line-height: 1.3; }
.era .head p { margin: 0; font-size: 15px; color: var(--muted); }
.chron { list-style: none; margin: 0; padding: 0; }
.chron li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.chron li b { color: var(--purple); font-weight: 800; }
.chron li.key { background: var(--soft); margin: 0 -14px; padding: 14px; border-radius: 12px; border-bottom-color: transparent; }
.chron li.key span { font-weight: 700; }
.pastors { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pastors div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.pastors b { display: block; font-size: 17px; }
.pastors span { font-size: 14px; color: var(--muted); }
.pastors .now { border-color: var(--purple); background: var(--soft); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 0 var(--line); }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; filter: sepia(.12); }
.gallery figcaption { padding: 12px 16px; font-size: 15px; color: var(--muted); }
.video-slot { aspect-ratio: 16/9; border-radius: var(--radius); background: var(--purple-deep) center/cover; display: grid; place-items: center; color: #fff; text-align: center; padding: 20px; position: relative; overflow: hidden; }
.video-slot::before { content: ""; position: absolute; inset: 0; background: rgba(44,26,61,.65); }
.video-slot > * { position: relative; }
.video-slot b { display: block; font-size: 20px; margin: 10px 0 4px; }
.video-slot span { font-size: 14px; opacity: .8; }
.video-slot .icon { width: 48px; height: 48px; margin: 0 auto; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.embed { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.embed iframe { width: 100%; height: 100%; border: 0; }

/* 예배 */
.time-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 0 var(--line); }
.time-table th, .time-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.time-table th { background: var(--purple); color: #fff; font-size: 15px; }
.time-table td:first-child { font-weight: 800; }
.time-table td:nth-child(2) { color: var(--purple); font-weight: 800; white-space: nowrap; }
.time-table tr:last-child td { border-bottom: 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.info-card .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--soft); color: var(--purple); display: grid; place-items: center; margin-bottom: 14px; }
.info-card .ic .icon { width: 26px; height: 26px; }
.info-card h3 { margin: 0 0 6px; font-size: 20px; }
.info-card .when { color: var(--purple); font-weight: 800; font-size: 15px; }
.info-card p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.sermon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sermon-grid .sermon:first-child h3 { font-size: 21px; }
.filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 18px; font-weight: 700; color: var(--muted); }
.filter button.on { background: var(--purple); border-color: var(--purple); color: #fff; }
.offering { background: linear-gradient(160deg, var(--purple), var(--purple-deep)); color: #fff; border-radius: var(--radius); padding: 34px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.offering h3 { margin: 0 0 8px; font-size: 24px; }
.offering p { margin: 0; opacity: .85; }
.offering .acct { background: rgba(255,255,255,.12); border-radius: 14px; padding: 18px 22px; font-size: 20px; font-weight: 800; white-space: nowrap; }
.offering .acct small { display: block; font-size: 13px; font-weight: 500; opacity: .8; }

/* 소식 */
.event-banner { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step .n { font-size: 40px; font-weight: 900; color: var(--purple); line-height: 1; }
.step h3 { margin: 10px 0 6px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step .ex { margin-top: 12px; background: var(--soft); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--ink); }
.road { display: flex; gap: 0; margin-top: 30px; border-radius: var(--radius); overflow: hidden; }
.road div { flex: 1; padding: 18px 16px; background: var(--soft); text-align: center; border-right: 2px solid #fff; }
.road div:last-child { background: var(--purple); color: #fff; border-right: 0; }
.road b { display: block; font-size: 18px; }
.road span { font-size: 14px; color: var(--muted); }
.road div:last-child span { color: rgba(255,255,255,.85); }
.shorts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.short { border: 0; padding: 0; background: #000 center/cover; aspect-ratio: 9/14; border-radius: 14px; position: relative; overflow: hidden; color: #fff; text-align: left; }
.short::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.8)); }
.short span { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; font-size: 14px; font-weight: 700; line-height: 1.4; }

/* 새가족 등록 */
.nf-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.nf-steps li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.nf-steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--purple); color: #fff; font-weight: 800; margin-bottom: 10px; }
.nf-steps b { display: block; font-size: 18px; }
.nf-steps span { color: var(--muted); font-size: 15px; }
.nf-notice { margin: 0 0 30px; padding: 0; list-style: none; color: var(--muted); }
.nf-notice li::before { content: "- "; }
.nf-form { background: var(--soft); border-radius: var(--radius); padding: 40px; }
.nf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 22px; }
.nf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nf-field.wide { grid-column: span 2; }
.nf-field.full { grid-column: 1 / -1; }
.nf-field > label { font-size: 14px; font-weight: 700; }
.nf-field .req { color: #e0533d; font-size: 12px; font-weight: 600; }
.nf-input { display: flex; border: 1px solid #cfc6db; border-radius: 10px; background: #fff; overflow: hidden; }
.nf-input:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(119,78,146,.15); }
.nf-input input, .nf-input select, .nf-field textarea { flex: 1; min-width: 0; border: 0; padding: 13px 14px; font: inherit; font-size: 16px; background: transparent; outline: none; }
.nf-field textarea { border: 1px solid #cfc6db; border-radius: 10px; background: #fff; min-height: 90px; resize: vertical; }
.seg { display: flex; flex: none; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 13px 14px; font-size: 14px; background: #f1edf5; color: var(--muted); cursor: pointer; border-left: 1px solid #e2dbea; height: 100%; }
.seg input:checked + span { background: var(--purple); color: #fff; font-weight: 700; }
.seg input:focus-visible + span { outline: 2px solid var(--blue); }
.nf-btn-in { flex: none; border: 0; background: #f1edf5; padding: 0 16px; font-weight: 700; color: var(--purple); }
.nf-group { border: 0; margin: 30px 0 0; padding: 0; min-width: 0; }
.nf-group legend { float: left; width: 100%; font-weight: 800; font-size: 18px; padding: 26px 0 0; margin-bottom: 14px; border-top: 1px solid #e2dbea; }
.nf-group legend + * { clear: both; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: block; padding: 10px 16px; border: 1px solid #cfc6db; border-radius: 99px; background: #fff; cursor: pointer; font-size: 15px; }
.chips input:checked + span { background: var(--purple); border-color: var(--purple); color: #fff; font-weight: 700; }
.chips input:focus-visible + span { outline: 2px solid var(--blue); }
.family-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 14px; position: relative; }
.family-item h4 { margin: 0 0 14px; color: var(--purple); }
.family-item .remove { position: absolute; top: 14px; right: 14px; border: 0; background: none; color: var(--muted); font-size: 14px; }
.add-family { border: 2px dashed #cfc6db; background: #fff; border-radius: 14px; width: 100%; padding: 14px; font-weight: 700; color: var(--purple); }
.consent { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; font-size: 15px; color: var(--muted); }
.consent label { display: flex; gap: 10px; align-items: center; margin-top: 12px; color: var(--ink); font-weight: 700; }
.consent input { width: 20px; height: 20px; accent-color: var(--purple); }
.nf-actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.nf-msg { margin-top: 18px; text-align: center; font-weight: 700; }
.nf-msg.err { color: #c8412c; }
.nf-msg.ok { color: #2f8f4e; }
.nf-field.invalid .nf-input, .nf-field.invalid textarea { border-color: #e0533d; }
@media (max-width: 900px) { .nf-steps { grid-template-columns: 1fr 1fr; } .nf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .nf-form { padding: 24px 16px; } .nf-grid, .nf-steps { grid-template-columns: minmax(0, 1fr); } .nf-field.wide { grid-column: auto; } .seg span { padding: 13px 10px; } }

/* 추억의 사진전 */
.memories { background: #f4ede2; }
.memories .sec-head h2 { font-size: clamp(30px, 4vw, 44px); }
.polaroids { columns: 4 240px; column-gap: 26px; }
.polaroid { break-inside: avoid; margin: 0 0 30px; background: #fff; padding: 12px 12px 4px; box-shadow: 0 8px 20px rgba(60,40,20,.15); transform: rotate(var(--r, 0deg)); transition: transform .2s; }
.polaroid:hover { transform: rotate(0deg) scale(1.03); z-index: 1; position: relative; }
.polaroid button { display: block; border: 0; padding: 0; background: none; width: 100%; cursor: zoom-in; }
.polaroid img { width: 100%; filter: sepia(.15) saturate(.95); }
.polaroid figcaption { padding: 10px 2px 8px; font-size: 15px; text-align: center; color: #5a4632; }
.polaroid small { color: #a08a70; margin-left: 4px; }
.photo-modal { position: fixed; inset: 0; z-index: 200; background: rgba(10,6,14,.88); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 20px; gap: 14px; }
.photo-modal.show { display: flex; }
.photo-modal img { max-width: min(1100px, 100%); max-height: 82vh; border: 10px solid #fff; }
.photo-modal p { color: #fff; margin: 0; font-size: 17px; }
.photo-modal .close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.15); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.photo-modal .close .icon { width: 26px; height: 26px; }

/* 해피난산 CMS */
.cms { --green: #2f8f4e; --green-soft: #eaf5ec; }
.cms .kicker-g { color: var(--green); font-weight: 800; letter-spacing: .14em; font-size: 14px; }
.cms-hero .bg { filter: saturate(1.1); }
.cms-hero::before { background: linear-gradient(100deg, rgba(20,60,35,.9), rgba(47,143,78,.55)); }
.cms-hero h1 em { font-style: normal; color: #b9f3c8; }
.biz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.biz-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; border-top: 5px solid var(--green); }
.biz-card .n { font-size: 14px; font-weight: 800; color: var(--green); }
.biz-card h3 { margin: 6px 0 4px; font-size: 22px; letter-spacing: -.02em; }
.biz-card .sub { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.biz-card ul { list-style: none; margin: 0; padding: 0; }
.biz-card li { padding: 9px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.biz-card li b { display: block; font-size: 16px; }
.perk { display: flex; gap: 14px; align-items: center; background: var(--green-soft); border-radius: var(--radius); padding: 20px 24px; margin-top: 24px; font-size: 17px; }
.perk .icon { width: 30px; height: 30px; color: var(--green); }
.give { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.give-opt { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 16px; }
.give-opt .tag { display: inline-block; background: var(--green); color: #fff; font-weight: 800; font-size: 13px; padding: 3px 12px; border-radius: 99px; }
.give-opt h3 { margin: 10px 0 6px; font-size: 22px; }
.give-opt p { margin: 0 0 16px; color: var(--muted); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #237040; }
.acct-line { font-size: 22px; font-weight: 800; letter-spacing: .01em; }
.acct-line small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); }
.poster { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.letter { max-width: 820px; margin: 0 auto; text-align: center; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.8; font-weight: 600; }
.letter b { color: var(--green); }
.reps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .biz, .give, .reps { grid-template-columns: 1fr; } }

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  .gnb > ul > li > a { padding: 0 16px; font-size: 17px; }
  .gnb > ul > li > a::after { left: 16px; right: 16px; }
  .mega .wrap { grid-template-columns: repeat(5, 1fr); }
  .mega .intro { display: none; }
  .quick ul { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .gnb, .header-actions .btn-yt span, .header-actions .btn-cms span { display: none; }
  .btn-cms { padding: 8px 9px; }
  .header-actions { margin-left: auto; }
  .btn-yt { padding: 9px 11px; }
  .menu-toggle { display: block; }
  .mega { display: none; }
  .brand img { width: 38px; height: 38px; }
  .brand strong { font-size: 22px; }
  .section { padding: 70px 0; }
  .sermons, .two-col, .welcome .wrap, .history-teaser, .visit, .site-footer .top { grid-template-columns: 1fr; }
  .happy-grid { grid-template-columns: 1fr 1fr; }
  .loves { grid-template-columns: 1fr; }
  .subnav { top: var(--header-h); }
  .pastor, .feature, .era, .video-grid, .offering { grid-template-columns: 1fr; }
  .pastor .photo { position: static; max-width: 360px; }
  .era { gap: 20px; }
  .era .head { position: static; }
  .gallery, .sermon-grid, .steps { grid-template-columns: 1fr 1fr; }
  .road { flex-direction: column; }
  .road div { border-right: 0; border-bottom: 2px solid #fff; }
  .love { padding: 28px 20px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .notice-bar .more span { display: none; }
  .brand .slogan { display: none; }
  .hero { min-height: auto; }
  .hero .wrap { padding-top: 44px; padding-bottom: 110px; }
  .hero-days { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-day { padding: 14px; }
  .hero-day .d { font-size: 26px; }
  .hero-day .who { font-size: 16px; }
  .hero-day .note { display: none; }
  .btn { padding: 12px 20px; font-size: 15px; }
  .quick { margin-top: -60px; }
  .quick ul { gap: 10px; }
  .quick a { padding: 16px 4px; font-size: 14px; }
  .quick .ic { width: 44px; height: 44px; }
  .happy-grid { grid-template-columns: 1fr; }
  .visit .info { padding: 28px 22px; }
  .site-footer .f-brand img { width: 180px; }
  .page-hero { padding: 70px 0 44px; }
  .gallery, .sermon-grid, .steps { grid-template-columns: 1fr; }
  .chron li { grid-template-columns: 1fr; gap: 2px; }
  .time-table th, .time-table td { padding: 14px 12px; font-size: 15px; }
  .time-table td:nth-child(3) { display: none; }
  .time-table th:nth-child(3) { display: none; }
  .offering { padding: 26px 20px; }
  .offering .acct { white-space: normal; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .hero .bg { animation: none; } * { transition: none !important; } }
