* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #2196F3;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: rgb(255, 255, 255);
    border: 4px solid #2196F3;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -16px;
}

.timeline-date {
    position: absolute;
    width: 200px;
    right: -220px;
    top: 15px;
    font-size: 18px;
    color: #2196F3;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -220px;
    text-align: left;
}

.timeline-content {
    padding: 20px;
    background-color: rgb(243, 251, 255);
    position: relative;
    border-radius: 6px;
}

.timeline-content h3 {
    margin: 0 0 10px 0;
    color: #2196F3;
}

.timeline-content p {
    margin: 0;
}

/* Responsive styling */
@media (max-width: 768px) {
    .timeline::after {
        left: 90px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 120px;
        padding-right: 25px;
        margin-bottom: 20px;
    }

    .timeline-item::after {
        left: 75px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline-date {
        right: auto;
        left: 15px;
        text-align: left;
    }

    .timeline-item:nth-child(even) .timeline-date {
        left: 15px;
    }
}

@media (max-width: 480px) {
    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 25px;
        margin-bottom: 20px;
    }

    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        left: 4px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline-date {
        right: auto;
        left: 50px;
        top: 0;
        text-align: left;
        font-size: 16px;
    }

    .timeline-item:nth-child(even) .timeline-date {
        left: 50px;
    }
}
