:root {
    --org-primary: #031F47;
    --org-secondary: #1e3a5f;
    --org-accent: #6c5ce7;
    --org-bg: #f8f9fc;
    --org-card-bg: #ffffff;
    --org-text-light: #636e72;
    --org-connector: #dcdde1;
}

.org-section {
    padding: 50px 0 100px 0;
}

.org-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    position: relative;
}

.org-node {
    background: var(--org-card-bg);
    border-radius: 20px;
    padding: 24px;
    width: 280px;
    box-shadow: 0 10px 30px rgba(3, 31, 71, 0.05);
    border: 1px solid rgba(3, 31, 71, 0.05);
    text-align: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.org-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(3, 31, 71, 0.1);
}

.node-icon {
    width: 48px;
    height: 48px;
    background: var(--org-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--org-primary);
}

.node-icon svg {
    width: 24px;
    height: 24px;
}

.node-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--org-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.node-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--org-primary);
    margin-bottom: 8px;
}

.node-desc {
    font-size: 13px;
    color: var(--org-text-light);
    line-height: 1.5;
    word-break: keep-all;
}

.node-director {
    background: var(--org-primary);
    color: white;
    width: 320px;
}

.node-director .node-title {
    color: white;
    font-size: 22px;
}

.node-director .node-desc {
    color: rgba(255, 255, 255, 0.7);
}

.node-director .node-icon {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.node-director .node-label {
    color: rgba(255, 255, 255, 0.5);
}

.node-advisory {
    border: 2px solid var(--org-connector);
    background: #f8f9fc;
    box-shadow: none;
    width: 320px;
}

.node-l3 {
    background: var(--org-secondary);
    color: white;
}

.node-l3 .node-title {
    color: white;
}

.node-l3 .node-desc {
    color: rgba(255, 255, 255, 0.7);
}

.node-l3 .node-icon {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.node-l3 .node-label {
    color: rgba(255, 255, 255, 0.5);
}

.node-sub {
    width: 240px;
    padding: 20px;
    border: 1px solid var(--org-connector);
}

.node-sub .node-title {
    font-size: 16px;
}

.node-sub .node-desc {
    font-size: 12px;
}

.org-chart::before {
    content: '';
    position: absolute;
    top: 140px;
    height: 300px;
    left: 50%;
    width: 2px;
    background: var(--org-connector);
    z-index: 1;
}

.group-row {
    display: flex;
    position: relative;
    z-index: 2;
    justify-content: space-between;
    width: 100%;
}

.group-row::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 28.8%;
    right: 28.3%;
    height: 2px;
    background: var(--org-connector);
}

.group-row>.group-col::before {
    content: '';
    position: absolute;
    top: -30px;
    height: 30px;
    width: 2px;
    background: var(--org-connector);
}

.group-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
}

.sub-tier-row {
    display: flex;
    gap: 30px;
    position: relative;
    margin-top: 0;
    padding-top: 50px;
}

.sub-tier-row::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    height: 50px;
    width: 2px;
    background: var(--org-connector);
    transform: translateY(-50px);
}

.sub-tier-row::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 15.5%;
    right: 15.5%;
    height: 2px;
    background: var(--org-connector);
}

.sub-tier-row .group-col::before {
    content: '';
    position: absolute;
    top: -40px;
    height: 50px;
    width: 2px;
    background: var(--org-connector);
}

@media (max-width: 1024px) {
    .org-section {
        padding: 0 0 50px 0;
    }

    .org-chart {
        gap: 30px;
        align-items: flex-start;
    }

    .org-chart::before,
    .group-row::before,
    .group-row>.group-col::before,
    .sub-tier-row::before,
    .sub-tier-row::after,
    .sub-tier-row .group-col::before {
        display: none;
    }

    .group-row {
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }

    .group-col {
        margin-right: 0 !important;
        width: 100%;
        align-items: flex-start;
    }

    .sub-tier-row {
        flex-direction: column;
        padding-top: 20px;
        gap: 20px;
        width: 98%;
        padding-left: 20px;
        border-left: 2px solid var(--org-connector);
        margin-left: 20px;
    }

    .org-node,
    .node-director,
    .node-advisory,
    .node-sub,
    .node-l3 {
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 20px;
    }

    .node-icon {
        margin: 0;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
    }

    .node-content-wrapper {
        flex: 1;
    }

    .node-title {
        font-size: 16px !important;
        margin-bottom: 4px;
    }

    .node-desc {
        font-size: 13px !important;
        text-align: left;
    }

    .org-chart>.org-node:first-child {
        margin-bottom: 20px;
        position: relative;
    }

    .group-row>.group-col {
        position: relative;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .sub-tier-row {
        width: 94%;
    }
}