/* =============================================
   샘물교회 블루/네이비 공통 테마
   모든 서브 페이지에 적용
============================================= */

:root {
    --navy:       #0D2B55;
    --navy-mid:   #185FA5;
    --navy-light: #2778C4;
    --sky:        #B5D4F4;
    --sky-pale:   #E6F1FB;
    --gold:       #C9A84C;
    --gold-light: #E8D5A0;
    --white:      #FAFBFD;
    --text-dark:  #0A1F3D;
    --text-mid:   #3A5278;
    --text-muted: #7A96B8;
    --bg-page:    #F4F7FC;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--bg-page);
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: 72px;
    line-height: 1.6;
}

/* theme.css를 쓰는 모든 페이지의 nav 태그 충돌 방지 */
nav {
    background: none;
    padding: 0;
    border: none;
    position: static;
}

img { max-width: 100%; height: auto; border-radius: 4px; }

/* ── NAV ── */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 60px; height: 72px;
    background: rgba(13,43,85,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(181,212,244,0.12);
}
.site-nav-logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
}
.site-cross {
    width: 22px; height: 22px; position: relative; flex-shrink: 0;
}
.site-cross::before {
    content: ''; position: absolute;
    background: var(--gold);
    top: 0; left: 50%; transform: translateX(-50%);
    width: 3px; height: 100%; border-radius: 2px;
}
.site-cross::after {
    content: ''; position: absolute;
    background: var(--gold);
    top: 38%; left: 0; width: 100%; height: 3px; border-radius: 2px;
}
.site-nav-logo span {
    font-family: 'Noto Serif KR', serif;
    font-size: 17px; font-weight: 400;
    color: var(--white); letter-spacing: 0.05em;
}
.site-nav-links {
    display: flex; gap: 28px; list-style: none;
}
.site-nav-links > li {
    position: relative;
}
.site-nav-links a {
    font-size: 14px; font-weight: 300; letter-spacing: 0.04em;
    color: rgba(250,251,253,0.75);
    text-decoration: none; transition: color 0.2s;
    display: flex; align-items: center; gap: 4px;
}
.site-nav-links a:hover,
.site-nav-links a.active { color: var(--gold-light); }

/* 드롭다운 화살표 */
.site-nav-links .has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 5px; height: 5px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 2px;
    transition: transform 0.2s;
}
.site-nav-links .has-dropdown:hover > a::after {
    transform: rotate(225deg) translateY(-2px);
}

/* 드롭다운 메뉴 */
.site-nav-links .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    background: rgba(13,43,85,0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(181,212,244,0.12);
    border-radius: 3px;
    padding: 14px 0 6px; /* 위쪽 padding으로 갭을 흡수해 hover 끊김 방지 */
    list-style: none;
    z-index: 300;
    box-shadow: 0 8px 24px rgba(5,12,28,0.35);
    margin-top: 0;
}
.site-nav-links .has-dropdown:hover .dropdown {
    display: block;
}
.site-nav-links .dropdown li a {
    display: block;
    padding: 10px 18px;
    font-size: 13px; font-weight: 300;
    color: rgba(250,251,253,0.72);
    white-space: nowrap;
}
.site-nav-links .dropdown li a::after { display: none; }
.site-nav-links .dropdown li a:hover {
    color: var(--gold-light);
    background: rgba(181,212,244,0.07);
}
.site-nav-links .dropdown li a.active {
    color: var(--gold-light);
}

.site-nav-cta {
    padding: 8px 20px;
    border: 1px solid var(--gold); border-radius: 2px;
    font-size: 13px; letter-spacing: 0.08em;
    color: var(--gold); text-decoration: none;
    transition: all 0.2s;
}
.site-nav-cta:hover { background: var(--gold); color: var(--navy); }

/* ── PAGE HERO (서브 페이지 상단 배너) ── */
.page-hero {
    background: linear-gradient(160deg, #0A1F3D 0%, #0D2B55 60%, #143d70 100%);
    padding: 64px 80px 56px;
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0; opacity: 0.04;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(181,212,244,1) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(181,212,244,1) 40px);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; }
.page-hero-label {
    font-size: 11px; letter-spacing: 0.22em; font-weight: 300;
    color: var(--gold-light);
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
}
.page-hero-label::before {
    content: ''; display: block;
    width: 28px; height: 1px; background: var(--gold);
}
.page-hero h1 {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(28px, 4vw, 46px); font-weight: 300; line-height: 1.3;
    color: var(--white);
}
.page-hero-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px; font-weight: 300; font-style: italic;
    color: rgba(181,212,244,0.7);
    margin-top: 8px;
}

/* ── BREADCRUMB ── */
.breadcrumb {
    background: var(--white);
    border-bottom: 1px solid rgba(24,95,165,0.1);
    padding: 12px 80px;
}
.breadcrumb-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-muted);
}
.breadcrumb-inner a {
    color: var(--navy-mid); text-decoration: none; transition: color 0.2s;
}
.breadcrumb-inner a:hover { color: var(--navy); }
.breadcrumb-sep { color: var(--text-muted); font-size: 11px; }

/* ── MAIN CONTENT WRAPPER ── */
.page-content {
    max-width: 1100px; margin: 0 auto;
    padding: 52px 80px 80px;
}

/* ── SECTION BLOCK ── */
.content-section {
    background: var(--white);
    border: 1px solid rgba(24,95,165,0.08);
    border-radius: 6px;
    padding: 40px 44px;
    margin-bottom: 24px;
    animation: pageFadeUp 0.4s ease both;
}
@keyframes pageFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.section-eyebrow {
    font-size: 11px; letter-spacing: 0.22em;
    color: var(--navy-mid); margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.section-eyebrow::after {
    content: ''; display: block; width: 20px; height: 1px; background: var(--navy-mid);
}

.content-section h2 {
    font-family: 'Noto Serif KR', serif;
    font-size: 24px; font-weight: 400; line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(24,95,165,0.1);
}
.content-section h3 {
    font-family: 'Noto Serif KR', serif;
    font-size: 18px; font-weight: 400;
    color: var(--navy); margin: 24px 0 10px;
}
.content-section p {
    font-size: 15px; font-weight: 300; line-height: 1.9;
    color: var(--text-mid); margin-bottom: 12px;
}
.content-section ul {
    list-style: none; padding: 0; margin: 0;
}
.content-section ul li {
    font-size: 15px; font-weight: 300; line-height: 1.8;
    color: var(--text-mid);
    padding: 10px 0 10px 18px;
    border-bottom: 1px solid rgba(24,95,165,0.06);
    position: relative;
}
.content-section ul li::before {
    content: ''; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--navy-mid);
}
.content-section ul li:last-child { border-bottom: none; }
.content-section strong { font-weight: 500; color: var(--text-dark); }

/* ── TABLE ── */
.content-section table {
    width: 100%; border-collapse: collapse;
    margin-top: 8px;
    border: 1px solid rgba(24,95,165,0.1);
    border-radius: 4px; overflow: hidden;
    font-size: 15px;
}
.content-section table th {
    background: var(--navy);
    color: var(--white);
    padding: 14px 18px;
    text-align: left; font-weight: 400;
    font-size: 14px; letter-spacing: 0.04em;
}
.content-section table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(24,95,165,0.07);
    color: var(--text-mid); font-weight: 300;
    font-size: 15px;
}
.content-section table tr:last-child td { border-bottom: none; }
.content-section table tr:hover td { background: var(--sky-pale); }

/* ── NOTICE TABLE (목록형) ── */
.notice-table {
    width: 100%; border-collapse: collapse; font-size: 15px;
}
.notice-table thead th {
    background: var(--navy);
    color: var(--white);
    padding: 14px 18px; font-weight: 400;
    font-size: 13px; letter-spacing: 0.06em;
    text-align: left;
}
.notice-table thead th:first-child { border-radius: 4px 0 0 0; width: 60px; text-align: center; }
.notice-table thead th:last-child  { border-radius: 0 4px 0 0; }
.notice-table tbody tr {
    border-bottom: 1px solid rgba(24,95,165,0.07);
    transition: background 0.15s;
}
.notice-table tbody tr:hover { background: var(--sky-pale); }
.notice-table td {
    padding: 16px 18px;
    color: var(--text-mid); font-weight: 300;
    font-size: 15px;
}
.notice-table td:first-child { text-align: center; color: var(--text-muted); font-size: 13px; }
.notice-table td a {
    color: var(--text-dark); text-decoration: none; font-weight: 400;
    transition: color 0.2s;
}
.notice-table td a:hover { color: var(--navy-mid); }

/* ── PAGINATION ── */
.site-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-top: 28px;
}
.site-pagination button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 18px;
    background: var(--white); color: var(--navy-mid);
    border: 1px solid rgba(24,95,165,0.2); border-radius: 3px;
    font-size: 13px; font-weight: 400; cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.2s;
}
.site-pagination button:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.site-pagination span {
    font-size: 15px; font-weight: 500; color: var(--navy); padding: 0 6px;
}

/* ── BUTTONS ── */
.btn-navy {
    display: inline-block;
    padding: 12px 30px;
    background: var(--navy); color: var(--white);
    border: none; border-radius: 3px;
    font-size: 14px; font-weight: 400; letter-spacing: 0.04em;
    text-decoration: none; cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.2s;
}
.btn-navy:hover { background: var(--navy-mid); }
.btn-gold {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gold); color: var(--navy);
    border: none; border-radius: 3px;
    font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
    text-decoration: none; cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.2s;
}
.btn-gold:hover { background: var(--gold-light); }
.btn-outline {
    display: inline-block;
    padding: 11px 28px;
    background: transparent; color: var(--navy-mid);
    border: 1px solid rgba(24,95,165,0.3); border-radius: 3px;
    font-size: 14px; font-weight: 400;
    text-decoration: none; cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.2s;
}
.btn-outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── CARD GRID ── */
.card-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 20px; margin-top: 8px;
}
.info-card {
    background: var(--sky-pale);
    border: 1px solid rgba(24,95,165,0.12);
    border-radius: 5px; padding: 28px 26px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.info-card:hover {
    border-color: var(--navy-mid);
    box-shadow: 0 4px 20px rgba(13,43,85,0.08);
}
.info-card h3 {
    font-family: 'Noto Serif KR', serif;
    font-size: 17px; font-weight: 400; color: var(--navy);
    margin: 0 0 10px;
}
.info-card p {
    font-size: 14px; font-weight: 300; color: var(--text-mid); line-height: 1.8; margin: 0;
}

/* ── STAFF / PASTOR CARD ── */
.person-card {
    display: flex; gap: 36px; align-items: flex-start;
    padding: 32px 36px;
    background: var(--white);
    border: 1px solid rgba(24,95,165,0.08);
    border-radius: 6px; margin-bottom: 20px;
}
.person-card-img {
    width: 140px; height: 170px;
    border-radius: 4px; object-fit: cover;
    background: linear-gradient(135deg, #0D2B55, #185FA5);
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    color: rgba(181,212,244,0.5); font-size: 13px;
}
.person-card-body h2, .person-card-body h3 {
    font-family: 'Noto Serif KR', serif;
    font-size: 22px; font-weight: 400; color: var(--navy);
    margin: 0 0 6px; border: none; padding: 0;
}
.person-card-body .role {
    font-size: 13px; letter-spacing: 0.1em; color: var(--gold);
    margin-bottom: 18px;
}
.person-card-body p {
    font-size: 15px; font-weight: 300; line-height: 1.9;
    color: var(--text-mid); margin-bottom: 10px;
}

/* ── WORSHIP TIME CARD ── */
.worship-row {
    display: flex; align-items: center; gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(24,95,165,0.08);
}
.worship-row:last-child { border-bottom: none; }
.worship-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--navy); display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.worship-row-info {
    flex: 1; min-width: 0;
}
.worship-row-info h3 {
    font-size: 16px; font-weight: 500; color: var(--text-dark);
    margin: 0 0 3px; font-family: 'Noto Sans KR', sans-serif; border: none; padding: 0;
}
.worship-row-info p { font-size: 13px; font-weight: 300; color: var(--text-muted); margin: 0; }
.worship-time-badge {
    margin-left: auto;
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px; font-weight: 400; color: var(--navy-mid);
    white-space: nowrap;
}

/* ── NOTICE DETAIL ── */
.notice-detail-header {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(24,95,165,0.1);
    margin-bottom: 28px;
}
.notice-detail-header h2 {
    font-family: 'Noto Serif KR', serif;
    font-size: 24px; font-weight: 400; color: var(--text-dark);
    line-height: 1.4; margin-bottom: 12px; border: none; padding: 0;
}
.notice-meta {
    font-size: 13px; color: var(--text-muted);
    display: flex; gap: 16px;
}
.notice-body {
    font-size: 16px; font-weight: 300; line-height: 2;
    color: var(--text-mid);
}
.notice-body p { margin-bottom: 16px; }

/* ── SITE FOOTER ── */
.site-footer {
    background: #070F1E;
    padding: 52px 80px 36px;
    margin-top: 60px;
}
.site-footer-top {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 52px; margin-bottom: 40px; padding-bottom: 40px;
    border-bottom: 1px solid rgba(181,212,244,0.08);
}
.site-footer-brand-logo {
    display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.site-footer-brand-logo span {
    font-family: 'Noto Serif KR', serif; font-size: 15px;
    color: var(--white); font-weight: 300; letter-spacing: 0.05em;
}
.site-footer-brand p {
    font-size: 13px; font-weight: 300; line-height: 1.9;
    color: rgba(181,212,244,0.42);
}
.site-footer-col h4 {
    font-size: 10px; letter-spacing: 0.18em;
    color: rgba(181,212,244,0.32); margin-bottom: 16px;
}
.site-footer-col ul { list-style: none; padding: 0; }
.site-footer-col ul li { margin-bottom: 10px; border: none; padding: 0; }
.site-footer-col ul li::before { display: none; }
.site-footer-col ul li a {
    font-size: 14px; font-weight: 300;
    color: rgba(250,251,253,0.52); text-decoration: none; transition: color 0.2s;
}
.site-footer-col ul li a:hover { color: var(--gold-light); }
.site-footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
}
.site-footer-bottom p { font-size: 12px; color: rgba(181,212,244,0.2); }
.site-footer-socials { display: flex; gap: 12px; }
.site-footer-socials a {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid rgba(181,212,244,0.14);
    display: flex; align-items: center; justify-content: center;
    color: rgba(181,212,244,0.38); font-size: 11px; text-decoration: none;
    transition: all 0.2s;
}
.site-footer-socials a:hover { border-color: var(--gold); color: var(--gold); }

/* ── 팝업 슬라이드 (다중 팝업) ── */
.popup-slides { flex: 1; overflow: hidden; position: relative; min-height: 0; }
.popup-slide  { display: none; height: 100%; }
.popup-slide.active { display: flex; flex-direction: column; }
.popup-slide .popup-body { flex: 1; overflow-y: auto; }

/* 이전/다음 버튼 */
.popup-nav-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(13,43,85,0.18);
    background: var(--white);
    color: var(--navy-mid);
    font-size: 18px; line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    font-family: sans-serif;
    box-shadow: 0 1px 4px rgba(13,43,85,0.08);
}
.popup-nav-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── 팝업 ── */
.popup-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(5, 14, 36, 0.65);
    z-index: 9998;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.popup-overlay.show { display: block; }

.popup-container {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    max-width: 92vw;
    max-height: 86vh;
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 40px 120px rgba(5,14,36,0.45), 0 0 0 1px rgba(24,95,165,0.1);
    border: none;
    flex-direction: column;
    display: none;
}
.popup-container.show {
    display: flex;
    flex-direction: column;
    animation: popupSlideIn 0.4s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes popupSlideIn {
    from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* 상단 골드 포인트 라인 */
.popup-container::before {
    content: '';
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 60%, transparent 100%);
    z-index: 1;
    pointer-events: none;
    border-radius: 14px 14px 0 0;
}

/* 팝업 헤더 */
.popup-header {
    background: linear-gradient(135deg, #0b2248 0%, #163d75 100%);
    padding: 20px 24px 18px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px;
    border-bottom: none;
    flex-shrink: 0;
}
.popup-header-left {
    display: flex; align-items: center; gap: 10px;
}
.popup-header-icon {
    width: 30px; height: 30px; flex-shrink: 0;
    border-radius: 50%;
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.35);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.popup-header-icon::before {
    content: '';
    position: absolute;
    background: var(--gold);
    top: 50%; left: 50%;
    width: 2px; height: 14px;
    transform: translate(-50%, -50%);
    border-radius: 1px;
}
.popup-header-icon::after {
    content: '';
    position: absolute;
    background: var(--gold);
    top: 46%; left: 50%;
    width: 12px; height: 2px;
    transform: translate(-50%, -50%);
    border-radius: 1px;
}
.popup-header-texts { display: flex; flex-direction: column; gap: 1px; }
.popup-header h3 {
    margin: 0;
    font-size: 12px; font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--white);
    font-family: 'Noto Sans KR', sans-serif;
}
.popup-header-sub {
    font-size: 10px; font-weight: 300;
    letter-spacing: 0.08em;
    color: rgba(181,212,244,0.5);
    font-family: 'Noto Sans KR', sans-serif;
}
.popup-header-right {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.popup-pager {
    font-size: 11px;
    color: rgba(181,212,244,0.55);
    letter-spacing: 0.06em;
    font-family: 'Noto Sans KR', sans-serif;
}
.popup-close {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(181,212,244,0.2);
    background: rgba(255,255,255,0.06);
    color: rgba(181,212,244,0.65);
    font-size: 16px; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    font-family: 'Noto Sans KR', sans-serif;
    box-shadow: none;
}
.popup-close:hover {
    background: rgba(181,212,244,0.15);
    color: var(--white);
    border-color: rgba(181,212,244,0.45);
    transform: none; box-shadow: none;
}

/* 팝업 바디 */
.popup-body { padding: 28px 28px 20px; flex: 1; overflow-y: auto; }

.popup-content .popup-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; margin-bottom: 14px;
    background: var(--sky-pale);
    color: var(--navy-mid);
    font-size: 10px; font-weight: 500; letter-spacing: 0.16em;
    border-radius: 20px;
    border: 1px solid rgba(24,95,165,0.18);
    font-family: 'Noto Sans KR', sans-serif;
}
.popup-content h4 {
    font-family: 'Noto Serif KR', serif;
    font-size: 19px; font-weight: 400; line-height: 1.45;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(24,95,165,0.09);
}
.popup-content h4::before { display: none; }
.popup-content p {
    font-size: 14px; font-weight: 300; line-height: 1.9;
    color: var(--text-mid);
    margin: 0;
    white-space: pre-line;
}

/* 팝업 푸터 */
.popup-footer {
    padding: 16px 28px 22px;
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(24,95,165,0.07);
    background: #f5f8fd;
    flex-shrink: 0;
    gap: 12px;
}
.popup-checkbox {
    display: flex; align-items: center; gap: 7px;
    cursor: pointer; user-select: none;
}
.popup-checkbox input[type="checkbox"] {
    width: 15px; height: 15px;
    cursor: pointer;
    accent-color: var(--navy-mid);
    flex-shrink: 0;
}
.popup-checkbox label {
    font-size: 12px; font-weight: 300;
    color: var(--text-muted); cursor: pointer;
    white-space: nowrap;
}
.popup-footer-actions {
    display: flex; gap: 8px; align-items: center;
}
.popup-button {
    padding: 9px 22px;
    background: var(--navy); color: var(--white);
    border: none; border-radius: 6px;
    font-size: 13px; font-weight: 400; letter-spacing: 0.04em;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    transition: background 0.2s;
    box-shadow: none;
    white-space: nowrap;
}
.popup-button:hover { background: var(--navy-mid); transform: none; box-shadow: none; }

@media (max-width: 480px) {
    .popup-container { width: 92%; border-radius: 12px; }
    .popup-body { padding: 22px 22px 16px; }
    .popup-footer { padding: 14px 22px 18px; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .site-nav { padding: 0 24px; }
    .site-nav-links { display: none; }
    .site-nav-cta { display: none; }
    .page-hero { padding: 48px 28px 40px; }
    .breadcrumb { padding: 12px 28px; }
    .page-content { padding: 32px 24px 60px; }
    .content-section { padding: 28px 24px; }
    .person-card { flex-direction: column; padding: 24px; }
    .person-card-img { width: 100%; height: 200px; }
    .site-footer { padding: 40px 24px 28px; }
    .site-footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
    .site-footer-socials a { width: 40px; height: 40px; }
    /* 예배 행 태블릿 */
    .worship-row { gap: 16px; }
}

/* ── HAMBURGER ── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: none; border: none; cursor: pointer; padding: 4px;
    z-index: 201;
}
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: rgba(250,251,253,0.85);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .hamburger { display: flex; }
}

/* ── MOBILE MENU ── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(13,43,85,0.99);
    backdrop-filter: blur(12px);
    z-index: 199;
    border-bottom: 1px solid rgba(181,212,244,0.12);
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.mobile-menu.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.mobile-menu ul { list-style: none; padding: 16px 0 24px; margin: 0; }
.mobile-menu ul li { border-bottom: 1px solid rgba(181,212,244,0.07); }
.mobile-menu ul li a {
    display: block; padding: 14px 28px;
    font-size: 15px; font-weight: 300; letter-spacing: 0.04em;
    color: rgba(250,251,253,0.8); text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.mobile-menu ul li a:hover { color: var(--gold-light); background: rgba(181,212,244,0.05); }
.mobile-menu ul li a.mobile-cta {
    color: var(--gold); font-weight: 400;
    border-top: 1px solid rgba(181,212,244,0.12);
    margin-top: 8px;
}
/* 모바일 드롭다운 하위 항목 */
.mobile-menu ul li a.mobile-sub {
    padding-left: 44px;
    font-size: 14px;
    color: rgba(250,251,253,0.6);
    border-bottom: none;
}

/* ── PAGINATION ── */
.site-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; margin-top: 28px; flex-wrap: wrap;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 7px 14px;
    background: var(--white); color: var(--navy-mid);
    border: 1px solid rgba(24,95,165,0.2); border-radius: 3px;
    font-size: 13px; font-weight: 400;
    text-decoration: none;
    transition: all 0.2s;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
}
.page-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.page-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); font-weight: 500; pointer-events: none; }

/* ── 공지사항 테이블 모바일 ── */
@media (max-width: 640px) {
    .notice-table thead th:nth-child(1),
    .notice-table thead th:nth-child(4),
    .notice-table tbody td:nth-child(1),
    .notice-table tbody td:nth-child(4) { display: none; }
    .notice-table thead th:nth-child(3),
    .notice-table tbody td:nth-child(3) { white-space: nowrap; }
    .notice-table td { padding: 14px 10px; }
}
@media (max-width: 400px) {
    .notice-table thead th:nth-child(3),
    .notice-table tbody td:nth-child(3) { display: none; }
}

/* ── 소형 화면 푸터 ── */
@media (max-width: 480px) {
    .site-footer { padding: 36px 20px 24px; }
    .site-footer-top { grid-template-columns: 1fr; gap: 24px; }
    .site-footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .page-hero { padding: 40px 20px 32px; }
    .page-content { padding: 24px 16px 48px; }
    .content-section { padding: 22px 16px; }
    .breadcrumb { padding: 10px 16px; }
    /* 예배 시간표 */
    .worship-row { gap: 12px; padding: 14px 0; }
    .worship-time-badge { font-size: 18px; }
    /* 교역자/목사 카드 */
    .person-card-img { height: 160px; }
    .person-card-body h2, .person-card-body h3 { font-size: 18px; }
    /* 카드 그리드 최소폭 */
    .card-grid { grid-template-columns: 1fr; }
}
