:root{
    --bg:#f8fafc;          /* slate-50 */
    --bg-soft:#f1f5f9;     /* slate-100 */
    --panel:#ffffff;       /* white */
    --text:#0f172a;        /* slate-900 */
    --muted:#475569;       /* slate-600 */
    --brand:#2563eb;       /* blue-600 */
    --brand-2:#059669;     /* emerald-600 */
    --accent:#f59e0b;      /* amber-500 */
    --card:#ffffff;
    --radius:18px;
    --shadow:0 8px 24px rgba(2,6,23,.08);
    --max:1100px;
    --border: rgba(2,6,23,.08);
    --hover: rgba(2,6,23,.06);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:linear-gradient(180deg,var(--bg) 0%, #fff 60%, #f8fafc 100%);color:var(--text);font-family: 'Pretendard', system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", sans-serif;line-height:1.6}
a{color:var(--brand);text-decoration:none}
a:hover{opacity:.9}
.container{max-width:var(--max);margin:0 auto;padding:0 24px}
header.nav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.85);backdrop-filter: blur(8px);border-bottom:1px solid var(--border)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 24px}
.brand{display:flex;gap:12px;align-items:center}
.brand .logo{width:34px;height:34px;border-radius:10px;background:radial-gradient(circle at 30% 30%, var(--brand), transparent 60%), radial-gradient(circle at 70% 70%, var(--brand-2), transparent 60%), linear-gradient(135deg, #dbeafe, #dcfce7);box-shadow:var(--shadow)}
.brand b{font-weight:700;letter-spacing:.2px}
nav ul{display:flex;gap:14px;list-style:none;padding:0 24px;margin:0;flex-wrap:wrap}
nav a{display:inline-block;padding:8px 12px;border-radius:999px;color:var(--text)}
nav a:hover, nav a.active{background:var(--hover)}

/* Hero */
.hero{position:relative;overflow:hidden}
.hero .wrap{display:grid;grid-template-columns:1.2fr .1fr;gap:26px;align-items:center;padding:0px 24px}
.badge{display:inline-flex;gap:8px;align-items:center;border:1px solid var(--border);padding:6px 10px;border-radius:999px;color:var(--muted);font-size:25px;background:#fff}
h1{font-size:40px;line-height:1.2;margin:14px 0 8px}
.subtitle{color:var(--muted);font-size:16px}
.hero-card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.hero-card .grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.hero-card .cell{background:#f8fafc;border:1px solid var(--border);border-radius:14px;padding:12px;text-align:center}
.hero-verse{font-style:italic;color:#4338ca;font-size:16px;max-width: 800px;margin: 0 auto} /* indigo-700 */

/* Sections */
section{padding:56px 0;border-top:1px solid var(--border)}
section h2{font-size:28px;margin:0 0 16px}
.kicker{color:var(--brand-2);font-weight:600;font-size:13px;letter-spacing:.4px;text-transform:uppercase}
.panel{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.panel.pad{padding:18px}

/* 안내: subgrid */
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media (max-width: 900px){
    .hero .wrap{grid-template-columns:1fr}
    .grid-2{grid-template-columns:1fr}
    .grid-3{grid-template-columns:1fr 1fr}
}
@media (max-width: 640px){
    .grid-3{grid-template-columns:1fr}
}

table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden}
th, td{padding:10px;border-bottom:1px dashed var(--border);text-align:left}
th{color:var(--muted);font-weight:600;background:#f8fafc}

/* Cards */
.card{background:#ffffff;border:1px solid var(--border);border-radius:16px;padding:16px;box-shadow:var(--shadow)}
.card h3{margin:0 0 6px;font-size:18px}
.meta{font-size:13px;color:var(--muted)}

/* Tabs (for 안내 subsections) */
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.tabs a{padding:6px 10px;border-radius:999px;border:1px solid var(--border);color:var(--text);background:#fff}
.tabs a:hover{background:#f8fafc}

/* Footer */
footer{padding:28px 0;color:var(--muted);background:#ffffff;border-top:1px solid var(--border)}
.fine{font-size:12px;color:var(--muted)}

/* Utility */
.center{display:flex;align-items:center;justify-content:center}
.right{display:flex;justify-content:flex-end}
.mb-8{margin-bottom:8px}
.mb-16{margin-bottom:16px}
.mb-24{margin-bottom:24px}
.mt-8{margin-top:8px}
.chip{display:inline-flex;align-items:center;gap:8px;background:rgba(59,130,246,.08);border:1px solid rgba(59,130,246,.2);color:#1e40af;padding:6px 10px;border-radius:999px;font-size:12px}

/* .btn{display:inline-flex;gap:8px;align-items:center;background:linear-gradient(180deg, #3b82f6, #2563eb);color:white;padding:10px 14px;border-radius:12px;border:1px solid rgba(2,6,23,.12);box-shadow:0 2px 0 rgba(0,0,0,.05)} */
/* .btn.alt{background:linear-gradient(180deg,#10b981,#059669)} */

.muted{color:var(--muted)}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px}
.ybtn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: linear-gradient(180deg, #ff0000, #cc0000);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.ybtn:hover {
    background: linear-gradient(180deg, #e60000, #b80000);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.ybtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15);
}
.btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: linear-gradient(180deg, #3b82f6, #1e40af); /* richer blue */
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    background: linear-gradient(180deg, #2563eb, #1d4ed8); /* brighter top */
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15);
}
.greetings-section {
    padding: 64px 0;
}

.greetings-section .wrap {
    display: grid;
    grid-template-columns: 1.0fr 1.0fr;
    align-items: center;
    gap: 40px;
}

.pastor-photo img {
    width: 100%;
    max-width: 320px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.greetings-text h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.greetings-text p {
    font-size: 1.00rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 16px;
}

.greetings-text .signature {
    font-weight: bold;
    color: #1e3a8a;
    margin-top: 24px;
    font-size: 1.1rem;
}

/* 📱 Responsive */
@media (max-width: 800px) {
    .greetings-section .wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .pastor-photo img {
        margin: 0 auto;
    }
    .greetings-section .wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* center the photo + signature line */
    .greetings-text .signature {
        justify-content: center;
        width: 100%;
    }
}
/* Hide the toggle button on large screens */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Default nav style for desktop */
.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

/* Responsive behavior */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 60px; /* adjust based on your header height */
        left: 0;
        width: 100%;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        padding: 1rem;
    }

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

    .nav-menu ul {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu a {
        display: block;
    }
}

#youthgroup .card-title {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
}

#youthgroup .card-sep {
    border: 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin: 1rem 0;
}

#youthgroup .kv {
    margin: 0;
}

#youthgroup .kv-row {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.5rem 1rem;
    align-items: baseline;
}

#youthgroup dt,
#youthgroup dd {
    margin: 0;
}

#youthgroup dt {
    color: #555;
    font-weight: 600;
}

#youthgroup dd {
    color: #111;
}

#youthgroup .block + .block {
    margin-top: 0.75rem;
}

#youthgroup .block-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

#youthgroup .list-compact {
    margin: 0.25rem 0 0;
    padding-left: 1.1rem;
}

#youthgroup .list-compact li {
    margin: 0.15rem 0;
}

#youthgroup .muted {
    color: #6b7280;
}

@media (max-width: 420px) {
    #youthgroup .kv-row {
        grid-template-columns: 4.75rem 1fr;
    }
}


#sundayschool .card-title {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
}

#sundayschool .card-sep {
    border: 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin: 1rem 0;
}

#sundayschool .kv {
    margin: 0;
}

#sundayschool .kv-row {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.5rem 1rem;
    align-items: baseline;
}

#sundayschool dt,
#sundayschool dd {
    margin: 0;
}

#sundayschool dt {
    color: #555;
    font-weight: 600;
}

#sundayschool dd {
    color: #111;
}

#sundayschool .block + .block {
    margin-top: 0.75rem;
}

#sundayschool .block-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

#sundayschool .list-compact {
    margin: 0.25rem 0 0;
    padding-left: 1.1rem;
}

#sundayschool .list-compact li {
    margin: 0.15rem 0;
}

#sundayschool .muted {
    color: #6b7280;
}

@media (max-width: 420px) {
    #sundayschool .kv-row {
        grid-template-columns: 4.75rem 1fr;
    }
}


#timothy .card-title {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
}

#timothy .card-sep {
    border: 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin: 1rem 0;
}

#timothy .kv {
    margin: 0;
}

#timothy .kv-row {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.5rem 1rem;
    align-items: baseline;
}

#timothy dt,
#timothy dd {
    margin: 0;
}

#timothy dt {
    color: #555;
    font-weight: 600;
}

#timothy dd {
    color: #111;
}

#timothy .block + .block {
    margin-top: 0.75rem;
}

#timothy .block-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

#timothy .list-compact {
    margin: 0.25rem 0 0;
    padding-left: 1.1rem;
}

#timothy .list-compact li {
    margin: 0.15rem 0;
}

#timothy .muted {
    color: #6b7280;
}

@media (max-width: 420px) {
    #timothy .kv-row {
        grid-template-columns: 4.75rem 1fr;
    }
}

@media (max-width: 768px) {
    .hide-on-phone {
        display: none;
    }
}

.shrink-lists ul,
.shrink-lists li {
    font-size: 12px;
}

/* Pastor carousel responsive sizing */
.pastor-carousel {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 5 / 4.5;   /* keeps same shape as 520x420 */
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin: 0 auto;
}

/* Slightly shorter on small phones */
@media (max-width: 480px) {
    .pastor-carousel {
        aspect-ratio: 4 / 3;
    }
}

/* Make tables behave better on small screens */
table {
    width: 100%;
    table-layout: fixed;     /* predictable column widths */
}

th, td {
    word-break: keep-all;    /* prevent Korean syllable-by-syllable breaking */
    overflow-wrap: break-word; /* if something MUST break, break cleanly */
    white-space: normal;
}

th:nth-child(1),
td:nth-child(1) {
    width: 25%;
    text-align: center;
}

th:nth-child(2),
td:nth-child(2) {
    width: 42%;
    text-align: center;
}


/* Keep the "장소" column from turning vertical */
th:nth-child(3),
td:nth-child(3) {
    white-space: nowrap;
    text-align: center;
    width: 33%;           /* adjust if you want a bit wider */
    word-break: keep-all;
}

/* Phone tuning */
@media (max-width: 480px) {
    th, td {
        white-space: nowrap;
        font-size: 11px;        /* slightly smaller */
        padding: 8px;           /* tighter padding */
    }

    /* Optional: give "모임" a bit more room */
    th:nth-child(1),
    td:nth-child(1) {
        width: 7.5rem;
    }
}

html {
    scroll-behavior: smooth;          /* 선택: 부드럽게 */
    scroll-padding-top: 84px;         /* 헤더 높이만큼 */
}

@media (max-width: 768px) {
    html { scroll-padding-top: 120px; } /* 모바일에서 메뉴/패딩 더 크면 늘리기 */
}

.ministry-photo {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 14px;
    margin: 12px 0 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Mini ministry carousel */
.ministry-carousel {
    width: 100%;
    max-height: 240px;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    margin: 12px 0 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    background: #e5e7eb;
}

.ministry-carousel .slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 450ms ease;
    user-select: none;
    -webkit-user-drag: none;
}

.ministry-carousel .navbtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.ministry-carousel .navbtn.prev { left: 6px; }
.ministry-carousel .navbtn.next { right: 6px; }

.ministry-carousel .dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.ministry-carousel .dots button {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: rgba(255,255,255,0.55);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}


.paypal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #ffc439, #ffb347);
    color: #003087;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 3px 0 rgba(0,0,0,0.15);
}

.paypal-btn:hover {
    transform: translateY(-2px);
}

.signature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.signature-photo {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 50%;
}
