*{
    margin: 0;
    padding: 0;

}


.organization-chart {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: left;
    padding: 60px 0 40px;
}

.section-header,
.org-chart-header-text {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: left;
}

.section-header h1,
.org-chart-header-text h1 {
    margin-bottom: 10px;
    margin-top: 24px;
    font-size: 56px;
    text-align: left;
    color: #ffffff;
}

.section-header h3,
.org-chart-header-text h3 {
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: left;
    color: #cbd5e1;
}

@media (prefers-color-scheme: dark) {
    .organization-chart {
        padding-top: 80px;
    }

    .organization-chart .section-header h1 {
        color: #ffffff;
    }

    .organization-chart .section-header h3 {
        color: #94a3b8;
    }
}

.tree {
    transform: scale(0.9);
    transform-origin: top center;
}

.tree ul {
    position: relative;
    padding: 2em 0; 
    white-space: nowrap;
    margin: 0 auto;
    text-align: center;
    &::after {
        content: '';
        display: table;
        clear: both;
    }
}

.tree li {
    display: inline-block; 
    vertical-align: top;
    text-align: center;
        list-style-type: none;
        position: relative;
        padding: 2em .5em 0 .5em;
    &::before,
    &::after {
        content: '';
        position: absolute; 
        top: 0; 
        right: 50%;
        border-top: 4px solid #ccc;
        width: 50%; 
        height:2em;
}

&::after {
    right: auto; 
    left: 50%;
    border-left: 4px solid #ccc;
}
&:only-child::after,
&:only-child::before {
    display: none;
}
&:only-child {
    padding-top: 0;
}
&:first-child::before,
&:last-child::after {
    border: 0 none;
}
&:last-child::before{
    border-right: 4px solid #ccc;
    border-radius: 0 5px 0 0;
}
&:first-child::after{
    border-radius: 5px 0 0 0;
}
}

.tree ul ul::before{
    content: '';
    position: absolute; 
    top: 0; 
    left: 50%;
    border-left: 4px solid #ccc;
    width: 0; 
    height: 2em;
}

h2{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

p{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.organization-block {
    --theme-color: lightgray;
    width: 300px;
    height: 100px;
    display: inline-flex;
    align-items: center;
    border-left: 10px solid var(--theme-color);
    box-shadow: 0px 14px 12px -10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Prevents border/padding from breaking your 300px width */
    transition: transform 0.1s ease-in;
}

#coloring{
    width: 20%;
    height: 100%;
    margin-right: 5px;
    display: flex;
}

.icon{
    width: 200px;

    background-color: var(--theme-color); 
    

    -webkit-mask-image: url('../../img-resources/human-logo.svg');
    mask-image: url('../../img-resources/human-logo.svg');
    

    -webkit-mask-size: contain;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}


#text-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;          
    text-align: start;    
    align-items: flex-start;   
    justify-content: center; 
    padding-right: 20px;
    white-space: normal;  
    overflow-wrap: anywhere;
}
#text-content h2{
    font-size: 1.8rem;
    font-weight: bold;
}

#text-content p{
    font-size: medium;
}

.organization-block:hover{
    transform: translateY(-3px);
}

.stretched-link{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
@media (max-width: 900px) {
    .tree {
        transform: scale(0.7);
        transform-origin: top center;
    }

    .organization-block {
        width: 240px;
    }
}

