.org-chart-container {
    position: relative;
}
.org-chart-list {
    position: relative;
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}
.org-chart-item {
    position: relative;
    padding-bottom: 1.5rem;
    max-width: 100%;
}
/* .org-chart-item:not(:last-child) {
    padding-bottom: 1rem;
} */
.org-chart-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: .725rem;
    width: 2px;
    height: 100%;
    border-left: 2px solid;
}
.org-chart-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0.725rem;
    width: 3rem;
    height: 2rem;
    border-width: 0 0 2px 2px;
    border-style: solid;
    border-bottom-left-radius: .725rem;
}
/* .org-chart-list:first-child .org-chart-item::before {display: none;} */
.org-chart-node {
    position: relative;
    display: flex;
    justify-content: start;
    align-items: center;
    width: 22rem;
    max-width: 100%;
    padding: .5rem .725rem .5rem .5rem;
    min-height: 3.5rem;
    gap: .625rem;
    border-radius: 2rem;
    z-index: 1;
}
.org-chart-container .org-chart-list:first-child .org-chart-node {
    justify-content: center;
    border-radius: .625rem;
}
.org-chart-node .org-chart-icon {
    background: #fff;
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
    border-radius: 5rem 5rem 0;
}
.org-chart-node .org-chart-title {
    font-size: .875rem;
    font-weight: 600;
}
.org-chart-node .org-chart-subtitle {
    font-size: .75rem;
} 
.org-chart-listitem {
    position: relative;
    margin-top: 1rem;
    padding: .5rem;
    border-radius: 1.725rem;
    max-width: 100%;
    z-index: 1;
}
.org-chart-list-title {
    font-weight: 600;
    padding: .625rem;
    margin-bottom: .625rem;
    border-radius: 2rem;
}
.org-chart-listitem:first-child {
    margin-top: 0;
}
.org-chart-itemlist {
    list-style: none;
    padding: 0;
    text-align: left;
}
.org-chart-itemlist .org-chart-subitem {
    position: relative;
    padding-left: 2rem;
    padding-bottom: .25rem;
    max-width: 90%;
}
.org-chart-itemlist .org-chart-subitem::before {
    content: '';
    position: absolute;
    top: 3px;
    left: .625rem;
    width: 9px;
    height: 9px;
    border-radius: 1rem 1rem 0 1rem;
}
.org-chart-itemlist p {
    font-size: .75rem;
}

@media screen and (max-width: 991.98px) {
    .org-chart-container {
        max-width: 25rem;
        margin: auto;
    }
    .org-chart-list {
        flex-wrap: wrap; 
        flex-direction: column;
        width: 24rem;
        max-width: 100%;
    }
    .org-chart-list .org-chart-item {
        padding-left: 3rem;
    }
    .org-chart-item::after {
        left: 0.725rem;
        width: 3rem;
        height: 2rem;
        border-width: 0 0 2px 2px;
        border-style: solid;
        border-bottom-left-radius: .725rem;
    }
    .org-chart-container .org-chart-list:first-child .org-chart-item  {
        padding-left: 0;
    }
    .org-chart-list:last-child .org-chart-item:last-child::before {
        height: 1.25rem;
    }
}
@media screen and (min-width: 992px) {
    .org-chart {
        overflow-x: auto;
    }
    .org-chart-container {
        width: 80rem;
    }
    .org-chart-list {
        justify-content: center;
        flex-wrap: nowrap;
        padding: 0;
    }
    .org-chart-list::before {
        content: '';
        position: absolute;
        top: -10px;
        left: calc(50% - 2px);
        width: 1px;
        height: 100%;
        border-style: solid;
        border-width: 0 0 0 3px;
    }
    .org-chart-item {
        padding-top: 1.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .org-chart-list:first-child .org-chart-item {
        padding-top: 0;
    }
    .org-chart-list:last-child .org-chart-item {
        width: 15.6rem;
        padding-left: .25rem;
        padding-right: .25rem;
        max-width: 100%;
    }
    /* Start Line */
    .org-chart-item::before {   
        width: calc(100% + 1rem);
        height: 2rem;
        left: calc(50% - 1px);
        border-style: solid;
        border-width: 2px 0 0 2px;
        /* border-top-left-radius: .725rem; */
    }
    .org-chart-item::after {
        top: -2rem;
        left: -1px;
        width: 3rem;
        height: 2rem;
        border-width: 0;
    }

    .org-chart-list:first-child .org-chart-item::before {
        display: none;
    }
    .org-chart-item:nth-child(1)::before,
    .org-chart-item:nth-child(2)::before{
        left: calc(50% - 1px);
        border-width: 2px 0 0 2px;
        border-top-left-radius: .725rem;
    }
    .org-chart-item:nth-child(2):nth-last-child(1)::before,
    .org-chart-item:nth-child(3)::before,
    .org-chart-item:nth-child(3):nth-last-child(1)::before,
    .org-chart-item:nth-child(4)::before,
    .org-chart-item:nth-child(5)::before{
        left: unset;
        right: calc(50% - 1px);
        border-width: 2px 2px 0 0;
        border-top-left-radius: 0;
        border-top-right-radius: .725rem;
    }
    .org-chart-item:nth-child(1):nth-last-child(2)::before,
    .org-chart-item:nth-child(2):nth-last-child(1)::before,
    .org-chart-item:nth-child(2):nth-last-child(3)::before,
    .org-chart-item:nth-child(3):nth-last-child(2)::before{
        width: 42%;
    }
    .org-chart-item:nth-child(3)::before, 
    .org-chart-item:nth-child(1):nth-last-child(3)::before,
    .org-chart-item:nth-child(3):nth-last-child(1)::before,
    .org-chart-item:nth-child(2):nth-last-child(4)::before,
    .org-chart-item:nth-child(4):nth-last-child(2)::before {
        width: 95%;
    }

    .org-chart-item:nth-child(1):nth-last-child(2)::after {
        left: unset;
        right: 0;
        border-width: 0 2px 2px 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: .725rem;
    }
    .org-chart-item:nth-child(2):nth-last-child(1)::after {
        border-width: 0 0 2px 2px;
    }
    .org-chart-item:nth-child(2):nth-last-child(2)::before,
    .org-chart-item:nth-child(3):nth-last-child(3)::before{
        top: -2rem;
        left: calc(50% - 3.1rem);
        width: 3rem;
        height: 2rem;
        border-width: 0 2px 2px 0;
        border-radius: 0;
        border-bottom-right-radius: .725rem;
    }
    
    .org-chart-item:nth-child(2):nth-last-child(2)::after,
    .org-chart-item:nth-child(3):nth-last-child(3)::after {
        top: -2rem;
        left: unset;
        right: calc(50% - 3rem - 0px);
        width: 3rem;
        height: 2rem;
        border-width: 0 0 2px 2px;
    }
    .org-chart-item:nth-child(2):nth-last-child(3)::after {
        top: -2rem;
        left: unset;
        right: 0;
        width: 3rem;
        height: 2rem;
        border-width: 0 2px 2px 0;
        border-radius: 0;
        border-bottom-right-radius: .725rem;
    }
    .org-chart-item:nth-child(3):nth-last-child(2)::after {
        top: -2rem;
        left: -1px;
        width: 3rem;
        height: 2rem;
        border-width: 0 0 2px 2px;
    }
    .org-chart-list:last-child::before {
        height: 0;
    }
    .org-chart-item:nth-child(3):nth-last-child(3) .org-chart-node::before,
    .org-chart-list:last-child .org-chart-item:nth-child(2):nth-last-child(2) .org-chart-node::before {
        content: '';
        position: absolute;
        bottom: 100%;
        left: calc(50% - 2px);
        height: 3rem;
        border-style: solid;
        border-width: 0 0 0 3px;
    }
    /* End Line */
    
    .org-chart-item .org-chart-listitem {
        width: 100%;
    }
    .org-chart-node,
    .org-chart-item .org-chart-listitem {
        width: 18rem;
    }
}