/* ============================================
   청심국제고등학교 학생자치법정 - Design System v2
   Institutional Modern · Authoritative · Elegant
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;500;600;700&display=swap');

:root {
    /* ── Color System ── */
    --navy-900: #0B1526;
    --navy-800: #142038;
    --navy-700: #1E3050;
    --navy-600: #2D4468;
    --navy-500: #3F5A82;
    --navy-400: #5E7CA3;

    --gold-500: #C9A227;
    --gold-400: #D4B848;
    --gold-300: #E0CA6A;

    --slate-900: #0c0f14;
    --slate-800: #181c24;
    --slate-700: #272d38;
    --slate-600: #3e4550;
    --slate-500: #5c6370;
    --slate-400: #848994;
    --slate-300: #b0b5be;
    --slate-200: #d5d8de;
    --slate-100: #eceef1;
    --slate-50: #f6f7f9;

    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fb;

    --success: #0d9488;
    --success-bg: #ccfbf1;
    --warning: #b45309;
    --warning-bg: #fef3c7;
    --info: #1d4ed8;
    --info-bg: #dbeafe;
    --danger: #b91c1c;
    --danger-bg: #fee2e2;

    /* ── Typography ── */
    --font-main: 'Noto Serif KR', Georgia, 'Times New Roman', serif;
    --font-display: 'Noto Serif KR', Georgia, 'Times New Roman', serif;
    --font-serif: 'Noto Serif KR', Georgia, 'Times New Roman', serif;

    /* ── Spacing Scale ── */
    --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
    --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
    --space-12: 3rem; --space-14: 3.5rem; --space-16: 4rem; --space-20: 5rem;

    /* ── Border Radius ── */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* ── Shadows ── */
    --shadow-sm: 0 1px 3px rgba(11,21,38,0.04), 0 1px 2px rgba(11,21,38,0.03);
    --shadow-md: 0 4px 6px rgba(11,21,38,0.04), 0 2px 12px rgba(11,21,38,0.06);
    --shadow-lg: 0 8px 20px rgba(11,21,38,0.06), 0 4px 32px rgba(11,21,38,0.08);
    --shadow-hover: 0 12px 28px rgba(11,21,38,0.08), 0 8px 48px rgba(11,21,38,0.1);
    --shadow-glow: 0 0 40px rgba(201,162,39,0.08);

    /* ── Layout ── */
    --max-width-xl: 1200px;
    --navbar-height: 72px;

    /* ── Transitions ── */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--font-main);
    font-size: 1rem; line-height: 1.7;
    color: var(--slate-600);
    background-color: var(--bg-primary);
    font-weight: 400;
}
::selection { background: var(--navy-600); color: white; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700; line-height: 1.25;
    color: var(--navy-800);
    letter-spacing: -0.01em;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--max-width-xl); margin: 0 auto; padding: 0 var(--space-6); }

/* ===== Navigation ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(11, 21, 38, 0.06);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 12px rgba(11,21,38,0.06);
}
.nav-container {
    max-width: var(--max-width-xl); margin: 0 auto;
    padding: 0 var(--space-6); height: 100%;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: var(--space-3);
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.nav-logo:hover { opacity: 0.8; }
.logo-img { width: 40px; height: 40px; object-fit: contain; }
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-text {
    font-size: 1.1rem; font-weight: 700; color: var(--navy-800);
    line-height: 1.2; font-family: var(--font-serif);
    letter-spacing: -0.01em;
}
.logo-subtext {
    font-size: 0.6rem; font-weight: 500; color: var(--slate-400);
    letter-spacing: 0.15em; text-transform: uppercase;
}
.nav-menu {
    display: flex; align-items: center;
    gap: var(--space-1); list-style: none;
}
.nav-link {
    position: relative; display: block;
    padding: var(--space-2) var(--space-4);
    font-size: 0.9rem; font-weight: 500; color: var(--slate-500);
    text-decoration: none; border-radius: var(--radius-md);
    transition: color 0.2s ease;
}
.nav-link:hover { color: var(--navy-700); }
.nav-link.active { color: var(--navy-800); font-weight: 600; }
.nav-link::after {
    content: ''; position: absolute;
    bottom: 4px; left: 16px; right: 16px;
    height: 2px; background: var(--navy-700);
    border-radius: 1px;
    transform: scaleX(0); transform-origin: center;
    transition: transform 1s var(--ease-out);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-login {
    background: var(--navy-800); color: white !important;
    padding: var(--space-2) var(--space-5) !important;
    border-radius: var(--radius-full); font-size: 0.85rem !important;
    font-weight: 600;
    transition: background-color 0.2s ease;
}
.nav-login:hover { background: var(--navy-700); }
.nav-login::after { display: none; }
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    width: 24px; cursor: pointer; background: none; border: none;
    padding: 4px;
}
.hamburger span {
    display: block; width: 100%; height: 2px;
    background: var(--navy-800); border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Hamburger active → X */
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-content { min-height: calc(100vh - var(--navbar-height)); padding-top: var(--navbar-height); }

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: calc(100vh - var(--navbar-height));
    min-height: 520px; max-height: 820px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(165deg, var(--navy-600) 0%, var(--navy-800) 40%, var(--navy-900) 100%);
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 25% 15%, rgba(201,162,39,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 85%, rgba(94,124,163,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(11,21,38,0.3) 100%);
    pointer-events: none;
}
.hero-bg-logo {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; max-width: 550px; height: auto;
    pointer-events: none; z-index: 0; opacity: 0.025;
}
.hero-bg-logo img { width: 100%; height: auto; filter: brightness(2); }
.hero-container {
    position: relative; z-index: 1;
    max-width: 720px; margin: 0 auto;
    padding: 0 var(--space-6); text-align: center;
}
.hero-emblem {
    display: flex; justify-content: center;
    margin-bottom: var(--space-8);
}
.hero-logo-img {
    width: 88px; height: 88px; object-fit: contain;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.35));
}
.hero-title {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 700; color: white;
    letter-spacing: -0.03em; line-height: 1.05;
    margin-bottom: var(--space-3);
    font-family: var(--font-serif);
}
.hero-subtitle {
    font-size: clamp(0.75rem, 1.5vw, 0.95rem);
    font-weight: 500; color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3em; text-transform: uppercase;
    margin-bottom: var(--space-10);
}
.hero-description {
    font-size: 1.05rem; line-height: 1.9;
    color: rgba(255, 255, 255, 0.55);
    max-width: 460px; margin: 0 auto var(--space-10);
    font-weight: 300;
}
.hero-actions {
    display: flex; justify-content: center;
    gap: var(--space-4); flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    padding: var(--space-3) var(--space-8);
    font-family: var(--font-main); font-size: 0.9rem; font-weight: 600;
    text-decoration: none; border-radius: var(--radius-full);
    border: none; cursor: pointer;
    transition: all 0.2s var(--ease-out);
    letter-spacing: 0.01em;
}
.btn-hero {
    background: rgba(255, 255, 255, 0.07); color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}
.btn-hero:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
}
.btn-primary {
    background: var(--navy-800); color: white;
    box-shadow: 0 2px 8px rgba(11,21,38,0.15);
}
.btn-primary:hover {
    background: var(--navy-700);
}
.btn-secondary {
    background: white; color: var(--navy-700);
    border: 1.5px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
}
.btn-sm { padding: var(--space-2) var(--space-6); font-size: 0.85rem; }
.btn-lg { padding: var(--space-4) var(--space-10); font-size: 1rem; }

/* ===== Sections ===== */
.section { padding: var(--space-20) 0; }
.section-alt { background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: var(--space-14); }
.section-header.centered { text-align: center; }
.section-overline {
    display: inline-block; font-size: 0.7rem; font-weight: 600;
    color: var(--gold-500); text-transform: uppercase;
    letter-spacing: 0.3em; margin-bottom: var(--space-4);
    font-family: var(--font-main);
}
.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700; color: var(--navy-800);
    margin-bottom: var(--space-4);
    font-family: var(--font-serif);
    letter-spacing: -0.02em;
}
.section-description {
    font-size: 1rem; color: var(--slate-400);
    max-width: 480px; margin: 0 auto;
    line-height: 1.7;
}

/* ===== Page Header ===== */
.page-header {
    padding: var(--space-20) 0 var(--space-14);
    background: linear-gradient(165deg, var(--navy-600) 0%, var(--navy-800) 40%, var(--navy-900) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(201,162,39,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.page-header .section-overline { color: rgba(201, 162, 39, 0.5); }
.page-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700; color: white;
    margin-bottom: var(--space-4);
    font-family: var(--font-serif);
    letter-spacing: -0.02em;
    position: relative;
}
.page-subtitle {
    font-size: 1rem; color: rgba(255, 255, 255, 0.45);
    max-width: 480px; margin: 0 auto;
    position: relative;
}

/* ===== Filter Controls ===== */
.content-control { display: flex; justify-content: center; margin-bottom: var(--space-10); }
.filter-group { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: center; }
.filter-btn {
    padding: var(--space-2) var(--space-5);
    font-family: var(--font-main); font-size: 0.85rem; font-weight: 500;
    color: var(--slate-500); background: transparent;
    border: 1.5px solid var(--slate-200); border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}
.filter-btn:hover {
    color: var(--navy-700);
    border-color: var(--navy-400);
    background: rgba(31,48,80,0.03);
}
.filter-btn.active {
    color: white; background: var(--navy-800);
    border-color: var(--navy-800);
    box-shadow: 0 2px 8px rgba(11,21,38,0.15);
}

/* ===== Cards ===== */
.recent-section { padding: var(--space-20) 0; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.card-wrapper { text-decoration: none; display: block; }
.card {
    height: 100%; background: white;
    border: 1px solid rgba(11, 21, 38, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: all 0.35s var(--ease-out);
    position: relative;
}
.card:hover {
    border-color: rgba(11, 21, 38, 0.1);
}
.card-meta {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-3); margin-bottom: var(--space-5); flex-wrap: wrap;
}
.card-meta-right { display: flex; align-items: center; gap: var(--space-2); }
.card-category {
    padding: 3px var(--space-3);
    background: var(--navy-800); border-radius: var(--radius-sm);
    font-size: 0.65rem; font-weight: 600; color: white;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.card-status {
    padding: 3px var(--space-3);
    border-radius: var(--radius-sm); font-size: 0.65rem; font-weight: 600;
}
.card-status.status-진행중 { background: var(--warning-bg); color: var(--warning); }
.card-status.status-심리완료 { background: var(--info-bg); color: var(--info); }
.card-status.status-판결완료, .card-status.status-시행중 { background: var(--success-bg); color: var(--success); }
.card-status.status-개정예정 { background: var(--warning-bg); color: var(--warning); }
.card-status.status-폐지 { background: var(--danger-bg); color: var(--danger); }
.card-pinned { font-size: 0.7rem; font-weight: 600; color: var(--gold-500); }
.card-number {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.72rem; color: var(--slate-400);
    margin-bottom: var(--space-2);
}
.card-title {
    font-size: 1.05rem; font-weight: 700; color: var(--navy-800);
    margin-bottom: var(--space-3); line-height: 1.5;
    font-family: var(--font-display);
    transition: color 0.2s ease;
}
.card:hover .card-title { color: var(--navy-600); }
.card-excerpt {
    font-size: 0.88rem; color: var(--slate-400); line-height: 1.7;
    margin-bottom: var(--space-6);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: var(--space-4);
    border-top: 1px solid rgba(11, 21, 38, 0.05);
}
.card-date { font-size: 0.82rem; color: var(--slate-400); }
.card-arrow {
    font-size: 0.85rem; color: var(--slate-300);
    transition: color 0.2s ease, transform 0.2s var(--ease-out);
}
.card:hover .card-arrow { color: var(--navy-600); }
.section-more { text-align: center; margin-top: var(--space-12); }

/* ===== Pinned Section (Home only) ===== */
.pinned-section {
    background: var(--navy-800);
    padding: var(--space-4) 0;
    border-bottom: 1px solid rgba(201,162,39,0.1);
}
.pinned-list { display: flex; flex-direction: column; gap: var(--space-2); }
.pinned-item {
    display: flex; align-items: center; gap: var(--space-4);
    padding: var(--space-3) var(--space-5);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md); text-decoration: none;
    transition: all 0.25s var(--ease-out);
}
.pinned-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(201,162,39,0.15);
}
.pinned-category {
    padding: 2px var(--space-3);
    background: rgba(201,162,39,0.15); border-radius: var(--radius-sm);
    font-size: 0.65rem; font-weight: 600; color: var(--gold-400);
    letter-spacing: 0.02em; white-space: nowrap;
}
.pinned-text {
    flex: 1; font-size: 0.9rem; color: rgba(255,255,255,0.85);
    font-weight: 500;
}
.pinned-date { font-size: 0.8rem; color: rgba(255, 255, 255, 0.3); }
.notice-arrow {
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.2s ease, transform 0.2s ease;
}
.pinned-item:hover .notice-arrow {
    color: var(--gold-400);
}

/* ===== Detail Page ===== */
.detail-container {
    max-width: 780px; margin: 0 auto;
    padding: var(--space-14) var(--space-6);
}
.detail-header {
    margin-bottom: var(--space-10); padding-bottom: var(--space-8);
    border-bottom: 1px solid rgba(11, 21, 38, 0.06);
}
.detail-meta {
    display: flex; align-items: center; gap: var(--space-3);
    margin-bottom: var(--space-5); flex-wrap: wrap;
}
.detail-category {
    padding: var(--space-1) var(--space-4);
    background: var(--navy-800); border-radius: var(--radius-sm);
    font-size: 0.72rem; font-weight: 600; color: white;
    letter-spacing: 0.02em;
}
.detail-date { font-size: 0.88rem; color: var(--slate-400); }
.detail-pinned {
    padding: var(--space-1) var(--space-4);
    background: rgba(201,162,39,0.1); border-radius: var(--radius-sm);
    font-size: 0.68rem; font-weight: 600; color: var(--gold-500);
}
.detail-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700; color: var(--navy-800);
    line-height: 1.35; margin-bottom: var(--space-4);
    font-family: var(--font-serif);
    letter-spacing: -0.02em;
}
.detail-summary { font-size: 1.05rem; color: var(--slate-500); line-height: 1.8; }
.detail-content { font-size: 1rem; line-height: 2; color: var(--slate-600); }
.detail-content p { margin-bottom: var(--space-6); }
.detail-content h2 {
    font-size: 1.35rem; margin-top: var(--space-12);
    margin-bottom: var(--space-4); font-family: var(--font-serif);
}
.detail-content h3 {
    font-size: 1.15rem; margin-top: var(--space-8);
    margin-bottom: var(--space-3); font-family: var(--font-serif);
}
.detail-verdict {
    margin: var(--space-10) 0; padding: var(--space-8);
    background: var(--bg-secondary);
    border-left: 3px solid var(--gold-500);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.detail-verdict-title {
    font-size: 0.8rem; font-weight: 600; color: var(--gold-500);
    margin-bottom: var(--space-3); text-transform: uppercase;
    letter-spacing: 0.15em; font-family: var(--font-main);
}
.detail-verdict-content { font-size: 1rem; color: var(--slate-600); line-height: 1.9; }
.detail-resources {
    margin-top: var(--space-10); padding: var(--space-6);
    background: var(--bg-secondary); border-radius: var(--radius-lg);
    border: 1px solid rgba(11,21,38,0.04);
}
.detail-resources-title {
    font-size: 0.9rem; font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.resources-list { display: flex; flex-direction: column; gap: var(--space-2); }
.resource-item {
    display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    background: white; border: 1px solid rgba(11, 21, 38, 0.06);
    border-radius: var(--radius-md); text-decoration: none;
    transition: all 0.2s var(--ease-out);
}
.resource-item:hover {
    border-color: var(--navy-400);
}
.resource-icon { font-size: 1rem; color: var(--navy-500); }
.resource-name { flex: 1; font-size: 0.9rem; font-weight: 500; color: var(--navy-800); }
.resource-type {
    font-size: 0.65rem; color: var(--slate-400);
    padding: 2px var(--space-3);
    background: var(--slate-100); border-radius: var(--radius-sm);
    font-weight: 600; text-transform: uppercase;
}
.detail-cover {
    margin-bottom: var(--space-8);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md);
}
.detail-cover img { width: 100%; height: auto; display: block; }
.detail-back {
    margin-top: var(--space-12); padding-top: var(--space-8);
    border-top: 1px solid rgba(11, 21, 38, 0.06);
}

/* ===== About Page ===== */
.about-section { padding: var(--space-20) 0; }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: var(--space-12); align-items: center;
}
.about-text h2 {
    font-size: 1.5rem; margin-bottom: var(--space-5);
    font-family: var(--font-serif); letter-spacing: -0.02em;
}
.about-text p { color: var(--slate-500); line-height: 1.9; margin-bottom: var(--space-4); }
.about-visual {
    background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
    border-radius: var(--radius-xl);
    padding: var(--space-12); text-align: center;
    position: relative; overflow: hidden;
}
.about-visual::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(201,162,39,0.06) 0%, transparent 50%);
    pointer-events: none;
}
.about-visual-icon {
    font-size: 3.5rem; margin-bottom: var(--space-6);
    opacity: 0.85; position: relative;
}
.about-visual-text {
    font-size: 1.05rem; color: rgba(255, 255, 255, 0.5);
    font-style: italic; font-family: var(--font-serif);
    position: relative;
}

/* Role Badges */
.role-badge {
    display: inline-block;
    padding: 2px var(--space-3);
    border-radius: var(--radius-sm);
    font-size: 0.65rem; font-weight: 600;
    letter-spacing: 0.04em;
}

/* ===== Team Grid ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-6); margin-top: var(--space-10);
}
.team-card {
    background: white; border: 1px solid rgba(11, 21, 38, 0.06);
    border-radius: var(--radius-lg); padding: var(--space-8); text-align: center;
    transition: all 0.35s var(--ease-out);
    position: relative;
}
.team-card:hover {
    border-color: rgba(11, 21, 38, 0.1);
}
.team-photo {
    width: 88px; height: 88px; margin: 0 auto var(--space-5);
    border-radius: 50%; overflow: hidden;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(11,21,38,0.12);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder { font-size: 2.2rem; }
.team-name {
    font-size: 1.05rem; font-weight: 700;
    margin-bottom: var(--space-1);
    font-family: var(--font-display);
    color: var(--navy-800);
}
.team-role {
    font-size: 0.75rem; font-weight: 600; color: var(--gold-500);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: var(--space-3);
}
.team-description { font-size: 0.88rem; color: var(--slate-400); line-height: 1.7; }

/* ===== Process ===== */
.process-timeline { max-width: 680px; margin: 0 auto; }
.process-step {
    display: flex; gap: var(--space-6);
    padding: var(--space-6) 0;
    border-bottom: 1px solid rgba(11, 21, 38, 0.05);
    transition: transform 0.2s ease;
}
.process-step:hover { }
.process-step:last-child { border-bottom: none; }
.step-number {
    font-size: 1.8rem; font-weight: 700;
    color: var(--navy-400); width: 48px; flex-shrink: 0;
    font-family: var(--font-serif);
    opacity: 0.6;
}
.step-content { flex: 1; }
.step-title {
    font-size: 1.05rem; font-weight: 700;
    margin-bottom: var(--space-2);
    font-family: var(--font-display);
    color: var(--navy-800);
}
.step-description { font-size: 0.9rem; color: var(--slate-400); line-height: 1.7; }
.measures-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4); max-width: 900px; margin: 0 auto;
}
.measure-item {
    display: flex; align-items: center; justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: white; border: 1px solid rgba(11, 21, 38, 0.06);
    border-radius: var(--radius-md);
    transition: all 0.2s var(--ease-out);
}
.measure-item:hover {
    border-color: var(--navy-400);
}
.measure-icon { font-size: 1.3rem; }
.measure-text { font-size: 0.88rem; font-weight: 500; color: var(--slate-600); }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
    padding: var(--space-6) 0;
    border-bottom: 1px solid rgba(11, 21, 38, 0.05);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
    font-size: 1.02rem; font-weight: 700; color: var(--navy-800);
    margin-bottom: var(--space-3); font-family: var(--font-display);
    line-height: 1.5;
}
.faq-item p {
    font-size: 0.92rem; color: var(--slate-400);
    line-height: 1.8;
}

/* ===== Footer ===== */
.footer {
    background: var(--slate-900);
    padding: var(--space-16) 0 var(--space-10);
    position: relative;
}
.footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,162,39,0.2), transparent);
}
.footer-content {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: var(--space-5);
}
.footer-logo {
    display: flex; align-items: center; gap: var(--space-3);
    font-size: 1.1rem; font-weight: 600; color: white;
    font-family: var(--font-serif);
}
.footer-logo-img { width: 32px; height: 32px; object-fit: contain; opacity: 0.85; }
.footer-logo .logo-icon { width: 40px; height: 40px; font-size: 1.1rem; }
.footer-text { font-size: 0.88rem; color: var(--slate-400); }
.footer-divider {
    width: 40px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--slate-600), transparent);
}
.footer-copyright { font-size: 0.78rem; color: var(--slate-500); }

/* ===== Empty State & Flash ===== */
.empty-state { grid-column: 1 / -1; text-align: center; padding: var(--space-20) var(--space-6); }
.empty-state-icon { font-size: 3rem; margin-bottom: var(--space-5); opacity: 0.15; }
.empty-state-text { font-size: 0.95rem; color: var(--slate-400); }
.flash-container {
    position: fixed; top: calc(var(--navbar-height) + 12px);
    left: 50%; transform: translateX(-50%);
    z-index: 1001; width: 100%; max-width: 460px;
    padding: 0 var(--space-4);
}
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md); font-size: 0.9rem; font-weight: 500;
    margin-bottom: var(--space-3);
    box-shadow: var(--shadow-lg);
    border-left: 3px solid;
    backdrop-filter: blur(8px);
}
.alert-success { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }

/* ===== Error Page ===== */
.error-section { padding: var(--space-20) 0; text-align: center; }
.error-content { max-width: 480px; margin: 0 auto; }
.error-icon { font-size: 3.5rem; margin-bottom: var(--space-4); opacity: 0.2; }
.error-code {
    font-size: 5rem; font-weight: 700; color: var(--navy-800);
    font-family: var(--font-serif); letter-spacing: -0.03em;
}
.error-title {
    font-size: 1.4rem; color: var(--slate-600);
    margin-bottom: var(--space-4); font-family: var(--font-serif);
}
.error-description { color: var(--slate-400); margin-bottom: var(--space-8); line-height: 1.8; }
.error-actions { display: flex; gap: var(--space-4); justify-content: center; }

/* ===== Page Hero ===== */
.page-hero {
    padding: var(--space-20) 0 var(--space-14);
    background: linear-gradient(165deg, var(--navy-600) 0%, var(--navy-800) 40%, var(--navy-900) 100%);
    text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(201,162,39,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.page-overline {
    display: inline-block; font-size: 0.7rem; font-weight: 600;
    color: rgba(201, 162, 39, 0.45); text-transform: uppercase;
    letter-spacing: 0.3em; margin-bottom: var(--space-3);
    position: relative;
}
.page-description {
    font-size: 1rem; color: rgba(255, 255, 255, 0.45);
    max-width: 460px; margin: 0 auto;
    position: relative;
}

/* ===== Shinmungo Preview (Index) ===== */
.shinmungo-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    max-width: 720px;
    margin: 0 auto;
}
@media (max-width: 640px) {
    .shinmungo-preview-grid { grid-template-columns: 1fr; }
}
.shinmungo-preview-card {
    background: linear-gradient(135deg, rgba(15,29,54,0.03) 0%, rgba(201,162,39,0.03) 100%);
    border: 1px solid rgba(11,21,38,0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    position: relative;
}
.shinmungo-preview-card:hover {
    background: linear-gradient(135deg, rgba(15,29,54,0.06) 0%, rgba(201,162,39,0.05) 100%);
    border-color: rgba(201,162,39,0.2);
    box-shadow: 0 8px 24px rgba(11,21,38,0.08);
}
.shinmungo-preview-icon {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
    color: white; font-size: 1.1rem;
    margin-bottom: var(--space-5);
    box-shadow: 0 4px 12px rgba(11,21,38,0.15);
}
.shinmungo-preview-card h3 {
    font-size: 1.1rem; font-weight: 700; color: var(--navy-800);
    margin-bottom: var(--space-2); font-family: var(--font-display);
}
.shinmungo-preview-card p {
    font-size: 0.88rem; color: var(--slate-400); line-height: 1.7;
    margin-bottom: var(--space-5);
}
.shinmungo-preview-link {
    font-size: 0.82rem; font-weight: 600; color: var(--navy-500);
    transition: color 0.2s ease;
}
.shinmungo-preview-card:hover .shinmungo-preview-link {
    color: var(--navy-700);
}

/* ===== Login Page ===== */
.login-page {
    display: flex; align-items: center; justify-content: center;
    min-height: calc(100vh - var(--navbar-height));
    min-height: calc(100dvh - var(--navbar-height));
    padding: var(--space-8) var(--space-4);
    background: var(--bg-secondary);
}
.login-container {
    width: 100%; max-width: 420px;
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    border: 1px solid rgba(11,21,38,0.06);
    box-shadow: var(--shadow-lg);
}
.login-header { text-align: center; margin-bottom: var(--space-8); }
.login-logo { margin-bottom: var(--space-4); }
.login-logo img { width: 56px; height: 56px; margin: 0 auto; }
.login-title {
    font-size: 1.3rem; font-weight: 700; color: var(--navy-800);
    font-family: var(--font-serif);
}
.login-subtitle {
    font-size: 0.88rem; color: var(--slate-400);
    margin-top: var(--space-2);
}
.login-container .form-group { margin-bottom: var(--space-5); }
.login-container .form-group label {
    display: block; font-size: 0.85rem; font-weight: 600;
    color: var(--slate-600); margin-bottom: var(--space-2);
}
.login-container .form-group input {
    width: 100%; padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--slate-200); border-radius: var(--radius-md);
    font-size: 0.95rem; font-family: var(--font-main);
    background: var(--bg-secondary);
    transition: all 0.2s ease;
}
.login-container .form-group input:focus {
    outline: none; border-color: var(--navy-500);
    background: white;
    box-shadow: 0 0 0 3px rgba(20, 32, 56, 0.06);
}
.btn-login {
    width: 100%; padding: var(--space-3) var(--space-6);
    background: var(--navy-800); color: white;
    border: none; border-radius: var(--radius-full);
    font-family: var(--font-main); font-size: 0.95rem; font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    box-shadow: 0 2px 8px rgba(11,21,38,0.15);
}
.btn-login:hover {
    background: var(--navy-700);
}
.login-info {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(11,21,38,0.06);
}
.login-info-item {
    display: flex; align-items: flex-start; gap: var(--space-3);
    padding: var(--space-3) 0; font-size: 0.85rem; color: var(--slate-400);
}
.login-info-icon { font-size: 0.9rem; color: var(--navy-400); margin-top: 2px; }
.back-link {
    display: block; text-align: center;
    margin-top: var(--space-6);
    font-size: 0.85rem; color: var(--slate-400);
    text-decoration: none;
    transition: color 0.2s ease;
}
.back-link:hover { color: var(--navy-600); }

/* ===== PDF Section ===== */
.pdf-section {
    margin: var(--space-8) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(11,21,38,0.06);
}
.pdf-embed {
    width: 100%;
    min-height: 600px;
    border: none;
}

/* ===== Entrance Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.hero-container { animation: fadeInUp 1.4s var(--ease-out); }
.hero-inner { animation: fadeInUp 1.4s var(--ease-out); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .measures-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --navbar-height: 64px; }
    /* Use position:absolute so the menu is relative to .navbar (fixed),
       avoiding backdrop-filter containing block bug with position:fixed children */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: calc(100vh - var(--navbar-height));
        height: calc(100dvh - var(--navbar-height));
        flex-direction: column;
        background: #ffffff;
        padding: var(--space-6);
        transform: translateX(100%);
        transition: transform 0.35s var(--ease-out);
        border-top: 1px solid rgba(11,21,38,0.06);
        z-index: 9999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        align-items: stretch;
    }
    .nav-menu.active { transform: translateX(0); }
    .nav-link {
        padding: var(--space-4) var(--space-4);
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(11,21,38,0.04);
        width: 100%;
    }
    .nav-link::after { display: none; }
    .hamburger { display: flex; z-index: 10000; }
    .hero { min-height: auto; max-height: none; height: auto; padding: var(--space-10) 0; }
    .hero-logo-img { width: 64px; height: 64px; }
    .hero-title { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    .hero-subtitle { font-size: 0.7rem; letter-spacing: 0.2em; margin-bottom: var(--space-6); }
    .hero-description { font-size: 0.92rem; margin-bottom: var(--space-6); }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 260px; }
    .hero-bg-logo { max-width: 300px; }
    .cards-grid, .about-grid, .measures-grid, .shinmungo-preview-grid {
        grid-template-columns: 1fr;
    }
    .process-step { flex-direction: column; gap: var(--space-3); }
    .contact-form-card { padding: var(--space-6); }
    .section { padding: var(--space-14) 0; }
    .recent-section { padding: var(--space-14) 0; }
    .section-header { margin-bottom: var(--space-10); }
    .login-container { padding: var(--space-8); }
    .pinned-item { flex-wrap: wrap; gap: var(--space-2); }
    .pinned-date { font-size: 0.72rem; }
    .pinned-text { font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--space-3); }
    .hero-title { font-size: 1.7rem; }
    .hero-description { font-size: 0.85rem; line-height: 1.7; }
    .section-title { font-size: 1.35rem; }
    .hero-bg-logo { display: none; }
    .card { padding: var(--space-5); }
    .card-title { font-size: 0.95rem; }
    .card-excerpt { font-size: 0.82rem; }
    .login-container {
        border-radius: var(--radius-lg);
        padding: var(--space-5);
    }
    .login-title { font-size: 1.15rem; }
    .footer { padding: var(--space-10) 0 var(--space-6); }
    .footer-logo { font-size: 0.95rem; }
    .section { padding: var(--space-10) 0; }
    .recent-section { padding: var(--space-10) 0; }
    .section-header { margin-bottom: var(--space-8); }
    .shinmungo-preview-card { padding: var(--space-5); }
    .shinmungo-preview-card h3 { font-size: 1rem; }
    .shinmungo-preview-card p { font-size: 0.82rem; }
    /* Prevent iOS auto-zoom on input focus */
    .login-container .form-group input,
    input[type="text"],
    input[type="password"],
    input[type="email"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* ===== Hero 2-Column Layout ===== */
.hero-inner {
    position: relative; z-index: 1;
    max-width: var(--max-width-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-12);
    width: 100%;
}
.hero-left {
    flex: 1;
    text-align: left;
    max-width: 520px;
}
.hero-left .hero-emblem { justify-content: flex-start; }
.hero-left .hero-description { margin-left: 0; }

.hero-nav {
    flex: 0 0 360px;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.hero-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    text-decoration: none;
    transition: all 0.25s var(--ease-out);
    cursor: pointer;
}
.hero-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}
.hero-nav-item.hero-nav-highlight {
    border-color: rgba(201, 162, 39, 0.25);
    background: rgba(201, 162, 39, 0.06);
}
.hero-nav-item.hero-nav-highlight:hover {
    border-color: rgba(201, 162, 39, 0.4);
    background: rgba(201, 162, 39, 0.12);
}
.hero-nav-icon {
    display: flex;
    align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.hero-nav-icon svg {
    width: 18px; height: 18px;
    fill: none; stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.hero-nav-highlight .hero-nav-icon {
    background: rgba(201, 162, 39, 0.15);
}
.hero-nav-highlight .hero-nav-icon svg {
    stroke: var(--gold-400);
}
.hero-nav-text { flex: 1; min-width: 0; }
.hero-nav-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}
.hero-nav-desc {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
}
.hero-nav-highlight .hero-nav-title { color: var(--gold-300); }
.hero-nav-highlight .hero-nav-desc { color: rgba(201, 162, 39, 0.5); }
.hero-nav-arrow {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}
.hero-nav-item:hover .hero-nav-arrow {
    color: rgba(255, 255, 255, 0.5);
}
.hero-nav-highlight:hover .hero-nav-arrow {
    color: var(--gold-400);
}

@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: var(--space-6);
        padding: var(--space-4) var(--space-4);
    }
    .hero-left {
        text-align: center;
        max-width: 100%;
    }
    .hero-left .hero-emblem { justify-content: center; margin-bottom: var(--space-4); }
    .hero-left .hero-description { margin: 0 auto var(--space-4); }
    .hero-nav {
        flex: none;
        width: 100%;
        max-width: 100%;
        gap: var(--space-2);
    }
    .hero-nav-item {
        padding: var(--space-3) var(--space-4);
    }
    .hero-nav-icon {
        width: 34px; height: 34px;
    }
    .hero-nav-title { font-size: 0.85rem; }
    .hero-nav-desc { font-size: 0.68rem; }
}

/* ===== Footer Quick Links ===== */
.footer-links {
    display: flex;
    gap: var(--space-5);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-2);
}
.footer-link {
    font-size: 0.82rem;
    color: var(--slate-400);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}
.footer-link:hover { color: var(--gold-400); }
.footer-link-sep {
    color: var(--slate-600);
    font-size: 0.75rem;
    user-select: none;
}

/* ===== Scroll-to-Top Button ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy-800);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(11, 21, 38, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
    z-index: 999;
}
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top-btn:hover {
    background: var(--navy-600);
}

/* ===== Dashboard Shared ===== */
