/* Timeline Component */
.timeline-section {
    padding: 5rem 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    justify-content: flex-end;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 3rem;
    padding-right: 0;
}

.timeline-date {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: bold;
    z-index: 1;
}

.timeline-content {
    width: calc(50% - 4rem);
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    right: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid white;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: auto;
    left: -10px;
    border-left: none;
    border-right: 10px solid white;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    z-index: 1;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 4rem;
        padding-right: 0;
    }
    
    .timeline-date {
        left: 2rem;
        transform: translateX(0);
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .timeline-content::before {
        right: auto;
        left: -10px;
        border-left: none;
        border-right: 10px solid white;
    }
    
    .timeline-item::after {
        left: 2rem;
        transform: translateX(0);
    }
}