.timeline {
    --timeline-border-color: #333333;
    --timeline-bg-color1: #ff0000;
    --timeline-bg-color2: #ffffff;
    --timeline-bg-color3: #ffffff;
    --timeline-bg-color4: #0000ff;
    color: #ffffff;
    position: relative;
    margin: 0 auto;
    width: 90%;
    
}

.timeline ul li {
    margin-bottom: 50px;
    list-style-type: none;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.point {
    width: 20px;
    height: 20px;
    background-color: var(--timeline-bg-color2);
    border-radius: 100%;
    z-index: 2;
    border: 3px var(--timeline-border-color) solid;
    position: relative;
    left: 1px;
    margin: 10px auto;
}

.timeline ul li .content {
    width: 50%;
    padding: 0 20px;
}

.timeline ul li:nth-child(odd) .content {
    padding-left: 0;
}

.timeline ul li:nth-child(odd) .date {
    padding-right: 0;
}

.timeline ul li:nth-child(even) .content {
    padding-right: 0;
}

.timeline ul li:nth-child(even) .date {
    padding-left: 0;
}

.timeline ul li .date {
    width: 50%;
    padding: 0 20px;
    font-weight: normal;
}

.timeline ul li .date h4 {
    background-color: var(--timeline-bg-color1);
    width: 150px;
    text-align: center;
    padding: 5px 10px;
    border-radius: 10px;
    text-transform: capitalize;
}

.timeline ul li .content h3 {
    padding: 10px 20px;
    background-color: var(--timeline-bg-color4);
    margin-bottom: 0;
    text-align: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.timeline ul li .content p {
    padding: 10px 20px;
    background-color: var(--timeline-bg-color3);
    margin-top: 0;
    text-align: center;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.timeline ul li:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline ul li:nth-child(even) .date h4 {
    float: right
}

.timeline::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 3px;
    left: 50%;
    background-color: var(--timeline-border-color);
}


@media (max-width: 800px) {

    .timeline ul li {
        display: block;
        padding-top: 20px;
        margin-bottom: 30px;
    }

    .point {

    }

    .timeline ul li .content {
        width: 100%;
        position: relative;
    }

    .timeline ul li .date {
        width: 100%;
        position: relative;
        padding: 0;
    }

    .timeline ul li .date h4 {
        margin: 0 auto;
    }

    .timeline ul li:nth-child(2n) .date {

    }

    .timeline ul li:nth-child(2n) .date h4 {
        float: none;
    }



}
