.timeline {
    margin: 0 0 45px;
    padding: 0;
    position: relative
}

.timeline::before {
    border-radius: .25rem;
    background-color: #dee2e6;
    bottom: 0;
    content: "";
    left: 31px;
    margin: 0;
    position: absolute;
    top: 0;
    width: 4px
}

.timeline>div {
    margin-bottom: 15px;
    margin-right: 10px;
    position: relative
}

.timeline>div::after, .timeline>div::before {
    content: "";
    display: table
}

.timeline>div>.timeline-item {
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
    border-radius: .25rem;
    background-color: #fff;
    color: #495057;
    margin-left: 60px;
    margin-right: 15px;
    margin-top: 0;
    padding: 0;
    position: relative
}

.timeline>div>.timeline-item>.time {
    color: #999;
    float: right;
    font-size: 12px;
    padding: 10px
}

.timeline>div>.timeline-item>.timeline-header {
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    color: #495057;
    font-size: 16px;
    line-height: 1.1;
    margin: 0;
    padding: 10px
}

.timeline>div>.timeline-item>.timeline-header>a {
    font-weight: 600
}

.timeline>div>.timeline-item>.timeline-body, .timeline>div>.timeline-item>.timeline-footer {
    padding: 10px
}

.timeline>div>.timeline-item>.timeline-body>img {
    margin: 10px
}

.timeline>div>.timeline-item>.timeline-body ol, .timeline>div>.timeline-item>.timeline-body ul, .timeline>div>.timeline-item>.timeline-body>dl {
    margin: 0
}

.timeline>div>.timeline-item>.timeline-footer>a {
    color: #fff
}

.timeline>div>.fa, .timeline>div>.fab, .timeline>div>.fad, .timeline>div>.fal, .timeline>div>.far, .timeline>div>.fas, .timeline>div>.ion, .timeline>div>.svg-inline--fa {
    background-color: #adb5bd;
    border-radius: 50%;
    font-size: 16px;
    height: 30px;
    left: 18px;
    line-height: 30px;
    position: absolute;
    text-align: center;
    top: 0;
    width: 30px
}

.timeline>div>.svg-inline--fa {
    padding: 7px
}

.timeline>.time-label>span {
    border-radius: 4px;
    background-color: #fff;
    display: inline-block;
    font-weight: 600;
    padding: 5px
}

.timeline-inverse>div>.timeline-item {
    box-shadow: none;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6
}

.timeline-inverse>div>.timeline-item>.timeline-header {
    border-bottom-color: #dee2e6
}

.dark-mode .timeline::before {
    background-color: #6c757d
}

.dark-mode .timeline>div>.timeline-item {
    background-color: #343a40;
    color: #fff;
    border-color: #6c757d
}

.dark-mode .timeline>div>.timeline-item>.timeline-header {
    color: #ced4da;
    border-color: #6c757d
}

.dark-mode .timeline>div>.timeline-item>.time {
    color: #ced4da
}
.timeline-arrow {
    height: 12px;
    width: 12px;
    position: absolute;
    border-top: 1px solid rgba(0, 0, 0, .125);
    border-left: 1px solid rgba(0, 0, 0, .125);
    transform: rotate(-45deg);
    position: absolute;
    left: -7px;
    top: 1rem;
    background: #fff;
}

.fa-icon {
    margin-top: .5rem;
}
#timeline .timeline-item:after,
header:after,
#timeline .timeline-item:before,
header:before {
    content: "";
    display: block;
    width: 100%;
    clear: both;
}

#timeline {
    width: 100%;
    margin: 30px auto;
    position: relative;
    padding: 0 10px;
}

#timeline:before {
    content: "";
    width: 4px;
    height: 100%;
    background: #ddd;
    left: calc(50% - 2px);
    top: 0;
    position: absolute;
}

#timeline:after {
    content: "";
    clear: both;
    display: table;
    width: 100%;
}

#timeline .timeline-item {
    margin-bottom: 1rem;
    position: relative;
}

#timeline .timeline-item .timeline-icon {
    background: #ee4d4d;
    color: #fff;
    width: 30px;
    height: 30px;
    position: absolute;
    top: .9rem;
    left: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -15px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    border-radius: 50%;
}

#timeline .timeline-item .timeline-content {
    width: calc(50% - 2rem);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    position: relative;
}
#timeline .timeline-item .timeline-content h6 {
    font-size: 14px;
}
#timeline .timeline-item .timeline-content p {
    font-size: 14px;
}
#timeline .timeline-item .timeline-content.right {
    float: right;
}
#timeline-arrow {
    height: 12px;
    width: 12px;
    position: absolute;
    border-top: 1px solid rgba(0, 0, 0, .125);
    border-left: 1px solid rgba(0, 0, 0, .125);
    transform: rotate(135deg);
    position: absolute;
    right: -7px;
    top: 1.45rem;
    background: #fff;
}   
.right #timeline-arrow {
    right: auto;
    left: -7px;
    transform: rotate(-45deg);
}
#time-label {
    position: relative;
    height: 50px;
    margin-bottom: 2rem;
}
#time-label span {
    position: absolute;
    left: 50%;
    top: 1rem;
    padding: .35rem .75rem;
    border-radius: 3px;
    transform: translateX(-50%);
} 
@media screen and (max-width: 768px) {
    #time-label span {
        left: 1.25rem;
        transform: translateX(-50%);
    }         
    #timeline-arrow {
        right: auto;
        left: -7px;
        transform: rotate(-45deg);
    }
    #timeline {
        margin: 0px;
        padding: 0px;
        width: 100%;
    }
    #timeline:before {
        left: 0;
    }
    #timeline .timeline-item .timeline-content {
        width: calc(100% - 2rem);
        float: right;
    }
    #timeline .timeline-item .timeline-content:before,
    #timeline .timeline-item .timeline-content.right:before {
        left: 10%;
        margin-left: -6px;
        border-left: 0;
        border-right: 7px solid #fff;
    }
    #timeline .timeline-item .timeline-icon {
        left: 1px;
    }
}