.timeline {
    position: relative;
    max-width: 900px;
    margin: 20px auto;
    padding: 40px 0;
}

    .timeline::after {
        content: "";
        position: absolute;
        width: 3px;
        background-color: var(--secondary-color);
        top: 100px;
        bottom: 230px;
        left: 50%;
        margin-left: -2px;
    }

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-content p {
    text-align: justify;
}

.timeline-item::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: white;
    border: 3px solid var(--secondary-color);
    top: 60px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -14px;
}

.timeline-item:nth-child(even)::after {
    left: -15px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    top: 67px;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: 2;
    background: rgba(23, 188, 46, 0.5);
}

.timeline-item:nth-child(odd)::before {
    right: 0 !important;
    left: 449px;
}

.timeline-item:nth-child(even)::before {
    left: 0 !important;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

    .timeline-item:nth-child(even)::before {
        left: -50%;
    }

.timeline-item:nth-child(odd)::before {
    right: -50%;
}

/* Media Query for (912px width) */
@media screen and (max-width: 990px) {
    .timeline::after {
        bottom: 320px;
    }

    .timeline-item:nth-child(odd)::before {
        right: 0 !important;
        left: 347px;
    }

    .timeline-item:nth-child(even)::before {
        left: 0 !important;
    }
}

/* Media Query for (820px width) */
@media screen and (max-width: 820px) {
    .timeline::after {
        bottom: 320px;
    }

    .timeline-item:nth-child(odd)::before {
        right: 0 !important;
        left: 347px;
    }

    .timeline-item:nth-child(even)::before {
        left: 0 !important;
    }
}

/* Media Query for Mobile Devices */
@media screen and (max-width: 768px) {
    .proud-heading p {
        width: 100% !important;
    }

    .timeline::after {
        left: 10px;
        margin-left: 0;
        bottom: 190px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        margin-bottom: 20px;
    }

        .timeline-item::after {
            top: 60px;
        }

        .timeline-item:nth-child(odd) {
            left: -4px;
        }

        .timeline-item:nth-child(even) {
            left: -2px;
        }

            .timeline-item:nth-child(even)::after,
            .timeline-item:nth-child(odd)::after {
                left: -1px;
                right: auto;
            }

        .timeline-item:nth-child(odd)::before {
            right: 0 !important;
            left: 14px;
        }

        .timeline-item:nth-child(even)::before {
            left: 14px !important;
        }
}

/* Media Query for smaller Mobile Devices */
@media screen and (max-width: 480px) {
    .proud-heading p {
        width: 100% !important;
    }

    .timeline::after {
        left: 10px;
        margin-left: 0;
        bottom: 262px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        margin-bottom: 20px;
    }

        .timeline-item::after {
            top: 60px;
        }

        .timeline-item:nth-child(odd) {
            left: -4px;
        }

        .timeline-item:nth-child(even) {
            left: -2px;
        }

            .timeline-item:nth-child(even)::after,
            .timeline-item:nth-child(odd)::after {
                left: -1px;
                right: auto;
            }

        .timeline-item:nth-child(odd)::before {
            right: 0 !important;
            left: 14px;
        }

        .timeline-item:nth-child(even)::before {
            left: 14px !important;
        }
}

/* Media Query for (360px width) */
@media screen and (max-width: 360px) {
    .timeline::after {
        bottom: 320px;
    }
}
