.h-v-30 {
    height: 30vh !important;
}
.org-chart-wrapper {

    --line-color: #38bdf8;
    --light-blue-bg: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    --managing-bg: linear-gradient(135deg, #475569 0%, #334155 100%);
    --founding-bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --text-dark: #0f172a;
    --text-light: #f8fafc;

    background-color: var(--bg-color);
    font-family:
        "Segoe UI",
        system-ui,
        -apple-system,
        sans-serif;
    border-radius: 15px;

    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    text-align: center;
    padding: 50px 0;

    scrollbar-width: thin;
    scrollbar-color: #38bdf8 #0f172a;
}

.org-chart-wrapper::-webkit-scrollbar {
    height: 6px;
}
.org-chart-wrapper::-webkit-scrollbar-track {
    background: #0f172a;
    border-radius: 10px;
}
.org-chart-wrapper::-webkit-scrollbar-thumb {
    background-color: #38bdf8;
    border-radius: 10px;
}

.org-chart-wrapper .org-container {
    display: inline-flex; 
    flex-direction: column;
    align-items: center;
    text-align: start;
    padding: 0 40px;
    margin: 0 auto;
    direction: ltr;
}

.org-chart-wrapper .root-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.org-chart-wrapper .root-section .founding {
    position: absolute;
    inset-inline-end: 50%;
    margin-inline-end: 110px;
    top: 0;
}

.org-chart-wrapper .root-section .horizontal-link {
    position: absolute;
    inset-inline-end: 47%;
    margin-inline-end: 90px;
    top: 25px;
    width: 26px;
    height: 2px;
    background: var(--line-color);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.org-chart-wrapper .root-section .vertical-link {
    width: 2px;
    height: 45px;
    background: var(--line-color);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
    margin-inline-start: 2px;
}

.org-chart-wrapper .branches {
    display: flex;
    justify-content: center;
    position: relative;
}

.org-chart-wrapper .col {
    position: relative;
    padding: 25px 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.org-chart-wrapper .col::before,
.org-chart-wrapper .col::after {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-end: 50%;
    border-top: 2px solid var(--line-color);
    width: 50%;
    height: 25px;
}
.org-chart-wrapper .col::after {
    inset-inline-end: auto;
    inset-inline-start: 50%;
    border-inline-start: 2px solid var(--line-color);
}
.org-chart-wrapper .col:first-child::after {
    border-start-start-radius: 8px;
    border-start-end-radius: 0;
    border-end-end-radius: 0;
    border-end-start-radius: 0;
}
.org-chart-wrapper .col:last-child::before {
    border-inline-end: 2px solid var(--line-color);
    border-start-start-radius: 0;
    border-start-end-radius: 8px;
    border-end-end-radius: 0;
    border-end-start-radius: 0;
}
.org-chart-wrapper .col:first-child::before,
.org-chart-wrapper .col:last-child::after {
    border: 0 none;
}

.org-chart-wrapper .stack-container {
    width: 170px;
    position: relative;
    margin-top: 25px;
    display: flex;
    flex-direction: column;
}

.org-chart-wrapper .stack-container::before {
    content: "";
    position: absolute;
    inset-inline-start: 10px;
    top: -25px;
    bottom: 20px;
    width: 2px;
    background: var(--line-color);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.org-chart-wrapper .node {
    width: 170px;
    padding: 16px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.5),
        0 4px 6px -2px rgba(0, 0, 0, 0.25);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
    z-index: 2;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.org-chart-wrapper .node:hover {
    transform: scale(1.05);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.6),
        0 10px 10px -5px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.org-chart-wrapper .stack-node {
    width: 180px;
    padding: 12px 10px;
    position: relative;
    margin-bottom: 18px;
    margin-inline-start: 30px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
    cursor: pointer;
}

.org-chart-wrapper .stack-node:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

.org-chart-wrapper .stack-node:last-child {
    margin-bottom: 0;
}

.org-chart-wrapper .stack-node::before {
    content: "";
    position: absolute;
    inset-inline-start: -21px;
    top: 50%;
    width: 20px;
    height: 2px;
    background: var(--line-color);
    transition: width 0.3s ease;
}

.org-chart-wrapper .light-blue {
    background: var(--light-blue-bg);
    color: var(--text-dark);
}
.org-chart-wrapper .managing {
    background: var(--managing-bg);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.org-chart-wrapper .founding {
    background: var(--founding-bg);
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 700;
}

 @media (max-width: 991px) {
    .org-chart-wrapper .node {
        width: 140px;
        padding: 12px 8px;
        font-size: 12px;
    }
    .org-chart-wrapper .stack-node {
        width: 150px;
        font-size: 12px;
        padding: 10px 8px;
    }
    .org-chart-wrapper .stack-container {
        width: 140px;
    }
    .org-chart-wrapper .col {
        padding: 25px 8px 0;  
    }
    .org-chart-wrapper .root-section .founding {
        margin-inline-end: 95px;
    }
    .org-chart-wrapper .root-section .horizontal-link {
        margin-inline-end: 75px;
        width: 20px;
    }
}
