/* =========================================================
   공통 레이아웃 + 헤더 / 카드 / 타이틀
   ========================================================= */

* { box-sizing: border-box; }

html {
    height: 100%;
    overflow-y: scroll;
}

body {
    height: 100%;
    margin: 0;
    padding-top: 64px;
    font-family: 'Pretendard', ui-sans-serif, system-ui, -apple-system,
                 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
    background: #f0f3fa;
    color: #1a2540;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll { overflow: hidden; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── 헤더 ────────────────────────────── */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(200, 210, 230, 0.6);
}

.header-inner {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── 로고 ────────────────────────────── */
.brand-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    transition: opacity .15s;
}
.brand-link:hover { opacity: .8; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* ✅ 가로형 로고(MAIN.png)에 맞게 높이 고정, 너비 자동 */
.brand-logo {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    border-left: 1.5px solid rgba(28, 82, 204, .2);
    padding-left: 12px;
}
.brand-text b {
    font-weight: 700;
    font-size: 14px;
    color: #1a2540;
    letter-spacing: -.01em;
}
.brand-text span {
    font-size: 11px;
    color: #7a8aaa;
}

/* ── Chip ──────────────────────────── */
.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #1c52cc;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    border: none;
    letter-spacing: -.01em;
    transition: background .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 2px 8px rgba(28, 82, 204, .3);
}
.chip:hover {
    background: #1240a8;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(28, 82, 204, .38);
}

/* ── 섹션 / 카드 ─────────────────────── */
.section {
    padding: 28px 0;
}

.card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(200, 210, 235, .7);
    box-shadow:
        0 1px 2px rgba(20, 40, 90, .04),
        0 4px 16px rgba(20, 40, 90, .06);
    padding: 24px;
    margin-bottom: 16px;
}

/* ── 페이지 타이틀 ───────────────────── */
.page-title {
    font-size: 26px;
    font-weight: 800;
    color: #0e1d38;
    letter-spacing: -.03em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-sub {
    color: #6b7a94;
    font-size: 14px;
    margin: 4px 0 14px;
    line-height: 1.5;
}

.divider {
    height: 1px;
    background: rgba(200, 210, 235, .7);
    margin: 20px 0;
}
