/* =========================================================
   경원교회 홈페이지 스타일
   색상은 :root 변수만 바꾸면 전체에 반영됩니다.
   ========================================================= */
:root {
  --navy: #1d2d50;
  --navy-deep: #15213c;
  --navy-soft: #2b3f6b;
  --gold: #b08d57;
  --gold-soft: #f3ece0;
  --ink: #222;
  --ink-2: #555;
  --ink-3: #888;
  --line: #e5e7eb;
  --bg: #fff;
  --bg-soft: #f5f6f8;
  --radius-xl: 140px;
  --radius: 14px;
  --header-h: 84px;
  --max: 1240px;
  --serif: "Nanum Myeongjo", serif;
  --sans: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  transition: background .3s, box-shadow .3s;
}
.site-header.is-solid,
body:not(.home) .site-header { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line); }
.site-header .inner {
  max-width: 1440px; margin: 0 auto; height: 100%;
  padding: 0 32px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; flex-direction: column; line-height: 1.15; }
.logo small { font-size: 11px; letter-spacing: .18em; color: var(--ink-2); }
.logo strong { font-size: 24px; font-weight: 800; letter-spacing: .12em; color: var(--navy); }

.site-header nav { height: 100%; }
.gnb { display: flex; gap: 8px; height: 100%; }
.gnb > li { position: relative; height: 100%; display: flex; align-items: center; }
.gnb > li > a { padding: 0 22px; font-weight: 600; font-size: 16.5px; height: 100%; display: flex; align-items: center; }
.gnb > li > a:hover, .gnb > li.active > a { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 99px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600;
}
.btn-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: #fff; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; position: relative; content: "";
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer .dim { position: absolute; inset: 0; background: rgba(10,15,30,.5); opacity: 0; transition: .3s; }
.drawer.open .dim { opacity: 1; }
.drawer .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 86vw);
  background: #fff; transform: translateX(100%); transition: .3s; overflow-y: auto; padding: 24px;
}
.drawer.open .panel { transform: none; }
.drawer .close { position: absolute; top: 16px; right: 16px; font-size: 28px; width: 44px; height: 44px; }
.drawer nav { margin-top: 48px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { padding: 16px 4px; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.drawer summary::after { content: "+"; color: var(--ink-3); }
.drawer details[open] summary::after { content: "−"; }
.drawer details a { display: block; padding: 8px 12px; color: var(--ink-2); }
.drawer details ul { padding-bottom: 12px; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; height: min(100vh, 920px); min-height: 620px; overflow: hidden; }
.hero-media {
  position: absolute; top: 0; right: 0; bottom: 0; left: 25%;
  border-bottom-left-radius: var(--radius-xl); overflow: hidden;
  box-shadow: -20px 30px 60px rgba(20,30,60,.12);
}
.hero-media .slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s ease;
}
.hero-media .slide.on { opacity: 1; transform: scale(1); }
.hero-copy {
  position: absolute; left: max(32px, calc((100vw - 1440px) / 2 + 32px)); top: 50%; transform: translateY(-46%);
  z-index: 2; width: min(520px, 46vw);
}
.hero-copy .calli { width: 100%; filter: drop-shadow(0 6px 20px rgba(255,255,255,.6)); }
.hero-copy .verse {
  margin: -60px 0 0 44%; font-family: var(--serif); font-size: 15px; line-height: 1.9; color: #333;
  background: rgba(255,255,255,.55); padding: 12px 16px; border-radius: 10px; backdrop-filter: blur(4px);
}
.hero-copy .verse cite { display: block; font-style: normal; font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.hero-dots { position: absolute; right: 48px; bottom: 40px; display: flex; gap: 10px; z-index: 3; }
.hero-dots button { width: 10px; height: 10px; border-radius: 99px; background: rgba(255,255,255,.6); transition: .3s; }
.hero-dots button.on { width: 32px; background: #fff; }

/* ---------- Quick links ---------- */
.quick { position: relative; z-index: 5; margin-top: -70px; }
.quick ul {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  background: #fff; border-radius: 20px; box-shadow: 0 20px 50px rgba(20,30,60,.10); overflow: hidden;
}
.quick a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 12px; text-align: center; transition: .25s; }
.quick li + li a { border-left: 1px solid var(--line); }
.quick a:hover { background: var(--navy); color: #fff; }
.quick a:hover small { color: rgba(255,255,255,.7); }
.quick .ico { width: 48px; height: 48px; color: var(--gold); }
.quick strong { font-size: 17px; }
.quick small { font-size: 13px; color: var(--ink-3); }

/* ---------- Section commons ---------- */
.section { padding: 120px 0; }
.eyebrow { font-size: 13px; letter-spacing: .3em; color: var(--gold); font-weight: 700; text-transform: uppercase; }
.sec-title { font-size: clamp(26px, 3vw, 38px); font-weight: 800; color: var(--navy); margin: 6px 0 14px; line-height: 1.35; }
.sec-desc { color: var(--ink-2); }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-3); }
.more::after { content: "→"; transition: .2s; }
.more:hover::after { transform: translateX(4px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 99px; font-weight: 600; font-size: 15px; transition: .2s;
  border: 1px solid var(--navy); color: var(--navy);
}
.btn:hover { background: var(--navy); color: #fff; }
.btn.solid { background: var(--navy); color: #fff; }
.btn.solid:hover { background: var(--navy-deep); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ---------- Pastor + sermon (home) ---------- */
.welcome { position: relative; padding-top: 140px; }
.welcome-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.welcome-photo {
  border-top-right-radius: var(--radius-xl); overflow: hidden; background: #eee; aspect-ratio: 4 / 3;
  box-shadow: 20px 30px 60px rgba(20,30,60,.12);
}
.welcome-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }
.welcome-text p { color: var(--ink-2); margin-bottom: 14px; }
.welcome-text .sign { margin-top: 24px; font-family: var(--serif); font-size: 18px; color: var(--navy); }
.welcome-text .sign b { font-size: 22px; margin-left: 8px; letter-spacing: .2em; }

.sermon-card {
  margin-top: -60px; position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.2fr 1fr; background: var(--navy); color: #fff;
  border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(20,30,60,.25);
}
.sermon-card .thumb { position: relative; aspect-ratio: 16/9; background: #000; }
.sermon-card .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.sermon-card .thumb .play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center; font-size: 26px;
  transition: .2s;
}
.sermon-card .thumb:hover .play { transform: scale(1.08); }
.sermon-card .info { padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; }
.sermon-card .eyebrow { color: #d7bd8f; }
.sermon-card h3 { font-size: 30px; margin: 8px 0 18px; font-family: var(--serif); font-weight: 800; }
.sermon-card dl { display: grid; grid-template-columns: 56px 1fr; gap: 6px 10px; font-size: 15px; color: rgba(255,255,255,.85); }
.sermon-card dt { color: rgba(255,255,255,.55); }
.sermon-card .actions { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.sermon-card .btn { border-color: rgba(255,255,255,.5); color: #fff; }
.sermon-card .btn:hover { background: #fff; color: var(--navy); }

/* ---------- Navy band: news + vision ---------- */
.band { background: var(--navy); color: #fff; padding: 110px 0; margin-top: 120px; }
.band .sec-title { color: #fff; }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.news-box { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 36px; }
.news-box header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; }
.news-box h3 { font-size: 22px; }
.news-box h3 small { display: block; font-size: 12px; letter-spacing: .25em; color: #d7bd8f; font-weight: 600; }
.news-box .more { color: rgba(255,255,255,.6); }
.news-list li { border-top: 1px solid rgba(255,255,255,.12); }
.news-list a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 2px; font-size: 15.5px; }
.news-list a:hover span:first-child { color: #d7bd8f; }
.news-list time { color: rgba(255,255,255,.5); font-size: 14px; white-space: nowrap; }
.vision { display: grid; grid-template-rows: auto 1fr; gap: 20px; }
.vision-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.vision-tags span { padding: 6px 16px; border-radius: 99px; border: 1px solid rgba(255,255,255,.3); font-size: 14px; }
.vision-card { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vision-card img { border-radius: 16px; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 55/39; }
.vision blockquote { font-family: var(--serif); font-size: 18px; line-height: 1.9; color: rgba(255,255,255,.9); }

/* ---------- Gallery ---------- */
.gallery-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 36px; gap: 20px; flex-wrap: wrap; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.album-card { display: block; }
.album-card .ph { aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; background: var(--bg-soft); }
.album-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.album-card:hover .ph img { transform: scale(1.06); }
.album-card .cat { display: inline-block; margin-top: 14px; font-size: 12px; color: var(--gold); font-weight: 700; }
.album-card h4 { font-size: 16.5px; margin-top: 2px; }
.album-card time { font-size: 13px; color: var(--ink-3); }

/* ---------- Location (home) ---------- */
.visit { position: relative; background: var(--bg-soft); border-top-left-radius: var(--radius-xl); padding: 110px 0; }
.visit-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.visit-info dl { margin: 22px 0 30px; display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.visit-info dt { color: var(--ink-3); }
.visit-info dd { font-weight: 600; }
.sns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.sns a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.sns a:hover { border-color: var(--navy); }
.sns svg { width: 18px; height: 18px; }
.map-frame { border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px rgba(20,30,60,.12); aspect-ratio: 4/3; background: #ddd; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 56px 0 40px; font-size: 14px; }
.site-footer .f-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .f-logo strong { color: #fff; font-size: 22px; letter-spacing: .12em; }
.site-footer .f-logo small { display: block; font-size: 11px; letter-spacing: .18em; }
.site-footer address { font-style: normal; margin-top: 14px; line-height: 1.9; }
.site-footer .f-links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .f-links a:hover { color: #fff; }
.site-footer .copy { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.45); }
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.2); opacity: 0; visibility: hidden; transition: .3s;
}
.to-top.show { opacity: 1; visibility: visible; }

/* ---------- Sub page ---------- */
.sub-hero { position: relative; min-height: 240px; padding: 48px 0; background: linear-gradient(115deg, #f3f0e9, #f3f7f5); }
.sub-hero .bg { display: none; }
.sub-hero .copy { position: relative; z-index: 2; min-height: 144px; display: flex; flex-direction: column; justify-content: center; }
.sub-hero .copy .eyebrow { margin-bottom: 8px; }
.sub-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; color: var(--navy); }
.sub-hero .verse { font-family: var(--serif); color: var(--ink-2); margin-top: 10px; font-size: 15px; }

.sub-nav { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: var(--header-h); z-index: 50; }
.sub-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sub-nav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sub-nav ul::-webkit-scrollbar { display: none; }
.sub-nav a { display: block; padding: 18px 18px; white-space: nowrap; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; }
.sub-nav a.on, .sub-nav a:hover { color: var(--navy); border-color: var(--navy); }
.breadcrumb { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.breadcrumb span + span::before { content: "›"; margin: 0 8px; }

.sub-body { padding: 90px 0 130px; }
.page-head { text-align: center; margin-bottom: 64px; }
.page-head .sec-title { margin-bottom: 8px; }

/* Greeting */
.greeting { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.greeting .photo { border-top-right-radius: 90px; overflow: hidden; background: var(--bg-soft); position: sticky; top: calc(var(--header-h) + 90px); }
.greeting .photo figcaption { padding: 16px 20px; background: var(--navy); color: #fff; font-size: 15px; }
.greeting .photo figcaption b { font-size: 20px; letter-spacing: .3em; margin-left: 6px; }
.greeting h2 { font-family: var(--serif); font-size: 32px; color: var(--navy); line-height: 1.5; margin-bottom: 30px; }
.greeting h2 em { font-style: normal; color: var(--gold); display: block; font-size: 22px; }
.greeting p { margin-bottom: 18px; color: var(--ink-2); font-size: 16.5px; }
.greeting .closing { margin-top: 30px; font-weight: 700; color: var(--navy); }

/* History */
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 140px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-decade { display: grid; grid-template-columns: 140px 1fr; margin-bottom: 48px; }
.tl-decade h3 { font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1; padding-top: 4px; }
.tl-decade ul { padding-left: 40px; }
.tl-decade li { position: relative; padding-bottom: 22px; }
.tl-decade li::before { content: ""; position: absolute; left: -46px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); }
.tl-decade time { display: block; font-weight: 700; color: var(--gold); font-size: 15px; }

/* People */
.people-group { margin-bottom: 56px; }
.people-group > h3 { font-size: 15px; color: var(--gold); letter-spacing: .1em; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.people-group > h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: .25s; }
.person:hover { box-shadow: 0 16px 40px rgba(20,30,60,.08); transform: translateY(-4px); }
.person .ph { aspect-ratio: 3/4; background: var(--bg-soft); display: grid; place-items: center; color: #c9ced8; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; }
.person .ph svg { width: 40%; }
.person .tx { padding: 20px 22px 24px; }
.person h4 { font-size: 20px; }
.person h4 small { font-size: 14px; color: var(--gold); margin-left: 6px; font-weight: 600; }
.person ul { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.person li::before { content: "· "; color: var(--ink-3); }

/* Worship */
.worship-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.w-card { border-radius: 18px; padding: 26px 26px 22px; color: #fff; position: relative; overflow: hidden; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.w-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.12); }
.w-card h4 { font-size: 20px; }
.w-card .time { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.w-card .meta { display: flex; justify-content: space-between; font-size: 14px; opacity: .85; border-top: 1px solid rgba(255,255,255,.25); padding-top: 10px; margin-top: 14px; }
.w-card.c1 { background: linear-gradient(135deg, #1d2d50, #2b3f6b); }
.w-card.c2 { background: linear-gradient(135deg, #8a6a3b, #b08d57); }
.w-card.c3 { background: linear-gradient(135deg, #3f6f73, #5f9a8f); }
.worship-section + .worship-section { margin-top: 56px; }
.worship-section > h3 { font-size: 20px; color: var(--navy); margin-bottom: 18px; }
.notice-box { margin-top: 48px; background: var(--gold-soft); border-radius: 16px; padding: 24px 28px; color: #6b5532; }
.notice-box li::before { content: "※ "; }

/* Location */
.loc-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.loc-info { background: var(--bg-soft); border-radius: 20px; padding: 32px; }
.loc-info h3 { font-size: 22px; color: var(--navy); margin-bottom: 14px; }
.loc-info dl { display: grid; grid-template-columns: 60px 1fr; gap: 10px; margin-bottom: 24px; }
.loc-info dt { color: var(--ink-3); }
.map-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.map-btns a { flex: 1; text-align: center; padding: 12px; border-radius: 12px; font-weight: 700; font-size: 14px; color: #fff; }
.map-btns .naver { background: #03c75a; }
.map-btns .kakao { background: #fee500; color: #3c1e1e; }
.map-btns .google { background: #4285f4; }

/* Department pages */
.dept-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.dept-hero .ph { border-radius: 24px; overflow: hidden; border-top-right-radius: 90px; box-shadow: 0 20px 50px rgba(20,30,60,.12); }
.dept-hero .ph img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.dept-hero .eng { font-size: 14px; letter-spacing: .25em; color: var(--gold); font-weight: 700; }
.dept-hero h2 { font-size: clamp(28px, 3vw, 40px); color: var(--navy); font-weight: 800; margin: 4px 0 16px; }
.dept-hero p { color: var(--ink-2); }
.info-rows { display: grid; gap: 18px; }
.info-row { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.info-row > h3 { font-size: 16px; color: var(--navy); }
.info-row > h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: middle; }
.info-row .motto { font-family: var(--serif); font-size: 20px; font-weight: 800; color: var(--navy); }
.info-row blockquote { font-family: var(--serif); color: var(--ink-2); line-height: 2; }
.info-row blockquote cite { font-style: normal; color: var(--gold); margin-left: 6px; }
.staff-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.staff-table th, .staff-table td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.staff-table th { background: var(--bg-soft); color: var(--navy); width: 22%; font-weight: 700; }
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 72px; }
.feature-cards li { background: var(--bg-soft); border-radius: 20px; padding: 30px; }
.feature-cards .num { font-size: 32px; font-weight: 800; color: var(--gold); line-height: 1; }
.feature-cards h4 { font-size: 19px; color: var(--navy); margin: 14px 0 8px; }
.feature-cards p { font-size: 15px; color: var(--ink-2); }
.photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.photo-row img { border-radius: 16px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Mission */
.mission-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.mission-intro .map { background: #eaf2f6; border-radius: 24px; padding: 20px; }
.mission-countries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 56px; }
.mission-countries li { border: 1px solid var(--line); border-radius: 18px; padding: 24px 20px; text-align: center; }
.mission-countries .flag { display: block; width: 64px; height: auto; margin: 0 auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.mission-countries h4 { margin: 10px 0 4px; color: var(--navy); font-size: 18px; }
.mission-countries p { font-size: 14px; color: var(--ink-2); }
.verse-box { text-align: center; background: var(--navy); color: #fff; border-radius: 24px; padding: 48px 32px; font-family: var(--serif); font-size: 19px; line-height: 2; }
.verse-box cite { display: block; font-style: normal; color: #d7bd8f; margin-top: 10px; font-size: 15px; }
.ministry-list { display: grid; gap: 56px; }
.ministry-item { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.ministry-item:nth-child(even) .imgs { order: 2; }
.ministry-item .imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ministry-item .imgs img { border-radius: 16px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.ministry-item .num { font-size: 14px; color: var(--gold); font-weight: 800; letter-spacing: .2em; }
.ministry-item h3 { font-size: 26px; color: var(--navy); margin: 4px 0 12px; }
.ministry-item p { color: var(--ink-2); }

/* Board / list */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.tabs button { padding: 10px 20px; border-radius: 99px; border: 1px solid var(--line); font-weight: 600; color: var(--ink-2); }
.tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.board { border-top: 2px solid var(--navy); }
.board li { border-bottom: 1px solid var(--line); }
.board a, .board .row { display: grid; grid-template-columns: 70px 1fr 120px; gap: 16px; align-items: center; padding: 18px 8px; }
.board a:hover { background: var(--bg-soft); }
.board .no { color: var(--ink-3); text-align: center; font-size: 14px; }
.board .tit { font-weight: 600; }
.board time { color: var(--ink-3); font-size: 14px; text-align: right; }
.board .badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--gold-soft); color: #8a6a3b; margin-right: 8px; font-weight: 700; }
.empty { text-align: center; padding: 80px 0; color: var(--ink-3); }

.sermon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.sermon-item .thumb { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; }
.sermon-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.sermon-item:hover .thumb img { transform: scale(1.05); opacity: .85; }
.sermon-item h4 { font-size: 18px; margin-top: 14px; }
.sermon-item p { font-size: 14px; color: var(--ink-3); }
.video-modal { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.85); display: none; place-items: center; padding: 24px; }
.video-modal.open { display: grid; }
.video-modal .frame { width: min(1100px, 100%); aspect-ratio: 16/9; }
.video-modal iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }
.video-modal .close { position: absolute; top: 16px; right: 20px; color: #fff; font-size: 36px; }

/* Album detail + lightbox */
.album-detail-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.album-detail-head h2 { font-size: 28px; color: var(--navy); }
.photo-grid { columns: 4 240px; column-gap: 14px; }
.photo-grid a { display: block; margin-bottom: 14px; border-radius: 12px; overflow: hidden; break-inside: avoid; }
.photo-grid img { width: 100%; transition: .4s; }
.photo-grid a:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; color: #fff; font-size: 40px; width: 60px; height: 60px; }
.lightbox .close { top: 12px; right: 12px; }
.lightbox .prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .count { position: absolute; bottom: 20px; color: rgba(255,255,255,.7); font-size: 14px; }

/* Calendar */
.cal-head { display: flex; justify-content: center; align-items: center; gap: 24px; margin-bottom: 24px; }
.cal-head h2 { font-size: 28px; color: var(--navy); min-width: 180px; text-align: center; }
.cal-head button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); font-size: 18px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 2px solid var(--navy); border-left: 1px solid var(--line); }
.cal > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 110px; padding: 8px; font-size: 13px; }
.cal .dow { min-height: auto; text-align: center; font-weight: 700; background: var(--bg-soft); padding: 10px; }
.cal .sun, .cal .dow:first-child { color: #d14343; }
.cal .sat, .cal .dow:last-child { color: #3a62c4; }
.cal .muted { background: #fafafa; color: #ccc; }
.cal .today .d { background: var(--navy); color: #fff; border-radius: 50%; width: 26px; height: 26px; display: inline-grid; place-items: center; }
.cal .ev { display: block; margin-top: 4px; padding: 2px 6px; border-radius: 4px; background: var(--gold-soft); color: #6b5532; font-size: 12px; line-height: 1.5; }
.event-list { margin-top: 32px; }
.event-list li { display: flex; gap: 16px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.event-list time { color: var(--gold); font-weight: 700; min-width: 110px; }

/* Reveal animation */
.reveal { opacity: 1; transform: none; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media .slide { transition: opacity .3s; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .gnb > li > a { padding: 0 14px; font-size: 15.5px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; --radius-xl: 80px; }
  .gnb, .btn-live { display: none; }
  .menu-toggle { display: block; }
  .site-header .inner { padding: 0 16px; }
  .logo strong { font-size: 20px; }
  .hero { height: 88vh; min-height: 560px; }
  .hero-media { left: 0; top: 0; bottom: 30%; border-bottom-left-radius: var(--radius-xl); }
  .hero-copy { left: 16px; right: 16px; width: auto; top: auto; bottom: 24px; transform: none; display: flex; align-items: flex-end; gap: 8px; }
  .hero-copy .calli { width: 52%; }
  .hero-copy .verse { margin: 0; font-size: 13px; padding: 10px 12px; }
  .hero-dots { right: 20px; bottom: auto; top: calc(70% - 40px); }
  .quick { margin-top: 24px; }
  .quick ul { grid-template-columns: repeat(3, 1fr); }
  .quick li:nth-child(4) a { border-left: 0; }
  .quick li:nth-child(n+4) a { border-top: 1px solid var(--line); }
  .quick a { padding: 22px 8px; }
  .section, .welcome { padding: 80px 0; }
  .welcome-grid, .band-grid, .visit-grid, .greeting, .loc-grid, .dept-hero, .mission-intro, .ministry-item { grid-template-columns: 1fr; gap: 32px; }
  .ministry-item:nth-child(even) .imgs { order: 0; }
  .sermon-card { grid-template-columns: 1fr; margin-top: 40px; }
  .sermon-card .info { padding: 28px 24px; }
  .band { margin-top: 40px; padding: 80px 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .greeting .photo { position: static; max-width: 360px; }
  .sub-hero { min-height: 200px; padding: 28px 0; }
  .sub-hero .bg { left: 0; }
  .sub-hero .bg::after { background: linear-gradient(90deg, rgba(255,255,255,.85), rgba(255,255,255,.2)); }
  .breadcrumb { display: none; }
  .sub-body { padding: 56px 0 90px; }
  .feature-cards { grid-template-columns: 1fr; }
  .mission-countries { grid-template-columns: repeat(2, 1fr); }
  .info-row { grid-template-columns: 1fr; gap: 10px; }
  .timeline::before { left: 8px; }
  .tl-decade { grid-template-columns: 1fr; gap: 16px; }
  .tl-decade h3 { padding-left: 32px; }
  .tl-decade ul { padding-left: 32px; }
  .tl-decade li::before { left: -30px; }
  .cal > div { min-height: 70px; padding: 4px; font-size: 12px; }
  .cal .ev { font-size: 10.5px; padding: 1px 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .board a, .board .row { grid-template-columns: 1fr; gap: 2px; padding: 14px 4px; }
  .board .no { display: none; }
  .board time { text-align: left; }
  .vision-card { grid-template-columns: 1fr; }
  .news-box { padding: 24px; }
  .staff-table th, .staff-table td { padding: 10px 8px; font-size: 14px; }
  .staff-table th { width: 32%; }
}

/* Clear first-visit navigation and compact, mobile-first home. */
body { overflow-wrap: break-word; }
:where(main, section, article, nav, div, li, dd, figure) { min-width: 0; }
:focus-visible { outline: 3px solid #28796d; outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 500; background: white; padding: 12px 20px; }
.skip-link:focus { top: 12px; }
#main-content { scroll-margin-top: var(--header-h); }
.site-header { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.home-intro { padding: 48px 0 32px; background: radial-gradient(ellipse at top left, #f1ece2, transparent 65%), #f7f9f8; }
.intro-grid { display: grid; gap: 32px; align-items: center; }
.intro-label { display: inline-block; font-size: 13px; font-weight: 700; color: #386559; margin-bottom: 20px; }
.intro-copy h1 { font-size: clamp(30px, 4vw, 52px); line-height: 1.3; letter-spacing: -.055em; color: var(--navy); }
.intro-copy h1 span { color: #386559; }
.intro-description { color: var(--ink-2); margin: 24px 0; font-size: 17px; }
.intro-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.intro-actions .btn { padding: 12px 18px; }
.intro-note { font-size: 13px; color: #606761; margin-top: 18px; }
.intro-photo { overflow: hidden; border-radius: 32px 110px 32px 110px; background: #eee9df; box-shadow: 0 24px 55px rgba(53, 62, 92, .13); }
.intro-photo img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 52%; }
.home .quick { margin-top: 24px; }
.home .quick ul { box-shadow: none; border: 1px solid var(--line); border-radius: 18px; }
.home .quick a { padding: 22px 8px; }
.home .quick small { display: none; }
.home .quick .ico { width: 30px; height: 30px; }
.home .welcome { padding-top: 64px; }
.home .welcome-photo { border-radius: 24px; box-shadow: none; }
.home .sermon-card { margin-top: 48px; box-shadow: none; }
.home .band { margin-top: 64px; padding: 64px 0; }
.home .section, .home .visit { padding: 64px 0; }
.home .visit { border-radius: 0; }
.news-list a > span { min-width: 0; }
.sermon-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.photo-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.btn, .btn-live, .more, .drawer details a, .f-links a { min-height: 44px; }
.drawer .panel { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.site-footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
@media (min-width: 961px) {
  .intro-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .home-intro { padding-bottom: 56px; }
}
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 4px; }
  .tabs button { white-space: nowrap; flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Shared page navigation stays in its own row beneath the header. */
.sub-nav ul { flex: 1; min-width: 0; scrollbar-width: thin; }
.sub-nav li { flex-shrink: 0; }
.sub-nav a { min-height: 56px; }
.sub-body { scroll-margin-top: calc(var(--header-h) + 64px); }
.people-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.worship-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
@media (max-width: 560px) {
  .sub-nav a { padding: 14px 12px; }
  .greeting h2 { font-size: 26px; }
  .cal-head { gap: 12px; }
  .cal-head h2 { min-width: 0; font-size: 23px; }
  .cal { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .event-list li { flex-wrap: wrap; gap: 4px 12px; }
  .intro-photo { border-radius: 22px 64px 22px 64px; }
}

/* Avoid enlarging small originals or hiding faces with square crops. */
.greeting .photo { max-width: 350px; width: 100%; }
.greeting .photo img { width: 100%; height: auto; }
.person { max-width: 320px; width: 100%; }
.ministry-item .imgs { max-width: 512px; }
.ministry-item .imgs img { aspect-ratio: auto; height: auto; max-width: 250px; }
.photo-row img { object-fit: contain; height: auto; aspect-ratio: auto; }

/* Keep the dropdown below the header and allow keyboard access. */
.gnb-sub { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 190px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 14px 14px; box-shadow: 0 14px 30px rgba(20,30,60,.14); visibility: hidden; opacity: 0; }
.gnb > li:hover .gnb-sub, .gnb > li:focus-within .gnb-sub { visibility: visible; opacity: 1; }
.gnb-sub a { display: flex; align-items: center; min-height: 44px; padding: 9px 14px; color: var(--ink-2); border-radius: 8px; white-space: nowrap; font-size: 15px; }
.gnb-sub a:hover, .gnb-sub a:focus-visible, .gnb-sub a[aria-current="page"] { background: var(--bg-soft); color: var(--navy); }
.sub-hero-inner { display: block; }
.sub-hero .verse { font-family: var(--sans); }

/* Social channels in the shared footer */
.footer-social { margin-top: 30px; }
.footer-social-title { color: rgba(255,255,255,.72); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.footer-social-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-social-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: rgba(255,255,255,.85); font-size: 13px; }
.footer-social-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.07); flex-shrink: 0; transition: background .2s, border-color .2s; }
.footer-social-icon svg { width: 21px; height: 21px; }
.footer-social-links a:hover .footer-social-icon, .footer-social-links a:focus-visible .footer-social-icon { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.65); }

/* A soft, slow aurora gives the home page a calm welcome. */
.home-intro { position: relative; isolation: isolate; overflow: hidden; background: #f9f8fb; }
.home-intro::before { content: ""; position: absolute; z-index: -1; inset: -25%; pointer-events: none; background: radial-gradient(ellipse at 12% 18%, rgba(255, 218, 210, .58), transparent 38%), radial-gradient(ellipse at 55% 8%, rgba(210, 222, 255, .68), transparent 43%), radial-gradient(ellipse at 90% 62%, rgba(221, 211, 249, .58), transparent 40%), radial-gradient(ellipse at 42% 94%, rgba(211, 238, 232, .54), transparent 40%); animation: home-aurora 22s ease-in-out infinite alternate; }
@keyframes home-aurora { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.04); } }
.intro-label { color: #375779; }
.intro-copy h1 span { color: #34598d; background: linear-gradient(100deg, #285c98, #604397); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@media (prefers-reduced-motion: reduce) { .home-intro::before { animation: none; } }

.intro-scripture { color: #555d70; font-size: 14px; font-weight: 600; margin: -12px 0 24px; }
