/*-------------------------------------  Timeline Style  -----------------------------------------*/
.max-elements-timeline {
    position: relative;
    &.vertical-style {
        position: relative;

        .card-year {
            h3 {
                font-size: 44px;
                font-weight: 700;
            }
        }

        .timeline-content {
            position: relative;

            &::after {
                position: absolute;
                content: "";
                left: 50%;
                transform: translateX(-50%);
                top: 0;
                width: 1px;
                height: 100%;
                background-color: #d2e7ff;
            }

            .timeline-card {
                position: relative;
                padding: 30px 0;

                &::after {
                    position: absolute;
                    content: "";
                    left: calc(50% - 14px);
                    top: calc(50% - 1px);
                    width: 28px;
                    height: 2px;
                    z-index: 2;
                }

                &:first-of-type {
                    padding-top: 0;
                }

                &:last-of-type {
                    padding-bottom: 0;
                }

                .line {
                    position: absolute;
                    content: "";
                    left: 50%;
                    transform: translateX(-50%);
                    top: 0;
                    width: 1px;
                    height: 100%;
                    z-index: 6;
                    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
                    transition: all 1s ease-in-out;

                    &.animated {
                        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
                    }
                }
            }

            .card-info {
                position: relative;
                padding: 30px;
                border-radius: 5px;
                background-color: #fff;

                h6 {
                    font-weight: bold;
                    font-size: 22px;
                    margin-bottom: 10px;
                    position: relative;
                    z-index: 5;
                    text-transform: capitalize;
                }

                p {
                    color: #666;
                    position: relative;
                    z-index: 5;
                }

                .num {
                    font-size: 100px;
                    font-weight: 600;
                    line-height: 1;
                    position: absolute;
                    top: 10px;
                    right: 10px;
                    -webkit-background-clip: text;
                    -webkit-text-fill-color: transparent;
                    background-image: linear-gradient(60deg, transparent 0%, #f6f6f6 100%);
                    pointer-events: none;
                }
            }
        }
    }

    &.horizontal-style {
        .timeline-content {
            position: relative;

            .card-info {
                background-color: #F4F4F4;
                border-radius: 100px 100px 50px 5px;
                width: max-content;
                padding: 20px;
                text-align: center;
                margin: 30px auto 55px;
                position: relative;

                &::after {
                    position: absolute;
                    content: "";
                    left: -10px;
                    bottom: -68px;
                    width: 20px;
                    height: 20px;
                    border-radius: 50%;
                    // background-color: #251b3b;
                    background-color: #ee155255;
                    box-shadow: 0 5px 10px #ee155244;
                }

                &::before {
                    position: absolute;
                    content: "";
                    left: -4px;
                    bottom: -62px;
                    width: 8px;
                    height: 8px;
                    border-radius: 50%;
                    background-color: #fff;
                }

                &.animated {
                    &::after {
                        // background-color: #ee155255;
                        // box-shadow: 0 5px 10px #ee155244;
                    }
                }

                .icon {
                    width: 140px;
                    height: 140px;
                    border-radius: 50%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    padding: 20px;
                    margin-bottom: 40px;
                }

                .info {
                    max-width: 140px;
                    padding-bottom: 10px;

                    h6 {
                        font-style: 16px;
                    }
                }

                .year {
                    position: absolute;
                    left: -10px;
                    bottom: -100px;
                    font-size: 16px;
                }
            }
        }

        .progress {
            height: 5px;
            border-radius: 10px;
            padding-right: 0;
            padding-left: 0;
            background-color: #fff1;

            .progress-bar {
                background-color: var(--color-main);
                background: linear-gradient(to right, #ee1552, #435eba);
                border-radius: 10px;
                width: 1%;
                transition: all 4s linear;

                &.animated {
                    width: 100%;
                }
            }
        }
    }
}

@media screen and (max-width: 991px) {
    .max-elements-timeline.horizontal-style {
        .timeline-content {
            .card-info {
                &::before {
                    bottom: 0;
                }
                &::after {
                    bottom: -5px;
                }
                .year {
                    bottom: -50px;
                }
            }
        }
        .progress {
            display: none;
        }
    }
}