.mt-timeline {
    --mt-line-color: #e0e0e0;
    --mt-line-width: 3px;
    --mt-icon-box: 50px;
    position: relative;
    padding: 10px 0;
}

/* The vertical line */
.mt-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--mt-line-width);
    background: var(--mt-line-color);
}

.mt-item {
    position: relative;
    box-sizing: border-box;
    margin-bottom: 40px;
}
.mt-item:last-child { margin-bottom: 0; }

/* Icon circle */
.mt-icon {
    position: absolute;
    top: 15px;
    width: var(--mt-icon-box);
    height: var(--mt-icon-box);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #6c5ce7;
    color: #fff;
    z-index: 2;
}
.mt-icon i { font-size: 20px; }
.mt-icon svg { width: 20px; height: 20px; fill: #fff; }

/* Box */
.mt-box {
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.mt-label {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 10px;
    border-radius: 20px;
    background: #f1effd;
    color: #6c5ce7;
    font-size: 13px;
    font-weight: 600;
}
.mt-heading { margin: 0 0 8px; }
.mt-content p:last-child { margin-bottom: 0; }

/* ---------- Alternating layout ---------- */
.mt-layout-alternate::before { left: 50%; transform: translateX(-50%); }
.mt-layout-alternate .mt-item { width: 50%; padding-right: calc(var(--mt-icon-box) / 2 + 30px); }
.mt-layout-alternate .mt-item .mt-icon { right: calc(var(--mt-icon-box) / -2); }

.mt-layout-alternate .mt-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: calc(var(--mt-icon-box) / 2 + 30px);
}
.mt-layout-alternate .mt-item:nth-child(even) .mt-icon { right: auto; left: calc(var(--mt-icon-box) / -2); }

/* ---------- One-side layout ---------- */
.mt-layout-left::before { left: calc(var(--mt-icon-box) / 2); transform: translateX(-50%); }
.mt-layout-left .mt-item { padding-left: calc(var(--mt-icon-box) + 25px); }
.mt-layout-left .mt-icon { left: 0; }

/* ---------- Mobile: collapse alternating to one side ---------- */
@media (max-width: 767px) {
    .mt-layout-alternate::before { left: calc(var(--mt-icon-box) / 2); }
    .mt-layout-alternate .mt-item,
    .mt-layout-alternate .mt-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-right: 0;
        padding-left: calc(var(--mt-icon-box) + 25px);
    }
    .mt-layout-alternate .mt-item .mt-icon,
    .mt-layout-alternate .mt-item:nth-child(even) .mt-icon { left: 0; right: auto; }
}