.timeline{
    position: relative;
    max-width: 2500px;
    margin: 50px auto;
}
.career .content-title
{
    font-size: var(--h2-font);
    font-weight: 600;
    color: var(--text-color);
}
.career .content-sub-title
{
    font-size: var(--h4-font);
    color: var(--text-color);
}
.container{
    padding: 20px 40px;
    position: relative;
    /* background-color: var(--secondary-color); */
    width: 50%;
    animation: fadedown 1s linear forwards;
}

@keyframes fadedown{
    0%{
        opacity: 0;
        transform: translateY(-50px);
    }
    100%{
        opacity: 1;
        transform: translateY(0);
    }
}
.container:nth-child(odd){
    left: 0;
}
.container:nth-child(even){
    left: 50%;
}
.container:nth-child(even) img{
    left: -25px;
}
.container:nth-child(n) {
    animation-delay: calc((n - 1) * 1s); 
}
.text-box{
    padding: 10px 10px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}
.text-box h3{
    display: inline-block;
    margin-bottom: 10px;
}
.text-box p span{
    font-weight: 900;
}
.container img{
    position: absolute;
    width: 50px;
    object-fit: cover;
    border-radius: 50%;
    right: -25px;
    top: 32px;
    z-index: 10;
}
.timeline::after{
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: #fff;
    border-color: var(--primary-color);
    top: 0;
    left: 50%;
    margin-left: -3px;
    z-index: -1;
    margin-bottom: 1rem;
    animation: moveline 5s linear forwards;
}
@keyframes moveline{ 
0%{
    height: 0%;
}
100%{
    height: 100%;
}}
@media screen and (max-width: 768px) {
    .timeline{
        width: 100%;
    }
    .container{
        width: 100%;
        padding: 10px 30px;
    }
    .container:nth-child(even){
        left: 0;
    }
    .container:nth-child(odd){
        left: 0;
    }
    .container img{
        left: -25px;
    }
    .timeline::after{
        left: 0;
        margin-left: -3px;
    }
}