/* ================================================================
   JESUS KOREA CHURCH — 전체 디자인 파일
   ⚠️ 이 파일은 수정하지 마세요.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* ── 기본 설정 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1b3060;
  --navy-dark:  #122040;
  --gold:       #c8a45a;
  --gold-light: #d4b472;
  --bg:         #f9f7f3;
  --white:      #ffffff;
  --text:       #2a2a2a;
  --text-mid:   #555555;
  --text-light: #888888;
  --border:     #e5dfd5;
  --shadow:     0 4px 24px rgba(0,0,0,0.09);
  --radius:     12px;
  --header-h:   70px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================================================================
   헤더 & 내비게이션
   ================================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
}
/* backdrop-filter를 ::before로 분리 — 헤더에 직접 쓰면 모바일에서
   position:fixed 자식(#nav-menu)이 뷰포트 대신 헤더(70px) 기준으로
   배치되어 메뉴 높이가 0이 되는 버그가 발생함 */
#site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(27, 48, 96, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 로고 */
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-slogan { display: none !important; }

.logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.logo-slogan {
  display: block;
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-top: 2px;
}

/* PC 메뉴 */
#nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

#nav-menu > li { position: relative; }

#nav-menu > li > a {
  display: block;
  color: rgba(255,255,255,0.88);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

#nav-menu > li > a:hover,
#nav-menu > li > a.active {
  color: var(--gold);
  background: rgba(255,255,255,0.08);
}

/* 드롭다운 서브메뉴 */
.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 170px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.14);
  padding: 6px 0;
  z-index: 200;
}

.has-sub:hover .sub-menu { display: block; }

.sub-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  color: var(--text-mid);
  transition: color 0.15s, background 0.15s;
}

.sub-menu li a:hover {
  color: var(--navy);
  background: var(--bg);
}

/* 햄버거 버튼 */
#menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}

#menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

#menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-toggle.active span:nth-child(2) { opacity: 0; }
#menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   히어로 섹션
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, #0e1e42 0%, #1b3060 55%, #142850 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero/main.jpg') center/cover no-repeat;
  opacity: 0.3;
  transition: opacity 0.5s;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14,30,66,0.5) 0%, rgba(14,30,66,0.3) 50%, rgba(14,30,66,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: calc(var(--header-h) + 60px) 24px 80px;
  max-width: 760px;
}

.hero-church-name {
  font-size: clamp(1.7rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  line-height: 1.3;
}

.hero-slogan {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.18em;
  margin-bottom: 56px;
}

.hero-divider {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ================================================================
   버튼
   ================================================================ */
.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  min-width: 150px;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(145deg, #dbbe72 0%, #c8a45a 45%, #a8841a 100%);
  color: var(--navy-dark);
  box-shadow: 0 4px 14px rgba(200,164,90,0.45), inset 0 1px 0 rgba(255,255,255,0.38), inset 0 -1px 0 rgba(0,0,0,0.12);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.32), transparent);
  transition: left 0.42s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(200,164,90,0.52), inset 0 1px 0 rgba(255,255,255,0.42); }
.btn-primary:hover::before { left: 100%; }
.btn-primary:active { transform: translateY(0); box-shadow: inset 0 2px 5px rgba(0,0,0,0.18); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.12); transform: translateY(-2px); }

.btn-navy {
  background: linear-gradient(145deg, #243d78 0%, #1b3060 45%, #0e1e42 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(18,32,64,0.42), inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -1px 0 rgba(0,0,0,0.2);
}
.btn-navy::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  transition: left 0.42s ease;
}
.btn-navy:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(18,32,64,0.48), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-navy:hover::before { left: 100%; }
.btn-navy:active { transform: translateY(0); box-shadow: inset 0 2px 6px rgba(0,0,0,0.28); }

/* ================================================================
   공통 섹션
   ================================================================ */
.section { padding: 88px 0; }
.section-alt { background: var(--bg); }

.section-title {
  text-align: center;
  margin-bottom: 52px;
}

.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.35;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 10px;
}

/* 페이지 상단 배너 */
.page-header {
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
  color: var(--white);
  padding: calc(var(--header-h) + 56px) 0 56px;
  text-align: center;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  z-index: 0;
}

.page-header > * {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.page-header p {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
}

/* 페이지별 헤더 배경 이미지 (PC) — images/page-header/ 폴더에 파일 넣으면 자동 적용
   PC 권장 사이즈: 1920×400px */
#ph-about::before    { background-image: url('../images/page-header/about-pc.jpg'); }
#ph-worship::before  { background-image: url('../images/page-header/worship-pc.jpg'); }
#ph-staff::before    { background-image: url('../images/page-header/staff-pc.jpg'); }
#ph-gallery::before  { background-image: url('../images/page-header/gallery-pc.jpg'); }
#ph-media::before    { background-image: url('../images/page-header/media-pc.jpg'); }
#ph-location::before { background-image: url('../images/page-header/location-pc.jpg'); }
#ph-notices::before  { background-image: url('../images/page-header/notices-pc.jpg'); }

/* 페이지별 헤더 배경 이미지 (모바일)
   모바일 권장 사이즈: 768×300px */
@media (max-width: 767px) {
  #ph-about::before    { background-image: url('../images/page-header/about-mobile.jpg'); }
  #ph-worship::before  { background-image: url('../images/page-header/worship-mobile.jpg'); }
  #ph-staff::before    { background-image: url('../images/page-header/staff-mobile.jpg'); }
  #ph-gallery::before  { background-image: url('../images/page-header/gallery-mobile.jpg'); }
  #ph-media::before    { background-image: url('../images/page-header/media-mobile.jpg'); }
  #ph-location::before { background-image: url('../images/page-header/location-mobile.jpg'); }
  #ph-notices::before  { background-image: url('../images/page-header/notices-mobile.jpg'); }
}

/* 탭 내비게이션 */
.tab-section {
  padding-top: 16px;
}

.tab-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  margin-bottom: 48px;
}

.tab-btn {
  padding: 12px 22px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover, .tab-btn.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

/* ================================================================
   홈 — 교회 소개 영역
   ================================================================ */
.home-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.home-about-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #c4cfe0, #9aaec7);
}

.home-about-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.home-about-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--navy);
  margin-bottom: 18px;
  line-height: 1.4;
}

.home-about-text h2 span { color: var(--gold); }

.home-about-text p {
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 28px;
}

/* ================================================================
   예배 시간 카드
   ================================================================ */
#home-worship-times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 20px;
}

.worship-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  transition: transform 0.2s, box-shadow 0.2s;
}

.worship-card:hover { transform: translateY(-5px); box-shadow: 0 10px 32px rgba(0,0,0,0.12); }

.worship-name   { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.worship-time   { font-size: 1.2rem;  font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.worship-detail { font-size: 0.8rem;  color: var(--text-light); }

/* 예배 안내 페이지 — 시간표 (PC: 주일2개 2열 / 나머지3개 3열) */
#worship-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.worship-row {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 20px 28px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  border-top: 4px solid var(--gold);
  gap: 10px;
}

.worship-row:nth-child(-n+2) { grid-column: span 3; }

.wr-name   { font-size: 1rem; font-weight: 700; color: var(--navy); }
.wr-center { text-align: center; }
.wr-time   { font-size: 1.25rem; font-weight: 700; color: var(--gold); }
.wr-detail { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }

/* 온라인 헌금 */
#offering-list {
  display: flex;
  justify-content: center;
}

.offering-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 60px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  text-align: center;
  border-top: 4px solid var(--gold);
  min-width: 280px;
}

.offering-account {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.acct-name { white-space: nowrap; }
@media (max-width: 767px) {
  .acct-name { display: block; }
}

/* 성전 안내 */
#sanctuary-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.sanctuary-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sanctuary-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #c4cfe0, #9aaec7);
}

.sanctuary-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.sanctuary-info   { padding: 20px 24px; }
.sanctuary-title  { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.sanctuary-desc   { font-size: 0.9rem; color: var(--text-mid); line-height: 1.75; }

/* ================================================================
   설교 카드
   ================================================================ */
#home-sermons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 26px;
}

#sermon-list,
#media-video-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.sermon-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.08),
    0 8px 18px rgba(0,0,0,0.10),
    0 22px 44px rgba(0,0,0,0.11),
    0 44px 80px rgba(0,0,0,0.07),
    0 0 0 1px rgba(200,164,90,0.28);
  transition: transform 0.38s ease, box-shadow 0.38s ease;
}

.sermon-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.09),
    0 18px 36px rgba(0,0,0,0.13),
    0 40px 72px rgba(0,0,0,0.10),
    0 72px 100px rgba(0,0,0,0.06),
    0 0 0 1px rgba(200,164,90,0.42),
    0 0 36px rgba(200,164,90,0.10);
}

.sermon-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #2a4a8a 100%);
}

.sermon-thumb img { width: 100%; height: 100%; object-fit: cover; }

.sermon-no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #999;
  background: #e2e2e2;
  letter-spacing: 0.05em;
}

.sermon-info    { padding: 18px 20px; }
.sermon-title   { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 7px; line-height: 1.45; }
.sermon-meta    { font-size: 0.82rem; color: var(--text-light); }

/* ================================================================
   담임목사 소개
   ================================================================ */
.pastor-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: auto 1fr;
  gap: 24px 40px;
  align-items: start;
}

.pastor-photo-wrap {
  grid-column: 1;
  grid-row: 1 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #c4cfe0, #9aaec7);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.08),
    0 8px 18px rgba(0,0,0,0.10),
    0 22px 44px rgba(0,0,0,0.11),
    0 44px 80px rgba(0,0,0,0.07),
    0 0 0 1px rgba(200,164,90,0.28);
  position: relative;
  transition: transform 0.38s ease, box-shadow 0.38s ease;
}
.pastor-photo-wrap::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 45%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.13), transparent);
  pointer-events: none;
  z-index: 1;
}
.pastor-photo-wrap:hover {
  transform: translateY(-8px);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.09),
    0 18px 36px rgba(0,0,0,0.13),
    0 40px 72px rgba(0,0,0,0.10),
    0 72px 100px rgba(0,0,0,0.06),
    0 0 0 1px rgba(200,164,90,0.42),
    0 0 36px rgba(200,164,90,0.10);
}

.pastor-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.pastor-meta { grid-column: 2; grid-row: 1; }
.pastor-intro { grid-column: 2; grid-row: 2; }

.pastor-label { font-size: 0.85rem; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 10px; }
.pastor-name  { font-size: 1.7rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.pastor-title-display { font-size: 0.95rem; color: var(--gold); font-weight: 600; }
.pastor-intro p { color: var(--text-mid); line-height: 1.9; }

/* ================================================================
   갤러리
   ================================================================ */
#home-gallery,
#gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #c4cfe0, #9aaec7);
  cursor: pointer;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: var(--white);
  padding: 24px 14px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* 홈 갤러리 — API 카드 (gallery.php 연동) */
.gallery-preview-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #c4cfe0, #9aaec7);
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.gallery-preview-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-preview-card:hover img { transform: scale(1.06); }
.gallery-preview-card .gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: #fff;
  padding: 24px 14px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  transform: translateY(0);
}
.gallery-preview-nothumb {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

/* ================================================================
   사역자 카드
   ================================================================ */
#staff-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.staff-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 260px;
  flex-shrink: 0;
}

.staff-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,0.13); }

.staff-photo-wrap {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #c4cfe0, #9aaec7);
  overflow: hidden;
}

.staff-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }

.staff-info      { padding: 22px 18px; }
.staff-name      { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.staff-title     { font-size: 0.9rem; color: var(--gold); font-weight: 600; margin-bottom: 7px; }
.staff-ministry  { font-size: 0.82rem; color: var(--text-light); margin-bottom: 12px; }
.staff-intro     { font-size: 0.87rem; color: var(--text-mid); line-height: 1.65; }

/* ================================================================
   교회 소개 — 연혁
   ================================================================ */
#church-history { margin-top: 12px; }

.history-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.history-year  { font-size: 1.05rem; font-weight: 700; color: var(--gold); min-width: 62px; }
.history-event { color: var(--text-mid); font-size: 0.95rem; }

/* ================================================================
   오시는 길
   ================================================================ */
.location-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  min-height: 360px;
}

.map-placeholder {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dde5f0, #c4cfe0);
  border-radius: var(--radius);
  color: var(--text-mid);
  text-align: center;
  gap: 10px;
}

.map-icon    { font-size: 2.5rem; }
.map-msg     { font-weight: 600; font-size: 1rem; }
.map-addr    { font-size: 0.875rem; color: var(--text-light); }

.location-info h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 24px 0 10px; }
.location-info h3:first-child { margin-top: 0; }

.info-box {
  background: var(--bg);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 14px;
}

.info-box .label { font-size: 0.78rem; color: var(--text-light); letter-spacing: 0.04em; margin-bottom: 4px; }
.info-box .value { font-size: 1.05rem; font-weight: 700; color: var(--navy); }

.info-box a.value { color: var(--navy); }
.info-box a.value:hover { color: var(--gold); }

#transit-list { display: flex; flex-direction: column; gap: 0; }
#transit-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-mid);
}

/* ================================================================
   오시는 길 요약 (홈)
   ================================================================ */
.location-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 32px 36px;
  background: var(--navy);
  border-radius: var(--radius);
  color: var(--white);
}

.location-summary .info p:first-child { font-size: 0.8rem; color: var(--gold); margin-bottom: 4px; }
.location-summary .info p:last-child  { font-size: 1rem; font-weight: 500; }

/* ================================================================
   푸터
   ================================================================ */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

.footer-church-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-info {
  font-size: 0.875rem;
  line-height: 2;
  color: rgba(255,255,255,0.65);
}
/* iOS Safari 자동 링크 감지(전화·주소·계좌) 밑줄 제거 */
.footer-info a {
  text-decoration: none !important;
  color: rgba(255,255,255,0.65) !important;
}

.footer-social {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.65);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.social-btn:hover {
  background: rgba(255,255,255,0.18);
  color: var(--white);
  border-color: var(--gold);
}
.social-btn svg { width: 18px; height: 18px; display: block; }

.footer-links { padding-top: 6px; }
.footer-links h4 { font-size: 0.82rem; color: var(--gold); letter-spacing: 0.05em; margin-bottom: 14px; }

.footer-links ul { display: flex; flex-direction: column; gap: 8px; }

.footer-links li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-links li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ================================================================
   반응형 — 모바일 (900px 이하)
   ================================================================ */
@media (max-width: 900px) {

  /* 모바일 메뉴 */
  #menu-toggle { display: flex; }

  #nav-menu {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: rgba(18, 32, 64, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 16px;
    gap: 4px;
    overflow-y: auto;
    z-index: 999;
  }

  #nav-menu.open { display: flex; }

  #nav-menu > li > a {
    font-size: 1.1rem;
    padding: 16px 18px;
    border-radius: 10px;
    color: rgba(255,255,255,0.9);
  }

  .sub-menu {
    position: static;
    box-shadow: none;
    background: rgba(255,255,255,0.07);
    border-radius: 8px;
    margin: 4px 6px;
    padding: 4px 0;
    display: none;
  }

  .sub-menu { display: none !important; }

  .sub-menu li a {
    color: rgba(255,255,255,0.75);
    padding: 12px 28px;
    font-size: 1rem;
  }

  .sub-menu li a:hover { color: var(--white); background: rgba(255,255,255,0.08); }

  /* 레이아웃 조정 */
  .home-about     { grid-template-columns: 1fr; gap: 36px; }
  .location-grid  { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr; gap: 32px; }

  /* 목사 — 모바일: 사진+이름 윗줄 / 인사말 아랫줄 전체 폭 */
  .pastor-section {
    grid-template-columns: 140px 1fr;
    grid-template-rows: auto auto;
    gap: 12px 16px;
  }
  .pastor-photo-wrap { grid-column: 1; grid-row: 1; aspect-ratio: auto; }
  .pastor-photo-wrap img { height: auto; object-fit: fill; }
  .pastor-meta  { grid-column: 2; grid-row: 1; }
  .pastor-intro { grid-column: 1 / -1; grid-row: 2; }
  .pastor-name  { font-size: 1.2rem; }

  #sermon-list,
  #media-video-list    { grid-template-columns: 1fr; }

  /* 홈 갤러리 1열, 갤러리 페이지는 2열 유지 */
  #home-gallery        { grid-template-columns: 1fr; }
  #gallery-grid        { grid-template-columns: repeat(2, 1fr); }

  #worship-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .worship-row,
  .worship-row:nth-child(-n+2),
  .worship-row:nth-child(n+3) {
    grid-column: span 1;
  }

  /* 섹션 타이틀 — 텍스트 왼쪽, 금색 밑줄도 왼쪽 */
  .section-title           { text-align: left; }
  .section-title h2::after { margin-left: 0; }

  /* 소개 텍스트 안 버튼 중앙 정렬 */
  .home-about-text .btn,
  .pastor-text .btn { display: block; text-align: center; }

  /* 히어로 — 모바일에서 브라우저 주소창 포함 화면 꽉 채움 */
  .hero { min-height: 0 !important; height: 100vh !important; height: 100svh !important; }

  /* 히어로 화살표 — 모바일은 터치 슬라이딩으로 대체 */
  .hero-arrow { display: none !important; }

  /* 히어로 콘텐츠 — 이미지 세로 중간 위치 */
  .hero-content { padding-top: calc(var(--header-h) + 20px); padding-bottom: 60px; }

  /* 히어로 버튼 — 가로 배열, 여백 축소 */
  .hero-buttons      { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .hero-buttons .btn { padding: 10px 18px; min-width: unset; font-size: 0.875rem; }

  .location-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .section { padding: 64px 0; }
}

@media (max-width: 520px) {
  #home-worship-times { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .worship-card { padding: 22px 12px; }
  .worship-time { font-size: 1.1rem; letter-spacing: -0.002em; white-space: nowrap; }

  #staff-list { gap: 16px; }
  .staff-card { width: calc(50% - 8px); flex-shrink: 1; }
  .staff-info { padding: 14px 12px; }
  .staff-name { font-size: 1rem; }

  #home-sermons,
  #sermon-list,
  #media-video-list { grid-template-columns: 1fr; }

  #worship-list   { grid-template-columns: 1fr; }
  #sanctuary-list { grid-template-columns: 1fr; }

  #home-gallery   { grid-template-columns: 1fr; }
  #gallery-grid   { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .section { padding: 52px 0; }
  .section-title { margin-bottom: 36px; }
}

/* ================================================================
   히어로 디자인 조정
   ================================================================ */

/* 파란색 오버레이 완전 제거 */
.hero-overlay {
  background: transparent !important;
}

/* 히어로 슬로건 및 구분선 숨김 */
#hero-slogan,
.hero-divider {
  display: none !important;
}

/* 히어로 두 번째, 세 번째 버튼 색상 — 예배 안내(btn-primary) 글씨색과 동일하게 */
.hero-buttons .btn-outline {
  color: var(--navy-dark) !important;
  border-color: var(--navy-dark) !important;
}
.hero-buttons .btn-outline:hover {
  background: rgba(18, 32, 64, 0.1) !important;
  border-color: var(--navy-dark) !important;
}

/* 텍스트 가독성을 위한 그림자 */
.hero-church-name {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 5px rgba(0, 0, 0, 0.35) !important;
}

/* ================================================================
   DEV 플레이스홀더 스타일 (임시 개발용 — 실제 이미지 넣으면 자동 교체됨)
   ================================================================ */

.img-placeholder {
  border: 2px dashed #aaa;
  background: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  text-align: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  min-height: 120px;
}
.img-placeholder .ph-tag  { font-size: 0.7rem; font-weight: 700; color: #cc0000; letter-spacing: 0.08em; margin-bottom: 8px; }
.img-placeholder .ph-file { font-size: 0.85rem; font-weight: 600; color: #333; margin-bottom: 4px; word-break: break-all; }
.img-placeholder .ph-use  { font-size: 0.78rem; color: #555; margin-bottom: 3px; }
.img-placeholder .ph-size { font-size: 0.7rem; color: #888; }

/* 히어로 배경 — JS 슬라이더가 slide div를 직접 관리 */
.hero-bg {
  background: none !important;
  opacity: 1 !important;
  overflow: hidden;
}

/* ── 히어로 슬라이더 ── */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* 하단 점(dot) 인디케이터 */
.hero-dots {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
  pointer-events: auto;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.hero-dot.s-active {
  background: var(--gold);
  transform: scale(1.35);
}

/* ================================================================
   공유 팝오버 / 바텀시트
   ================================================================ */
#share-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1200;
}
#share-popup {
  display: none;
  position: fixed;
  z-index: 1201;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  padding: 20px 18px 14px;
  width: 240px;
}
#share-popup .share-title {
  font-size: .85rem;
  font-weight: 700;
  color: #888;
  letter-spacing: .06em;
  margin-bottom: 12px;
  text-align: center;
}
.share-btn-kakao {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px;
  background: #FEE500; color: #3A1D1D;
  border: none; border-radius: 10px;
  font-size: .93rem; font-weight: 700;
  cursor: pointer; margin-bottom: 8px;
  transition: background .15s;
}
.share-btn-kakao:hover { background: #f0d800; }
.share-btn-copy {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px;
  background: var(--navy); color: #fff;
  border: none; border-radius: 10px;
  font-size: .93rem; font-weight: 700;
  cursor: pointer; margin-bottom: 8px;
  transition: background .15s;
}
.share-btn-copy:hover { background: var(--navy-dark); }
.share-btn-close {
  display: block; width: 100%; padding: 9px;
  background: none; color: #aaa;
  border: 1.5px solid #e0e0e0; border-radius: 10px;
  font-size: .85rem; cursor: pointer;
  transition: border-color .15s;
}
.share-btn-close:hover { border-color: #bbb; color: #666; }

/* 토스트 */
#share-toast {
  display: none;
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.75); color: #fff;
  padding: 10px 22px; border-radius: 24px;
  font-size: .88rem; z-index: 1300; white-space: nowrap;
  animation: toast-in .25s ease;
}
@keyframes toast-in { from { opacity:0; transform:translateX(-50%) translateY(8px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }

/* PC: 팝오버 위치 (float-widget 왼쪽) */
@media (min-width: 769px) {
  #share-overlay { display: none !important; }
  #share-popup   { bottom: 120px; right: 80px; }
  .footer-links  { display: none; }
}

/* 모바일: 바텀시트 */
@media (max-width: 768px) {
  #share-popup {
    width: 100%; left: 0; bottom: 0;
    border-radius: 20px 20px 0 0;
    padding: 22px 20px 28px;
    transform: translateY(100%);
    transition: transform .3s ease;
  }
  #share-popup.open { transform: translateY(0); }
}

/* 좌우 화살표 */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  pointer-events: auto;
}
.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.7);
}
.hero-arrow-prev { left: 22px; }
.hero-arrow-next { right: 22px; }

@media (max-width: 520px) {
  .hero-arrow { width: 36px; height: 36px; font-size: 1.2rem; }
  .hero-arrow-prev { left: 10px; }
  .hero-arrow-next { right: 10px; }
  .hero-dots { bottom: 28px; }
}

/* ================================================================
   갤러리 라이트박스
   ================================================================ */
#gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.78);
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}
#gallery-lightbox.lb-open {
  display: flex;
}
#lb-img {
  max-width: 70vw;
  max-height: 72vh;
  border-radius: 10px;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.55);
  object-fit: contain;
  cursor: default;
  display: block;
}
#lb-caption {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.52);
  padding: 6px 22px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
}
.lb-close,
.lb-nav {
  position: absolute;
  background: rgba(0, 0, 0, 0.42);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1;
}
.lb-close:hover,
.lb-nav:hover { background: rgba(0, 0, 0, 0.7); }

.lb-close {
  top: 16px;
  right: 20px;
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 1.9rem;
}
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

@media (max-width: 900px) {
  #lb-img  { max-width: 90vw; max-height: 70vh; }
  .lb-nav  { width: 40px; height: 40px; font-size: 1.5rem; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
}

/* 히어로 플레이스홀더 — 이미지 없을 때만 JS가 표시 */
#hero-ph {
  display: none;
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  border: 2px dashed rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  padding: 14px 28px;
  text-align: center;
  width: 90%;
  max-width: 560px;
  pointer-events: none;
}
#hero-ph .ph-tag  { display: block; font-size: 0.72rem; font-weight: 700; color: #ffcc55; letter-spacing: 0.1em; margin-bottom: 8px; }
#hero-ph .ph-file { display: block; font-size: 0.85rem; font-weight: 600; color: #fff; margin-bottom: 3px; }
#hero-ph .ph-use  { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.75); margin-top: 6px; }
#hero-ph .ph-size { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.55); margin-top: 3px; }

/* ================================================================
   플로팅 SNS / TOP 위젯
   ================================================================ */
#float-widget {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
#float-sns-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
#float-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.float-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: inherit;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
  transition: transform 0.18s, box-shadow 0.18s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow: hidden;
  flex-shrink: 0;
}
/* 마우스가 있는 기기에서만 hover 확대 적용 (모바일 터치 후 크기 달라붙는 현상 방지) */
@media (hover: hover) {
  .float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  }
}
.float-sns-btn {
  background: var(--float-color, var(--navy));
  color: #fff;
}
.float-sns-btn svg { display: block; }
#float-toggle-btn {
  display: none;
  background: var(--float-color, var(--navy));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  min-width: 46px;
  min-height: 46px;
}
#float-top {
  background: #fff;
  color: var(--float-color, var(--navy));
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}
#float-phone {
  display: none;
  background: var(--float-color, var(--navy));
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
}
@keyframes floatBtnSlideUp {
  0%   { transform: translateY(18px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}
@media (max-width: 767px) {
  #float-widget { right: 16px; bottom: 20px; gap: 6px; align-items: flex-end; }
  #float-controls { flex-direction: column; gap: 6px; }
  #float-toggle-btn { display: flex; min-width: 44px; min-height: 44px; }
  #float-phone { display: flex; }
  #float-sns-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    gap: 6px;
  }
  #float-widget.sns-open #float-sns-list { max-height: 280px; }
  #float-widget.sns-open .float-sns-btn {
    animation: floatBtnSlideUp 0.36s ease-out both;
  }
  #float-widget.sns-open .float-sns-btn:nth-child(2) { animation-delay: 0.07s; }
  #float-widget.sns-open .float-sns-btn:nth-child(3) { animation-delay: 0.14s; }
  #float-widget.sns-open .float-sns-btn:nth-child(4) { animation-delay: 0.21s; }
  #float-widget.sns-open .float-sns-btn:nth-child(5) { animation-delay: 0.28s; }
  #float-widget.sns-open .float-sns-btn:nth-child(6) { animation-delay: 0.35s; }
  #float-widget.sns-open .float-sns-btn:nth-child(7) { animation-delay: 0.42s; }
  #float-widget.sns-open .float-sns-btn:nth-child(8) { animation-delay: 0.49s; }
  .float-btn { width: 44px; height: 44px; }
}

/* ================================================================
   챗봇 위젯
   ================================================================ */
/* 챗봇 토글 버튼 — float-widget 안 TOP 위에 삽입, .float-btn 공유 */
#chatbot-toggle {
  background: var(--navy);
  color: #fff;
}

#chatbot-box {
  position: fixed;
  bottom: 24px;
  right: 76px;   /* float-widget 왼쪽에 표시 */
  z-index: 8900;
  display: none;
  flex-direction: column;
  width: 300px; height: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}
#chatbot-head {
  background: var(--navy);
  color: #fff;
  padding: 13px 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 0.92rem;
  flex-shrink: 0;
}
#chatbot-close {
  background: none; border: none;
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem; cursor: pointer;
  padding: 0 2px; line-height: 1;
  transition: color 0.15s;
}
#chatbot-close:hover { color: #fff; }

#chatbot-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 12px 11px;
  display: flex; flex-direction: column; gap: 9px;
  background: #f6f8fb;
}
.cb-msg {
  max-width: 84%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.cb-bot {
  background: #fff; color: #333;
  border-radius: 4px 14px 14px 14px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.07);
  align-self: flex-start;
}
.cb-user {
  background: var(--navy); color: #fff;
  border-radius: 14px 4px 14px 14px;
  align-self: flex-end;
}

#chatbot-foot {
  display: flex; gap: 6px;
  padding: 9px 10px;
  border-top: 1px solid #eee;
  background: #fff; flex-shrink: 0;
}
#chatbot-input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid #dde;
  border-radius: 20px;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}
#chatbot-input:focus { border-color: var(--navy); }
#chatbot-send {
  padding: 8px 13px;
  background: var(--navy); color: #fff;
  border: none; border-radius: 20px;
  font-size: 0.83rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background 0.18s;
}
#chatbot-send:hover { background: #2a4a8c; }

/* 모바일: 전체화면 모달 — iOS 키보드/스크롤 문제 완전 해결 */
@media (max-width: 767px) {
  #chatbot-box {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    z-index: 9999;
  }
  #chatbot-input { font-size: 16px; } /* iOS 자동 확대 방지 */
}

/* 챗봇 링크 버튼 */
.cb-link {
  display: inline-block;
  margin: 4px 0 2px 0;
  padding: 6px 14px;
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.18s;
}
.cb-link:hover { background: #2a4a8c; color: #fff; }

/* ================================================================
   ★ 선교단체 리뉴얼 스타일 (2026-08 추가)
   ----------------------------------------------------------------
   · 이 아래 내용이 위쪽의 기존 스타일보다 우선 적용됩니다.
   · 되돌리고 싶으면 이 구역만 통째로 지우면 원래 디자인으로 돌아갑니다.
   ================================================================ */

/* ── 0. 한글 줄바꿈 ────────────────────────────────────────
   브라우저 기본값은 한글을 "글자 단위"로 끊어서
   「청년 달란트 아카데미」 → 「청년 달란트 아카데 / 미」 처럼
   단어 중간에서 잘립니다.
   keep-all 로 바꾸면 "띄어쓰기 기준"으로만 줄이 바뀝니다. */
body {
  word-break: keep-all;
  overflow-wrap: break-word;   /* 아주 긴 영문·주소는 예외적으로 끊어줌 */
}

/* 제목은 줄 길이를 고르게 나눠 보기 좋게 (지원 브라우저에서만 적용) */
.sec-title,
.ministry-name,
.field-name,
.page-link-name,
.mn-title,
.prep-note-title,
.prep-title {
  text-wrap: balance;
}

/* ── 1. 투명 오버레이 헤더 → 스크롤 시 흰 배경 ─────────────── */
:root { --header-h: 94px; }

/* 헤더를 모니터 전체 폭에 맞춰 시원하게 펼칩니다.
   (기본 컨테이너 1100px 로는 넓은 모니터에서 가운데에 몰려 보입니다) */
.header-inner {
  max-width: 1760px;
  padding: 0 56px;
}

#site-header {
  height: var(--header-h);
  transition: height 0.3s ease;
}
#site-header::before {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
/* 사진 위 글씨가 묻히지 않도록 상단에 옅은 그늘 */
#site-header.hdr-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.38), rgba(0,0,0,0));
  pointer-events: none;
  transition: opacity 0.35s ease;
}

/* 스크롤 내린 상태 */
#site-header.hdr-scrolled::before {
  background: #ffffff;
  box-shadow: 0 2px 18px rgba(0,0,0,0.10);
}
#site-header.hdr-scrolled::after { opacity: 0; }
/* 히어로도 배너도 없는 페이지 — 헤더가 항상 흰색이므로 본문을 아래로 밀어줌 */
body.has-solid-header { padding-top: var(--header-h); }
#site-header.hdr-scrolled .logo-name,
#site-header.hdr-scrolled .logo-mark,
#site-header.hdr-scrolled .nav-ko    { color: #1a1a1a; }
#site-header.hdr-scrolled .logo-sub,
#site-header.hdr-scrolled .nav-en    { color: #8a8a8a; }
#site-header.hdr-scrolled #menu-toggle span { background: #1a1a1a; }
#site-header.hdr-scrolled #nav-menu > li > a:hover .nav-ko,
#site-header.hdr-scrolled #nav-menu > li > a.active .nav-ko { color: var(--gold); }

/* ── 2. 로고 ────────────────────────────────────────────────── */
.logo-link { gap: 13px; align-items: center; }
.logo-mark {
  font-size: 2rem;
  line-height: 1;
  color: var(--gold);
  transition: color 0.35s ease;
  /* 십자가 등을 컬러 이모지가 아니라 글자로 그리게 함 (아이폰 대응) */
  font-variant-emoji: text;
  font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', serif;
}
.logo-img { height: 42px; width: auto; }
.logo { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name {
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  white-space: nowrap;
  transition: color 0.35s ease;
}
.logo-sub {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.75);
  margin-top: 3px;
  transition: color 0.35s ease;
}

/* ── 3. 메뉴 (한글 + 영어 2줄) ──────────────────────────────── */
#nav-menu { gap: 4px; }
#nav-menu > li > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 26px;
  background: none !important;
  border-radius: 0;
}
.nav-ko {
  font-size: 1.08rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.nav-en {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  color: rgba(255,255,255,0.62);
  white-space: nowrap;
  transition: color 0.25s ease;
}

/* 화면이 좁아질수록 여백·글씨를 단계적으로 줄입니다 */
@media (max-width: 1500px) {
  .header-inner    { padding: 0 36px; }
  #nav-menu > li > a { padding: 10px 18px; }
  .nav-ko { font-size: 1.02rem; }
}
@media (max-width: 1200px) {
  .header-inner    { padding: 0 24px; }
  #nav-menu > li > a { padding: 8px 12px; }
  .nav-ko { font-size: 0.94rem; }
  .nav-en { font-size: 0.6rem; letter-spacing: 0.08em; }
}
#nav-menu > li > a:hover .nav-ko,
#nav-menu > li > a.active .nav-ko { color: var(--gold); }
#nav-menu > li > a:hover .nav-en,
#nav-menu > li > a.active .nav-en { color: var(--gold-light); }

/* ── 4. 풀스크린 히어로 (왼쪽 정렬) ────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}
.hero-bg { opacity: 1; }
.hero-slide { background-position: center; }
/* 왼쪽 글씨가 잘 보이도록 왼쪽에서 오른쪽으로 어두워지는 막 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(100deg, rgba(10,16,28,0.86) 0%, rgba(10,16,28,0.62) 38%, rgba(10,16,28,0.12) 70%, rgba(10,16,28,0.05) 100%),
    linear-gradient(to top, rgba(10,16,28,0.55) 0%, rgba(10,16,28,0) 45%);
  pointer-events: none;
}
/* 히어로 문구를 헤더 로고와 같은 선에 맞춥니다 (넓은 모니터 대응) */
.hero-content {
  max-width: 1760px;
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) 56px 90px;
  text-align: left;
  z-index: 2;
}
@media (max-width: 1500px) { .hero-content { padding-left: 36px; padding-right: 36px; } }
@media (max-width: 1200px) { .hero-content { padding-left: 24px; padding-right: 24px; } }
.hero-inner { max-width: 640px; }

.hero-title {
  font-size: clamp(1.75rem, 3.6vw, 3.05rem);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 22px rgba(0,0,0,0.45);
  margin-bottom: 6px;
}
.hero-title-accent {
  display: block;
  color: var(--gold);
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-top: 4px;
}
.hero-desc {
  margin-top: 26px;
  font-size: clamp(0.9rem, 1.15vw, 1.02rem);
  font-weight: 300;
  line-height: 1.95;
  color: rgba(255,255,255,0.90);
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 15px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.hero-btn-solid  { background: var(--gold); color: #fff; border: 2px solid var(--gold); }
.hero-btn-solid:hover  { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-3px); }
.hero-btn-ghost  { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.85); }
.hero-btn-ghost:hover  { background: #fff; color: #1a1a1a; transform: translateY(-3px); }

/* 스크롤 안내 표시 */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 14px;
}
.hero-scroll::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  animation: heroScroll 1.7s ease-in-out infinite;
}
@keyframes heroScroll {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(13px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}

/* ── 4-1. 사진이 아직 없을 때 보이는 회색 빈칸 ──────────────
   관리자에서 사진을 올리면 자동으로 실제 사진으로 바뀝니다. */
.img-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: #e9ebef;
  color: #9aa0ab;
  text-align: center;
  padding: 16px;
  box-sizing: border-box;
}
.img-empty span {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: -0.01em;
}
.img-empty small {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 400;
  color: #b3b8c2;
}
/* 작은 원형(사역 카드)용 */
.img-empty-sm { min-height: 0; padding: 8px; }
.img-empty-sm span { font-size: 0.78rem; }
.img-empty-sm small { display: none; }

/* 선교현장 카드에 사진이 없을 때 */
.field-card.is-empty { background: #e9ebef; }
.field-card.is-empty .field-name    { color: #6b7280; }
.field-card.is-empty .field-name-en { color: #9aa0ab; }

/* ── 5. 섹션 공통 (작은 영문 머리말) ───────────────────────── */
.eyebrow {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 14px;
}
.sec-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.sec-title-en {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-left: 8px;
}
.gold-rule {
  width: 46px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 20px 0 22px;
}

/* ── 6. 비전 섹션 (좌 글 / 우 사진) ────────────────────────── */
.vision-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 54px;
  align-items: center;
}
.vision-body {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--text-mid);
}
.vision-verse {
  margin-top: 22px;
  padding-left: 16px;
  border-left: 3px solid var(--border);
  font-size: 0.84rem;
  line-height: 1.85;
  color: var(--text-light);
}
.vision-photo {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(0,0,0,0.13);
  aspect-ratio: 16 / 10;
  background: var(--bg);
}
.vision-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── 7. 사역 카드 (원형 사진) ──────────────────────────────── */
/* 한 줄에 3개가 콘텐츠 폭(1100px)을 꽉 채우도록 계산합니다.
   gap 40px × 2 = 80px 을 뺀 나머지를 3등분 */
.ministry-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 54px 40px;
  margin-top: 54px;
}
.ministry-card {
  width: calc((100% - 80px) / 3);
  max-width: 340px;
  text-align: center;
}
.ministry-photo {
  width: 88%;
  max-width: 288px;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 12px 34px rgba(0,0,0,0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.ministry-card:hover .ministry-photo {
  transform: translateY(-8px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.2);
}
.ministry-photo img { width: 100%; height: 100%; object-fit: cover; }
.ministry-name {
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 11px;
  letter-spacing: -0.02em;
}
.ministry-desc {
  font-size: 0.93rem;
  line-height: 1.82;
  color: var(--text-mid);
}

/* ── 8. 선교현장 카드 (가로 3개) ───────────────────────────── */
.field-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.field-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.field-card:hover { transform: translateY(-8px); box-shadow: 0 20px 46px rgba(0,0,0,0.24); }
.field-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.field-card:hover img { transform: scale(1.07); }
.field-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,14,26,0.86) 0%, rgba(8,14,26,0.22) 55%, rgba(8,14,26,0.05) 100%);
}
.field-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 20px;
  text-align: center;
  color: #fff;
}
.field-name    { font-size: 1.08rem; font-weight: 700; line-height: 1.4; }
.field-name-en { font-size: 0.78rem; opacity: 0.82; margin-top: 4px; }
.field-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  background: var(--bg);
  border-radius: 12px;
}

/* ── 9. 하단 강조 띠 (CTA) ─────────────────────────────────── */
.cta-band {
  position: relative;
  padding: 62px 24px;
  background: linear-gradient(100deg, #2b2015 0%, #4a3520 50%, #6b4a24 100%);
  overflow: hidden;
}
.cta-band-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.34;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-text { color: #fff; }
.cta-title {
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}
.cta-desc {
  margin-top: 9px;
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.86);
}
.cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 40px;
  border-radius: 8px;
  background: var(--gold);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cta-btn:hover { background: var(--gold-light); transform: translateY(-3px); }

/* ── 9-1. 소식 · 문의 바로가기 카드 ────────────────────────── */
.home-page-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.page-link-card {
  position: relative;
  display: block;
  aspect-ratio: 1024 / 672;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  background: var(--navy);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}
/* .reveal-scale 과 겹쳐도 hover 가 동작하도록 특이도를 높였습니다 */
.page-link-card.is-visible:hover,
.page-link-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 44px rgba(27,48,96,0.28);
}
.page-link-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.page-link-card:hover .page-link-bg { transform: scale(1.06); }
.page-link-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(27,48,96,0.30) 0%, rgba(27,48,96,0.70) 100%);
}
.page-link-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 28px 20px;
  color: #fff;
}
.page-link-name {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.28);
}
.page-link-desc {
  font-size: 0.88rem;
  opacity: 0.86;
  line-height: 1.6;
}

/* 사진이 아직 없을 때 — 다른 영역과 똑같이 회색 빈칸 */
.page-link-card.is-empty { background: #e9ebef; }
.page-link-card.is-empty .page-link-content { color: #4b5563; }
.page-link-card.is-empty .page-link-name {
  color: #4b5563;
  text-shadow: none;
}
.page-link-hint {
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.7;
  color: #9aa0ab;
}
.page-link-hint small {
  font-size: 0.74rem;
  font-weight: 400;
  color: #b3b8c2;
}

/* 선교현장 카드도 hover 가 묻히지 않도록 */
.field-card.is-visible:hover { transform: translateY(-8px); }

/* ── 10. 사역 페이지 — 유튜브 영상 2열 ─────────────────────── */
.video-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 30px;
}
.video-item { display: block; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0e1e42;
  box-shadow: 0 6px 22px rgba(0,0,0,0.14);
}
.video-frame iframe,
.video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-caption {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
}
.video-meta { margin-top: 4px; font-size: 0.8rem; color: var(--text-light); }

/* ── 11. 사역 상세 블록 (사진 + 글 좌우 교차) ──────────────── */
.mn-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}
.mn-block:nth-child(even) .mn-photo { order: 2; }
.mn-photo {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}
.mn-photo img { width: 100%; height: 100%; object-fit: cover; }
.mn-no {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 10px;
}
.mn-title { font-size: 1.35rem; font-weight: 800; color: var(--navy); line-height: 1.45; }
.mn-desc  { margin-top: 14px; font-size: 0.97rem; line-height: 1.9; color: var(--text-mid); }

/* ── 11-0. 정기 모임 목록 ──────────────────────────────────
   원래는 6칸 격자에 고정되어 있어 항목이 1~2개면 왼쪽으로 치우쳤습니다.
   개수에 상관없이 항상 가운데로 모이도록 flex 로 바꿉니다. */
#worship-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
#worship-list .worship-row {
  grid-column: auto;          /* 기존 span 규칙 해제 */
  flex: 1 1 230px;
  max-width: 300px;
}
@media (max-width: 560px) {
  #worship-list .worship-row { flex: 1 1 100%; max-width: none; }
}

/* ── 11-1. "준비 중입니다" 안내 카드 ───────────────────────
   등록된 자료가 아직 없을 때 표시됩니다.
   자료를 등록하면 자동으로 사라지고 목록이 나옵니다. */
.prep-note {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.prep-note-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.prep-note-body {
  font-size: 0.96rem;
  line-height: 1.9;
  color: var(--text-mid);
}
@media (max-width: 560px) {
  .prep-note      { padding: 36px 22px; }
  .prep-note-title{ font-size: 1.08rem; }
  .prep-note-body { font-size: 0.9rem; }
}

/* ── 12. 후원참여(준비중) 페이지 ───────────────────────────── */
.prep-wrap {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 24px 20px;
}
.prep-heart {
  font-size: 3.6rem;
  line-height: 1;
  margin-bottom: 26px;
  animation: prepBeat 2.4s ease-in-out infinite;
}
@keyframes prepBeat {
  0%, 100% { transform: scale(1); }
  12%      { transform: scale(1.14); }
  24%      { transform: scale(1); }
  36%      { transform: scale(1.09); }
  48%      { transform: scale(1); }
}
.prep-title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.prep-body {
  margin-top: 22px;
  font-size: 1rem;
  line-height: 2.05;
  color: var(--text-mid);
}
.prep-card {
  margin-top: 40px;
  padding: 34px 30px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.prep-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 12px;
}
.prep-account { font-size: 1.02rem; font-weight: 700; color: var(--navy); line-height: 1.7; }

/* ════════════════════════════════════════════════════════════
   ── 12-1. 항목 수가 적어도 가운데로 모이게 (공통 처리) ──────
   ────────────────────────────────────────────────────────────
   격자(grid)로 칸 수를 3칸·2칸으로 고정해두면
   항목이 칸 수보다 적을 때 왼쪽으로 치우쳐 보입니다.
   (예: 선교현장 글이 1개일 때 / 소식·문의 중 하나만 켰을 때)
   전부 "가운데로 모이는 배치"로 바꿉니다.
   ════════════════════════════════════════════════════════════ */

/* 한 줄에 3개 — 선교현장 · 갤러리 게시판 · 홈 최근 메시지 */
.field-grid,
.gallery-board-grid,
#home-sermons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.field-grid > *,
.gallery-board-grid > *,
#home-sermons > * {
  flex: 1 1 290px;
  max-width: calc((100% - 48px) / 3);
}
/* 안내 문구는 한 줄 전체 사용 */
.field-empty { flex: 1 1 100%; max-width: none; }

/* 한 줄에 2개 — 소식·문의 / 영상 / 메시지 목록 / 사역 사진 */
.home-page-links,
.video-grid-2,
#sermon-list,
#media-video-list,
#sanctuary-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.home-page-links > *,
.video-grid-2 > *,
#sermon-list > *,
#media-video-list > *,
#sanctuary-list > * {
  flex: 1 1 320px;
  max-width: calc((100% - 24px) / 2);
}

/* 모바일에서는 전부 한 줄에 1개씩 꽉 차게 */
@media (max-width: 900px) {
  .field-grid > *,
  .gallery-board-grid > *,
  #home-sermons > *,
  .home-page-links > *,
  .video-grid-2 > *,
  #sermon-list > *,
  #media-video-list > *,
  #sanctuary-list > * {
    flex: 1 1 100%;
    max-width: none;
  }
}

/* ── 13. 반응형 ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ministry-grid  { gap: 44px 28px; }
  .ministry-card  { width: calc((100% - 56px) / 3); max-width: none; }
  .ministry-photo { max-width: 230px; }
  .ministry-name  { font-size: 1.05rem; }
  .ministry-desc  { font-size: 0.89rem; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }

  .hero-content { padding: calc(var(--header-h) + 26px) 22px 74px; }
  .hero-inner   { max-width: 100%; }
  .hero::after {
    background:
      linear-gradient(to bottom, rgba(10,16,28,0.55) 0%, rgba(10,16,28,0.45) 45%, rgba(10,16,28,0.82) 100%);
  }
  /* 버튼: 화면 전체 폭을 차지하지 않고 글자에 맞춘 크기로 */
  .hero-actions { margin-top: 28px; gap: 10px; }
  .hero-btn {
    flex: 0 0 auto;
    min-width: 0;
    padding: 12px 28px;
    font-size: 0.94rem;
    border-radius: 7px;
    border-width: 1.5px;
  }
  .hero-scroll { display: none; }

  /* 모바일 메뉴 패널: 배경이 어두우므로 글씨는 항상 흰색 */
  #nav-menu {
    top: var(--header-h);
    background: rgba(12, 20, 38, 0.97);
    padding: 18px 14px 40px;
  }
  #nav-menu > li > a {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px;
    padding: 15px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  #site-header.hdr-scrolled #nav-menu .nav-ko { color: #fff; }
  #site-header.hdr-scrolled #nav-menu .nav-en { color: rgba(255,255,255,0.55); }
  .nav-ko { font-size: 1.05rem; }
  .nav-en { font-size: 0.68rem; }

  .vision-grid { grid-template-columns: 1fr; gap: 30px; }
  .field-grid  { grid-template-columns: 1fr; gap: 16px; }
  .video-grid-2{ grid-template-columns: 1fr; gap: 20px; }

  /* 소식·문의 카드: 세로로 쌓고, 선교현장 카드처럼 가로 꽉 차게 */
  .home-page-links {
    grid-template-columns: 1fr;
    gap: 0;
    width: auto;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .page-link-card { border-radius: 0; }
  .page-link-card:hover,
  .page-link-card.is-visible:hover { transform: none; box-shadow: none; }
  .page-link-name  { font-size: 1.35rem; }

  .mn-block { grid-template-columns: 1fr; gap: 22px; margin-bottom: 52px; }
  .mn-block:nth-child(even) .mn-photo { order: 0; }

  .cta-inner { flex-direction: column; text-align: center; gap: 22px; }
  .cta-btn   { width: 100%; }
}

/* ── 모바일: 이미지를 화면 가로에 꽉 채우기 (좌우 여백 제거) ──
   .container 의 좌우 여백을 뚫고 화면 전체 폭으로 넓힙니다. */
@media (max-width: 900px) {
  /* ⚠️ transform 을 쓰지 않습니다.
     스크롤 등장 효과(.reveal-scale 등)도 transform 을 쓰기 때문에
     서로 덮어써서 이미지가 옆으로 밀려나가는 문제가 생깁니다.
     좌우 마진만으로 컨테이너 여백을 뚫습니다. */
  .m-bleed {
    width: auto;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  /* 선교현장 카드: 세로로 쌓이면서 가로 꽉 차게 */
  .field-grid { gap: 0; }
  .field-card { border-radius: 0; aspect-ratio: 16 / 10; }
  .field-card:hover { transform: none; box-shadow: none; }

  /* 갤러리 게시판 썸네일도 가로 꽉 차게 */
  .gallery-board-grid { gap: 0 !important; }
  .gallery-board-card { border-radius: 0 !important; box-shadow: none !important; border-bottom: 1px solid var(--border); }
  .gallery-board-card:hover { transform: none; box-shadow: none; }

  /* 홈 소개 사진 · 영상 · 사역 상세 사진 */
  .home-about-img,
  .video-frame,
  .mn-photo { border-radius: 0; }

  /* 공지 본문 이미지 */
  .notice-img, .detail-img {
    width: auto;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 560px) {
  /* 사역 카드 — 한 줄에 2개, 화면 폭에 맞춰 크게 */
  .ministry-grid  { gap: 34px 12px; }
  .ministry-card  { width: calc(50% - 6px); }
  .ministry-photo {
    width: 92%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto 16px;
  }
  .ministry-name  {
    font-size: 1.02rem;
    line-height: 1.45;
    margin-bottom: 9px;
  }
  .ministry-desc  {
    font-size: 0.88rem;
    line-height: 1.72;
    color: var(--text-mid);   /* 연회색 → 진회색으로 (가독성) */
  }
  .img-empty-sm span { font-size: 0.9rem; }

  /* 히어로 버튼 — 작은 화면에서 한 번 더 줄임 */
  .hero-btn { padding: 11px 24px; font-size: 0.9rem; }

  .logo-name      { font-size: 1rem; }
  .logo-mark      { font-size: 1.4rem; }
}
