/* ========================================
   NCS 서비스 공통 사이드패널 레이아웃 CSS
   ======================================== */
.cat-outer, .cat-outer * {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.cat-outer {
    max-width: 1180px;
    margin: 30px auto 60px auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* ── 사이드바 ── */
.cat-sidebar {
    width: 210px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    border: 1px solid #ccd3e0;
    border-radius: 6px;
    overflow: hidden;
}
.cat-sidebar-header {
    background: linear-gradient(135deg, #1a3a9f 0%, #3a6fd8 100%);
    color: #fff;
    padding: 20px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}
.cat-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
}
.cat-sidebar-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    font-size: 0.86rem;
    color: #444;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.12s;
}
.cat-sidebar-menu li:last-child a { border-bottom: none; }
.cat-sidebar-menu li a:hover { background: #f0f4ff; color: #3058b8; }
.cat-sidebar-menu li a.active {
    background: #eaf0ff;
    color: #1a3a9f;
    font-weight: 700;
}
.cat-sidebar-menu .arr { color: #bbb; font-size: 0.85rem; flex-shrink: 0; }
.cat-sidebar-menu li a.active .arr { color: #3058b8; }
.cat-sidebar-divider { height: 1px; background: #dde3ef; margin: 2px 0; }

/* ── 콘텐츠 영역 ── */
.cat-content { flex: 1; min-width: 0; }
.cat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 2px solid #333;
}
.cat-top h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}
.cat-breadcrumb {
    font-size: 0.88rem;
    color: #888;
    text-align: right;
    white-space: nowrap;
}
.cat-breadcrumb a { color: #888; text-decoration: none; }
.cat-breadcrumb a:hover { color: #3058b8; }
.cat-breadcrumb .sep { margin: 0 5px; color: #bbb; }
.content-body { padding: 28px 0; }

@media (max-width: 820px) {
    .cat-outer { flex-direction: column; }
    .cat-sidebar { width: 100%; position: static; }
}
