@charset "utf-8";
 


 /* Organizational Chart Styles */
        .cb_org_chart_container { 
            padding: 60px 0; 
            overflow-x: auto; 
            background: #fff;
            display: flex;
            justify-content: center;
        }
    .cb_org_chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* min-width 대신 width 사용 */
    max-width: 1200px; 
}
        .cb_org_node {
            border: 1px solid rgba(226, 232, 240, 0.8);
            padding: 25px;
            min-width: 180px;
            border-radius: 20px;
            text-align: center;
            background: #fff;
            position: relative;
            z-index: 2;
            color: #1e293b;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .cb_org_node:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .cb_org_node_pos {
            font-size: 14px;
            color: #000000;
            font-weight: 500;
            letter-spacing: -0.01em;
        }
        .cb_org_node_name {
            font-size: 16px;
            color: #1e293b;
            font-weight: 700;
            letter-spacing: -0.02em;
        }
        
        /* Connector Lines - Global */
        .cb_org_connector {
            background: #94a3b8;
            position: absolute;
            z-index: 1;
        }

        /* Level 1 to 2 */
        .cb_org_level_1_2_line {
            width: 1px;
            height: 80px;
            background: #94a3b8;
            position: relative;
        }

        /* Level 2: 원장 & 감사 */
        .cb_org_level_2_row {
            display: flex;
            align-items: center;
            position: relative;
            justify-content: center;
            width: 100%;
        }
        .cb_org_auditor_group {
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            align-items: center;
        }
        .cb_org_auditor_line {
            width: 80px;
            height: 1px;
            background: #94a3b8;
        }

        /* Level 2 to 3 */
        .cb_org_level_2_3_line {
            width: 1px;
            height: 40px;
            background: #94a3b8;
            position: relative;
        }

        /* Level 3: Side Connected Staff (부원장, 자치분권위원회) */
        .cb_org_level_3_side_wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            position: relative;
        }
        .cb_org_level_3_side_line_v {
            width: 1px;
            height: 100px;
            background: #94a3b8;
            position: relative;
        }
        .cb_org_side_node_group {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            pointer-events: none;
        }
        .cb_org_side_node_group > * { pointer-events: auto; }
        
        .cb_org_side_item {
            display: flex;
            align-items: center;
            position: absolute;
        }
        .cb_org_side_item.left {
            right: 50%;
        }
        .cb_org_side_item.right {
            left: 50%;
        }
        .cb_org_side_h_line {
            width: 60px;
            height: 1px;
            background: #94a3b8;
        }

        /* Level 3 to 4 */
        .cb_org_level_3_4_line {
            width: 1px;
            height: 40px;
            background: #94a3b8;
            position: relative;
        }

        /* Level 4: Main Departments */
        .cb_org_level_4_row {
            display: flex;
            justify-content: center;
            gap: 80px;
            width: 100%;
            position: relative;
    
        }
        .cb_org_level_4_row::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(50% - 240px);
    width: 480px;
    height: 1px;
    background: #94a3b8;
}

/* 수정: 모바일에서는 이 선이 보이지 않도록 미디어 쿼리 준비 */

        .cb_org_dept_item {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            width: 160px;
            margin-top: 20px;
        }
        .cb_org_dept_item::before {
            content: "";
            position: absolute;
            top: 0;
            left: 50%;
            width: 1px;
            height: 20px;
            background: #94a3b8;
            transform: translateY(-100%);
        }
        .cb_org_dept_item.no-top-line::before {
            display: none;
        }

        /* Sub Departments (Vertical - Policy Research) */
        .cb_org_sub_list {
            display: flex;
            flex-direction: column;
            margin-top: 0;
            padding-top: 20px;
            position: relative;
            width: 100%;
        }
        .cb_org_sub_list::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            bottom: 22px;
            width: 1px;
            background: #94a3b8;
        }
        .cb_org_sub_item {
            position: relative;
            margin-top: 15px;
            display: flex;
            align-items: center;
            padding-left: 20px;
        }
        .cb_org_sub_item::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 0;
            width: 20px;
            height: 1px;
            background: #94a3b8;
        }
        .cb_org_sub_node {
            border: 1px solid #e2e8f0;
            padding: 10px 20px;
            min-width: 140px;
            text-align: center;
            font-size: 14px;
            background: #fff;
            font-weight: 600;
            color: #475569;
            border-radius: 12px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        }

        /* Secretariat Branch (Centered) */
        .cb_org_sec_branch {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 20px;
            position: relative;
            width: 100%;
        }
        .cb_org_sec_branch::before {
            content: "";
            position: absolute;
            top: -20px;
            left: 50%;
            width: 1px;
            height: 20px;
            background: #94a3b8;
        }
 .lg-hidden {
        display: none;}


/* Mobile Responsive Styles */
/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    /* 전체 레이아웃 초기화 */
    .cb_org_chart {
        min-width: auto;
        width: 100%;
        padding: 0 10px;
    }

    /* [1] 감사 노드 레이아웃 */
    .cb_org_level_1_2_line {
        width: 1px;
        height: auto;
        background: #94a3b8;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
        padding: 20px 0;
    }

    .cb_org_auditor_group {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 10;
        margin: 10px 0;
    }

    .cb_org_auditor_line {
        width: 1px;
        height: 20px;
        background: #94a3b8;
    }

    /* [2] 원장 노드 */
    .cb_org_level_2_row {
        position: relative;
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }

    /* [3] 부원장 & 자치분권위원회 (좌우 나란히 핵심 수정) */
    .cb_org_level_3_side_wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: relative;
        padding: 50px 0; /* 노드 높이에 맞춰 공간 확보 */
    }

    .cb_org_level_3_side_line_v {
        width: 1px;
        height: 100%;
        background: #94a3b8;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .cb_org_side_node_group {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        position: relative;
        z-index: 2;
    }

    .cb_org_side_item {
        display: flex;
        align-items: center;
        position: absolute;
        width: auto;
    }

    /* 왼쪽(부원장): 노드(왼쪽) + 선(오른쪽) -> 중앙선 접합 */
    .cb_org_side_item.left {
        right: 50% !important;
        left: auto !important;
        flex-direction: row; /* 순서: 노드 -> 선 */
    }

    /* 오른쪽(자치분권위원회): 선(왼쪽) + 노드(오른쪽) -> 중앙선 접합 */
    .cb_org_side_item.right {
        left: 50% !important;
        right: auto !important;
        flex-direction: row; /* 순서: 선 -> 노드 */
    }

    /* 수평 연결선 설정 */
    .cb_org_side_h_line {
        width: 30px !important; /* 선 길이 조정 */
        height: 1px !important;
        background: #94a3b8 !important;
        display: block !important;
        flex-shrink: 0;
    }

    /* 모바일 노드 디자인 통일 */
    .cb_org_side_item .cb_org_node {
        min-width: 140px !important;
        max-width: 140px !important;
        width: auto !important;
        /* padding: 10px 8px !important; */
        height: auto !important;
        min-height: 80px !important;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

    .cb_org_side_item .cb_org_node_pos {
        font-size: 12px !important;
        word-break: keep-all;
        text-align: center;
        line-height: 1.2;
    }

    /* [4] 하부 부서 (Level 4) 및 정책연구실 */
    .cb_org_level_4_row {
        flex-direction: column;
        gap: 30px;
        padding-top: 20px;
    }
    .cb_org_level_4_row::before { display: none; }

    .cb_org_dept_item { width: 100%; }
    .cb_org_dept_item::before {
        height: 20px;
        top: -20px;
    }

    .cb_org_sub_list { align-items: center; padding-left: 0; }
    .cb_org_sub_list::before { left: 50%; }
    .cb_org_sub_item {
        padding-left: 0;
        justify-content: center;
    }
    .cb_org_sub_item::before { display: none; }
}