/* ============ Reset & Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0b3a72; text-decoration: none; }
a:hover { color: #1e63b8; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; color: #0b3a72; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; margin: 0 0 1em; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ============ Header ============ */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(180%) blur(8px);
    background: rgba(255,255,255,0.92);
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

/* Overlay header sits on top of the hero (home page) */
body.has-hero { padding-top: 0; }
.site-header--overlay {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: transparent;
    border-bottom: 1px solid transparent;
    backdrop-filter: none;
}
.site-header--overlay .brand-mark { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,0.35); }
.site-header--overlay .brand-sub  { color: rgba(255,255,255,0.85); }
.site-header--overlay .site-nav a { color: #fff; }
.site-header--overlay .site-nav a:hover,
.site-header--overlay .site-nav a.active { color: #fff; border-color: #fff; }
.site-header--overlay .nav-toggle {
    color: #fff; border-color: rgba(255,255,255,0.6); background: rgba(0,0,0,0.15);
}

/* When user scrolls, swap overlay to solid */
.site-header--overlay.is-scrolled {
    position: fixed;
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: saturate(180%) blur(8px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.site-header--overlay.is-scrolled .brand-mark { color: #0b3a72; text-shadow: none; }
.site-header--overlay.is-scrolled .brand-sub  { color: #6b7280; }
.site-header--overlay.is-scrolled .site-nav a { color: #1f2937; }
.site-header--overlay.is-scrolled .site-nav a:hover,
.site-header--overlay.is-scrolled .site-nav a.active { color: #0b3a72; border-color: #0b3a72; }
.site-header--overlay.is-scrolled .nav-toggle {
    color: #1f2937; border-color: #d1d5db; background: none;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 72px; gap: 1.5rem;
}
.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand-mark { font-weight: 800; font-size: 1.4rem; color: #0b3a72; letter-spacing: 0.5px; }
.brand-sub  { font-size: 0.78rem; color: #6b7280; }

.site-nav ul {
    display: flex; gap: 1.6rem; list-style: none; padding: 0; margin: 0;
}
.site-nav a {
    display: inline-block;
    padding: 0.4rem 0.2rem;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover, .site-nav a.active {
    color: #0b3a72; border-color: #0b3a72;
}
.nav-toggle {
    display: none;
    background: none; border: 1px solid #d1d5db; padding: 0.4rem 0.8rem;
    border-radius: 6px; font-weight: 600; cursor: pointer;
}

@media (max-width: 768px) {
    .nav-toggle { display: inline-block; }
    .site-nav ul {
        display: none;
        position: absolute; left: 0; right: 0; top: 72px;
        flex-direction: column; gap: 0;
        background: #fff; border-bottom: 1px solid #e5e7eb;
        padding: 0.5rem 0;
    }
    .site-nav.open ul { display: flex; }
    .site-nav a {
        display: block; padding: 0.8rem 6%;
        border-bottom: 1px solid #f3f4f6;
        color: #1f2937;
    }
    /* In mobile dropdown, always show readable text even on overlay header */
    .site-header--overlay .site-nav ul {
        background: rgba(255,255,255,0.98);
        backdrop-filter: saturate(180%) blur(6px);
    }
    .site-header--overlay .site-nav a { color: #1f2937; }
    .site-header--overlay .site-nav a:hover,
    .site-header--overlay .site-nav a.active { color: #0b3a72; border-color: transparent; }
}

/* ============ Main ============ */
.site-main { min-height: 60vh; }

/* ============ Hero ============ */
.hero {
    background: linear-gradient(135deg, #0b3a72 0%, #1e63b8 60%, #2a8cd6 100%);
    color: #fff;
    padding: 5rem 0 5.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at top right, rgba(255,255,255,0.1), transparent 60%);
    pointer-events: none;
}
.hero h1 {
    color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 0.5rem; font-weight: 800;
}
.hero p.subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    opacity: 0.92; max-width: 640px; margin: 0 auto 1.8rem;
}

/* ---- Full-bleed hero (home) ---- */
.hero-full {
    min-height: 100vh;
    padding: 0;
    background-color: #0b3a72;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-full::after { display: none; }
.hero-full .hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
    z-index: 0;
}
.hero-full .hero-content {
    position: relative; z-index: 1;
    width: min(1180px, 92%);
    padding: 6rem 0 4rem;
    text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.hero-full h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
}
.hero-full p.subtitle {
    opacity: 1; color: rgba(255,255,255,0.95);
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
}
.btn {
    display: inline-block; padding: 0.85rem 1.8rem;
    background: #fff; color: #0b3a72;
    border-radius: 999px; font-weight: 700;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    color: #0b3a72;
}
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: #0b3a72; }

/* ============ Sections ============ */
.section { padding: 4rem 0; }
.section-title {
    text-align: center; font-size: 1.8rem; margin-bottom: 0.5rem;
}
.section-sub {
    text-align: center; color: #6b7280; margin-bottom: 2.5rem;
}

.feature-grid {
    display: grid; gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 2rem 1.5rem; text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(11, 58, 114, 0.08);
}
.feature h3 { font-size: 1.15rem; }
.feature p { color: #4b5563; margin: 0; font-size: 0.95rem; }

/* ============ Page Header ============ */
.page-header {
    background: #f3f6fb;
    padding: 3rem 0; text-align: center;
    border-bottom: 1px solid #e5e7eb;
}
.page-header h1 { margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }

/* ============ Page Content ============ */
.page-content {
    max-width: 880px; margin: 0 auto; padding: 3rem 0;
}
.page-content .lead { font-size: 1.08rem; color: #374151; }
.page-content h2 { font-size: 1.4rem; margin-top: 2rem; }

/* ============ News ============ */
.news-list {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: 1rem;
}
.news-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1.2rem; align-items: start;
    padding: 1.3rem 0; border-bottom: 1px solid #e5e7eb;
}
.news-date { color: #6b7280; font-size: 0.9rem; }
.news-title { margin: 0 0 0.3rem; font-size: 1.1rem; }
.news-title a { color: #1f2937; }
.news-title a:hover { color: #0b3a72; }
.news-excerpt { color: #4b5563; font-size: 0.95rem; margin: 0; }

.news-article header h1 { margin-bottom: 0.3rem; }
.news-article .meta { color: #6b7280; font-size: 0.9rem; margin-bottom: 2rem; }
.news-article .body { font-size: 1.02rem; line-height: 1.75; }
.news-empty {
    text-align: center; color: #6b7280; padding: 3rem 0;
}

/* ============ Contact ============ */
.contact-grid {
    display: grid; gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 2rem;
}
.contact-card {
    background: #f9fafb; border-radius: 12px; padding: 1.5rem;
    border: 1px solid #e5e7eb;
}
.contact-label { font-size: 0.85rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-value { font-size: 1.1rem; font-weight: 600; margin-top: 0.3rem; }

/* ============ Footer ============ */
.site-footer {
    background: #0b1d36; color: #cbd5e1;
    margin-top: 4rem; padding: 3rem 0 1.5rem;
    font-size: 0.92rem;
}
.footer-inner {
    display: grid; gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.footer-brand { font-size: 1.2rem; font-weight: 800; color: #fff; }
.footer-tagline { color: #94a3b8; margin-top: 0.3rem; }
.footer-label {
    font-size: 0.78rem; letter-spacing: 1px;
    color: #94a3b8; text-transform: uppercase; margin-bottom: 0.7rem;
}
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.4rem; }
.footer-nav a { color: #cbd5e1; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
    margin-top: 2.5rem; padding-top: 1.5rem;
    border-top: 1px solid #1e293b;
    color: #94a3b8; font-size: 0.85rem;
    text-align: center;
}

/* ============ Flash messages ============ */
.flash {
    margin: 1rem auto; padding: 0.9rem 1.2rem;
    border-radius: 8px; max-width: 880px;
}
.flash.info { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.flash.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
