/* ============================================================
   Milestone Timeline
   ============================================================ */

.milestone-timeline {
    position: relative;
    /* padding: 60px 0 80px; */
}

/* ── Center progress bar ── */
.milestone-progress-track {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #d0d0d0;
    transform: translateX(-50%);
    border-radius: 2px;
}

.milestone-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: #93D500;
    border-radius: 2px;
    transition: height 0.12s linear;
}

/* ── Items ── */
.milestone-item {
    position: relative;
    display: flex;
    width: 100%;
    padding-bottom: 60px;
}

.milestone-item.left {
    justify-content: flex-start;
    padding-right: calc(50% + 40px);
}

.milestone-item.right {
    justify-content: flex-end;
    padding-left: calc(50% + 40px);
    margin-top: -120px; /* stagger right card lower than left */
}

/* ── Dot on the bar ── */
.milestone-dot {
    position: absolute;
    left: 50%;
    top: 160px;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: transparent;
    border: 3px solid transparent;
    box-shadow: none;
    z-index: 2;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.milestone-dot.is-active {
    border-color: #000000;
    box-shadow: 0 0 0 8px #93D500;
    background: #000000;
}

/* ── Card ── */
.milestone-card {
    border-radius: 5px;
    border: 1px solid #D9D9D9;
    background: #fff;
    overflow: hidden;
    max-width: 100%;
    position: relative;
}

.milestone-card__image {
    display: block;
    /* aspect-ratio: 2 / 1; */
    overflow: hidden;
}

.milestone-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.milestone-card__date {
    padding: 20px 20px 0;
    color: #93D500;
    font-family: Barlow, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 34px;
}

.milestone-card__content {
    padding: 0 20px 20px;
    color: #000;
    font-family: Barlow, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
}

.milestone-card__content p:last-child {
    margin-bottom: 0;
}

/* ── Mobile: single column, bar on left ── */
@media (max-width: 767px) {
    .milestone-progress-track {
        left: 18px;
        transform: none;
    }

    .milestone-item.left,
    .milestone-item.right {
        justify-content: flex-start;
        padding-left: 52px;
        padding-right: 0;
        margin-top: 0;
    }

    .milestone-dot {
        left: 18px;
        transform: translateX(-50%);
    }
}
