.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-dark);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left { left: 0; }
.right { left: 50%; }

.right::after { left: -10px; }

.timeline-content {
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.date {
    color: var(--secondary-color);
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.company {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
    .timeline::after { left: 31px; }
    .timeline-item { 
        width: 100%; 
        padding-left: 70px; 
        padding-right: 25px;
        left: 0 !important; /* Đảm bảo các item bên phải quay về lề trái */
    }
    .timeline-item::after { 
        left: 21px !important; /* Dùng !important để override các class left/right cụ thể */
    }
}
