.timeline {
    position: relative;
    width: 50vw;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ffffff;
}

.timeline-item {
    position: relative;
    margin: 20px 0;
}

.timeline-content {
    position: relative;
    width: 75%;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.26);
    background: rgb(255, 255, 255);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    right: 29.5%;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 55%;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: -10px;
    width: 20px;
    height: 20px;
    background-color: #0084ff;
    clip-path: circle(50%);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    left: calc(100% - 10px);
}

.timeline-item:nth-child(even) .timeline-content::after {
    right: calc(100% - 10px);
}

.timeline-content h2 {
    margin: 10px 10px 10px 10px;
    color: rgb(0, 0, 0);
}

.timeline-content p {
    margin: 0;
    color: #000000;
}

.timeline-content a {
    color: #262672;
    text-decoration: none;
}

.timeline-content a:hover {
    text-decoration: underline;
}

.timeline-content:hover {
    transform: scale(1.1);
    transition: transform 0.3s;
}

@media (max-width: 768px) {

    .timeline{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .timeline::before{
        display: none;
    }

    .timeline-item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 20px 0;
    }


    .timeline-content {
        width: 350px;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        right: 0;
    }

    .timeline-item:nth-child(even) .timeline-content {
        right: 0;
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content::after {
        left: 0;
        right: 0;
        
    }

    .timeline-content::after {
        display: none;
    }
}