/* =========================================
   MILESTONES TIMELINE - COMPLETE CSS
========================================= */

.milestones-section {
    padding: 60px 0;
    background: #fff;
}

.milestones-timeline {
    position: relative;
    max-width: 1400px;
    margin: 80px auto 0;
    padding-bottom: 40px;
}

/* Center vertical line */
.milestones-timeline::before {
    content: "";
    position: absolute;
    top: -80px;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #555;
    transform: translateX(-50%);
}

/* Each milestone */
.milestone-item {
    position: relative;
    width: 100%;
    min-height: 190px;
}

/* Center dot */
.milestone-dot {
    position: absolute;
    top: 0;
    left: 50%;
    width: 30px;
    height: 30px;
    background: #3d3f89;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

/* Year / milestone title */
.milestone-year {
    position: absolute;
    top: 10px;
    width: 43%;
    color: #3d3f89;
    font-size: 24px;
    line-height: 1.1;
}

/* Description card */
.milestone-card {
    position: absolute;
    top: 70px;
    width: 45%;
    min-height: 108px;
    display: flex;
    align-items: center;
    padding: 25px 35px;
    background: #fff;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
    border-radius: 0;
}

/* Left side */
.milestone-left .milestone-year {
    right: 54%;
    text-align: right;
}

.milestone-left .milestone-card {
    right: 54%;
}

/* Right side */
.milestone-right .milestone-year {
    left: 54%;
    text-align: left;
}

.milestone-right .milestone-card {
    left: 54%;
}

/* Section title */
.milestones-section .sec-title {
    margin-bottom: 20px;
}

.milestones-section .sec-title .title {
    font-size: 36px;
    font-weight: 600;
}

.milestones-section .sec-title .text {
    margin-top: 10px;
    font-size: 17px;
}
 .milestone-card p{
        width:100%;
    }

/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .milestones-timeline {
        margin-top: 60px;
    }

    .milestone-year {
        font-size: 36px;
    }

    .milestone-card {
        font-size: 18px;
        padding: 20px 25px;
    }
}

/* =========================================
   MOBILE
========================================= */

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .milestones-section {
        padding: 40px 15px;
    }

    .milestones-section .sec-title .title {
        font-size: 28px;
    }

    .milestones-section .sec-title .text {
        font-size: 15px;
    }

    .milestones-timeline {
        margin-top: 50px;
        padding-left: 0;
        padding-right: 0;
    }

    /* Keep vertical line in center */
    .milestones-timeline::before {
        left: 50%;
        transform: translateX(-50%);
        top: -50px;
        width: 3px;
    }

    .milestone-item {
        min-height: 200px;
    }

    /* Keep dot in center */
    .milestone-dot {
        left: 50%;
        width: 22px;
        height: 22px;
        transform: translateX(-50%);
    }

    /* =========================================
       YEAR
    ========================================= */

    .milestone-year {
        width: 42%;
       font-size: 15px;
        top: -5px;
        
    }

    /* LEFT YEAR */
    .milestone-left .milestone-year {
        left: auto;
        right: 54%;
        text-align: right;
    }

    /* RIGHT YEAR */
    .milestone-right .milestone-year {
        left: 54%;
        right: auto;
        text-align: left;
    }

    /* =========================================
       CARD
    ========================================= */

    .milestone-card {
        width: 45%;
        min-height: 100px;
        top: 50px;
        padding: 18px 20px;
        font-size: 16px;
    }

    /* LEFT CARD */
    .milestone-left .milestone-card {
        left: auto;
        right: 54%;
    }

    /* RIGHT CARD */
    .milestone-right .milestone-card {
        left: 54%;
        right: auto;
        position: relative;
    }

    .milestone-card p {
        width: 100%;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .milestones-section {
        padding: 30px 10px;
    }

    .milestones-section .sec-title .title {
        font-size: 24px;
    }

    .milestones-section .sec-title .text {
        font-size: 14px;
        line-height: 1.5;
    }

    .milestones-timeline {
        padding-left: 0;
        padding-right: 0;
        margin-top: 45px;
    }

    /* Keep line centered */
    .milestones-timeline::before {
        left: 50%;
        transform: translateX(-50%);
        top: -45px;
        width: 3px;
    }

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

    .milestone-item {
        min-height: 190px;
    }

    /* =========================================
       YEAR
    ========================================= */

    .milestone-year {
        width: 42%;
        font-size: 20px;
        top: -3px;
    }

    /* LEFT YEAR */
    .milestone-left .milestone-year {
        left: auto;
        right: 54%;
        text-align: right;
    }

    /* RIGHT YEAR */
    .milestone-right .milestone-year {
        left: 54%;
        right: auto;
        text-align: left;
    }

    /* =========================================
       CARD
    ========================================= */

    .milestone-card {
        width: 45%;
        top: 45px;
        min-height: 90px;
        padding: 14px 15px;
        font-size: 14px;
    }

    /* LEFT CARD */
    .milestone-left .milestone-card {
        left: auto;
        right: 54%;
    }

    /* RIGHT CARD */
    .milestone-right .milestone-card {
        left: 54%;
        right: auto;
    }

    .milestone-card p {
        width: 100%;
        margin-bottom: 5px;
    }
}
