:root {
    --or-line-w: 2px;
    --or-drop-h: 28px;
}

.org-chart-wrapper {
    width: 100%;
    overflow-x: auto;
    background: transparent;
    padding-bottom: 40px;
    direction: rtl;
}

.org-chart-wrapper::-webkit-scrollbar {
    height: 8px;
}

.org-chart-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.org-chart-wrapper::-webkit-scrollbar-thumb {
    background: var(--c-corporate-teal);
    border-radius: 4px;
}

.org-section {
    padding: 30px 20px 40px;
    background: transparent;
    min-width: 1200px;
    font-family: var(--font-main);
    direction: rtl;
}

.org-section *,
.org-section *::before,
.org-section *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.org-section .navy-bg {
    background: var(--c-corporate-teal);
    color: #fff;
}

.org-section .beige-bg {
    background: #f4f4f4;
    color: var(--c-corporate-teal);
}

.org-section .gold {
    color: var(--c-corporate-gold);
}

.org-section .center-wrap {
    display: flex;
    justify-content: center;
}

.org-section .v-line {
    width: var(--or-line-w);
    height: var(--or-drop-h);
    background: var(--c-corporate-teal);
    margin: 0 auto;
}


.org-section .chairman-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 50px;
    border-radius: 7px;
    min-width: 270px;
    gap: 2px;
}

.org-section .chairman-box .main-title {
    font-size: 21px;
    font-weight: 900;
}

.org-section .chairman-box .sub-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-corporate-gold);
}

.org-section .chairman-box .ch-icons {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.org-section .chairman-box .ch-icons i {
    font-size: 26px;
    color: var(--c-corporate-gold);
}


.org-section .partners-label {
    padding: 9px 90px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 800;
}


.org-section .org-row {
    display: flex;
    direction: ltr;
    justify-content: center;
    align-items: flex-start;
}

.org-section .org-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: var(--or-drop-h);
    padding-left: 4px;
    padding-right: 4px;
}

.org-section .org-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--or-line-w);
    height: var(--or-drop-h);
    background: var(--c-corporate-teal);
}

.org-section .org-col::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--or-line-w);
    background: var(--c-corporate-teal);
}

.org-section .org-col:first-child::after {
    left: 50%;
}

.org-section .org-col:last-child::after {
    right: 50%;
}


.org-section .partner-box {
    width: 100%;
    border-radius: 6px;
    padding: 10px 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.org-section .partner-box .p-label {
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.5;
    direction: rtl;
    text-align: center;
}

.org-section .partner-box .p-icon {
    font-size: 22px;
    color: var(--c-corporate-gold);
}


.org-section .ceo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 50px;
    border-radius: 7px;
    min-width: 220px;
    gap: 2px;
}

.org-section .ceo-box .ceo-icon {
    font-size: 24px;
    color: var(--c-corporate-gold);
}

.org-section .ceo-box .main-title {
    font-size: 18px;
    font-weight: 900;
}

.org-section .ceo-box .sub-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-corporate-gold);
}


.org-section .dept-header {
    width: 100%;
    border-radius: 5px;
    padding: 10px 6px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    direction: rtl;
    line-height: 1.5;
    border: 1px solid #ddd;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.org-section .sub-list {
    width: 100%;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.org-section .sub-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 7px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-corporate-teal);
    text-align: center;
    direction: rtl;
}


.org-section .values-section {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.org-section .values-title {
    background: var(--c-corporate-teal);
    color: #fff;
    padding: 8px 70px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 800;
}

.org-section .values-row {
    display: flex;
    direction: ltr;
    gap: 45px;
    align-items: center;
}

.org-section .val-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.org-section .val-item i {
    font-size: 28px;
    color: var(--c-corporate-teal);
}

.org-section .val-item .val-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--c-corporate-teal);
}

.org-section .val-divider {
    width: 1px;
    height: 50px;
    background: #CCC;
}


@media (max-width: 991px) {
    .org-chart-wrapper {
        overflow-x: hidden;
    }

    .org-section {
        min-width: 100%;
        padding: 20px 10px;
    }

    .org-section .chairman-box,
    .org-section .ceo-box {
        min-width: 85%;
        max-width: 320px;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .org-section .partners-label {
        padding: 9px 50px;
        width: 85%;
        max-width: 320px;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .org-section .org-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding-top: 25px;
        position: relative;
    }

    .org-section .org-row::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: var(--or-line-w);
        background: var(--c-corporate-teal);
        z-index: 0;
    }

    .org-section .org-col {
        width: 100%;
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
        z-index: 1;
    }

    .org-section .org-col::before,
    .org-section .org-col::after {
        display: none !important;
    }

    .org-section .partner-box,
    .org-section .dept-header {
        width: 85%;
        max-width: 300px;
        margin: 0 auto;
        position: relative;
        z-index: 2;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }

    .org-section .sub-list {
        width: 85%;
        max-width: 300px;
        margin: 10px auto 0;
        position: relative;
        z-index: 2;
    }

    .org-section .sub-item {
        border-color: rgba(200, 147, 17, 0.3);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    }

    .org-section .values-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .org-section .val-divider {
        display: none;
    }
}