.org-chart-wrapper-11145 {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    text-align: center;
}

/* Desktop & Tablet Landscape Tree Layout */
@media (min-width: 768px) {
    .org-tree ul {
        padding-top: 20px;
        position: relative;
        transition: all 0.5s;
        display: flex;
        justify-content: center;
        margin: 0;
        list-style: none;
        padding-left: 0;
    }

    .org-tree li {
        float: left;
        text-align: center;
        list-style-type: none;
        position: relative;
        padding: 20px 5px 0 5px;
        transition: all 0.5s;
    }

    /* Connectors */
    .org-tree li::before, .org-tree li::after {
        content: '';
        position: absolute;
        top: 0;
        right: 50%;
        border-top: 1px solid #ccc;
        width: 50%;
        height: 20px;
    }

    .org-tree li::after {
        right: auto;
        left: 50%;
        border-left: 1px solid #ccc;
    }

    /* Remove connectors from single nodes */
    .org-tree li:only-child::after, .org-tree li:only-child::before {
        display: none;
    }

    /* Remove space from the top of single children */
    .org-tree li:only-child {
        padding-top: 0;
    }

    /* Remove left connector from first child and right from last child */
    .org-tree li:first-child::before, .org-tree li:last-child::after {
        border: 0 none;
    }

    /* Add vertical line back to last child */
    .org-tree li:last-child::before {
        border-right: 1px solid #ccc;
        border-radius: 0 5px 0 0;
    }

    .org-tree li:first-child::after {
        border-radius: 5px 0 0 0;
    }

    /* Downward connector from parents */
    .org-tree ul ul::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        border-left: 1px solid #ccc;
        width: 0;
        height: 20px;
    }
}

/* Mobile Layout - Vertical Stacked List - Forced Styles */
@media (max-width: 767px) {
    .org-chart-wrapper-11145 {
        text-align: center !important;
        overflow-x: hidden !important;
        padding: 10px 0 !important;
        display: block !important;
    }

    .org-tree, 
    .org-tree ul {
        padding-left: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .org-tree li {
        display: block !important;
        width: 100% !important;
        padding: 0 0 15px 0 !important;
        margin: 0 !important;
        float: none !important;
    }

    /* Hide ALL connectors on mobile */
    .org-tree li::before, 
    .org-tree li::after,
    .org-tree ul ul::before {
        display: none !important;
        border: none !important;
        content: none !important;
        height: 0 !important;
        width: 0 !important;
    }

    .org-node-content {
        display: flex !important;
        flex-direction: column !important; /* Stack image and text vertically */
        align-items: center !important;
        text-align: center !important;
        width: 90% !important; /* Slightly less than full width for spacing */
        max-width: 320px !important; 
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .org-node-image {
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }

    .org-node-image img {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 0 !important;
    }
    
    .org-node-info {
        width: 100% !important;
    }
    
    .org-node-button {
        margin-top: 10px !important;
        display: inline-block !important;
    }
}

/* Node Styling - Common */
.org-node-content {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 150px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .org-node-content {
        display: inline-block;
    }
}

.org-node-content:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.org-node-image img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.org-node-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.org-node-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.org-node-role {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.org-node-charge {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
    font-style: italic;
}

/* Button Styling */
.org-node-button {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 15px;
    font-size: 12px;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s, color 0.3s;
}

.org-node-button:hover {
    text-decoration: none;
}
