.timeline {
    position: relative;
    max-width: 700px;
    margin: 30px auto 20px;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #f40000;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 40px;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
    padding-right: 50px;
    padding-left: 0;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
    padding-left: 50px;
    padding-right: 0;
}

.timeline-badge {
    position: absolute;
    top: 8px;
    width: 52px;
    height: 52px;
    background: #f40000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(244, 0, 0, 0.3);
}

.timeline-item.left .timeline-badge {
    right: -26px;
}

.timeline-item.right .timeline-badge {
    left: -26px;
}

.timeline-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.timeline-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
}

.timeline-card h3 {
    color: #f40000;
    font-size: 1.1rem;
    margin: 0 0 8px;
    font-weight: 700;
}

.timeline-card p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    font-family: 'Lato', sans-serif;
}

@media (max-width: 700px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding: 0 0 30px 55px;
        text-align: left;
    }

    .timeline-item.left {
        left: 0;
        text-align: left;
        padding-right: 0;
        padding-left: 55px;
    }

    .timeline-item.right {
        left: 0;
        padding-left: 55px;
        padding-right: 0;
    }

    .timeline-item.left .timeline-badge,
    .timeline-item.right .timeline-badge {
        left: -5px;
        right: auto;
        width: 46px;
        height: 46px;
        font-size: 0.75rem;
    }
}
