/* =========================================================
   교회 홈페이지 스타일시트
   팔레트: 딥네이비 #101B33 / 아이보리 #FAF7F0 / 골드 #C9A227
   타이포: 제목 - Noto Serif KR / 본문 - Pretendard
   ========================================================= */

:root {
  --navy-deep: #0d1526;
  --navy: #16213e;
  --navy-soft: #22315a;
  --ivory: #faf7f0;
  --ivory-dim: #f0ebdf;
  --gold: #c9a227;
  --gold-soft: #e4c876;
  /* 흰색/아이보리 등 밝은 배경 위 골드 "글자"는 --gold만으로는 명도 대비가 낮아(WCAG 기준 미달)
     잘 안 보일 수 있어서, 밝은 배경 전용으로 더 진하게 만든 색입니다. 어두운(네이비) 배경 위
     텍스트나 버튼 배경색으로 쓰는 --gold는 그대로 둡니다. */
  --gold-deep: #8f6b17;
  --ink: #201f1c;
  --muted: #6b6a63;
  --line: #e4ddc9;
  --radius: 4px;
  --max-width: 1140px;
  --shadow: 0 10px 30px rgba(13, 21, 38, 0.12);
  /* 관리자 페이지 "글꼴 설정"에서 선택하면 JS가 이 값을 덮어씁니다 */
  --font-heading: 'Noto Serif KR', serif;
  --font-body: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 16px;
}

/* 모달(게시글 상세·영상·첨부파일·사진 확대)이 하나라도 열려있는 동안,
   뒤쪽 홈페이지 화면이 같이 스크롤되지 않도록 막습니다. */
body.modal-open {
  overflow: hidden;
}

/* 홈페이지에서 콘텐츠를 눌러 다른 페이지(큐티 상세, 기도 요청, 온라인 문의, 영수증 신청 등)로
   넘어갔을 때, 화면이 뚝 떠 있지 않고 아래에서 위로 살짝 밀려 올라오며 부드럽게 나타나도록 합니다.
   홈페이지(public/index.html)는 이미 섹션마다 자체 등장 애니메이션(.reveal)이 있어서 겹치지 않도록,
   이 효과를 원하는 페이지의 <main>에만 page-enter 클래스를 붙여서 사용합니다. */
main.page-enter {
  animation: pageEnter 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 12px;
}
/* 어두운(네이비) 배경 섹션에서는 밝은 골드가 대비가 더 좋아서 원래 색 그대로 사용 */
.section--dark .eyebrow { color: var(--gold); }

.section {
  padding: 96px 0;
}
.section--tight { padding: 64px 0; }
.section--dark {
  background: var(--navy-deep);
  color: var(--ivory-dim);
}
.section--dark h2, .section--dark h3 { color: var(--ivory); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head p { color: var(--muted); }
.section--dark .section-head p { color: #b9bccb; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  /* 완전히 투명하게 두면(0.0) 뒤에 있는 다른 글자·이미지가 헤더 글씨와 겹쳐 보여
     헷갈릴 수 있어서, 스크롤하기 전에도 은은한 그라데이션을 항상 깔아둡니다.
     대문 사진은 여전히 비치되, 뒤 콘텐츠가 헤더 글자와 뒤섞여 보이는 문제를 없앱니다. */
  background: linear-gradient(180deg, rgba(13,21,38,0.45) 0%, rgba(13,21,38,0.15) 70%, rgba(13,21,38,0) 100%);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding: 20px 0;
}
.site-header.scrolled {
  /* 모바일 번쩍임 방지를 위해 흐림 효과(backdrop-filter) 대신 살짝 더 진한
     불투명 배경만 사용합니다. 이미 94~96%가 불투명해서 육안상 차이는 거의 없습니다. */
  background: rgba(13, 21, 38, 0.96);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 12px 0;
}

/* PC 등 성능 여유가 있는 화면에서는 원래의 유리 느낌(흐림 효과)을 그대로 살립니다 */
@media (min-width: 861px) {
  .site-header {
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  }
  .site-header.scrolled {
    background: rgba(13, 21, 38, 0.94);
    backdrop-filter: blur(6px);
  }
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.brand .gold-dot { color: var(--gold); }

.nav-desktop { display: flex; gap: 36px; }
.nav-desktop a {
  color: #eceaf0;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-desktop a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-desktop a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  width: 26px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; right: 0;
  width: min(78vw, 320px);
  height: 100vh;
  background: var(--navy-deep);
  padding: 100px 32px 32px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 99;
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a {
  color: #eceaf0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 1.05rem;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh; /* 구형 브라우저용 대체값 */
  min-height: 100svh; /* 모바일 주소창이 접히기 전(가장 작은) 화면 높이로 고정 — 주소창이
                          나중에 접혀도 화면 높이를 다시 계산하지 않아 크기가 두 번 조정되는
                          현상이 없어집니다 */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep); /* 사진이 없거나 아직 안 불러와졌을 때의 기본 배경색 */
  color: #fff;
  text-align: center;
  overflow: hidden;
}
/* 글씨가 잘 보이도록 어둡게 깔아주는 그라데이션은 사진과 분리된 고정 레이어로 둡니다
   (사진이 나중에 바뀌어도 이 오버레이 자체는 흔들리지 않습니다) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,21,38,0.72), rgba(13,21,38,0.86));
  z-index: 1;
}
/* 관리자가 등록한 대문 사진을 담는 전용 레이어. 기본은 투명 상태(opacity:0)로 시작해서
   JS가 사진을 다 불러온 뒤 .is-visible을 붙이면 그제서야 부드럽게 페이드인됩니다.
   (사진이 로딩되자마자 '빡' 하고 즉시 나타나던 현상을 없애기 위함) */
.hero-bg-photo {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-bg-photo.is-visible { opacity: 1; }
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 24px;
  animation: heroRise 1s ease both;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.verse-card {
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  padding: 28px 8px;
  margin-bottom: 28px;
}
.verse-card .verse-text {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.6;
  color: #fff;
  margin-bottom: 10px;
  white-space: pre-line;
  word-break: keep-all;
}
.verse-card .verse-ref {
  color: var(--gold-soft);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}
.hero-subtitle {
  color: #d7d9e4;
  font-size: 1.05rem;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { box-shadow: 0 8px 20px rgba(201,162,39,0.35); }
.btn--outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,0.1); }
.btn--navy { background: var(--navy-deep); color: #fff; }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }

.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.65);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  z-index: 2;
}
.scroll-cue::after {
  content: '';
  display: block;
  width: 1px; height: 36px;
  background: rgba(255,255,255,0.5);
  margin: 8px auto 0;
  /* 끝없이 반복하지 않고 4번만 움직인 뒤 멈춥니다. "아래로 스크롤하세요"라는 힌트는
     처음 몇 초만 보여도 충분하고, 계속 움직이는 요소가 있으면 배터리도 더 쓰고
     화면 밝기 전환 같은 시스템 처리와 겹칠 때 버벅임의 원인이 될 수 있습니다. */
  animation: scrollLine 1.8s ease 4;
  animation-fill-mode: forwards;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---------------- About ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}
.about-body p { color: #4a4942; white-space: pre-line; word-break: keep-all; }
.pastor-box {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--ivory-dim);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}
.pastor-box .name { font-weight: 700; color: var(--navy-deep); margin-bottom: 6px; }
.pastor-box p:not(.name) { white-space: pre-line; word-break: keep-all; }

/* ---------------- Service Times ---------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(228,200,118,0.25);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.service-card .time {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold-soft);
  margin: 8px 0 4px;
  white-space: pre-line;
  word-break: keep-all;
}
.service-card .name { color: #d7d9e4; font-size: 0.92rem; }

/* ---------------- Sermons ---------------- */
.sermon-updated {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: -32px;
  margin-bottom: 40px;
}
.sermon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.sermon-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.sermon-card:hover { transform: translateY(-4px); }
.sermon-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--navy-soft);
}
.sermon-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sermon-thumb .play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,21,38,0.25);
}
.sermon-thumb .play svg { width: 52px; height: 52px; }
.sermon-info { padding: 18px 20px 22px; }
.sermon-info .title {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy-deep);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.sermon-info .date { color: var(--muted); font-size: 0.82rem; }
.sermon-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* video modal */
.video-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(13,21,38,0.9);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal.open { display: flex; }
.video-modal-inner {
  position: relative;
  /* 가로/세로 크기는 이제 JS가 화면 크기에 맞춰 직접 계산해서 넣어줍니다
     (가로만 기준으로 잡으면 화면이 넓고 낮을 때 세로가 작아 보이는 문제가 있어서,
     가로·세로 중 더 빠듯한 쪽에 맞춰 최대한 크게 키우는 방식으로 바꿨습니다) */
}
#video-modal-frame {
  /* 이 div에 높이가 지정되어 있지 않으면, 안의 iframe이 height:100%를 줘도 기준
     삼을 높이가 없어서 브라우저 기본 높이(아주 작음)로 떨어집니다. 부모(.video-modal-inner,
     JS가 크기를 정확히 계산해서 넣어줌)에 꽉 채우도록 절대 위치로 고정해 해결합니다. */
  position: absolute;
  inset: 0;
}
.video-modal-inner iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.video-modal-close {
  position: absolute;
  bottom: -52px;
  left: 50%;
  top: auto; right: auto;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.15);
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
}

.file-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(13,21,38,0.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.file-modal.open { display: flex; }
.file-modal-inner {
  width: 100%;
  max-width: 860px;
  height: 88vh;
  background: var(--ivory);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.file-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink);
}
.file-modal-actions { display: flex; align-items: center; gap: 16px; }
.file-modal-actions a { font-size: 0.85rem; color: var(--gold-deep); }
.file-modal-close { background: none; border: none; font-size: 0.9rem; color: var(--muted); line-height: 1; }
#file-modal-frame { flex: 1; overflow: auto; background: #525659; }
#file-modal-frame iframe { width: 100%; height: 100%; border: 0; }
#file-modal-frame img { width: 100%; height: 100%; object-fit: contain; }

/* ---------------- Praise (찬양) ---------------- */
.praise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.praise-card {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.praise-thumb {
  position: relative;
  width: 100%;
  height: 100%;
}
.praise-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.praise-card:hover .praise-thumb img { transform: scale(1.05); }
.praise-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(13,21,38,0.55);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.praise-play svg { width: 22px; height: 22px; fill: currentColor; }
.praise-card:hover .praise-play { background: var(--gold); color: var(--navy-deep); }
.praise-overlay-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(13,21,38,0) 0%, rgba(13,21,38,0.85) 100%);
  color: #fff;
}
.praise-overlay-text .title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.praise-overlay-text .singer {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
}
@media (max-width: 900px) {
  .praise-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .praise-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* ---------------- Board (소식·활동) ---------------- */
.board-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.board-tab {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
.board-tab.active { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }

.board-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.board-card {
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.board-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(13,21,38,0.12); }
.board-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--navy-soft); }
.board-thumb img { width: 100%; height: 100%; object-fit: cover; }
.board-thumb-empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-soft);
  font-size: 2.2rem;
  font-weight: 700;
}
.board-info { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.board-top { display: flex; align-items: center; justify-content: space-between; }
.board-info .badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-deep);
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.board-info .date { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.board-info .pin { color: var(--gold); margin-right: 4px; }
.board-info h4 {
  margin: 0;
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.board-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.board-empty { text-align: center; color: var(--muted); padding: 40px; grid-column: 1/-1; }

@media (max-width: 900px) {
  .board-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .board-list { grid-template-columns: 1fr; }
}

.board-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.board-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.board-page-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--navy-deep); }
.board-page-btn.active { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.board-page-btn:disabled { opacity: 0.35; cursor: default; }
.board-page-nav { font-size: 1rem; }

/* post detail modal */
.post-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(13,21,38,0.55);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.post-modal.open {
  display: flex;
  animation: modalOverlayIn 0.25s ease both;
}
@keyframes modalOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.post-modal-inner {
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  background: #fff;
  border-radius: var(--radius);
  position: relative;
  animation: modalContentIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  /* 스크롤되는 내용 영역과, 스크롤과 무관하게 항상 같은 자리에 있는 하단 버튼 띠를
     위아래로 나눠서 배치합니다. 이렇게 하면 버튼이 사진이나 글 위에 겹쳐서 가리는
     일 없이, 내용과 완전히 분리된 자기 자리를 갖게 됩니다. */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@keyframes modalContentIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.post-modal-scroll {
  overflow-y: auto;
  padding: 32px;
}
.post-modal-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.post-modal-close {
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  line-height: 1;
  background: var(--ivory);
  color: var(--navy-deep);
  border: none;
}
.post-modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.post-modal-head .date { color: var(--muted); font-size: 0.85rem; }
#post-modal-title { margin: 0 0 18px; font-size: 1.3rem; color: var(--navy-deep); }
.post-modal-image { display: none; width: 100%; border-radius: var(--radius); margin-bottom: 18px; cursor: zoom-in; }
.post-modal-image[src]:not([src=""]) { display: block; }
.post-modal-content { line-height: 1.75; color: #2b2b2b; white-space: pre-wrap; word-break: keep-all; overflow-wrap: break-word; }
.post-modal-content img { max-width: 100%; border-radius: 8px; cursor: zoom-in; }
.post-modal-attachments { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.post-modal-attachments:empty { display: none; }
.attachment-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--navy-deep);
  text-decoration: none;
}
.attachment-item:hover { border-color: var(--gold); background: #fdf7e6; }
.attachment-item .icon { color: var(--gold-deep); }
.attachment-image { width: 100%; border-radius: 8px; display: block; margin-bottom: 12px; cursor: zoom-in; }

/* 사진 확대 보기 (다른 모든 모달보다 위에 뜨도록 z-index를 가장 높게 둡니다) */
.image-lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(13,21,38,0.92);
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.image-lightbox.open {
  display: flex;
  animation: lightboxFadeIn 0.25s ease both;
}
@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.image-lightbox img {
  animation: lightboxImageIn 0.3s ease both;
  max-width: min(1100px, 90vw);
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
@keyframes lightboxImageIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.image-lightbox-close {
  position: absolute;
  bottom: 28px;
  left: 50%;
  top: auto; right: auto;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 10px 24px;
  border-radius: 999px;
}

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info dt { color: var(--gold-deep); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 20px; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 4px 0 0; font-size: 1.05rem; color: var(--navy-deep); }
.contact-address-note {
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
  line-height: 1.7;
  white-space: pre-line;
  margin-top: 6px !important;
}

/* ---------------- 온라인 헌금 안내 + 기도 요청 (좌우 배치) ---------------- */
.offering-prayer-grid {
  display: flex;
  align-items: stretch;
  gap: 56px;
}
.offering-prayer-col {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.offering-prayer-col + .offering-prayer-col {
  border-left: 1px solid var(--line);
  padding-left: 56px;
}
.offering-prayer-grid--single .offering-prayer-col + .offering-prayer-col {
  border-left: none;
  padding-left: 0;
}
.offering-prayer-grid--single #offering { display: none !important; }
.offering-prayer-col .eyebrow { display: block; }
.offering-prayer-col h2 { margin-bottom: 24px; }

.prayer-teaser-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--ivory-dim);
  border-radius: var(--radius);
  padding: 32px 36px;
}
.prayer-teaser-card p {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0 0 22px;
}

@media (max-width: 860px) {
  .offering-prayer-grid { flex-direction: column; gap: 48px; }
  .offering-prayer-col + .offering-prayer-col {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 48px;
  }
}

.offering-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--ivory-dim);
  border-radius: var(--radius);
  padding: 32px 36px;
  text-align: center;
}
.offering-info { display: flex; flex-direction: column; gap: 14px; margin: 0 0 20px; }
.offering-info dt { color: var(--gold-deep); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.offering-info dd { margin: 4px 0 0; font-size: 1.15rem; font-weight: 600; color: var(--navy-deep); }

.offering-account-line {
  margin: 0 0 6px;
  font-size: clamp(1.05rem, 5.6vw, 1.5rem);
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow-x: auto;
}
.offering-account-line span:first-child { font-weight: 600; margin-right: 8px; }
.offering-holder-line {
  margin: 0 0 24px;
  font-size: 0.92rem;
  color: var(--muted);
  white-space: nowrap;
}
.offering-holder-line strong { color: var(--ink); font-weight: 600; margin-left: 4px; }
.offering-note { font-size: 0.86rem; line-height: 1.7; color: var(--muted); white-space: pre-line; border-top: 1px solid var(--line); padding-top: 18px; margin: 0 0 22px; }

.offering-receipt-cta {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  text-align: center;
}
.offering-receipt-cta p { font-size: 0.9rem; color: var(--ink); margin: 0 0 12px; }

.receipt-page-section { padding: 64px 0 96px; }
.receipt-page-container { max-width: 560px; }
.receipt-info-list { margin: 0 0 14px; padding-left: 20px; font-size: 0.88rem; line-height: 1.9; color: var(--ink); }
.receipt-privacy-note { font-size: 0.82rem; line-height: 1.7; color: var(--muted); margin: 0; }

.offering-receipt-card { max-width: 520px; margin: 24px auto 0; text-align: left; }
.offering-receipt-card h3 { font-size: 1.05rem; margin: 0 0 6px; color: var(--navy-deep); }
.offering-receipt-desc { font-size: 0.85rem; color: var(--muted); margin: 0 0 18px; }
#receipt-form { display: flex; flex-direction: column; gap: 10px; }
.offering-receipt-row { display: flex; gap: 10px; }
#receipt-form input, #receipt-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
}
#receipt-form textarea { resize: vertical; }
.btn-gold {
  align-self: flex-start;
  background: var(--gold);
  color: var(--navy-deep);
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 4px;
}
.offering-receipt-status { font-size: 0.85rem; color: var(--gold-deep); margin: 4px 0 0; min-height: 1.2em; }
/* ---------------- 기도 요청 ---------------- */
.prayer-form {
  max-width: 560px;
  margin: 0 auto 40px;
  background: var(--ivory-dim);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prayer-form-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.prayer-form-row input[type="text"] {
  flex: 1;
  min-width: 160px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
}
.prayer-secret-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--muted);
  white-space: nowrap;
}
.prayer-password-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  box-sizing: border-box;
}
.prayer-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.92rem;
  font-family: inherit;
  background: #fff;
  resize: vertical;
  box-sizing: border-box;
}
.prayer-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.prayer-form-status { font-size: 0.84rem; color: var(--muted); }

.prayer-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.prayer-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.prayer-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.prayer-name { font-weight: 700; color: var(--navy-deep); font-size: 0.92rem; }
.prayer-date { color: var(--muted); font-size: 0.8rem; }
.prayer-content { margin: 0; color: #333; font-size: 0.92rem; line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; }
.prayer-unlocked-badge { font-size: 0.76rem; color: var(--gold-deep); font-weight: 600; }
.prayer-locked { margin: 0 0 10px; color: var(--muted); font-size: 0.88rem; }
.prayer-unlock-form { display: flex; gap: 8px; align-items: stretch; }
.prayer-unlock-form input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.86rem;
  font-family: inherit;
}
.prayer-unlock-form button {
  flex-shrink: 0;
  padding: 9px 16px;
  border: none;
  border-radius: 6px;
  background: var(--navy-deep);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
}
.prayer-unlock-error { color: #b3413a; font-size: 0.8rem; margin: 6px 0 0; min-height: 1em; }
.prayer-empty { text-align: center; color: var(--muted); padding: 24px; }

@media (max-width: 560px) {
  .prayer-form { padding: 20px; }
  .prayer-form-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

.map-box {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background: var(--ivory-dim);
  border: 1px solid var(--line);
}
.map-box iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.kakao-map-preview {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  text-align: center;
}
.kakao-map-preview img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
.kakao-map-cta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: var(--navy-deep);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.kakao-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: auto;
  /* 지도 이미지의 정중앙이 실제 위치 좌표라서, 핀의 뾰족한 끝(아래쪽)이 정중앙에 오도록 이동 */
  transform: translate(-50%, -92%);
  filter: drop-shadow(0 3px 4px rgba(13,21,38,0.35));
  pointer-events: none;
}
.map-placeholder {
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy-deep);
  color: #a7abbd;
  padding: 48px 0 28px;
  font-size: 0.88rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { color: #fff; font-family: var(--font-heading); font-size: 1.1rem; }
.footer-sns { display: flex; gap: 12px; }
.footer-sns a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(201,162,39,0.4);
  color: #d7d9e4;
  overflow: hidden;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer-sns a svg { width: 18px; height: 18px; }
.footer-sns a span { font-size: 0.6rem !important; }
.footer-sns a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.admin-link { color: #6b6e80; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .nav-mobile { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .sermon-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .sermon-grid { grid-template-columns: 1fr; }
  .sermon-card:nth-child(n+4) { display: none; } /* 모바일에서는 최신 3개만 노출 */
  .offering-card { padding: 26px 20px; }
}

/* ---------------- 오늘의 큐티 (홈 섹션) ---------------- */
.qt-section {
  padding: 72px 0;
  background: var(--ivory-dim);
}
.qt-stage {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-soft) 100%);
}
.qt-stage svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }

/* 캐러셀 트랙(PC: 오늘 카드 가운데, 지난 카드는 뒤로 겹쳐서 살짝 보임 / 모바일: 오늘 카드 1개만 렌더링됨) */
.qt-carousel {
  position: relative;
  z-index: 1;
  width: 100%;
}
.qt-carousel-track {
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.qt-card--archive { display: none; } /* PC 커버플로우에서만 아래 미디어쿼리로 다시 노출됨 */

@media (min-width: 861px) {
  .qt-carousel--coverflow {
    height: 280px;
    cursor: grab;
  }
  .qt-carousel--coverflow.dragging { cursor: grabbing; }
  .qt-carousel--coverflow .qt-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
  }
  .qt-carousel--coverflow .qt-card {
    position: absolute;
    top: 50%;
    left: 50%;
    flex: none;
    width: 340px;
    margin: 0;
    transition: transform 0.5s cubic-bezier(0.22, 0.68, 0, 1.01), opacity 0.4s ease;
    will-change: transform, opacity;
  }
  .qt-carousel--coverflow .qt-card:hover { transform-origin: center; }
  .qt-carousel--coverflow .qt-card--archive {
    display: block;
    cursor: pointer;
  }
  .qt-carousel--coverflow .qt-card--today { cursor: pointer; }

  .qt-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(13, 21, 38, 0.45);
    color: var(--ivory);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, opacity 0.2s ease;
  }
  .qt-carousel-nav:hover { background: rgba(13, 21, 38, 0.7); }
  .qt-carousel-nav:disabled { opacity: 0.3; cursor: default; }
  .qt-carousel-nav:disabled:hover { background: rgba(13, 21, 38, 0.45); }
  .qt-carousel-nav--prev { left: 16px; }
  .qt-carousel-nav--next { right: 16px; }
  .qt-stage--single .qt-carousel-nav { display: none; }
}
@media (max-width: 860px) {
  .qt-carousel-nav { display: none; }
}

.qt-card {
  position: relative;
  display: block;
  width: min(340px, 86%);
  margin: 0 auto;
  background: var(--ivory);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 26px 28px;
  text-align: left;
  box-shadow: var(--shadow);
}
.qt-card:hover { transform: translateY(-2px); transition: transform 0.2s ease; }
.qt-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy-deep);
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.qt-badge--archive {
  background: var(--line);
  color: var(--muted);
}
.qt-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 8px;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.qt-card-ref { font-size: 0.85rem; color: var(--muted); margin: 0 0 16px; }
.qt-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}
.qt-stage--navy { background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-soft) 100%); }
.qt-stage--gold { background: linear-gradient(160deg, #7a5c12 0%, var(--navy-deep) 70%); }
.qt-stage--dawn { background: linear-gradient(160deg, #4a3a63 0%, #b06a4f 55%, #e0a86a 100%); }

.qt-empty { text-align: center; color: var(--ivory-dim); padding: 40px 0; position: relative; }

.qt-archive-toggle-wrap { text-align: center; margin-top: 20px; }
.qt-archive-toggle {
  background: none;
  border: none;
  font-size: 0.86rem;
  color: var(--muted);
  padding: 6px 10px;
}
.qt-archive-toggle:hover { color: var(--navy-deep); }
.qt-archive-list {
  max-width: 520px;
  margin: 12px auto 0;
  display: none;
}
.qt-archive-list.open { display: block; }
.qt-archive-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.qt-archive-row .date { color: var(--muted); width: 88px; flex-shrink: 0; }
.qt-archive-row .title { flex: 1; color: var(--ink); }

/* ---------------- 오늘의 큐티 (상세 페이지) ---------------- */
.qt-detail-section { padding: 64px 0 96px; }
.qt-detail-container { max-width: 640px; }
.qt-back-link { display: inline-block; font-size: 0.85rem; color: var(--muted); margin-bottom: 28px; }
.qt-detail-head { text-align: center; margin-bottom: 32px; }
.qt-detail-meta { font-size: 0.85rem; color: var(--muted); margin: 4px 0 10px; }
.qt-detail-title { font-size: 1.5rem; margin: 0; word-break: keep-all; overflow-wrap: break-word; }
.qt-verse-card {
  background: var(--ivory-dim);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin-bottom: 28px;
}
.qt-verse-text { font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.9; margin: 0 0 10px; }
.qt-verse-ref { font-size: 0.85rem; color: var(--muted); margin: 0; }
.qt-detail-body { font-size: 1rem; line-height: 1.9; margin-bottom: 28px; }

.qt-reaction-bar { display: flex; gap: 10px; justify-content: center; margin-bottom: 28px; }
.qt-amen-btn, .qt-share-btn, .qt-home-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.86rem;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ivory);
  color: var(--ink);
}
.qt-amen-btn { position: relative; overflow: visible; }
.qt-amen-btn:hover, .qt-share-btn:hover, .qt-home-btn:hover { border-color: var(--gold); }
.qt-amen-btn.pressed { border-color: var(--gold); background: var(--gold-soft); color: var(--navy-deep); }
.qt-heart { color: var(--gold-deep); font-size: 1.05rem; }
@keyframes qtAmenPop {
  0% { transform: scale(1); }
  40% { transform: scale(0.9); }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.qt-amen-btn.pop { animation: qtAmenPop 0.35s ease; }
@keyframes qtHeartFloat {
  0% { transform: translate(-50%, 0) scale(0.6); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(-50%, -60px) scale(1.15); opacity: 0; }
}
.qt-heart-particle {
  position: absolute;
  left: 50%;
  top: -6px;
  color: var(--gold-deep);
  font-size: 1rem;
  pointer-events: none;
  animation: qtHeartFloat 0.9s ease forwards;
}

.qt-detail-nav {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------------- 밴드 바로가기 (오른쪽 하단 떠있는 버튼) ---------------- */
.band-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: #00c73c; /* 네이버 밴드 브랜드 색상 */
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.band-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.3); }
.band-fab-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #00c73c;
  border-radius: 10px;
  padding: 4px 9px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
@media (max-width: 560px) {
  .band-fab { right: 14px; bottom: 14px; padding: 8px; }
  .band-fab > span:not(.band-fab-badge) { display: none; } /* 좁은 화면에서는 BAND 배지만 */
}

/* ---------------- 오늘의 큐티 + 말씀 퀴즈 (3:1 배치) ---------------- */
.qt-quiz-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 860px) {
  .qt-quiz-layout { grid-template-columns: 1fr; }
}

.quiz-teaser-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  background: url('/images/quiz-card-bg.jpg') center/cover no-repeat, var(--navy-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 18px;
  color: #fff;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* 사진 위에서도 글자가 잘 보이도록, 사진과 글자 사이에 어두운 막을 하나 깔아둡니다 */
.quiz-teaser-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,21,38,0.55) 0%, rgba(13,21,38,0.75) 100%);
}
.quiz-teaser-card > * { position: relative; z-index: 1; }
.quiz-teaser-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(13,21,38,0.25); }
.quiz-teaser-card strong { font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.4; text-shadow: 0 2px 6px rgba(0,0,0,0.4); }
.quiz-teaser-sub { color: #f0ebdf; font-size: 0.85rem; line-height: 1.5; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.quiz-teaser-arrow {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-deep);
  background: var(--gold);
  padding: 8px 16px;
  border-radius: 999px;
}

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------------- 스크롤 등장 애니메이션 ----------------
   카드/섹션이 화면에 스크롤되어 들어오면 서서히 나타나고, 화면 밖으로 나가면 다시
   사라졌다가, 스크롤을 다시 내리면 또 나타납니다(반복). main.js의 IntersectionObserver가
   .reveal 요소에 .is-visible을 추가/제거하는 방식으로 이 효과를 켜고 끕니다. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.1s; }
.reveal-delay-3 { transition-delay: 0.15s; }
.reveal-delay-4 { transition-delay: 0.2s; }
.reveal-delay-5 { transition-delay: 0.25s; }
.reveal-delay-6 { transition-delay: 0.3s; }

/* ---------- 선교사역 (세계지도 + 동역자의 섬김) ---------- */
.missions-verse {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 8px 0 6px;
  word-break: keep-all;
}
.missions-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 860px) {
  .missions-layout { grid-template-columns: 1fr; }
}

.missions-map-wrap {
  position: relative;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
#missions-map { position: relative; width: 100%; min-height: 340px; }
.missions-empty { text-align: center; color: var(--muted); padding: 60px 20px; }

.mission-pin-card-wrap {
  position: absolute;
  transform: translate(12px, -50%);
  z-index: 3;
  pointer-events: none;
}
.mission-pin-card-wrap.flip { transform: translate(calc(-100% - 12px), -50%); }

.mission-pin-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  width: 190px;
  pointer-events: auto;
}
.mission-pin-card-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.mission-pin-card-head .flag { font-size: 15px; }
.mission-pin-card-head .country { font-size: 11px; font-weight: 600; color: var(--muted); }
.mission-pin-card-body { display: flex; gap: 10px; align-items: flex-start; }
.mission-pin-card-body img,
.mission-pin-card-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line);
  flex-shrink: 0;
}
.mission-pin-card-body .name { margin: 0 0 3px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.mission-pin-card-body .name .tag {
  font-weight: 500;
  font-size: 10.5px;
  color: var(--navy-deep);
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 4px;
  white-space: nowrap;
}
.mission-pin-card-body .desc { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.55; }

.missions-mobile-list { display: none; }
@media (max-width: 860px) {
  .missions-mobile-list {
    display: flex;
    flex-direction: column;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
  }
}
.mission-mobile-card {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.mission-mobile-card:last-child { border-bottom: none; }
.mission-mobile-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy-deep);
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.mission-mobile-card .mission-pin-card-body img,
.mission-mobile-card .mission-pin-card-avatar { width: 40px; height: 40px; }
.mission-mobile-card .name { font-size: 14px; }
.mission-mobile-card .desc { font-size: 12.5px; }

.missions-partners {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
#partners-list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.missions-partners-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.eyebrow-sm { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1px; color: var(--gold-deep); margin-bottom: 2px; }
.missions-partners-head h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 500; margin: 0; color: var(--ink); }
.missions-partners-nav { display: flex; gap: 4px; }
.icon-btn-round {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  padding: 0;
  transition: background 0.2s ease;
}
.icon-btn-round:hover:not(:disabled) { background: var(--ivory-dim); }
.icon-btn-round:disabled { opacity: 0.3; cursor: default; }

.partner-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.partner-row img, .partner-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line);
  flex-shrink: 0;
}
.partner-info { flex: 1; min-width: 0; }
.partner-info .name {
  margin: 0; font-size: 13px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.partner-info .note { margin: 2px 0 0; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.partner-day {
  font-size: 10.5px; font-weight: 600;
  color: var(--navy-deep);
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.missions-partners-page { text-align: center; font-size: 10.5px; color: var(--muted); margin: 10px 0 0; }
