/* counter 1 start -------------------------*/
.counter-area {
    background: #F8F8F8;
    border-radius: 30px;

    @include lg {
        padding: 40px 0;
    }

}

.counter-card {
    position: relative;
    padding: 80px 30px;
    border: 12px solid transparent;
    transition: all 0.6s ease-in-out;
    margin: -20px 0;

    @include lg {
        padding: 40px 30px;
    }

    &.style2 {
        padding: 120px 40px;

        @include xl {
            padding: 120px 20px;
        }

        @include lg {
            padding: 40px 20px;
        }
    }

    .box-number {
        font-weight: 600;
        font-size: 84px;
        line-height: 84px;
        text-transform: capitalize;
        text-align: center;
        color: #1C1C25;
        margin-top: -0.5rem;
        margin-bottom: 0;

        @include sm {
            font-size: 64px;
            line-height: 64px;
        }

        .plus {
            font-weight: 300;
            color: $theme-color;
        }
    }

    .counter-text {
        font-weight: 600;
        font-size: 20px;
        line-height: 30px;
        text-align: center;
        color: #656A74;
        display: block;

        @include xl {
            font-size: 18px;
            line-height: 28px;
        }

        span {
            display: block;
        }
    }

    &:hover {
        background-color: $theme-color;
        border: 12px solid $white-color;

        .box-number {
            color: $white-color;

            .plus {
                color: $white-color;
            }
        }

        .counter-text {
            color: $white-color;
        }
    }
}

/* counter 1 end -------------------------*/
/* counter 2 start -------------------------*/
.counter-area2 {
    margin: 0 80px;
    border-radius: 0 0 50px 50px;

    @media(max-width: 1699px) {
        margin: 0;
    }
}

.counter-box {
    @include lg {
        text-align: center;
    }

    .box-number {
        font-weight: 600;
        font-size: 64px;
        line-height: 64px;
        text-transform: capitalize;
        color: $white-color;
        margin-bottom: 0;

        .plus {
            font-weight: 300;
        }
    }

    .box-text {
        color: $white-color;

        span {
            display: block;
        }
    }
}

/* counter 2 end -------------------------*/

/* counter 3 start -------------------------*/
.counter-grid {
    .box-number {
        font-weight: 600;
        font-size: 84px;
        line-height: 94px;
        text-transform: capitalize;
        text-align: center;
        color: #1C1C25;
        margin-bottom: 0;

        @include sm {
            font-size: 64px;
            line-height: 64px;
        }

        .plus {
            font-weight: 300;
            color: $theme-color;
        }
    }

    .counter-text {
        font-weight: 500;
        font-size: 18px;
        line-height: 28px;
        text-align: center;
        color: #656A74;
        display: block;

        @include xl {
            font-size: 18px;
            line-height: 28px;
        }

        span {
            display: block;
        }
    }
}

/* counter 3 end -------------------------*/
/* counter 4 start -------------------------*/

.counter-area4 {
    padding: 180px 0 120px;
    background-color: #022124;
    clip-path: polygon(100% 0, 100% 20%, 100% 100%, 80% 100%, 20% 100%, 0 100%, 0 10%);

    @include md {
        padding: 140px 0 80px;
    }
}

.counter-item {
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 30px;
    z-index: 2;

    @include md {
        text-align: center;
    }

    @include xs {
        border-left: 0;
        padding-left: 0;
    }

    &:after {
        position: absolute;
        left: -1px;
        top: 0;
        width: 1px;
        height: 37px;
        background-color: $theme-color;
        animation-timing-function: linear;
        animation-name: topBottomLine;
        animation-duration: 9s;
        animation-iteration-count: infinite;
        content: "";

        @include xs {
            display: none;
        }
    }

    .box-number {
        font-weight: 400;
        font-size: 54px;
        line-height: 54px;
        color: $white-color;
        margin-bottom: 5px;
    }

    .counter-number {
        font-weight: 600;
    }

    .box-text {
        font-weight: 500;
        font-size: 18px;
        line-height: 28px;
        color: $white-color;
    }
}

/* counter 4 end -------------------------*/
/* Download 1 start -------------------------*/
.download-title {
    color: $white-color;
    background: #8482FF;
    border-radius: 30px;

}

.download-btn {
    .th-btn {
        img {
            margin-right: 11px;
        }

        &:hover {
            img {
                filter: brightness(0.9) invert(1);
            }
        }
    }
}

/* counter card2 start ---------------------*/
.counter-card2 {
    position: relative;
    border-radius: 20px;
    text-align: center;
    padding: 80px 0;
    min-width: 418px;
    z-index: 2;

    @media(max-width: 1699px) {
        min-width: 100%;
    }

    &:before {
        content: "";
        position: absolute;
        inset: 0;
        mask-image: url("../img/shape/counter-border.png");
        background-color: $smoke-color;
        mask-size: 100% 100%;
        mask-repeat: no-repeat;
        z-index: -1;
    }

    .box-number {
        font-weight: 600;
        font-size: 74px;
        line-height: 74px;
        text-transform: capitalize;
        color: $title-color;
        margin-top: -0.3rem;
        margin-bottom: 0;

        .plus {
            font-weight: 400;
        }
    }

    .box-text {
        font-weight: 500;
        font-size: 18px;
        line-height: 28px;
        margin-bottom: -0.3rem;

        span {
            display: block;
        }
    }
}