.counter-section {
    position: relative;

    .line-shape {
        position: absolute;
        top: -15%;
        left: 0;

        @include breakpoint (max-xxl){
            top: 0;
        }

        @include breakpoint (max-xl){
            display: none;
        }

        img {
            @include imgw;
        }
    }
}

.counter-wrapper {
    .counter-items {
        position: relative;
        padding-bottom: 45px;

        &::before {
            @include before;
            background-color: $white;
            border-radius: 9px;
            top: 60px;
            height: initial;
            @include transition;
        }

        .icon {
            width: 106px;
            height: 106px;
            line-height: 122px;
            background-color: $white;
            color: $theme-color;
            text-align: center;
            border-radius: 50%;
            font-size: 56px;
            position: relative;
            z-index: 9;
            box-shadow: $shadow;
            @include transition;
             transition: transform 500ms ease;

            img {
                @include transition;
            }
        }

        .content {
            margin-top: 30px;
            position: relative;
            z-index: 9;

            h2 {
                font-size: 65px;
                margin-bottom: 5px;

                @include breakpoint (max-md){
                    font-size: 52px;
                }

                @include breakpoint (max-sm){
                    font-size: 48px;
                }
            }

            p {
                font-size: 18px;
                font-weight: 500;
            }
        }

        &:hover {
            &::before {
                background-color: $theme-color;
            }

            .icon {
                transform: scaleX(-1);
            }

            .content {
                h2,p {
                    color: $white;
                }
            }
        }
    }
}

.counter-section-2 {
    position: relative;

    &::before {
        @include before;
        background-color: $bg-color-6;
        z-index: -1;
        top: 60%;
    }
}

.counter-wrapper-2 {
    padding: 65px 105px;
    background-color: $theme-color-2;
    border-radius: 11px;
    @include flex;
    justify-content: space-between;

    @include breakpoint (max-lg){
        flex-wrap: wrap;
        padding: 50px 50px;
        gap: 30px;
    }

    @include breakpoint (max-xxs){
       justify-content: center;
       text-align: center;
    }

    .counter-items {
        &:not(:last-child){
            border-right: 1px solid #ffffff1a;
            padding-right: 80px;

            @include breakpoint (max-xl){
               padding-right: 20px;
            }

            @include breakpoint (max-lg){
                border: none;
                padding-right: 0;
            }
        }
        
        .icon {
            font-size: 52px;
            color: $white;
        }

        .content {
            margin-top: 25px;

            @include breakpoint (max-sm){
               margin-top: 15px;
            }

            h2 {
                font-size: 50px;
                color: $white;
                font-weight: 600;

                @include breakpoint (max-sm){
                    font-size: 38px;
                }
            }

            p {
                color: $white;
                margin-top: 10px;
                font-size: 18px;

                @include breakpoint (max-sm){
                   font-size: 16px;
                }
            }
        }
    }
}

.countries-card-items {
    @include flex;
    gap: 20px;
    background-color: $white;
    box-shadow: $shadow;
    margin-top: 30px;
    padding: 40px 25px;
    border-radius: 10px;
    @include transition;

    @include breakpoint (max-lg){
        flex-wrap: wrap;
    }

    .thumb {
        width: 60px;
        height: 60px;

        img {
            @include imgw;
            @include transition;
        }
    }

    .content {
        h3 {
            margin-bottom: 5px;

            a {
                &:hover {
                    color: $theme-color;
                }
            }
        }
    }

    &:hover {
        transform: translateY(-10px);
        .thumb {
            img {
                transform: rotate(360deg);
            }
        }
    }
}

.country-box-items {
    position: relative;
    z-index: 9;
    text-align: center;
    margin-top: 30px;
    padding: 30px 15px;

    &::before {
        @include before;
        background-color: $white;
        z-index: -1;
        border-radius: 10px;
        top: 100px;
        height: initial;
    }

    .flag-thumb {
        img {
           @include transition;
        }
    }

    .flag-content {
        margin-top: 20px;

        h3 {
            margin-bottom: 5px;

            a {
                &:hover {
                    color: $theme-color;
                }
            }
        }
    }

    &:hover {
        .flag-thumb {
            img {
                transform: scaleX(-1);
            }
        }
    }

    &.style-2 {
        margin-bottom: 30px;

        &::before {
            background-color: $white;
            top: initial;
            height: 65%;
            box-shadow: $shadow;
            @include transition;
        }

        &:hover {
            &::before {
                background-color: $theme-color;
                height: 100%;
            }

            .flag-content {
                h3 {
                    a {
                       color: $white;
                    }
                }

                p {
                    color: $white;
                }
            }
        }
    }
}

.country-section-4 {
    margin-bottom: -30px;

    .swiper-slide.swiper-slide-active{
        .country-box-items {
            &.style-2 {
                &::before {
                    background-color: $theme-color;
                    height: 100%;
                }

                .flag-thumb {
                    img {
                        transform: scaleX(-1);
                    }
                }
    
                .flag-content {
                    h3 {
                        a {
                           color: $white;
                        }
                    }
    
                    p {
                        color: $white;
                    }
                }
               
            }
        }
    }

}

.single-country-items {
    margin-top: 30px;
    background-color: $white;
    border-radius: 10px;

    .country-image {
        position: relative;

        img {
            @include imgw;
            border-radius: 10px 10px 0 0;
        }

        .flag {
            position: absolute;
            bottom: -20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: $white;
            box-shadow: $shadow;
            line-height: 50px;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            text-align: center;

            img {
                width: 35px;
                height: 35px;
                @include transition;
            }
        }
    }

    .contry-content {
        text-align: center;
        padding: 30px 25px 20px;

        h3 {
            margin-bottom: 5px;

            a {
                &:hover {
                    color: $theme-color;
                }
            }
        }
    }

    &:hover {
        .country-image {
            .flag {
                img {
                    transform: rotate(360deg);
                }
            }
        }
    }
}

.country-details-wrapper {
    .country-details-items {
        .country-content {
            margin-bottom: 40px;

            h2 {
                font-size: 36px;
                margin-bottom: 15px;
            }
        }

        .details-image {
            margin-bottom: 40px;

            img {
                @include imgw;
            }
        }

        .thumb-2 {
            position: relative;

            img {
                @include imgw;
            }

            .video-box {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);

                .video-btn {
                    background-color: $theme-color;
                    color: $white;
                    display: inline-block;
                    font-size: 16px;
                    height: 80px;
                    width: 80px;
                    line-height: 80px;
                    border-radius: 50%;
                    text-align: center;
                }

                .ripple {
                   &::before,&::after {
                        height: 80px;
                        width: 80px;
                   }
                }
            }
        }

        .content {
            h3 {
                font-size: 28px;
                margin-bottom: 15px;
            }

            ul {
                li {
                    color: $header-color;

                    &:not(:last-child){
                        margin-bottom: 10px;
                    }

                    i {
                        color: $theme-color;
                        margin-right: 5px;
                    }
                }
            }
        }
    }

    .country-sidebar {
        .single-contact-form {
            background-color: $white;
            box-shadow: $shadow;
            padding: 35px;

            .wid-title {
                margin-bottom: 20px;
            }

            .single-form-input {
                input,textarea {
                    border: none;
                    padding: 14px 20px;
                    background-color: $bg-color;
                    width: 100%;
                    margin-bottom: 20px;
                    text-transform: capitalize;
                    color: $text-color;
                    outline: none;
                }

                textarea {
                    padding-bottom: 90px;
                }
            }

            .theme-btn {
                padding: 16px 40px;
            }
        }

        .country-sidebar-widget {
            margin-top: 30px;
            margin-bottom: 30px;

            .contact-bg {
                padding: 120px 40px;
                position: relative;
                z-index: 9;

                &::before {
                    @include before;
                    background-color: $black;
                    opacity: .5;
                    z-index: -1;
                }

                h2 {
                    font-size: 60px;
                    color: $white;
                    margin-bottom: 30px;
                }

                h3 {
                    color: $white;
                    margin-bottom: 5px;
                }
            }
        }
    }
}