.history {

}

.history-tabs {
    border-bottom: 2px solid #CC3130;
}

.history-tabs_i {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    border-top: 2px solid #eeeeee;
    border-right: 2px solid #eeeeee;
    border-left: 2px solid #eeeeee;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    transition: all linear .2s;
}

.history-tabs_i.active {
    border-top: 2px solid #CC3130;
    border-right: 2px solid #CC3130;
    border-left: 2px solid #CC3130;
    background: #CC3130;
    color: white;
    transition: all linear .2s;
}

.history-tabs_i:hover:not(.active) {
    border-top: 2px solid white;
    border-right: 2px solid white;
    border-left: 2px solid white;
    background: white;
    transition: all linear .2s;
}

.history-content {
    position: relative;
    overflow: hidden;
    height: 110px;
}

.history-content_i {
    padding-top: 40px;
    position: absolute;
    left: 0;
    top: 0;
}

.history-horizontal {
    display: flex;
}

.history-horizontal-tabs {
    width: 30%;
    border-right: 2px solid #CC3130;
}

.history-horizontal-tabs_i {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    border-top: 2px solid white;
    border-bottom: 2px solid white;
    border-left: 2px solid white;
    border-right: none;
    border-radius: 5px 0 0 5px;
    margin-bottom: 3px;
    transition: all linear .2s;
}

.history-horizontal-tabs_i:last-child {
    margin-bottom: 0;
}

.history-horizontal-tabs_i.active {
    border-top: 2px solid #CC3130;
    border-bottom: 2px solid #CC3130;
    border-left: 2px solid #CC3130;
    background: #CC3130;
    color: white;
    transition: all linear .2s;
}

.history-horizontal-tabs_i:hover:not(.active) {
    border-top: 2px solid #EEEEEE;
    border-bottom: 2px solid #EEEEEE;
    border-left: 2px solid #EEEEEE;
    background: #EEEEEE;
    transition: all linear .2s;
}

.history-horizontal-content {
    position: relative;
    width: 70%;
    margin-left: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.employees {
    margin-top: 40px;
    height: 670px;
    overflow: hidden;
    transition: all linear .2s;
}

.employees.expanded {
    height: auto;
    transition: all linear .2s;
}

.employee-img-overlay {
    font-size: 16px;
    padding: 20px;
    text-align: center;
}

.show-more-circle {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    bottom: -20px;
    color: white;
    text-align: center;
    font-size: 30px;
    height: 40px;
    width: 40px;
    background: #CC3130;
    border-radius: 50%;
    z-index: 1000;
    cursor: pointer;
    transition: all linear .2s;
}

.show-more-circle:hover {
    background: #862020;
    transition: all linear .2s;
}

.show-more-circle.expanded {
    transform: rotate(180deg);
    transition: all linear .2s;
}

@media screen and (max-width: 1366px) {
    .employees {
        height: 640px;
    }

    .employees.expanded {
        height: 970px;
    }
}

@media screen and (max-width: 768px) {
    .history-tabs_i {
        padding: 10px 15px;
    }

    .history-content {
        height: 170px;
    }
}

@media screen and (max-width: 414px) {
    .history-tabs {
        overflow: auto;
        white-space: nowrap;
    }

    .history-tabs::-webkit-scrollbar { height: 0; }
    .history-tabs { -ms-overflow-style: none; }
    .history-tabs { overflow: -moz-scrollbars-none; }

    .history-content {
        height: 290px;
    }

    .history-horizontal {
        display: block;
    }

    .history-horizontal-tabs {
        width: 100%;
    }
    .history-horizontal-content {
        width: 100%;
        margin: 30px 0 0;
    }

    .employees {
        height: auto;
    }

    .show-more-circle {
        display: none;
    }
}