@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Friendly kinetic brand palette */
    --primary: #24BFD6;
    --primary-light: #5EDAE8;
    --secondary: #68C96F;
    --accent-coral: #FF6B6B;
    --accent-warm: #FFD166;
    --accent-green: #65C96F;
    --accent-violet: #8B7CF6;
    --dark: #ffffff;
    --bg-main: #f7fbfc;
    --text-main: #1f2933;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --border-light: #e3edf2;
    --shadow-soft: 0 18px 42px rgba(37, 99, 120, 0.09);
    --shadow-hover: 0 24px 54px rgba(36, 191, 214, 0.16);
    --glass-border: rgba(37, 99, 120, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-size: 17.5px; /* 어르신 및 시니어 봉사자를 위한 사이트 전체 기본 글꼴 확대 (기본 16px -> 17.5px) */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 209, 102, 0.18), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(36, 198, 220, 0.16), transparent 30%),
        linear-gradient(180deg, #fbfdff 0%, var(--bg-main) 48%, #ffffff 100%);
    color: var(--text-main);
    line-height: 1.7; /* 글이 답답해 보이지 않도록 줄간격 확장 */
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.mb-xl { margin-bottom: 5rem; }
.mb-lg { margin-bottom: 3rem; }
.mb-md { margin-bottom: 1.5rem; }
.p-lg { padding: 3rem; }
.p-md { padding: 1.5rem; }
.text-center { text-align: center; }

/* Typography */
h1, h2, h3, h4 { color: var(--text-main); font-weight: 700; line-height: 1.3; }
.gradient-text { 
    background: linear-gradient(100deg, #1BA8CE, var(--secondary) 52%, #F4B942); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .title { font-size: 2.5rem; margin-bottom: 1rem; }
.section-header .subtitle { font-size: 1.1rem; color: var(--text-muted); }

/* Navigation & Dropdowns */
.glass-nav {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; }
.logo { font-size: 1.3rem; font-weight: 800; color: var(--text-main); text-decoration: none; white-space: nowrap; margin-right: 2rem; }

.nav-list { display: flex; list-style: none; gap: 2.5rem; margin: 0; padding: 0; }
.nav-list .dropdown { position: relative; }
.nav-list .nav-link { color: #333; text-decoration: none; font-weight: 600; font-size: 0.95rem; display: block; padding: 28px 0; letter-spacing: -0.2px; }
.nav-list .nav-link:hover { color: #25C4EE; }
.dropdown-content {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.96); min-width: 172px; box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
    z-index: 1001; border-radius: 14px; overflow: hidden; border: 1px solid #e4eef5; text-align: left;
    backdrop-filter: blur(14px);
}
.dropdown:hover .dropdown-content { display: flex; flex-direction: column; animation: slideDown 0.2s ease-out forwards; }
.dropdown-content a {
    color: #555; padding: 14px 20px; text-decoration: none; display: block; font-size: 0.9rem; font-weight: 500; transition: all 0.2s;
}
.dropdown-content a:hover { background-color: #f0fbff; color: #0ea5b7; font-weight: 700; transform: translateX(3px); }

@keyframes slideDown {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; }
.menu-search {
    position: relative;
    flex: 0 0 auto;
}
.menu-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #f8fafc;
    color: #0f766e;
    cursor: pointer;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.menu-search-toggle:hover,
.menu-search.is-open .menu-search-toggle {
    background: #ecfeff;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(36, 191, 214, 0.14);
}
.menu-search-panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: min(420px, calc(100vw - 2rem));
    display: none;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.16);
    z-index: 1200;
    overscroll-behavior: contain;
}
.menu-search.is-open .menu-search-panel {
    display: block;
}
.menu-search-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 900;
}
.menu-search-input {
    width: 100%;
    height: 46px;
    padding: 0 0.9rem;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: #fff;
    color: var(--text-main);
    font-size: 16px;
    outline: none;
}
.menu-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(36, 191, 214, 0.13);
}
.menu-search-results {
    display: grid;
    gap: 0.45rem;
    max-height: min(520px, calc(100vh - 190px));
    margin-top: 0.75rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding-right: 0.15rem;
}
.menu-search-results::-webkit-scrollbar {
    width: 8px;
}
.menu-search-results::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}
.menu-search-results::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
.menu-search-results::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.menu-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.78rem 0.85rem;
    border: 1px solid #e8f2f6;
    border-radius: 10px;
    background: #fbfdff;
    color: var(--text-main);
    text-decoration: none;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.menu-search-result:hover,
.menu-search-result:focus {
    background: #ecfeff;
    border-color: rgba(36, 191, 214, 0.35);
    transform: translateY(-1px);
}
.menu-search-result span {
    font-weight: 900;
}
.menu-search-result small {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.menu-search-empty {
    padding: 1rem;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--text-muted);
    text-align: center;
    font-weight: 700;
}

.jump-header.is-admin-ui .header-left {
    flex: 1 1 0 !important;
    min-width: 0 !important;
}
.jump-header.is-admin-ui .main-nav {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
.jump-header.is-admin-ui .nav-list {
    gap: clamp(0.35rem, 0.7vw, 0.85rem) !important;
}
.jump-header.is-admin-ui .nav-link {
    min-width: clamp(58px, 5vw, 82px) !important;
    padding-left: 0.1rem !important;
    padding-right: 0.1rem !important;
    font-size: clamp(0.72rem, 0.78vw, 0.84rem) !important;
}
.jump-header.is-admin-ui .header-brand {
    max-width: clamp(190px, 21vw, 360px);
    overflow: hidden;
    text-overflow: ellipsis;
}
.jump-header.is-admin-ui .header-actions {
    gap: 0.55rem !important;
    margin-left: 0.65rem !important;
}

@media (max-width: 1180px) {
    .jump-header .header-inner {
        position: relative;
        gap: 0.75rem;
    }
    .header-left {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    .header-brand {
        max-width: min(42vw, 330px);
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .main-nav {
        display: none !important;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 0.85rem 1rem 1rem;
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
    }
    .main-nav.show {
        display: block !important;
    }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 42px;
        height: 42px;
        border: 1px solid #dbeafe;
        border-radius: 12px;
        background: #f8fafc;
        color: #1f2933;
        font-size: 1.45rem;
        font-weight: 900;
        line-height: 1;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    }
    .nav-list {
        width: 100%;
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.45rem !important;
        text-align: left;
    }
    .nav-list > li {
        width: 100%;
    }
    .nav-link {
        width: 100%;
        height: auto !important;
        min-width: 0 !important;
        padding: 0.72rem 0.85rem !important;
        border-radius: 12px;
        background: #f8fafc;
        align-items: flex-start !important;
        transform: none !important;
    }
    .nav-link .menu-en {
        display: none !important;
    }
    .nav-link .menu-ko {
        position: static !important;
        opacity: 1 !important;
        transform: none !important;
        font-size: 0.98rem !important;
    }
    .dropdown-content {
        position: static;
        display: grid;
        transform: none;
        min-width: 0;
        width: 100%;
        margin-top: 0.35rem;
        border-radius: 12px;
        box-shadow: none;
        background: #ffffff;
    }
    .dropdown:hover .dropdown-content {
        animation: none;
    }
    .dropdown-content a {
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
    }
}

/* Buttons */
.btn { padding: 0.8rem 1.5rem; border-radius: 50px; font-weight: 700; cursor: pointer; transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease; border: none; text-decoration: none; display: inline-block; }
.btn-primary { background: linear-gradient(135deg, #20BBD4, #57C878); color: white; box-shadow: 0 10px 24px rgba(36, 191, 214, 0.24); }
.btn-primary:hover { background: linear-gradient(135deg, #45D1E3, #75D88A); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: #effcff; color: #138aa0; transform: translateY(-3px); box-shadow: 0 14px 32px rgba(36, 191, 214, 0.12); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }

/* Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

/* Page Header */
.page-header { text-align: center; padding: 6rem 0 3rem; }
.page-header h1 { font-size: 3rem; margin-bottom: 1rem; }
.page-header p { font-size: 1.2rem; color: var(--text-muted); }

/* Hero Section */
.hero { height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: transparent; }
.hero::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 82vw; height: 82vw; max-width: 860px; max-height: 860px;
    background:
        radial-gradient(circle, rgba(255, 209, 102, 0.16) 0%, rgba(255,255,255,0) 60%),
        radial-gradient(circle at 62% 38%, rgba(36, 198, 220, 0.12), transparent 42%);
    border-radius: 50%; z-index: 0;
    animation: heroGlowBreath 9s ease-in-out infinite;
}
.hero-content { position: relative; z-index: 1; width: 100%; max-width: 1120px; background: rgba(255,255,255,0.78); padding: 4rem 5rem; border-radius: 18px; box-shadow: 0 28px 70px rgba(37, 99, 120, 0.11); text-align: center; margin: 0 auto; backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,0.78); }
.hero-content::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 14px;
    border: 1px solid rgba(36, 198, 220, 0.1);
    pointer-events: none;
}
.hero-badge { display: inline-block; padding: 8px 16px; background: linear-gradient(135deg, rgba(36,191,214,0.13), rgba(104,201,111,0.13)); color: #148da3; border-radius: 50px; font-weight: 800; margin-bottom: 1.5rem; }
.news-delete-trigger {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.news-delete-trigger:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.18);
}

.admin-mode-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 142px;
  height: 44px;
  padding: 0 48px 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.84rem;
  line-height: 1;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #f8fafc;
  color: #475569;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.admin-mode-switch:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.13);
}

.admin-mode-switch-text {
  white-space: nowrap;
}

.admin-mode-switch-state {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0.86;
}

.admin-mode-switch-knob {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #cbd5e1;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6), 0 4px 10px rgba(15, 23, 42, 0.16);
  transition: left 0.18s ease, right 0.18s ease, background 0.18s ease;
}

.admin-mode-switch.is-on {
  padding: 0 16px 0 48px;
  background: #334155;
  color: #fff;
  border-color: #334155;
}

.admin-mode-switch.is-on .admin-mode-switch-knob {
  left: 6px;
  right: auto;
  background: linear-gradient(135deg, #22c55e, #2dd4bf);
}

.admin-mode-switch.is-off .admin-mode-switch-knob {
  background: #cbd5e1;
}
.hero-content h1 {
    max-width: 100%;
    margin-bottom: 1.5rem;
    font-size: clamp(1.9rem, 2.8vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}
.hero-title-line,
.hero-subtitle {
    position: relative;
}
.hero-title-text,
.hero-subtitle-text {
    display: inline-block;
    max-width: 100%;
}
.content-edit-btn {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    vertical-align: middle;
    box-shadow: none;
}
.hero-edit-btn {
    position: absolute;
    top: 50%;
    right: -2.75rem;
    transform: translateY(-50%);
}
.hero-content p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: clamp(0.92rem, 1.55vw, 1.25rem);
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}
.hero-buttons { display: flex; justify-content: center; gap: 1rem; }

/* Hero Background Icons */
.hero-bg-icons { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.bg-icon { position: absolute; font-size: 4rem; opacity: 0.18; filter: grayscale(10%) saturate(1.1); animation: float 6s ease-in-out infinite; }
.bg-icon:nth-child(even) { animation-duration: 8s; animation-direction: reverse; }
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes heroGlowBreath {
    0%, 100% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.78; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

/* Identity Grid */
.identity-section { min-height: 100vh; padding: 0 1rem; display: flex; flex-direction: column; justify-content: center; }
.identity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; width: 100%; }
.identity-grid .glass-card { text-align: center; transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease; background: rgba(255,255,255,0.92); }
.identity-grid .glass-card:hover { transform: translateY(-7px); box-shadow: 0 26px 48px rgba(37, 99, 120, 0.12); border-color: rgba(36,198,220,0.34); }
.icon-box { font-size: 3rem; margin-bottom: 1.5rem; display: flex; justify-content: center; }


/* History Section */
.history-section { min-height: 100vh; padding: 0 1rem; display: flex; flex-direction: column; justify-content: center; margin-top: 0; }
.history-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.timeline { list-style: none; padding: 0; }
.timeline li { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.timeline .year { font-weight: bold; color: var(--primary); font-size: 1.1rem; }
.org-chart { display: flex; flex-direction: column; gap: 1rem; }
.org-item { display: flex; justify-content: space-between; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-light); }
.org-item .role { font-weight: bold; color: var(--text-main); }
.org-item .name { color: var(--text-muted); }

/* Impact Section (JUMP Style) */
.impact-section { text-align: center; padding: 0 1rem; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; background: #ffffff; margin: 0 auto; max-width: 1200px; }
.impact-header h2 { font-size: 2.2rem; line-height: 1.4; color: var(--text-main); margin-bottom: 4rem; word-break: keep-all; font-weight: 700; max-width: 800px; margin-left: auto; margin-right: auto; }
.impact-grid { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; margin-bottom: 4rem; }
.impact-item { display: flex; flex-direction: column; align-items: center; min-width: 150px; }
.impact-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.impact-number { font-size: 4.5rem; font-weight: 800; color: #24BFD6; line-height: 1; margin-bottom: 0.5rem; font-family: 'Inter', sans-serif; text-shadow: 0 10px 26px rgba(36,191,214,0.13); }
.impact-label { font-size: 1.1rem; color: var(--text-muted); font-weight: 500; }
.pill-btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 40px; background: #102a43; color: white; border-radius: 50px; font-weight: 700; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 14px 32px rgba(16,42,67,0.16); }
.pill-btn:hover { background: linear-gradient(135deg, #20BBD4, #68C96F); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(36, 191, 214, 0.24); }
.pill-btn .arrow { margin-left: 10px; font-weight: bold; }

/* Projects Grid */
.split-grid { display: grid; grid-template-columns: 350px 1fr; gap: 2rem; align-items: start; }
.filter-card { position: sticky; top: 100px; }
.filter-card h3 { margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-light); }
.year-filter { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--border-light); background: #ffffff; color: var(--text-main); margin-bottom: 1rem; font-size: 1rem; }
.activity-list { display: flex; flex-direction: column; gap: 0.5rem; overflow-y: auto; padding-right: 10px; }
.activity-item { padding: 15px; border-radius: 8px; background: var(--bg-main); border: 1px solid transparent; border-left: 3px solid transparent; cursor: pointer; transition: all 0.2s; }
.activity-item:hover { background: #f0fbff; border-left-color: rgba(36, 198, 220, 0.45); transform: translateX(2px); }
.activity-item.active { background: rgba(36, 191, 214, 0.08); border-color: transparent; border-left: 3px solid var(--primary); box-shadow: none; }
.activity-item.active h4 { color: var(--primary); font-weight: 700; }
.activity-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 5px; display: flex; justify-content: space-between; }
.activity-item h4 { margin: 0; font-size: 1rem; }
.tag-sponsor { color: #10B981; font-weight: bold; }
.tag-host { color: var(--primary); font-weight: bold; }
/* 프로젝트별 백지 스타일 */
.tag-dodo     { background: rgba(108,92,231,0.12); color: #6C5CE7; font-weight: 700; }
.tag-cheerup  { background: rgba(255,107,53,0.12);  color: #E05A1A; font-weight: 700; }
.tag-bibim    { background: rgba(42,157,143,0.12);  color: #2A9D8F; font-weight: 700; }

.detail-card { min-height: 500px; background: #ffffff; }
#detail-image { width: 100%; height: 300px; object-fit: cover; border-radius: 12px; margin-bottom: 1.5rem; background: var(--bg-main); }
.detail-content { line-height: 1.8; color: var(--text-muted); }
.detail-content h3 { color: var(--text-main); font-size: 1.8rem; margin-bottom: 1rem; }

/* 사진 없을 때 placeholder */
.no-image-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.5rem; padding: 2.5rem;
    background: #f8f9fa; border-radius: 12px;
    color: var(--text-muted); font-size: 1rem;
    border: 2px dashed var(--border-light);
    min-height: 180px;
}
.no-image-placeholder p { margin: 0; font-size: 0.95rem; }

/* Participation & Transparency */
.vms-process { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; }
.step { text-align: center; flex: 1; padding: 1.5rem; background: var(--bg-main); border-radius: 12px; }
.step-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.step-arrow { font-size: 2rem; color: var(--border-light); }
.account-info { background: var(--bg-main); border-radius: 12px; border-left: 5px solid var(--primary); }

/* Tabs */
.tabs-header { display: flex; gap: 1rem; border-bottom: 1px solid var(--border-light); margin-bottom: 2rem; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -ms-overflow-style: none; }
.tabs-header::-webkit-scrollbar { display: none; } /* Hide scrollbar for clean look */
.tab-btn { background: none; border: none; padding: 1rem 1.5rem; color: var(--text-muted); font-size: 1.05rem; font-weight: 600; cursor: pointer; position: relative; white-space: nowrap; flex-shrink: 0; }
.tab-btn.active { color: var(--primary); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background: var(--primary); border-radius: 3px 3px 0 0; }
.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border-light); }
.data-table th { font-weight: 600; color: var(--text-muted); background: var(--bg-main); }
.data-table tr:hover td { background: rgba(0,0,0,0.01); }
.table-link { color: var(--text-main); text-decoration: none; font-weight: 500; }
.table-link:hover { color: var(--primary); text-decoration: underline; }

/* Admin */
.glass-input { background: #fff; border: 1px solid var(--border-light); color: var(--text-main); padding: 10px 15px; border-radius: 6px; outline: none; font-family: 'Inter', sans-serif; }
.glass-input::placeholder { color: #aaa; }
.glass-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36,191,214,0.13); }
select.glass-input option { background: #fff; color: #000; }

/* Footer */
.compact-footer { background: #ffffff; border-top: 1px solid var(--border-light); padding: 3rem 0; margin-top: 4rem; font-size: 0.9rem; color: var(--text-muted); }
.footer-wrapper { display: flex; align-items: center; gap: 3rem; }
.footer-logo { text-align: center; flex-shrink: 0; padding-right: 2rem; }
.footer-details { flex-grow: 1; display: flex; flex-direction: column; gap: 0.8rem; }
.divider { display: inline-block; margin: 0 0.5rem; color: #ccc; font-size: 0.8rem; }
.footer-text-line { line-height: 1.6; }
.footer-divider-line { height: 1px; background: var(--border-light); width: 100%; margin: 0.5rem 0; }
.footer-contact-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.contact-numbers strong { color: var(--text-main); font-weight: 600; margin-right: 0.3rem; }
.copyright { font-size: 0.85rem; }

/* Project side navigation */
.project-side-nav {
    position: fixed;
    top: 50vh;
    right: 0.65rem;
    left: auto;
    transform: translate3d(0, -50%, 0);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.75rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(226, 239, 245, 0.95);
    box-shadow: 0 18px 42px rgba(37, 99, 120, 0.12);
    backdrop-filter: blur(16px);
    will-change: transform;
    transition: box-shadow 0.22s ease, background 0.22s ease;
}
.project-side-nav.is-following-scroll {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 22px 50px rgba(37, 99, 120, 0.16);
}
.project-side-nav-title {
    writing-mode: vertical-rl;
    align-self: center;
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin: 0.25rem 0;
}
.project-side-nav a {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #334155;
    text-decoration: none;
    border: 1px solid transparent;
    background: rgba(248, 250, 252, 0.86);
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}
.project-side-nav a:hover,
.project-side-nav a.active {
    background: linear-gradient(135deg, rgba(36, 191, 214, 0.18), rgba(104, 201, 111, 0.16));
    color: #0e7490;
    border-color: rgba(36, 191, 214, 0.28);
    box-shadow: 0 10px 24px rgba(36, 191, 214, 0.14);
    transform: translateX(-4px);
}
.project-side-nav-icon {
    font-weight: 900;
    font-size: 1.15rem;
    line-height: 1;
}
.project-side-nav-label {
    position: absolute;
    right: calc(100% + 0.65rem);
    left: auto;
    top: 50%;
    transform: translate(6px, -50%);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    padding: 0.42rem 0.68rem;
    border-radius: 999px;
    background: #102a43;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.project-side-nav-label::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    left: auto;
    width: 10px;
    height: 10px;
    transform: translateY(-50%) rotate(45deg);
    background: #102a43;
}
.project-side-nav a:hover .project-side-nav-label,
.project-side-nav a:focus-visible .project-side-nav-label {
    opacity: 1;
    transform: translate(0, -50%);
}
@media (max-width: 1100px) {
    .project-side-nav {
        right: 0.35rem;
        left: auto;
    }
}
@media (max-width: 820px) {
    .project-side-nav {
        position: sticky;
        top: 82px;
        right: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        width: max-content;
        max-width: calc(100vw - 2rem);
        margin: 0.8rem auto 0;
        border-radius: 999px;
        overflow-x: auto;
    }
    .project-side-nav-title,
    .project-side-nav-label {
        display: none;
    }
}

/* Gallery Layout (좌측 리스트, 우측 상세) */
.gallery-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    align-items: stretch;
    height: calc(100vh - 200px);
    min-height: 500px;
}

.gallery-layout > div {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* 스크롤바 디자인 */
.gallery-layout > div::-webkit-scrollbar {
    width: 6px;
}
.gallery-layout > div::-webkit-scrollbar-track {
    background: transparent;
}
.gallery-layout > div::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}
.gallery-layout > div::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
    .split-grid, .gallery-layout { grid-template-columns: 1fr; }
    .activity-list { max-height: 300px; }
}

@media (max-width: 768px) {
    .identity-grid { grid-template-columns: 1fr !important; }
    .main-nav { display: none !important; position: absolute; top: 76px; left: 0; width: 100%; background: #ffffff; padding: 0.75rem 1rem 1rem; border-bottom: 1px solid var(--border-light); box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08); }
    .main-nav.show { display: block !important; }
    .main-nav ul { flex-direction: column; gap: 1rem; text-align: center; }
    .mobile-menu-btn { display: flex; }
    .hero-content { padding: 2rem; }
    .hero-content h1 { font-size: 2rem; white-space: normal; word-break: keep-all; }
    .hero-content p { font-size: 1rem; white-space: normal; word-break: keep-all; }
    .footer-wrapper { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .footer-logo { text-align: left; padding-right: 0; }
}

/* Mobile polish for public and admin surfaces */
@media (max-width: 860px) {
    html { font-size: 16px; }
    body { overflow-x: hidden; }
    .container { width: min(100%, 100vw); padding-left: 1rem; padding-right: 1rem; }
    .jump-header .header-inner {
        position: relative;
        height: 76px !important;
        padding: 0 1rem !important;
        gap: 0.65rem;
    }
    .header-left {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    .header-brand {
        max-width: calc(100vw - 150px);
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 1.05rem !important;
        letter-spacing: 0 !important;
    }
    .header-brand img {
        width: 28px !important;
        height: 28px !important;
        margin-right: 0.25rem !important;
    }
    .mobile-menu-btn {
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 42px;
        height: 42px;
        border: 1px solid #dbeafe;
        border-radius: 12px;
        background: #f8fafc;
        color: #1f2933;
        font-size: 1.45rem;
        font-weight: 900;
        line-height: 1;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    }
    .menu-search {
        order: 2;
    }
    .menu-search-toggle {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 1.32rem;
    }
    .menu-search-panel {
        position: fixed;
        top: 84px;
        left: 1rem;
        right: 1rem;
        width: auto;
        max-height: calc(100svh - 100px);
        overflow: hidden;
    }
    .menu-search-results {
        max-height: calc(100svh - 210px);
    }
    .menu-search-result {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }
    .header-actions {
        gap: 0.45rem !important;
        margin-left: 0 !important;
    }
    .header-actions > a:not(.member-mini-icon):not(.admin-mode-switch) {
        display: none !important;
    }
    .admin-mode-switch {
        min-width: 44px;
        width: 44px;
        height: 42px;
        padding: 0 !important;
        justify-content: center;
    }
    .admin-mode-switch-text,
    .admin-mode-switch-state {
        display: none;
    }
    .admin-mode-switch-knob {
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%);
    }
    .member-mini-icon {
        width: 42px !important;
        height: 42px !important;
    }
    .nav-list {
        width: 100%;
        align-items: stretch !important;
        gap: 0.45rem !important;
    }
    .nav-list > li {
        width: 100%;
    }
    .nav-link {
        width: 100%;
        height: auto !important;
        min-width: 0 !important;
        padding: 0.72rem 0.85rem !important;
        border-radius: 12px;
        background: #f8fafc;
        align-items: flex-start !important;
        transform: none !important;
    }
    .nav-link .menu-en {
        display: none !important;
    }
    .nav-link .menu-ko {
        position: static !important;
        opacity: 1 !important;
        transform: none !important;
        font-size: 0.98rem !important;
    }
    .dropdown-content {
        position: static;
        display: grid;
        transform: none;
        min-width: 0;
        width: 100%;
        margin-top: 0.35rem;
        border-radius: 12px;
        box-shadow: none;
        background: #ffffff;
    }
    .dropdown:hover .dropdown-content {
        animation: none;
    }
    .dropdown-content a {
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
    }
    .main-content {
        min-width: 0;
    }
    .page-header {
        padding: 3.5rem 0 1.5rem;
    }
    .page-header h1,
    .section-header .title {
        font-size: clamp(2rem, 11vw, 2.65rem);
        word-break: keep-all;
    }
    .page-header p,
    .section-header .subtitle {
        font-size: 1rem;
        word-break: keep-all;
    }
    .glass-card {
        border-radius: 12px;
    }
    .p-lg {
        padding: 1.2rem;
    }
    .p-md {
        padding: 1rem;
    }
    .tabs-header {
        gap: 0.35rem;
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0 1rem;
        scroll-snap-type: x proximity;
    }
    .tab-btn {
        scroll-snap-align: start;
        padding: 0.82rem 0.95rem;
        font-size: 0.98rem;
    }
    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        border: 1px solid var(--border-light);
        border-radius: 10px;
    }
    .data-table thead,
    .data-table tbody,
    .data-table tr {
        min-width: 680px;
    }
    .data-table th,
    .data-table td {
        padding: 0.78rem;
        vertical-align: middle;
    }
    .glass-input,
    select.glass-input,
    textarea.glass-input,
    input[type="text"],
    input[type="date"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    select,
    textarea {
        max-width: 100%;
        font-size: 16px;
    }
    .btn,
    .btn-sm {
        max-width: 100%;
        text-align: center;
        white-space: normal;
    }
    .hero {
        min-height: calc(100svh - 76px);
        height: auto;
        padding: 2rem 1rem;
    }
    .hero-content {
        width: 100%;
        padding: 1.5rem 1rem;
        border-radius: 14px;
    }
    .hero-content h1,
    .hero-content p {
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    .hero-edit-btn {
        position: static;
        margin-left: 0.35rem;
        transform: none;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .impact-section,
    .identity-section,
    .history-section {
        min-height: auto;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .impact-header h2 {
        font-size: 1.55rem;
        margin-bottom: 2rem;
    }
    .impact-grid {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    .impact-item {
        min-width: 120px;
    }
    .impact-icon {
        font-size: 2.4rem;
    }
    .impact-number {
        font-size: 3rem;
    }
    .vms-process {
        flex-direction: column;
        align-items: stretch;
    }
    .step-arrow {
        transform: rotate(90deg);
    }
    .footer-contact-row,
    .footer-text-line {
        align-items: flex-start;
        word-break: keep-all;
    }
    .divider {
        display: none;
    }
    .footer-text-line span,
    .contact-numbers {
        display: block;
        margin-bottom: 0.35rem;
    }
}

@media (max-width: 520px) {
    .container { padding-left: 0.85rem; padding-right: 0.85rem; }
    .page-header h1,
    .section-header .title {
        font-size: clamp(1.85rem, 12vw, 2.35rem);
    }
    .glass-card {
        box-shadow: 0 12px 28px rgba(37, 99, 120, 0.08);
    }
    .data-table {
        margin-left: -0.15rem;
        margin-right: -0.15rem;
        width: calc(100% + 0.3rem);
    }
    .data-table th,
    .data-table td {
        padding: 0.7rem 0.65rem;
        font-size: 0.92rem;
    }
    .compact-footer {
        padding: 2rem 0;
    }
}

/* Animations */
.fade-in { animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Fullpage Scroll Snap System (Only on Home/Main Page) --- */
html.home-active {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    height: 100vh;
    overflow-y: scroll;
}

body.home-body {
    height: 100vh;
    overflow: hidden; /* 기본 투박한 스크롤바 감추고 완벽한 풀페이지 유도 */
}

/* 풀페이지 섹션 공통 */
.fullpage-section {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 80px; /* 고정 헤더 높이만큼 여백 */
    box-sizing: border-box;
    overflow: hidden;
}

/* 각 섹션 특화 스타일 */
.fullpage-section.hero {
    height: 100vh;
}

.fullpage-section.identity-section {
    background: var(--bg-main);
}

.fullpage-section.history-section {
    background: #ffffff;
}

.fullpage-section.org-section {
    background: var(--bg-main);
}

.fullpage-section.impact-section {
    background: #ffffff;
    justify-content: space-between;
    padding-bottom: 0;
}

/* 임팩트 섹션 안의 컨텐츠 정렬 */
.impact-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* 임팩트 섹션 안의 푸터 배치 고도화 */
.impact-section .compact-footer {
    width: 100%;
    margin-top: 0;
    padding: 2rem 0;
    background: var(--bg-main);
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
    scroll-snap-align: end;
}
