.milestone-page {
    background-color: #eff7ed;
}

.milestoneItem {
    background-color: #fff;
    border: 2px dashed #064b44;
    border-radius: 20px;
    padding: 20px;
}

.h_100 {
    height: 100%;
}

.section_2 {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;

    .mileStoneBgImg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center center;
        }
    }
}

.milestoneWrap {
    position: relative;
    z-index: 1;
    padding: 0 30px;
    width: 100%;

    .milestoneInner {
        display: flex;
        flex-wrap: nowrap;
        gap: 30px;
        width: max-content;
        will-change: transform;

        .mileStoneItem {
            width: 340px;
            flex: 0 0 340px;

            p {
                color: #fff;
            }

            .milestoneBoxInner {
                min-height: 300px;
                padding: 20px;
                background-image: linear-gradient(to bottom, #074b44 0 75%, #fdfdfd00 100% 100%) !important;

                &:last-child {
                    background-image: linear-gradient(to bottom, #074b4400 0 50%, #fdfdfd00 100% 100%) !important;
                }
            }

            &:nth-child(even) {
                .milestoneBox {
                    display: flex;
                    flex-direction: column-reverse;
                    gap: 50px;

                    .milestoneBoxInner {
                        display: flex;
                        align-items: flex-end;
                        background-image: linear-gradient(to top, #074b44 0 50%, #fdfdfd00 100% 100%) !important;

                        &:last-child {
                            background-image: none !important;
                        }
                    }
                }
            }
        }
    }
}

/* below 992px the section is not pinned: items swipe natively */

@media(max-width: 1440px) {
    h4.fz_30 {
        font-size: 26px !important;
    }

    h4,
    .h4 {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .milestoneWrap {
        .milestoneInner {
            .mileStoneItem {
                .milestoneBoxInner {
                    min-height: 230px;

                    h4,
                    .h4 {
                        font-size: 20px !important;
                    }

                    ul li,
                    p {
                        font-size: 14px;
                    }
                }
            }
        }
    }
}


@media (max-width: 1099px) {
    .section_2 {
        height: auto;
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .milestoneWrap {
        padding: 0;

        .milestoneInner {
            display: block;
            width: 100%;
            will-change: unset;
            padding-bottom: 80px;

            .mileStoneItem {
                padding: 0 15px;

                &:nth-child(2n) {
                    .milestoneBox {
                        display: block;

                        .milestoneBoxInner {
                            display: block;
                            background-image: linear-gradient(to bottom, #074b44 0 50%, #fdfdfd00 100% 100%) !important;

                            &:last-child {
                                display: none;
                            }
                        }
                    }
                }

                .milestoneBoxInner {
                    &:last-child {
                        display: none;
                    }
                }
            }

            .slick-arrow {
                position: absolute;
                bottom: 0;
                width: 40px;
                height: 40px;
                border-radius: 50%;
                font-size: 0;
                background-color: #fff;

                &::after {
                    content: "";
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 16px;
                    color: #074b44;
                    font-family: fontawesome;
                }

                &.slick-prev {
                    left: calc(50% - 45px);

                    &::after {
                        content: "\f060";
                    }
                }

                &.slick-next {
                    right: calc(50% - 45px);

                    &::after {
                        content: "\f061";
                    }
                }

                &.slick-disabled {
                    opacity: 0.7;
                    cursor: default;
                }
            }
        }
    }

    .milestoneItem {
        padding: 14px;
    }

    .eachIconH {
        width: 100%;
    }

    h4.fz_30 {
        font-size: 24px !important;
    }
}

@media(max-width: 991px) {

    h4,
    .h4 {
        font-size: 22px !important;
    }
}

.readMoreBtn {
    transition: 0.6s;
    display: inline-flex !important;

    span {
        width: 58px;
        height: 54px;
        padding: 14px;
        transition: 0.6s;
        margin-right: 3px;
        border-radius: 10px;
        border: 2px solid #064B44;
        background-color: var(--greenDk);

        img {
            transition: 0.6s;
        }
    }

    strong {
        width: 160px;
        height: 54px;
        padding: 10px;
        transition: 0.6s;
        color: #000000;
        border-radius: 10px;
        border: 2px solid #064B44;
    }

    &:hover {
        span {
            background-color: transparent;

            img {
                filter: invert(1);
            }
        }

        strong {
            color: #fff;
            background-color: var(--greenDk);
        }
    }
}
