/* ==========================================================================
   백년로교회 공식 홈페이지 — 시네마틱 에디토리얼 스타일시트
   Inspired by modern Korean church editorial architecture + MIT motion stack
   ========================================================================== */

:root {
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #64748B;
  --bg: #FFFFFF;
  --bg-soft: #F6F7FA;
  --dark: #0B1324;
  --dark-2: #121E36;
  --navy: #163059;
  --gold: #C8963E;
  --gold-bright: #EAB308;
  --gold-pale: #FEF9EC;
  --border: #E5E7EB;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(11, 19, 36, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans KR", "Malgun Gothic", -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.f-ico {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
}
.ico-inv { filter: brightness(0) invert(1); }

.hapdong-inline {
  width: 1.25em;
  height: 1.25em;
  object-fit: contain;
  vertical-align: -0.22em;
  margin-right: 4px;
  background: #FFFFFF;
  border-radius: 3px;
  padding: 1px;
  display: inline-block;
}

/* 스크롤 진행 바 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), #FDE68A);
  z-index: 999;
  transition: width 0.08s linear;
}

/* ===== 1. 플로팅 글래스 헤더 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 16px 0;
  color: #FFFFFF;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  padding: 11px 0;
  box-shadow: 0 6px 28px rgba(11, 19, 36, 0.08);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand-emblem {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #FFFFFF;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  flex-shrink: 0;
}
.brand-emblem img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: "Noto Serif KR", serif;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-size: 0.72rem;
  opacity: 0.86;
  margin-top: 2px;
  font-weight: 600;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.desktop-nav a {
  font-size: 0.94rem;
  font-weight: 700;
  position: relative;
  padding: 6px 0;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.28s var(--ease);
}
.desktop-nav a:hover, .desktop-nav a.active { opacity: 1; }
.desktop-nav a:hover::after, .desktop-nav a.active::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 10px; }
.icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: 0.2s;
}
.icon-pill img { filter: brightness(0) invert(1); width: 16px; height: 16px; }
.site-header.scrolled .icon-pill {
  background: var(--bg-soft);
  border-color: var(--border);
  color: var(--navy);
}
.site-header.scrolled .icon-pill img { filter: none; }
.icon-pill:hover { transform: translateY(-1px); background: var(--gold); color: #0B1324; border-color: var(--gold); }
.icon-pill:hover img { filter: none; }

.menu-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(11, 19, 36, 0.35);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  transition: 0.22s var(--ease);
}
.site-header.scrolled .menu-trigger {
  background: var(--dark);
  border-color: var(--dark);
  color: #FFFFFF;
}
.menu-trigger:hover { background: var(--gold); border-color: var(--gold); color: #0B1324; }
.menu-bars { display: inline-flex; flex-direction: column; gap: 5px; width: 18px; }
.menu-bars i { display: block; height: 2px; background: currentColor; border-radius: 2px; }

/* 풀스크린 오버레이 [MENU] */
.fs-menu {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: radial-gradient(circle at 80% 18%, rgba(200, 150, 62, 0.16), transparent 50%), #080F1E;
  color: #FFFFFF;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  overflow-y: auto;
}
.fs-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.fs-menu-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 24px 36px;
}
.fs-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.fs-close {
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.fs-close:hover { background: var(--gold); border-color: var(--gold); }
.fs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding: 48px 0;
}
.fs-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.fs-col h3 {
  font-family: "Noto Serif KR", serif;
  font-size: 1.5rem;
  margin: 0 0 20px;
}
.fs-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.fs-col a {
  font-size: 1.02rem;
  color: #CBD5E1;
  font-weight: 600;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}
.fs-col a:hover { color: #FFFFFF; transform: translateX(5px); }
.fs-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: #94A3B8;
}
.fs-bottom a { color: #FDE68A; font-weight: 700; }

/* ===== 2. 풀스크린 시네마틱 히어로 슬라이더 ===== */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--dark);
  color: #FFFFFF;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.55;
}
.hero-swipe {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
  visibility: hidden;
}
.swipe-wrap {
  overflow: hidden;
  position: relative;
  height: 100%;
}
.hero-slide {
  float: left;
  width: 100%;
  min-height: calc(100svh - 84px);
  position: relative;
  display: flex;
  align-items: center;
  padding: 132px 0 110px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: kenBurns 16s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  0% { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.11) translate3d(-1.2%, -0.8%, 0); }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 15, 30, 0.86) 0%, rgba(8, 15, 30, 0.56) 56%, rgba(8, 15, 30, 0.35) 100%),
    linear-gradient(180deg, rgba(8, 15, 30, 0.55) 0%, transparent 32%, rgba(8, 15, 30, 0.78) 100%);
}
.hero-content {
  position: relative;
  z-index: 4;
  max-width: 820px;
  margin-left: max(24px, calc((100vw - 1240px) / 2 + 24px));
  padding: 0 24px 0 0;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(253, 230, 138, 0.42);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #FEF3C7;
  margin-bottom: 18px;
}
.hero-en {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: #FDE68A;
  margin: 0 0 10px;
}
.hero-content h1 {
  font-family: "Noto Serif KR", serif;
  font-size: clamp(2.2rem, 4.8vw, 3.85rem);
  font-weight: 900;
  line-height: 1.22;
  margin: 0 0 20px;
  letter-spacing: -0.025em;
  word-break: keep-all;
}
.hero-content h1 span {
  color: #FDE68A;
  background: linear-gradient(120deg, #FDE68A 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  color: #E2E8F0;
  max-width: 610px;
  margin: 0 0 30px;
  line-height: 1.75;
  word-break: keep-all;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* 공용 버튼 */
.btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); color: #0B1324; box-shadow: 0 10px 26px rgba(245, 158, 11, 0.3); }
.btn-gold:hover { box-shadow: 0 14px 32px rgba(245, 158, 11, 0.42); }
.btn-glass { background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); color: #FFFFFF; border-color: rgba(255, 255, 255, 0.35); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.22); }
.btn-primary { background: var(--navy); color: #FFFFFF; }
.btn-primary:hover { background: var(--dark); }
.btn-outline-dark { background: #FFFFFF; color: var(--navy); border-color: #CBD5E1; }
.btn-outline-dark:hover { border-color: var(--navy); background: var(--bg-soft); }
.btn-outline-light { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.38); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #FFFFFF; }

/* 히어로 컨트롤 */
.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 102px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.hero-dots, .hero-nav-btns { pointer-events: auto; display: flex; align-items: center; gap: 8px; }
.hero-dot {
  cursor: pointer;
  width: 30px;
  height: 4px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.34);
  transition: 0.3s var(--ease);
}
.hero-dot.active { width: 52px; background: #F59E0B; }
.ctrl-circle {
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(11, 19, 36, 0.45);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.ctrl-circle:hover { background: var(--gold); border-color: var(--gold); }

/* 하단 퀵 액션 바 */
.hero-quickbar {
  position: relative;
  z-index: 6;
  background: rgba(11, 19, 36, 0.88);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.quickbar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.qb-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.22s;
}
.qb-item:last-child { border-right: none; }
.qb-item:hover { background: rgba(255, 255, 255, 0.08); }
.qb-item img { width: 22px; height: 22px; filter: brightness(0) invert(1); opacity: 0.88; }
.qb-item strong { display: block; font-size: 0.96rem; color: #FFFFFF; }
.qb-item span { font-size: 0.78rem; color: #CBD5E1; }

/* 키네틱 마키 띠 */
.marquee-wrap {
  background: var(--navy);
  color: #FEF3C7;
  padding: 13px 0;
  overflow: hidden;
  border-bottom: 2px solid var(--gold);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  animation: marqueeRoll 32s linear infinite;
}
.marquee-track i { font-style: normal; color: var(--gold); }
@keyframes marqueeRoll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== 공용 섹션 ===== */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--dark); color: #FFFFFF; }

.sec-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 52px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 10px;
}
.eyebrow-gold { color: #FDE68A; }
.sec-title {
  font-family: "Noto Serif KR", serif;
  font-size: clamp(1.85rem, 3.1vw, 2.55rem);
  font-weight: 900;
  line-height: 1.28;
  margin: 0;
  color: var(--ink);
  word-break: keep-all;
}
.sec-title.light { color: #FFFFFF; }
.sec-lead {
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.75;
  word-break: keep-all;
}
.sec-lead.light { color: #CBD5E1; margin-bottom: 16px; }
.sec-right-action { display: flex; flex-direction: column; align-items: flex-start; }

/* ===== 3. 4대 사명 카드 + 2027 표어 배너 ===== */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 54px;
}
.mission-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: border-color 0.25s;
}
.mission-card:hover { border-color: var(--gold); }
.m-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.m-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold);
}
.m-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-pale);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mission-card h3 {
  font-size: 1.32rem;
  font-weight: 800;
  margin: 0 0 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.mission-card h3 span {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
}
.mission-card p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); line-height: 1.68; word-break: keep-all; }

.motto-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 64px 44px;
  color: #FFFFFF;
  text-align: center;
  box-shadow: 0 24px 60px rgba(11, 19, 36, 0.2);
}
.motto-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.motto-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 19, 36, 0.92) 0%, rgba(22, 48, 89, 0.85) 100%);
}
.motto-banner-content { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.motto-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(253, 230, 138, 0.55);
  color: #FDE68A;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}
.motto-banner h3 {
  font-family: "Noto Serif KR", serif;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 900;
  margin: 0 0 16px;
}
.motto-verse {
  font-size: 1.02rem;
  color: #E2E8F0;
  margin: 0 0 36px;
  line-height: 1.8;
  word-break: keep-all;
}
.motto-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.stat-item strong {
  display: block;
  font-family: "Noto Serif KR", serif;
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.3;
  color: #FDE68A;
  margin-bottom: 4px;
}
.stat-item span { font-size: 0.84rem; color: #CBD5E1; font-weight: 600; }

/* ===== 4. 시네마틱 다크 설교 극장 ===== */
.sermon-theater {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: stretch;
}
.sermon-embed {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #020617;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.sermon-embed img#sermon-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.6s var(--ease);
}
.sermon-embed:hover img#sermon-poster { transform: scale(1.03); }
.sermon-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.play-big {
  cursor: pointer;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px solid #FDE68A;
  background: rgba(200, 150, 62, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 14px rgba(200, 150, 62, 0.22);
  transition: transform 0.25s var(--ease), background 0.25s;
}
.play-big:hover { transform: translate(-50%, -50%) scale(1.08); background: #F59E0B; }
.play-big img { width: 30px; height: 30px; margin-left: 4px; }
.sermon-stage-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 24px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 15, 30, 0.92) 70%);
}
.badge-live {
  display: inline-block;
  background: var(--gold);
  color: #0B1324;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.sermon-stage-cap h3 { margin: 0 0 4px; font-size: 1.24rem; }
.sermon-stage-cap p { margin: 0; font-size: 0.88rem; color: #CBD5E1; }

.sermon-list { display: flex; flex-direction: column; gap: 12px; }
.sermon-item {
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.2s var(--ease);
}
.sermon-item:hover, .sermon-item.active {
  background: rgba(200, 150, 62, 0.16);
  border-color: var(--gold);
}
.sermon-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 9px; }
.sermon-item .s-date { display: block; font-size: 0.74rem; color: #FDE68A; font-weight: 700; }
.sermon-item strong { display: block; font-size: 0.95rem; margin: 2px 0; }
.sermon-item small { font-size: 0.78rem; color: #94A3B8; }

/* ===== 5. 세대별 공동체 4단 풀-이미지 카드 ===== */
.comm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.comm-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--dark);
  box-shadow: var(--shadow);
}
.comm-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.comm-card:hover img { transform: scale(1.08); }
.comm-card-slider .comm-slides {
  position: absolute;
  inset: 0;
}
.comm-card-slider .comm-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  object-position: center 28%;
  transition: opacity 0.75s var(--ease), transform 0.65s var(--ease);
}
.comm-card-slider .comm-slide.active {
  opacity: 1;
}
.comm-dots {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(11, 19, 36, 0.48);
  backdrop-filter: blur(6px);
}
.comm-dot {
  cursor: pointer;
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s var(--ease), background 0.25s;
}
.comm-dot.active {
  width: 18px;
  background: #FDE68A;
}
.comm-overlay {
  position: absolute;
  inset: 0;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #FFFFFF;
  background: linear-gradient(180deg, rgba(11, 19, 36, 0.05) 35%, rgba(11, 19, 36, 0.92) 100%);
}
.comm-en {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #FDE68A;
  margin-bottom: 6px;
}
.comm-overlay h3 {
  font-family: "Noto Serif KR", serif;
  font-size: 1.45rem;
  margin: 0 0 8px;
}
.comm-overlay p {
  margin: 0;
  font-size: 0.88rem;
  color: #E2E8F0;
  line-height: 1.6;
  word-break: keep-all;
}

/* ===== 6. 교회 소식 · 주보 · 사진첩 ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 64px;
}
.news-card {
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #FFFFFF;
  box-shadow: var(--shadow);
}
.news-date {
  background: var(--navy);
  color: #FFFFFF;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.news-date-gold { background: linear-gradient(160deg, #B45309 0%, #D97706 100%); }
.news-date span { font-size: 0.82rem; font-weight: 700; opacity: 0.9; }
.news-date strong { font-family: "Noto Serif KR", serif; font-size: 1.05rem; }
.news-body { padding: 24px 26px; }
.news-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: #EFF6FF;
  color: var(--navy);
  margin-bottom: 8px;
}
.news-tag-gold { background: var(--gold-pale); color: #92400E; }
.news-body h3 { margin: 0 0 8px; font-size: 1.24rem; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
}
.news-meta img { width: 15px; height: 15px; }
.news-body p:last-child { margin: 0; font-size: 0.94rem; color: var(--ink-soft); word-break: keep-all; }

.bulletin-band {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  margin-bottom: 64px;
}
.bulletin-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}
.bulletin-head h3 { font-family: "Noto Serif KR", serif; font-size: 1.6rem; margin: 0 0 4px; }
.bulletin-head p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
.bulletin-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bulletin-card {
  margin: 0;
  cursor: pointer;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.bulletin-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bulletin-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.bulletin-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  font-size: 0.92rem;
}
.bulletin-card figcaption span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
}
.bulletin-card figcaption img { width: 14px; height: 14px; aspect-ratio: auto; }

.gallery-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}
.gallery-top h3 { font-family: "Noto Serif KR", serif; font-size: 1.6rem; margin: 0; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.f-tab {
  cursor: pointer;
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  min-height: 40px;
  transition: 0.2s;
}
.f-tab.active, .f-tab:hover { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }

.story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.story-card {
  margin: 0;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #FFFFFF;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.story-card.is-hidden { display: none; }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.story-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s var(--ease); }
.story-card:hover img { transform: scale(1.05); }
.story-card figcaption { padding: 13px 15px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.story-card strong { font-size: 0.9rem; color: var(--ink); }
.story-card span { font-size: 0.76rem; color: var(--muted); white-space: nowrap; }

/* ===== 7. 담임목사 에디토리얼 ===== */
.pastor-editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.pastor-media { position: relative; border-radius: 20px; overflow: hidden; }
.pastor-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; }
.pastor-caption-badge {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: rgba(11, 19, 36, 0.86);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pastor-name { font-size: 1.15rem; color: var(--navy); margin: 14px 0 18px; }
.pastor-name strong { font-family: "Noto Serif KR", serif; font-size: 1.7rem; color: var(--ink); margin-right: 4px; }
.pastor-quote {
  margin: 0 0 20px;
  padding: 18px 22px;
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  font-family: "Noto Serif KR", serif;
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.65;
}
.pastor-body { margin: 0 0 28px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.8; word-break: keep-all; }
.pastor-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== 8. 예배 시간표 & 오시는 길 ===== */
.worship-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 44px;
}
.w-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px;
}
.w-card-main {
  background: linear-gradient(150deg, var(--dark) 0%, var(--navy) 100%);
  color: #FFFFFF;
  border-color: var(--navy);
}
.w-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 10px;
}
.w-card-main .w-badge { color: #FDE68A; }
.w-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.w-time {
  display: block;
  font-family: "Noto Serif KR", serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 6px;
}
.w-card-main .w-time { color: #FDE68A; }
.w-card p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.w-card-main p { color: #CBD5E1; }

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 28px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.loc-info { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.loc-info h3 { font-family: "Noto Serif KR", serif; font-size: 1.45rem; margin: 0 0 22px; }
.loc-dl { margin: 0 0 26px; display: grid; gap: 14px; }
.loc-dl > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.loc-dl dt { font-size: 0.86rem; font-weight: 800; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.loc-dl dt img { width: 15px; height: 15px; }
.loc-dl dd { margin: 0; font-size: 0.95rem; color: var(--ink); font-weight: 600; }
.loc-dl a { color: var(--navy); text-decoration: underline; }
.loc-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.loc-map { min-height: 360px; }
.loc-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ===== 9. 푸터 ===== */
.site-footer {
  background: var(--dark);
  color: #CBD5E1;
  padding: 58px 0 36px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.fb-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fb-row strong { display: block; font-family: "Noto Serif KR", serif; font-size: 1.25rem; color: #FFFFFF; }
.fb-row span { font-size: 0.82rem; color: #94A3B8; }
.footer-brand p { margin: 0; font-size: 0.88rem; line-height: 1.75; color: #94A3B8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-links a { font-size: 0.9rem; font-weight: 700; color: #E2E8F0; transition: color 0.2s; }
.footer-links a:hover { color: #FDE68A; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.8rem;
  color: #94A3B8;
}
.footer-credits a { color: #FDE68A; text-decoration: underline; }

/* 라이트박스, 맨 위로, 토스트 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(5, 10, 20, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-body { max-width: 90vw; max-height: 86vh; text-align: center; }
.lb-body img { max-width: 90vw; max-height: 78vh; border-radius: 10px; margin: 0 auto; object-fit: contain; }
.lb-body p { color: #E2E8F0; font-size: 0.95rem; margin: 12px 0 0; font-weight: 600; }
.lb-btn {
  cursor: pointer;
  position: fixed;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

.to-top {
  cursor: pointer;
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 150;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--navy);
  box-shadow: 0 10px 24px rgba(11, 19, 36, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.25s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  background: var(--dark);
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  z-index: 950;
  transition: 0.25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 네이버 카페 사역·기관 안내 스트립 */
.cafe-ministry-strip {
  margin-top: 32px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.75fr);
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
}
.cafe-strip-left h3 {
  font-family: "Noto Serif KR", serif;
  font-size: 1.42rem;
  margin: 0 0 10px;
  color: var(--ink);
  word-break: keep-all;
}
.cafe-strip-left p {
  margin: 0 0 14px;
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.72;
  word-break: keep-all;
}
.cafe-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.cafe-tags span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
}
.cafe-strip-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.cafe-strip-right small {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  word-break: keep-all;
}
.btn-naver {
  background: #03C75A;
  color: #FFFFFF;
  width: 100%;
  box-shadow: 0 10px 24px rgba(3, 199, 90, 0.25);
}
.btn-naver:hover { background: #02B150; color: #FFFFFF; }
.btn-naver strong {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #FFFFFF;
  color: #03C75A;
  font-size: 0.86rem;
  font-weight: 900;
}

/* 주보 · 사진첩 쓰기 컨트롤 & 커스텀 카드 */
.head-btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gallery-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.write-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.btn-sm-round { min-height: 40px; padding: 8px 15px; font-size: 0.84rem; }

.custom-bulletin-wrap { margin-bottom: 22px; display: grid; gap: 18px; }
.custom-b-block {
  background: #FFFFFF;
  border: 1.5px solid var(--gold);
  border-radius: 18px;
  padding: 18px;
}
.custom-b-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.custom-b-top strong { font-size: 1.05rem; color: var(--navy); }
.custom-b-top span { font-size: 0.82rem; color: var(--muted); margin-left: 8px; font-weight: 600; }
.del-chip {
  cursor: pointer;
  border: 1px solid #FCA5A5;
  background: #FEF2F2;
  color: #B91C1C;
  border-radius: 999px;
  padding: 4px 11px;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
}
.del-chip:hover { background: #DC2626; color: #FFFFFF; border-color: #DC2626; }

.news-card.custom-news { position: relative; border-color: var(--gold); }
.news-del-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  cursor: pointer;
  border: 1px solid #FCA5A5;
  background: #FEF2F2;
  color: #B91C1C;
  border-radius: 999px;
  padding: 3px 10px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
}
.news-del-btn:hover { background: #DC2626; color: #FFFFFF; border-color: #DC2626; }

.story-card.custom-story { position: relative; border-color: var(--gold); }
.story-del-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #FFFFFF;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
}
.story-del-btn:hover { background: #DC2626; }

/* 주보·사진 쓰기 모달 */
.write-modal {
  position: fixed;
  inset: 0;
  z-index: 920;
  background: rgba(8, 15, 30, 0.72);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: 0.22s;
}
.write-modal.open { opacity: 1; visibility: visible; }
.wm-card {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.wm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.wm-head h3 { font-family: "Noto Serif KR", serif; font-size: 1.3rem; margin: 0; color: var(--ink); }
.wm-close {
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wm-form { display: grid; gap: 13px; }
.wm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wm-form label { display: flex; flex-direction: column; gap: 5px; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
.wm-form input, .wm-form select, .wm-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: #FFFFFF;
}
.wm-form input:focus, .wm-form select:focus, .wm-form textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.wm-note { margin: 0; font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.wm-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* ===== 반응형 브레이크포인트 ===== */
@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .mission-grid, .comm-grid, .worship-grid, .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sermon-theater, .pastor-editorial, .location-grid, .sec-split, .cafe-ministry-strip { grid-template-columns: 1fr; }
  .fs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quickbar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .section { padding: 68px 0; }
  .icon-pill span { display: none; }
  .hero-content { margin-left: 0; padding: 0 24px; }
  .hero-controls { bottom: 158px; }
  .mission-grid, .comm-grid, .news-grid, .bulletin-pair, .story-grid, .worship-grid, .fs-grid, .wm-row { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 1fr; }
  .motto-stats { grid-template-columns: repeat(2, 1fr); }
  .motto-banner { padding: 44px 22px; }
  .pastor-editorial, .bulletin-band, .loc-info, .cafe-ministry-strip { padding: 24px; }
  .qb-item { padding: 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hero-canvas { display: none; }
}
