.timeline {
    align-items: center;
    width: 90%;
    max-width: 900px;
    height: 260px;
}

.line {
    position: absolute;
    top: 100px;
    left: 0;
    height: 4px;
    background-color: #999;
    width: 0;
    animation: drawLine 2s forwards ease-out;
}

@keyframes drawLine {
    to {
        width: 100%;
    }
}

.pin {
    position: absolute;
    top: 50px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pin-shape {
    width: 30px;
    height: 30px;
    background-color: #444;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: relative;
}

.pin-shape::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.label {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #333;
    max-width: 150px;
}

/* ===== MOBILE: Vertical Timeline ===== */
@media (max-width: 768px) {
    .timeline {
        height: auto !important;
        width: 85%;
        padding: 10px 0 10px 50px;
        position: relative;
    }

    .line {
        top: 0;
        left: 25px;
        width: 3px !important;
        height: 0;
        animation: drawLineVertical 2s forwards ease-out;
    }

    @keyframes drawLineVertical {
        to {
            height: 100%;
        }
    }

    .pin {
        position: relative;
        top: auto;
        left: auto !important;
        transform: none;
        flex-direction: row;
        align-items: center;
        margin-bottom: 28px;
    }

    .pin:last-child {
        margin-bottom: 0;
    }

    .pin-shape {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    .pin-shape::after {
        width: 10px;
        height: 10px;
    }

    .label {
        margin-top: 0;
        margin-left: 16px;
        text-align: left;
        max-width: none;
        font-size: 13px;
    }
}
