/* ==== Content01 ==== */
.tab::before {
    background-color: #F9F9F9;
}

.cont1 {
    background-color: #F9F9F9;
}

.org-chart {
    padding: 0 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.group-title {
    width: 100%;
    padding: 6px;
    border-radius: 10px;
    text-align: center;
    font-size: var(--font-md);
    font-weight: 600;
    line-height: 36px;
    color: white;
}

.group-title.bluebar {
    background: #0464FF;
    margin: 80px 0 20px;
}

.group-title.greenbar {
    background: #00724E;
    margin: 40px 0 20px;
}

.org-chart>.node.center::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 40px;
    background: #A0A0A0;
}

.children.level2::before {
    content: '';
    position: absolute;
    top: -19.2%;
    left: 24.4%;
    width: 51.3%;
    height: 1px;
    background: #A0A0A0;
}

.children.level2 .node:nth-child(1)::before,
.children.level2 .node:nth-child(2)::before {
    content: '';
    position: absolute;
    top: -38%;
    left: 50%;
    width: 1px;
    height: 39px;
    background: #A0A0A0;
}

.children.level2 .node:nth-child(3)::after,
.children.level2 .node:nth-child(4)::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 40px;
    background: #A0A0A0;
}

.node {
    width: 100%;
    padding: 40px 30px;
    position: relative;
    background: white;
    border: 1px solid #D0D0D0;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.node.center.compact {
    width: 550px;
    padding: 40px 60px;
    justify-content: space-between;
}

.node.compact {
    padding: 30px 35px;
    display: flex;
    gap: 50px;
}

.node.compact .right {
    text-align: left;
}

.node.compact .label {
    margin-top: 0;
}

.node.compact .right .label:nth-of-type(2) {
    margin-top: 30px;
}

.node:hover {
    border-color: #004ECE;
    box-shadow: 0 8px 20px rgba(0, 78, 206, 0.15);
}

.node:focus-visible {
    outline: 3px solid #0464FF;
}

.node .name {
    font-size: 23px;
    font-weight: 600;
    white-space: nowrap;
}

.node.center .name {
    font-size: var(--font-3xl);
}

.node .title {
    margin-top: 8px;
    font-size: var(--font-md);
    font-weight: 500;
    line-height: 30px;
}

.title.navy {
    color: #08429F;
    font-weight: 600;
}

.title.blue {
    color: #0464FF;
}

.title.green {
    color: #1D7D00;
}

.title.teal {
    color: #027273;
}

.title.steel {
    color: #4E6D9D;
}

.node .label {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: var(--font-base);
    font-weight: 500;
    color: #414141;
}

.node .duties {
    font-size: var(--font-base);
    font-weight: 500;
    line-height: 27px;
}

.node .duties li {
    margin-bottom: 12px;
}

.node .duties li:last-child {
    margin-bottom: 0;
}

.node .contact {
    color: #414141;
    font-size: var(--font-sm);
    font-weight: 500;
    word-break: break-all;
}

.node .contact a:focus-visible {
    outline: 2px dashed #0464FF;
    outline-offset: 4px;
    border-radius: 4px;
    background-color: rgba(4, 100, 255, 0.1);
}

.node .contact a:hover {
    background-color: rgba(4, 100, 255, 0.1);
}

.children {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}

.children.level2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}


@media (max-width:1280px) {
    .node.compact {
        gap: 20px;
    }

    .children.level2 {
        gap: 20px;
    }

    .group-title.bluebar {
        margin: 40px 0 20px;
    }

    .node .duties li {
        margin-bottom: 5px;
    }

    .org-chart>.node.center::after,
    .children.level2::before,
    .children.level2 .node:nth-child(1)::before,
    .children.level2 .node:nth-child(2)::before,
    .children.level2 .node:nth-child(3)::after,
    .children.level2 .node:nth-child(4)::after {
        display: none;
    }
}

@media (max-width:1024px) {

    .org-chart {
        padding: 0;
    }

    .children {
        gap: 20px;
    }

    .node:not(.center) {
        padding: 30px;

    }

    .node.compact:not(.center) {
        flex-direction: column;
    }

    .node.compact:not(.center) .right {
        text-align: center;
    }

}

@media (max-width:768px) {
    .tab {
        background-color: #F9F9F9;
    }

    .node:not(.center) {
        padding: 20px;
    }

    .node.center.compact {
        width: 450px;
        padding: 40px;
    }

    .children {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .node {
        padding: 20px;
    }

    .node .name {
        font-size: 22px;
        line-height: 32px;
    }

    .node .label {
        margin-top: 10px;
        font-size: var(--font-base);
    }

    .node .contact {
        margin-top: 0;
    }

    .group-title {
        font-size: var(--font-xl);
    }

    .node .duties {
        font-size: var(--font-base);
    }
}

@media (max-width:480px) {

    .children.level3 .node {
        display: flex;
        gap: 20px;
    }

    .children,
    .children.level2 {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }

    .node.center.compact {
        padding: 20px;
        justify-content: flex-start;
    }

    .node.compact:not(.center) {
        padding: 20px;
        flex-direction: row;
    }

    .node .label {
        margin-top: 0;
        margin-bottom: 4px;
    }

    .node.compact .right .label:nth-of-type(2),
    .node .right .label:nth-of-type(2) {
        margin-top: 20px;
    }

    .node .title {
        margin-top: 0;
    }

    .children.level3 .node .left,
    .node.compact .left {
        min-width: 60px;
    }

    .children.level3 .node .right,
    .node.compact:not(.center) .right {
        text-align: left;
    }

    .node.center.compact {
        width: 100%;
    }

    .node.center .name {
        font-size: var(--font-xl);
    }

    .node .name {
        font-size: var(--font-lg);
        line-height: 32px;
    }

    .node .duties {
        line-height: 20px;
    }

    .node .duties li br {
        display: none;
    }

    .group-title {
        font-size: var(--font-lg);
        padding: 8px;
        line-height: 28px;
    }
}