.investment-timeline {
    list-style: none;
    display: flex;
    justify-content: space-between;
    padding: 0px 0 30px;
    margin: 0;
    position: relative;
}

/* Timeline horizontal line */
.investment-timeline::before {
    content: "";
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    height: 2px;
    background: #dee2e6;
}

/* Each month */
.investment-timeline li {
    width: 14%;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Dot */
.dot {
    position: relative;
    z-index: 2;
    width: 14px;
    height: 14px;
    background: var(--adminuiux-theme-1);
    border-radius: 50%;
    display: inline-block;
    top: 53px; /* aligns dot on line */
}

/* Month text */
.month {
    margin-top: 75px;
    font-size: 13px;
    font-weight: 500;
}

/* Info boxes */
.info-box {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 170px;
    background: var(--bs-body-bg);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 10px;
    font-size: 13px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* Connector line box → dot */
.info-box::after {
    content: "";
    position: absolute;
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 38px;
    background: #dee2e6;
}

/* Final total emphasis */
.total-box {
    border-color: var(--bs-success);
    background: rgba(25, 135, 84, 0.08);
}
@media (max-width: 768px) {

    .investment-timeline {
        flex-direction: column;
        padding: 0;
    }

    /* Vertical timeline line */
    .investment-timeline::before {
        top: 0;
        bottom: 0;
        left: 18px;
        width: 2px;
        height: 100%;
    }

    .investment-timeline li {
        width: 100%;
        padding-left: 50px;
        margin-bottom: 40px;
        text-align: left;
    }

    /* Dot */
    .dot {
        position: absolute;
        left: 11px;
        top: 6px;
    }

    /* Info box */
    .info-box {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 8px;
    }

    /* Vertical connector */
    .info-box::after {
        content: "";
        position: absolute;
        left: -31px;
        top: 100%;
        width: 2px;
        height: 20px;
        background: #dee2e6;
    }

    /* Month label */
    .month {
        margin-top: 4px;
        font-size: 13px;
    }
}
