:root {
  --navy: #2d3652;
  --navy-dark: #082e5d;
  --hero-grad-top: #1f4471;
  --green: #6c96c5;
  --coral: #6c96c5;
  --bg-warm: #eaf1fb;
  --bg-cool: #eaf1fb;
  --bg-card: #ffffff;
  --text-dark: #1c2536;
  --text-gray: #5b6b78;
  --border-light: #e2e9f3;
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.accent { color: var(--navy); font-weight: 700; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}
.btn[hidden] { display: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-ghost { border: 1.5px solid var(--border-light); color: var(--text-dark); background: #fff; }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 8px; }

/* ---------- Daily verse modal ---------- */
.verse-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.verse-modal[hidden] { display: none; }
.verse-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 45, 0.55);
  backdrop-filter: blur(3px);
}
.verse-modal-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-top: 4px solid var(--navy);
  border-radius: 16px;
  width: 420px;
  padding: 32px 30px 26px;
  text-align: left;
  color: var(--text-dark);
  box-shadow: 0 24px 60px rgba(15, 40, 70, 0.25);
  animation: verseModalIn 0.3s ease;
}
@media (max-width: 460px) { .verse-modal-box { width: 320px; padding: 26px 22px 20px; } }
@media (max-width: 350px) { .verse-modal-box { width: 280px; } }
@keyframes verseModalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.verse-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-gray);
  font-size: 18px;
  cursor: pointer;
}
.verse-modal-close:hover { color: var(--navy); }
.verse-modal-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--green);
  margin-bottom: 4px;
}
.verse-modal-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 16px;
}
.verse-modal-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--bg-warm);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 10px;
}
.verse-modal-ref { font-size: 13px; color: var(--text-gray); margin-bottom: 20px; }
.verse-modal-hide {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-gray);
  cursor: pointer;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  margin-right: auto;
}
.logo-mark { color: var(--green); }
.nav { display: flex; gap: 26px; }
.nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--navy); }

/* ---------- Mega menu ---------- */
.megamenu { display: flex; gap: 8px; }
.mm-item { position: relative; }
.mm-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--text-dark);
  font-size: 14.5px;
  font-weight: 500;
  padding: 10px 6px;
}
.mm-trigger:hover, .mm-item.open .mm-trigger { color: var(--navy); }
.mm-chevron { transition: transform 0.2s; color: #97a6b3; }
.mm-item.open .mm-chevron { transform: rotate(180deg); color: var(--navy); }
.mm-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15,40,70,0.15);
  padding: 10px 0;
  min-width: 200px;
  z-index: 50;
}
.mm-item.open .mm-panel { display: block; }
.mm-panel a {
  display: block;
  padding: 11px 20px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14.5px;
  white-space: nowrap;
}
.mm-panel a:hover { background: var(--bg-cool); color: var(--navy); }

.header-right { display: flex; align-items: center; gap: 14px; }
.member-auth-area { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.member-auth-area a { color: var(--navy); text-decoration: none; font-weight: 600; }
.member-auth-area a:hover { text-decoration: underline; }
.member-auth-sep { color: var(--border-light); }
.member-auth-logged { position: relative; }
.member-auth-name {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); color: var(--navy);
  font-size: 13.5px; font-weight: 700;
}
.member-auth-dropdown {
  display: none;
  position: absolute;
  top: 100%; right: 0;
  margin-top: 8px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15,40,70,0.15);
  min-width: 140px;
  padding: 8px 0;
  z-index: 60;
}
.member-auth-dropdown.open { display: block; }
.member-auth-dropdown a, .member-auth-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-dark);
  text-decoration: none;
}
.member-auth-dropdown a:hover, .member-auth-dropdown button:hover { background: var(--bg-cool); }

/* ---------- Sub-page hero ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 70px 24px 56px;
  text-align: center;
}
.page-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #cfe0ee;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
}
.page-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 14px; }
.page-hero p { font-size: 15.5px; color: #cfe0ee; }
.page-hero .bar { width: 60px; height: 4px; background: var(--green); margin: 22px auto 0; border-radius: 2px; }
.page-body { padding: 64px 24px; max-width: 760px; margin: 0 auto; }
.page-body p { margin-bottom: 16px; color: #333; font-size: 15.5px; }

.pastor-greeting { display: flex; gap: 32px; align-items: flex-start; }
.pastor-greeting > div:last-child { flex: 1; min-width: 0; }
.pastor-photo-card { flex: 0 0 180px; text-align: center; }
.pastor-photo-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15,40,70,0.14);
}
.pastor-photo-name { margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--navy); }
@media (max-width: 640px) {
  .pastor-greeting { flex-direction: column; align-items: center; }
  .pastor-photo-card { width: 160px; }
}

.value-core {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 36px;
  text-align: center;
  margin-bottom: 24px;
}
.value-core-badge {
  display: inline-block;
  background: rgba(255,255,255,0.16);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.value-core h3 { font-size: 24px; margin-bottom: 10px; }
.value-core .value-verse { color: #cfe0ee; font-size: 13.5px; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15,40,70,0.06);
}
.value-icon { font-size: 28px; display: block; margin-bottom: 12px; }
.value-card h4 { font-size: 16px; margin-bottom: 8px; }
.value-card .value-verse { font-size: 12.5px; color: var(--text-gray); }

@media (max-width: 640px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .values-grid { grid-template-columns: 1fr; }
}
.page-placeholder {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-gray);
  background: var(--bg-cool);
  border-radius: 16px;
}
.page-placeholder .icon { font-size: 34px; margin-bottom: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 110px 0 130px;
  text-align: left;
  overflow: hidden;
}
.hero-container { position: relative; z-index: 3; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(15,59,100,0.88) 0%, rgba(10,39,69,0.92) 100%);
  opacity: 1;
  transition: opacity 0.4s;
}
.hero-overlay--hidden { opacity: 0; }
.hero-inner { max-width: 620px; opacity: 1; transition: opacity 0.4s; }
.hero-inner--hidden { opacity: 0; pointer-events: none; }
.hero-eyebrow { font-size: 16px; color: #cfe0ee; margin-bottom: 14px; font-weight: 600; }
.hero-eyebrow .accent { color: #7fd0ff; }
.hero-title {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.25;
  margin-bottom: 22px;
}
.hero-verse { font-size: 17px; color: #dfe9f2; margin-bottom: 8px; }
.hero-ref { font-size: 13px; color: #8fa8bd; letter-spacing: 0.4px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: var(--navy); }
.hero .btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; background: transparent; border-radius: 30px; }
.hero .btn-primary { border-radius: 30px; }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; z-index: 2; display: block; }
.hero-wave path { fill: #fff; }

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.hero-nav:hover { background: rgba(255,255,255,0.26); }
.hero-nav--prev { left: 16px; }
.hero-nav--next { right: 16px; }
@media (max-width: 720px) {
  .hero-nav { width: 36px; height: 36px; font-size: 20px; top: auto; bottom: 24px; transform: none; }
  .hero-nav--prev { left: 8px; }
  .hero-nav--next { right: 8px; }
}

/* ---------- Quicklinks ---------- */
.quicklinks { background: transparent; padding: 0 24px; margin-top: -62px; position: relative; z-index: 4; }
.quicklinks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.qcard2 {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  color: var(--text-dark);
  display: block;
  box-shadow: 0 10px 30px rgba(15,40,70,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.qcard2:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15,40,70,0.12); }
.qcard2-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.qcard2-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  font-size: 19px;
  background: var(--bg-cool);
}
.qcard2-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 5px 11px;
  border-radius: 20px;
  background: var(--bg-cool);
  color: var(--text-gray);
}
.qb-pdf { background: #e3edfa; color: #2d6cc4; }
.qb-schedule { background: #fbe4a8; color: #7a5b00; }
.qb-youtube { background: #fddede; color: #d5303f; }
.qb-insta { background: rgba(255,255,255,0.28); color: #fff; }
.qcard2 h3 { font-size: 16.5px; margin-bottom: 6px; }
.qcard2 p { font-size: 13px; color: var(--text-gray); line-height: 1.55; }

.qcard2--navy { background: var(--navy); color: #fff; }
.qcard2--navy .qcard2-icon { background: rgba(255,255,255,0.14); }
.qcard2--navy p { color: #c3d0e2; }

.qcard2--pdf { background: linear-gradient(160deg, #eaf1fc 0%, #dce9fa 100%); border-color: #d3e2f7; }
.qcard2--pdf .qcard2-icon { background: rgba(255,255,255,0.7); }

.qcard2--youtube { background: linear-gradient(160deg, #fdeeee 0%, #fbdfe0 100%); border-color: #f8cfd0; }
.qcard2--youtube .qcard2-icon { background: rgba(255,255,255,0.7); }

.qcard2--insta {
  background: linear-gradient(135deg, #f9a04a 0%, #e04593 55%, #7c4fe0 100%);
  color: #fff;
  border: none;
}
.qcard2--insta .qcard2-icon { background: rgba(255,255,255,0.22); }
.qcard2--insta p { color: rgba(255,255,255,0.88); }

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

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 30px;
  letter-spacing: -0.5px;
}
.about .section-title, .worship .section-title, .sermon .section-title,
.gallery .section-title, .notice .section-title, .offering .section-title, .visit .section-title {
  text-align: center;
}
.about .eyebrow, .worship .eyebrow, .sermon .eyebrow,
.gallery .eyebrow, .notice .eyebrow, .offering .eyebrow, .visit .eyebrow {
  text-align: center;
}

/* About */
.about { background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
  text-align: left;
}
.about-message p { margin-bottom: 14px; color: #333; font-size: 15px; }
.about-side {
  background: var(--bg-warm);
  border-radius: 16px;
  padding: 28px;
}
.about-highlight { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.about-lead { font-size: 14px; color: var(--text-gray); margin-bottom: 6px; }
.about-signature { font-size: 13px; color: var(--text-gray); }

/* Worship table */
.worship { background: var(--bg-cool); }
.worship-table-wrap {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15,40,70,0.06);
}
.worship-table { width: 100%; border-collapse: collapse; }
.worship-table thead { background: var(--navy); color: #fff; }
.worship-table th {
  text-align: left;
  padding: 16px 24px;
  font-size: 13px;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.worship-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
}
.worship-table tr:last-child td { border-bottom: none; }
.worship-table tr:nth-child(even) { background: var(--bg-cool); }
.worship-table td:first-child { font-weight: 700; color: var(--navy); }
.worship-table td:first-child::before { content: "● "; color: var(--green); font-size: 10px; }

/* Sermon */
.sermon { background: #fff; }
.sermon-desc { text-align: center; color: var(--text-gray); margin-bottom: 28px; }
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15,40,70,0.15);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.sermon-cta { text-align: center; margin-top: 28px; }

/* Gallery */
.gallery { background: var(--bg-cool); }
.gallery-desc { text-align: center; color: var(--text-gray); margin-bottom: 28px; font-size: 14px; }
.gallery-empty, .photo-grid-empty { text-align: center; color: var(--text-gray); font-size: 14px; padding: 20px 0; }

/* 카테고리 폴더 4개 그리드 */
.gallery-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.gallery-cat-card {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px;
  text-decoration: none;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  width: 100%;
}
.gallery-cat-thumb {
  width: 74px; height: 74px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-cool);
  position: relative;
}
.gallery-cat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-cat-count {
  position: absolute;
  bottom: 3px; right: 3px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
}
.gallery-cat-label { color: var(--green); font-size: 11px; font-weight: 700; margin-bottom: 3px; }
.gallery-cat-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.gallery-cat-date { color: var(--text-gray); font-size: 12.5px; }
.gallery-cat-thumb-empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-gray); font-size: 11px;
}

/* 폴더 사진 전체보기 라이트박스 */
.photo-lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(10, 20, 35, 0.92);
  display: flex; flex-direction: column;
  padding: 20px;
}
.photo-lightbox[hidden] { display: none; }
.lightbox-header {
  display: flex; justify-content: space-between; align-items: center;
  color: #fff; margin-bottom: 18px; flex-wrap: wrap; gap: 10px;
}
.lightbox-title { font-size: 18px; font-weight: 800; }
.lightbox-sub { font-size: 13px; color: #b9c8db; margin-top: 4px; }
.lightbox-close {
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  width: 38px; height: 38px; border-radius: 50%; font-size: 18px; cursor: pointer;
  flex-shrink: 0;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-body { flex: 1; overflow-y: auto; }
.lightbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}
.lightbox-grid a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: rgba(255,255,255,0.06); }
.lightbox-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s; }
.lightbox-grid a:hover img { transform: scale(1.05); }
.lightbox-loading { text-align: center; color: #b9c8db; padding: 60px 0; }

/* 카테고리 클릭 시 안에 뜨는 행사 폴더 목록(gallery-cat-card 재사용) */
.lightbox-grid--folders {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Notice */
.notice { background: #fff; }
.notice-list { list-style: none; }
.notice-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.notice-date { color: var(--green); font-weight: 700; font-size: 13px; min-width: 80px; margin-right: 14px; }
.notice-title { color: var(--text-dark); }

/* Offering */
.offering { background: var(--bg-warm); }
.offering-box { background: #fff; border-radius: 16px; padding: 34px; text-align: center; box-shadow: 0 10px 30px rgba(15,40,70,0.06); }
.offering-bank { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.offering-holder { color: var(--text-gray); margin-bottom: 14px; }
.offering-note { font-size: 14px; color: var(--text-gray); }

/* Visit */
.visit { background: #fff; }
.visit-info { background: var(--bg-cool); border-radius: 16px; padding: 28px 32px; }
.visit-info p { margin-bottom: 12px; font-size: 15px; }
.visit-info strong {
  display: inline-block;
  width: 60px;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
}

/* Footer */
.site-footer { background: var(--navy-dark); color: #b8c6d4; padding: 56px 24px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  display: flex; align-items: center; gap: 6px;
  font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 10px;
}
.footer-desc { font-size: 13px; color: #93a7b8; }
.footer-heading { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 12px; letter-spacing: 0.5px; }
.footer-line { font-size: 13.5px; margin-bottom: 6px; color: #b8c6d4; }
.footer-copy { text-align: center; font-size: 12.5px; color: #7d90a1; padding: 20px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .quicklinks-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  .megamenu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
    border-bottom: 1px solid var(--border-light);
    max-height: 75vh;
    overflow-y: auto;
  }
  .megamenu.open { display: flex; }
  .mm-item { width: 100%; }
  .mm-trigger { width: 100%; justify-content: space-between; padding: 13px 4px; font-size: 15.5px; }
  .mm-panel {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 6px 14px;
    min-width: 0;
  }
  .mm-panel a { padding: 10px 6px; }
  .nav-toggle { display: flex; }
  .header-inner .btn-sm { display: none; }
  .hero { padding: 100px 0 100px; }
  .hero-title { font-size: 42px; }
  .hero-eyebrow { font-size: 15px; }
  .quicklinks { margin-top: -40px; }
  .section-title { font-size: 24px; }
  section { padding: 56px 0; }
  .worship-table th, .worship-table td { padding: 12px 14px; font-size: 13.5px; }
}

/* ---------- 로그인/회원가입 폼 ---------- */
.auth-form { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.auth-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--text-dark);
}
.auth-form input {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  outline: none;
}
.auth-form input:focus { border-color: var(--navy); }
.auth-error { color: #c0392b; font-size: 13.5px; }
.auth-switch { text-align: center; font-size: 13.5px; color: var(--text-gray); }
.auth-switch a { color: var(--navy); font-weight: 600; }

/* ---------- 관리자 회원관리 테이블 ---------- */
.member-table-wrap { background: #fff; border-radius: 16px; overflow-x: auto; box-shadow: 0 10px 30px rgba(15,40,70,0.06); }
.member-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.member-table thead { background: var(--navy); color: #fff; }
.member-table th { text-align: left; padding: 14px 18px; font-size: 13px; }
.member-table td { padding: 12px 18px; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.member-table tr:nth-child(even) { background: var(--bg-cool); }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.admin-guard { text-align: center; padding: 60px 20px; color: var(--text-gray); }

/* ---------- 말씀과 찬양: 목록 테이블 ---------- */
.sermon-table-wrap { background: #fff; border-radius: 16px; overflow-x: auto; box-shadow: 0 10px 30px rgba(15,40,70,0.06); }
.sermon-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.sermon-table thead { background: var(--navy); color: #fff; }
.sermon-table th { text-align: left; padding: 14px 16px; font-size: 12.5px; letter-spacing: 0.4px; }
.sermon-table th:first-child, .sermon-table td:first-child { text-align: center; width: 56px; }
.sermon-table td { padding: 13px 16px; border-bottom: 1px solid var(--border-light); font-size: 14px; color: var(--text-dark); }
.sermon-table tr:last-child td { border-bottom: none; }
.sermon-title a { color: var(--text-dark); font-weight: 600; text-decoration: none; }
.sermon-title a:hover { color: var(--navy); text-decoration: underline; }
.sermon-watch {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--navy); color: #fff; text-decoration: none; font-size: 12px;
}
.sermon-empty { text-align: center; color: var(--text-gray); padding: 40px 0; }

.sermon-layout { display: flex; gap: 28px; align-items: flex-start; }
.sermon-sidebar { width: 210px; flex-shrink: 0; }
.sermon-sidebar-title {
  background: var(--navy); color: #fff; text-align: center;
  padding: 14px; border-radius: 10px; font-weight: 700; font-size: 15px;
  margin-bottom: 14px;
}
.sermon-sidebar-group-title { font-size: 12.5px; font-weight: 700; color: var(--text-gray); padding: 12px 4px 6px; letter-spacing: 0.3px; }
.sermon-sidebar-links { display: flex; flex-direction: column; }
.sermon-sidebar-links a {
  padding: 10px 14px; font-size: 14px; color: var(--text-dark); text-decoration: none;
  border-left: 2px solid var(--border-light); border-radius: 0 8px 8px 0;
}
.sermon-sidebar-links a:hover { color: var(--navy); background: var(--bg-cool); }
.sermon-sidebar-links a.active { color: var(--navy); font-weight: 700; border-left-color: var(--navy); background: var(--bg-cool); }
.sermon-main { flex: 1; min-width: 0; }

@media (max-width: 820px) {
  .sermon-layout { flex-direction: column; }
  .sermon-sidebar { width: 100%; }
  .sermon-sidebar-links { flex-direction: row; flex-wrap: wrap; }
  .sermon-sidebar-links a { border-left: none; border-bottom: 2px solid var(--border-light); border-radius: 0; }
  .sermon-sidebar-links a.active { border-bottom-color: var(--navy); }
}

/* ---------- 말씀과 찬양: 상세보기 ---------- */
.sermon-view { display: grid; grid-template-columns: 1fr 280px; gap: 32px; align-items: start; }
.sermon-view-title { font-size: 22px; margin: 20px 0 12px; }
.sermon-view-meta p { font-size: 14px; color: var(--text-gray); margin-bottom: 4px; }
.sermon-view-meta strong { color: var(--text-dark); margin-right: 6px; }
.sermon-view-body {
  margin-top: 20px;
  padding: 20px;
  background: var(--bg-cool);
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-dark);
  white-space: normal;
}
.sermon-view-side h3 { font-size: 14px; color: var(--text-gray); margin-bottom: 12px; }
.sermon-view-side ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sermon-view-side li a {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  text-decoration: none; color: var(--text-dark);
  border: 1px solid var(--border-light);
  font-size: 13px;
}
.sermon-view-side li.active a { background: var(--navy); color: #fff; border-color: var(--navy); }
.sermon-view-side .sermon-side-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sermon-view-side .sermon-side-date { flex-shrink: 0; color: inherit; opacity: 0.7; font-size: 12px; }

@media (max-width: 780px) {
  .sermon-view { grid-template-columns: 1fr; }
}

/* ---------- 말씀과 찬양: 관리자 글쓰기 폼 ---------- */
.sermon-form { display: flex; flex-direction: column; gap: 16px; }
.sermon-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--text-dark);
}
.sermon-form input, .sermon-form select, .sermon-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  outline: none;
  resize: vertical;
}
.sermon-form input:focus, .sermon-form select:focus, .sermon-form textarea:focus { border-color: var(--navy); }
.sermon-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sermon-form-actions { display: flex; gap: 10px; }
@media (max-width: 560px) {
  .sermon-form-row { grid-template-columns: 1fr; }
}

/* ---------- 커뮤니티 게시판 (가정 및 구역 예배 등) ---------- */
.community-board { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border-light); }
.community-board-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.community-table-wrap { background: #fff; border-radius: 16px; overflow-x: auto; box-shadow: 0 10px 30px rgba(15,40,70,0.06); }
.community-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.community-table thead { background: var(--navy); color: #fff; }
.community-table th { text-align: left; padding: 14px 16px; font-size: 12.5px; letter-spacing: 0.4px; }
.community-table th:first-child, .community-table td:first-child { text-align: center; width: 56px; }
.community-table td { padding: 13px 16px; border-bottom: 1px solid var(--border-light); font-size: 14px; color: var(--text-dark); }
.community-table tr:last-child td { border-bottom: none; }
.community-title a { color: var(--text-dark); font-weight: 600; text-decoration: none; }
.community-title a:hover { color: var(--navy); text-decoration: underline; }
.community-empty { text-align: center; color: var(--text-gray); padding: 30px 0; }

.community-form { display: flex; flex-direction: column; gap: 16px; }
.community-form[hidden] { display: none; }
.community-form input, .community-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  outline: none;
  resize: vertical;
}
.community-form input:focus, .community-form textarea:focus { border-color: var(--navy); }

.community-post-meta { font-size: 13px; color: var(--text-gray); margin: 10px 0 20px; }
