.toll-timeline {
    position: relative;
    overflow-x: auto;
    padding: 80px 40px;
}

/* ================= TRACK ================= */
.timeline-track {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 280px;
    grid-template-rows: 1fr 60px 1fr;
    column-gap: 80px;
    width: max-content;
}

/* ================= CENTER LINE ================= */
.timeline-track::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    /*background: #dee2e6;*/
    background: #3cab3b;
    transform: translateY(-50%);
    z-index: 0;
}

/* ================= END DOT ================= */
.timeline-track::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 14px;
    height: 14px;
    background: #0eaf0c;
    border-radius: 50%;
    transform: translate(50%, -50%);
    z-index: 1;
}

/* ================= ITEMS ================= */
.timeline-item {
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.timeline-item.above {
    grid-row: 1;
    align-items: flex-end;
}

.timeline-item.below {
    grid-row: 3;
    align-items: flex-start;
    margin-left: 140px; /* centers below card */
}

/* If last card is BELOW, extend track width */
.timeline-track:has(.timeline-item.below:last-child) {
    padding-right: 140px;
}

/* ================= CONNECTORS ================= */
.timeline-item::after {
    content: "";
    position: absolute;
    width: 2px;
    background: #6c757d;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item.above::after {
    bottom: -30px;
    height: 30px;
}

.timeline-item.below::after {
    top: -30px;
    height: 30px;
}

/* ================= START DOT ================= */
/* ================= START DOT ================= */
.timeline-track > .timeline-start-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    background: #0eaf0c;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}


/* ================= CARD ================= */
.timeline-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    width: 260px;
    text-align: center;
    border: 2px solid #0eaf0c;
    position: relative;
}

/* ================= CONNECTOR DOT (ATTACHED TO LINE) ================= */
.timeline-item::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: #0eaf0c;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* Above card → dot at bottom of connector */
.timeline-item.above::before {
    bottom: -36px; /* 30px connector + 6px radius */
}

/* Below card → dot at top of connector */
.timeline-item.below::before {
    top: -36px;
}



/* ================= INDEX BADGE ================= */
.timeline-index {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #0eaf0c;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================= SCROLLBAR ================= */
.toll-timeline::-webkit-scrollbar {
    height: 6px;
}

.toll-timeline::-webkit-scrollbar-thumb {
    background: #bcbcbc;
    border-radius: 10px;
}
