@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css");

/* ===== W1th Church — Global Stylesheet =====
   Color palette derived from the W1th church logo.
   Mobile-first, then enhanced at >=768px and >=1024px.
*/

:root {
  --color-primary: #3252a7;
  --color-primary-soft: #5f72a7;
  --color-primary-pale: #a9b6d7;
  --color-bg: #e8ebf0;
  --color-surface: #ffffff;
  --color-text: #171717;
  --color-text-muted: #6d6d6d;
  --color-text-subtle: #404040;
  --color-border: #acacac;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(23, 23, 23, 0.06);
  --shadow-md: 0 6px 18px rgba(50, 82, 167, 0.08);

  --container-max: 1100px;
  --header-h: 64px;
}

* { box-sizing: border-box; }

html {
  height: 100%;
  /* Offset for sticky header so anchor jumps don't land under it. */
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  padding: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Sticky footer: keep <footer> pinned to the viewport bottom on short pages
     (e.g. "준비 중" placeholders) and flow naturally on long ones. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; } /* margin-top breathing room stays in the .site-footer rule below */

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-soft); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  color: var(--color-text-subtle);
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: 1.9rem; font-weight: 700; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

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

/* ============ Header & Navigation ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: flex-end; /* heart + wordmark sit on the same baseline; presbyterian rises above */
  gap: 0.2rem;
  color: var(--color-text);
  line-height: 1;
}
.brand:hover { text-decoration: none; }
.brand img.brand-heart {
  height: 22px;
  width: auto;
  flex-shrink: 0;
}
.brand-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* presbyterian sits over the right edge of 위드교회, matching the .ai layout */
  gap: 0.2rem;
}
.brand img.brand-presbyterian {
  height: 13px;
  width: auto;
}
.brand img.brand-wordmark {
  height: 22px;
  width: auto;
}

/* Hamburger */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0 10px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile: nav is dropdown */
.main-nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-bg);
  box-shadow: var(--shadow-md);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.main-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.main-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}
.main-nav .menu-group {
  border-bottom: 1px solid var(--color-bg);
}
.main-nav .menu-group:last-child { border-bottom: none; }
.main-nav .menu-title {
  display: block;
  padding: 0.9rem 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1rem;
}
.main-nav .submenu {
  list-style: none;
  margin: 0;
  padding: 0 0 0.6rem;
}
.main-nav .submenu a {
  display: block;
  padding: 0.6rem 2rem;
  color: var(--color-text-subtle);
  font-size: 0.95rem;
  min-height: 44px;
}
.main-nav .submenu a:hover,
.main-nav .submenu a[aria-current="page"] {
  background: var(--color-bg);
  color: var(--color-primary);
  text-decoration: none;
}

/* Tablet+ : horizontal nav, hover dropdowns */
@media (min-width: 1024px) {
  :root { --header-h: 72px; }
  .hamburger { display: none; }
  .brand img.brand-heart { height: 28px; }
  .brand img.brand-presbyterian { height: 16px; }
  .brand img.brand-wordmark { height: 28px; }

  .main-nav {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    box-shadow: none;
    border: none;
    overflow: visible;
    max-height: none;
  }
  .main-nav > ul {
    display: flex;
    padding: 0;
    gap: 0.5rem;
  }
  .main-nav .menu-group {
    position: relative;
    border-bottom: none;
  }
  .main-nav .menu-title {
    padding: 0 1rem;
    line-height: var(--header-h);
    color: var(--color-text-subtle);
    cursor: default;
  }
  .main-nav .menu-group:hover .menu-title,
  .main-nav .menu-group:focus-within .menu-title {
    color: var(--color-primary);
  }
  .main-nav .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-surface);
    border: 1px solid var(--color-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .main-nav .menu-group:hover .submenu,
  .main-nav .menu-group:focus-within .submenu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav .submenu a {
    padding: 0.55rem 1.1rem;
    min-height: 0;
  }
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-soft) 60%, var(--color-primary-pale) 100%);
  color: #fff;
  padding: 3.5rem 0 4rem;
  text-align: center;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: 0.6rem;
  /* Distribute the headline evenly across lines so the last word doesn't end
     up alone on its own line (avoids "...환영합니" / "다" orphan on iPhone). */
  text-wrap: balance;
  word-break: keep-all;
}
.hero p {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  opacity: 0.95;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}
.hero .accent { font-weight: 700; }

/* ============ Sections ============ */
.section {
  padding: 3rem 0;
}
.section--alt {
  background: var(--color-bg);
}
.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-sub {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* ============ Quick-link cards (homepage) ============ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
}

.quick-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-bg);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  color: var(--color-text-subtle);
}
.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-pale);
  text-decoration: none;
}
.quick-card .icon {
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.quick-card h3 {
  color: var(--color-primary);
  margin: 0.2rem 0 0.35rem;
}
.quick-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ Intro page layout (photo + greeting) ============ */
.intro-layout {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
/* Mobile (base): caption sits below the image, normal flow. */
.intro-photo {
  margin: 0;
  width: 200px;
  flex-shrink: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.intro-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 5%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.intro-photo figcaption {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-subtle);
}
.intro-layout .prose {
  margin-top: 0;
  max-width: none;
  flex: 1;
  /* Korean web typography: break at word boundaries (spaces) rather than
     mid-character so long Korean sentences don't split awkwardly. */
  word-break: keep-all;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .intro-layout {
    flex-direction: row;
    align-items: stretch; /* figure stretches to body height */
    gap: 2.5rem;
  }
  /* Desktop: image fills the full figure (= body height); caption overlays at
     the bottom of the image. */
  .intro-photo {
    width: 200px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }
  .intro-photo img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }
  .intro-photo figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin-top: 0;
    padding: 0.5rem 0.5rem 0.55rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
    color: #fff;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}

/* ============ Random main-page photo ============ */
.main-photo-frame {
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.main-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 600px) {
  .main-photo-frame { aspect-ratio: 4 / 3; }
}

/* ============ Plain content blocks ============ */
.prose {
  max-width: 760px;
  margin: 1.5rem auto 0;
  line-height: 1.85;
  font-size: 1.02rem;
  color: var(--color-text);
}
.prose p {
  white-space: pre-wrap;
  margin: 0 0 1.4em;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--color-primary); }
.prose u { text-decoration-color: var(--color-primary-soft); text-underline-offset: 3px; }

/* ============ People grid ============ */
.people-group {
  margin: 4.5rem auto;
  max-width: 1000px;
}
.people-group:first-of-type { margin-top: 2rem; }
.people-group h3 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 1.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-primary-pale);
  font-size: 1.25rem;
}
.people-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
}
.person-card {
  width: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex: none;
}
.person-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.person-photo {
  /* 4:5 portrait — taller frame than 1:1 leaves room for heads regardless of
     how tightly the source photo was cropped to the subject's hairline. */
  aspect-ratio: 4 / 5;
  width: 100%;
  background: var(--color-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-pale);
  font-size: 3rem;
}
.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchor crop near the top: heads stay whole, torso (bottom) trims instead. */
  object-position: 50% 5%;
}
.person-info {
  padding: 0.9rem 0.75rem 1.1rem;
}
.person-info .name {
  font-weight: 700;
  color: var(--color-text-subtle);
  font-size: 1.05rem;
}
.person-info .role {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ============ Service times table ============ */
.service-table-wrap {
  max-width: 820px;
  margin: 1.5rem auto 0;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-bg);
  box-shadow: var(--shadow-sm);
  background: var(--color-surface);
}
.service-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.service-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.service-table tbody th,
.service-table tbody td {
  padding: 0.95rem 1.1rem;
  border-top: 1px solid var(--color-bg);
  vertical-align: middle;
  text-align: left;
}
.service-table tbody th {
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(169, 182, 215, 0.12);
  white-space: nowrap;
  width: 1%;
}
.service-table tbody td:first-of-type {
  color: var(--color-text-subtle);
  white-space: nowrap;
}
.service-table tbody td:last-of-type {
  color: var(--color-text-muted);
}
.service-table tbody tr:hover {
  background: var(--color-bg);
}
@media (max-width: 600px) {
  /* Below 600px the 3-column grid gets too cramped (장소 text overflows /
     squishes). Reflow each row into a stacked card: 구분 as the heading, then
     시간/장소 below it with their column label rendered via ::before. */
  .service-table-wrap { border: none; box-shadow: none; background: transparent; }
  .service-table { border-collapse: separate; border-spacing: 0; }
  .service-table thead { display: none; }
  .service-table tbody { display: block; }
  .service-table tbody tr {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-bg);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem 1rem;
    margin-bottom: 0.7rem;
    box-shadow: var(--shadow-sm);
  }
  .service-table tbody tr:hover { background: var(--color-surface); }
  .service-table tbody th,
  .service-table tbody td {
    display: block;
    width: 100%;
    border: none;
    padding: 0;
    background: transparent;
    white-space: normal;
  }
  .service-table tbody th {
    color: var(--color-primary);
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-bg);
  }
  .service-table tbody td {
    display: flex;
    gap: 0.5rem;
    color: var(--color-text-subtle);
    font-size: 0.94rem;
    padding: 0.25rem 0;
    line-height: 1.5;
  }
  .service-table tbody td::before {
    content: attr(data-label);
    color: var(--color-text-muted);
    flex: 0 0 3rem;
    font-size: 0.85rem;
    padding-top: 0.05rem;
  }
}

/* ============ Worship video ============ */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-wrap {
  max-width: 880px;
  margin: 0 auto;
}

/* ============ Video gallery (featured + grid) ============ */
.video-gallery { max-width: 1100px; margin: 0 auto; }

.video-featured-info {
  max-width: 880px;
  margin: 1rem auto 0;
  text-align: center;
}
.video-featured-title {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  color: var(--color-text-subtle);
  font-weight: 600;
}
.video-featured-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.video-grid-heading {
  text-align: center;
  margin: 2.6rem 0 1.2rem;
  font-size: 1.1rem;
  color: var(--color-primary);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-primary-pale);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1rem;
  margin: 0 auto;
}
@media (min-width: 640px)  { .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .video-grid { grid-template-columns: repeat(4, 1fr); } }

.video-card {
  appearance: none;
  background: var(--color-surface);
  border: 1px solid var(--color-bg);
  border-radius: var(--radius-md);
  padding: 0;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  color: inherit;
}
.video-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary-pale);
  box-shadow: var(--shadow-md);
}
.video-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.video-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-bg);
  overflow: hidden;
}
.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.video-card:hover .video-card-thumb img { transform: scale(1.04); }
.video-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  background: rgba(0, 0, 0, 0.05);
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.video-card:hover .video-card-play {
  opacity: 1;
  background: rgba(50, 82, 167, 0.4);
}

.video-card-info {
  padding: 0.75rem 0.9rem 0.9rem;
}
.video-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-subtle);
  line-height: 1.4;
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card-date {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.2rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  /* <button> defaults to UA system font; force inherit so .btn looks identical
     whether applied to <a> or <button>. */
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover {
  background: var(--color-primary-soft);
  text-decoration: none;
  color: #fff;
}
.btn:active { transform: scale(0.98); }
.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn--ghost:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

/* ============ Map / Directions ============ */
.naver-map {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-primary-pale);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.2rem;
}
@media (max-width: 600px) {
  .naver-map { aspect-ratio: 4 / 3; }
}
.map-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--color-bg), var(--color-primary-pale));
  color: var(--color-text-subtle);
}
.map-fallback .icon { font-size: 2.5rem; margin-bottom: 0.3rem; }
.map-fallback h3 { color: var(--color-primary); margin: 0.3rem 0; }
.map-fallback p { color: var(--color-text-muted); margin: 0; max-width: 360px; }

.address-block {
  background: var(--color-surface);
  border: 1px solid var(--color-bg);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin: 1.2rem auto;
  max-width: 700px;
  box-shadow: var(--shadow-sm);
}
.address-block .label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}
.address-block .address {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-subtle);
}

/* ============ School pages (Children / Teens / Youth) ============ */
.school-page {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.school-hero {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.school-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.school-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text);
  word-break: keep-all;
  overflow-wrap: break-word;
}
.school-content h2 {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-pale);
  display: inline-block;
  padding-right: 2rem;
}
.school-content p { margin: 0 0 1.1em; }
.school-content p:last-child { margin-bottom: 0; }

.school-info {
  background: linear-gradient(180deg, rgba(169, 182, 215, 0.18), rgba(169, 182, 215, 0.06));
  border: 1px solid var(--color-primary-pale);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.school-info h3 {
  margin: 0 0 0.7rem;
  color: var(--color-primary);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.school-info h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--color-primary);
  border-radius: 2px;
}
.school-info dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  color: var(--color-text-subtle);
}
.school-info dt {
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.school-info dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============ Facility (교회 시설) ============ */
.facility {
  margin: 0 auto 4rem;
  max-width: 1000px;
}
.facility:first-of-type { margin-top: 1rem; }
.facility-header { text-align: center; margin-bottom: 1.5rem; }
.facility-header h2 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-pale);
  display: inline-block;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.facility-header p {
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0.6rem auto 0;
}
.facility-rooms {
  list-style: none;
  padding: 0;
  margin: 1rem auto 0;
  width: fit-content;
  max-width: 100%;
  text-align: left;
  font-size: 0.95rem;
  color: var(--color-text-subtle);
}
.facility-rooms li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.25rem 0;
}
.room-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.room-dot--yellow { background: #f6d65a; }
.room-dot--pink   { background: #f4a4c0; }
.room-dot--green  { background: #8fc89f; }

.facility-grid {
  display: grid;
  gap: 1rem;
}
.facility-grid--2 { grid-template-columns: repeat(2, 1fr); }
.facility-grid--3 { grid-template-columns: repeat(3, 1fr); }
.facility-grid--1 { grid-template-columns: 1fr; }
@media (max-width: 600px) {
  .facility-grid--2,
  .facility-grid--3 { grid-template-columns: 1fr; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .facility-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

.facility-photo {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: zoom-in;
}
.facility-photo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.facility-photo:hover { text-decoration: none; }
.facility-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.facility-photo:hover img { transform: scale(1.04); }
.facility-photo--wide {
  aspect-ratio: 16 / 9;
  max-width: 880px;
  margin: 0 auto;
}

/* ============ Lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

/* ============ Coming Soon placeholder ============ */
.coming-soon {
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 540px;
  margin: 2rem auto;
}
.coming-soon .icon {
  font-size: 3.5rem;
  color: var(--color-primary-pale);
  margin-bottom: 0.6rem;
}
.coming-soon h2 {
  color: var(--color-primary);
}
.coming-soon p {
  color: var(--color-text-muted);
}

/* ============ Footer ============ */
.site-footer {
  background: var(--color-text-subtle);
  color: var(--color-bg);
  padding: 2.2rem 0;
  margin-top: 3rem;
  font-size: 0.92rem;
  line-height: 1.7;
}
.site-footer a { color: #fff; }
.site-footer .footer-content {
  white-space: pre-wrap;
  text-align: center;
}
.site-footer .footer-meta {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-primary-pale);
}

/* ============ Utilities ============ */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.page-title {
  text-align: center;
  margin: 2rem 0 2rem;
}
.page-title + .prose,
.page-title + #service-table-wrap,
.page-title + .service-table-wrap {
  margin-top: 1rem;
}
.page-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-top: -1.4rem;
  margin-bottom: 2.5rem;
}
.muted { color: var(--color-text-muted); }
.notice {
  background: var(--color-bg);
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}
