.timeline {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.timeline-container {
    position: relative;
    margin: 20px 0;
}

.timeline-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    border-radius: 50%;
    position: relative;
}

.timeline-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0 20px;
    width: calc(50% - 50px);
}

.timeline-content h3 {
    color: var(--primary);
    margin-top: 0;
}

.timeline-content p {
    margin: 10px 0 0;
    color: #555;
}

.timeline-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    /* top: 50%; */
    transform: translateY(50%);
    width: 5px;
    height: 100%;
    background-color: var(--secondary);
    z-index: -1;
}

.timeline-item:nth-child(odd)::before {
    left: 50%;
}

.timeline-item:nth-child(even)::before {
    right: 50%;
}

@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: column;
    }

    .timeline-content {
        width: calc(100% - 50px);
        margin: 20px 0;
    }

    .timeline-item::before {
        display: none;
    }
}