/***

==================================================================
	Services section
==================================================================

***/

.services-section{
    position: relative;
    padding: 120px 0;
    background-color: var(--theme-color3);
    .bottom-text{
        position: relative;
        max-width: 960px;
        margin: 49px auto 0;
        border-radius: 50px;
        background-color: #f9eee5;
        text-align: center;
        padding: 32px 120px;
        @include media-breakpoint-down(md){
            padding: 50px 30px 30px;
        }
        &:hover{
            .icon{
                transform: scaleX(-1);
            }
        }
        .icon-flower-3{
            position: absolute;
            top: 0;
            right: 0;
            border-radius: 50px;
            height: 100%;
            @include media-breakpoint-down(md){
                display: none;
            }
        }
        .text{
            color: var(--theme-color-dark);
            a{
                color: var(--theme-color1);
                font-weight: 700;
                text-decoration: underline;
            }
        }
        .icon{
            position: absolute;
            top: -32px;
            left: 58px;
            width: 86px;
            height: 86px;
            border-radius: 50%;
            text-align: center;
            line-height: 80px;
            background-color: var(--theme-color-light);
            font-size: 50px;
            color: var(--theme-color1);
            transition: all 300ms ease;
            @include media-breakpoint-down(lg){
                left: 30px;
            }
            @include media-breakpoint-down(md){
                top: -43px;
                left: 50%;
                transform: translateX(-50%);
            }
        }
    }
}

.service-block{
    margin-bottom: 30px;
    z-index: 2;
    .inner-box{
        position: relative;
        text-align: center;
        background-color: var(--theme-color-light);
        padding: 60px 50px 85px;
        transition: all 300ms ease;
        @include media-breakpoint-down(sm){
            padding: 30px 20px 70px;
        }
        &:hover {
            transform: translateY(-10px);
            .icon-box {
                .icon {
                    transform: scaleX(-1);
                }
            }
        }
        &::before{
            content: "";
            position: absolute;
            top: -17px;
            left: -17px;
            width: 60px;
            height: 60px;
            border-radius: 50px;
            background: var(--theme-color3);
        }
        &::after{
            content: "";
            position: absolute;
            top: -17px;
            right: -17px;
            width: 60px;
            height: 60px;
            border-radius: 50px;
            background: var(--theme-color3);
        }
        .icon-box{
            position: relative;
            display: inline-block;
            margin-bottom: 40px;
            &:before {
                content: '';
                position: absolute;
                top: 50%;
                right: 0;
                width: 32px;
                height: 32px;
                border-radius: 50%;
                background-color: #e18037;
                transform: translateY(-50%);
            }
            .icon{
                position: relative;
                display: block;
                font-size: 79px;
                line-height: 79px;
                color: var(--theme-color-dark);
                transition: all 300ms ease;
            }
        }
        .content-box{
            position: relative;
            &::before{
                content: "";
                position: absolute;
                bottom: -95px;
                left: -67px;
                width: 60px;
                height: 60px;
                border-radius: 50px;
                background: var(--theme-color3);
            }
            &::after{
                content: "";
                position: absolute;
                bottom: -95px;
                right: -67px;
                width: 60px;
                height: 60px;
                border-radius: 50px;
                background: var(--theme-color3);
            }
            .title-info {
                .icon-text{
                    position: absolute;
                    top: -30px;
                    left: 50%;
                    transform: translateX(-50%);
                }    
            }
            .title{
                position: relative;
                font-weight: 500;
                margin-bottom: 20px;
                a:hover {
                    color: var(--theme-color1);
                }
            }
            .text{
                font-size: 18px;
                margin-bottom: 26px;
                line-height: 1.7em;
            }
            .read-more{
                font-size: 14px;
                text-transform: uppercase;
                color: var(--theme-color-dark);
                &:hover {
                    color: var(--theme-color1);
                }
                .icon{
                    position: relative;
                    top: -1px;
                    width: 22px;
                    height: 22px;
                    text-align: center;
                    line-height: 22px;
                    background-color: var(--theme-color1);
                    border-radius: 50%;
                    color: var(--theme-color-light);
                    font-size: 10px;
                    margin-left: 4px;
                }
            }
        }
    }
}

/*** 

====================================================================
    Services Section Two
====================================================================

***/

.services-section-two {
    position: relative;
    padding: 160px 0 120px;
    .flower-3 {
        position: absolute;
        bottom: 0;
        left: 0;
        @include for-xxl{display: none;}
    }
    .flower-4 {
        position: absolute;
        top: 160px;
        right: 0;
        @include for-xxl{display: none;}
    }
    .owl-carousel{
        padding-bottom: 55px;
        .owl-nav{
            display: none;
        }
        .owl-dots {
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            .owl-dot {
                height: 5px;
                width: 40px;
                border: 1px solid #d7d7d7;
                transition: all 300ms ease;
                margin-right: 10px;
                @include media-breakpoint-down(sm){
                    width: 30px;
                }
                &.active {
                    background-color: var(--bg-theme-color1);
                    border-color: transparent;
                }
            }
        }
    }
    .sec-title{
        margin-bottom: 85px;
        @include media-breakpoint-down(lg){
            text-align: center;
        }
        .icon-divider-2{
            display: inline-block;
            margin-top: 50px;
            @include media-breakpoint-down(lg){
                margin-top: 30px;
            }
        }
        .text{
            margin-top: 30px;
            font-size: 22px;
            line-height: 36px;
            @include media-breakpoint-down(lg){
                margin-top: 10px;
            }
        }
    }

    .services-carousel{
        .center{
            .service-block-two{
                .inner-box{
                    .image-box{
                        .image{
                            &:before,
                            &:after{
                                height: 0;
                            }
                        }
                    }
                }
            }
        }
    }
}

.service-block-two {
    .inner-box{
        &:hover{
            .image-box{
                .image{
                    img{
                        transform: scale(1.1);
                    }
                }
            }
        }
        .image-box{
            position: relative;
            .image{
                overflow: hidden;
                &::after,
                &:before {
                    content: '';
                    @include overlay;
                    background-color: var(--theme-color-light);
                    height: 45px;
                    z-index: 3;
                    transition: all 300ms ease;
                }
                &::after{
                    top: auto;
                    bottom: 0;
                }
                img{
                    transition: all 0.3s ease;
                }
            }
            .title{
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%,-50%);
                a{
                    position: relative;
                    display: block;
                    font-size: 18px;
                    background-color: var(--theme-color-light);
                    width: 215px;
                    height: 61px;
                    white-space: nowrap;
                    @include flex-center;
                    z-index: 3;
                    &:before {
                        content: '';
                        @include overlay;
                        background-color: var(--bg-theme-color1);
                        transform: scale(0);
                        transition: all 300ms ease;
                        z-index: -1;
                    }
                    &:hover {
                        color: var(--theme-color-light);
                        &:before {
                            transform: scale(1);
                        }
                    }
                }
            }
        }
    }
}


/***

==================================================================
	Services Section Three
==================================================================

***/

.services-section-three{
    position: relative;
    padding: 120px 0 120px;
    .bg{
        &::before{
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 255, 255, 0.9);
        }
    }
    .sec-title {
        margin-bottom: 70px;
    }
    .bottom-text{
        position: relative;
        max-width: 960px;
        margin: 60px auto 0;
        padding: 32px 80px;
        border-radius: 50px;
        background-color: var(--theme-color1);
        text-align: center;
        @include media-breakpoint-down(md){
            padding: 40px 30px 30px;
        }
        &:hover{
            .icon{
                transform: scaleX(-1);
            }
        }
        .icon-flower-3 {
            position: absolute;
            top: 0;
            right: 0;
        }
        .text{
            color: var(--theme-color-light);
            a{
                color: var(--theme-color-dark);
                font-weight: 700;
                text-decoration: underline;
                margin-left: 5px;
                &:hover{
                    color: var(--theme-color-light);
                }
            }
        }
        .icon{
            position: absolute;
            top: -32px;
            left: 58px;
            width: 86px;
            height: 86px;
            font-size: 45px;
            line-height: 86px;
            @include flex-center;
            color: var(--theme-color1);
            border-radius: 50%;
            background-color: var(--theme-color-light);
            box-shadow: 0 19px 43px rgba(0, 0, 0, .05);
            text-align: center;
            transition: all 300ms ease;
            @include media-breakpoint-down(lg){
                left: 50%;
                top: -60px;
                margin-left: -43px;
             }
        }
    }
}

.service-block-three {
    margin-bottom: 30px;
    .inner-box{
        position: relative;
        background-color: var(--theme-color-light);
        padding: 35px 42px 45px;
        box-shadow: 0 0 40px rgba(0, 0, 0, .07);
        text-align: center;
        transition: all 300ms ease;
        background-image: url(../images/icons/icon-flower-173.png);
        background-repeat: no-repeat;
        @include media-breakpoint-down(xl){
            padding: 35px 30px 40px;
        }
        @include media-breakpoint-down(sm){
            padding: 35px 20px;
        }
        &:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, .07);
            .icon-box {
                .icon {
                    transform: scaleX(-1);
                }
                .service-frame {
                }
            }
        }
        .icon-box{
            position: relative;
            color: var(--theme-color1);
            font-size: 60px;
            line-height: 60px;
            margin-bottom: 64px;
            margin-top: 35px;
            .service-frame {
                position: absolute;
                top: 50%;
                left: 50%;
                margin-top: -72px;
                margin-left: -74px;
                animation: fa-spin 30s infinite linear;
            }
            .icon {
                position: relative;
                display: block;
                transition: all 300ms ease;
            }
        }
        .title{
            margin-bottom: 16px;
            a:hover {
                color: var(--theme-color1);
            }
        }
        .text {
            font-size: 18px;
            line-height: 34px;
            color: #707070;
        }
    }
}

/***

==================================================================
	Services Section Four
==================================================================

***/

.services-section-four {
    position: relative;
    padding: 120px 0 90px;
    .sec-title{
        margin-bottom: 70px;
        padding: 74px 0 69px;
        @include media-breakpoint-down(lg){
            padding: 0;
            margin-bottom: 50px;
        }
        h2{
            position: relative;
            @include media-breakpoint-down(sm){
                font-size: 30px;
            }
        }
        .icon-triangle {
            position: absolute;
            top: 0px;
            left: 50%;
            margin-left: -82px;
            z-index: -1;
            animation: pulse 3s infinite linear;
            @include media-breakpoint-down(lg){display: none;}
        }
    }
}

.service-block-four {
    margin-bottom: 30px;
    .inner-box{
        position: relative;
        text-align: center;
        padding: 30px 50px;
        transition: all 300ms ease;
        border-radius: 10px;
        &:hover{
            box-shadow: 0 10px 40px rgba(0, 0, 0, .1);
            transform: translateY(-10px);
            .icon-box{
                .icon{
                    transform: scaleX(-1);
                }
            }
            .title{
                a{color: var(--theme-color1);}
            }
        }
        .icon-box{
            position: relative;
            margin-bottom: 40px;
            @include media-breakpoint-down(sm){
                margin-bottom: 20px;
            }
            .icon-color{
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                z-index: -1;
            }
            .icon{
                display: inline-block;
                font-size: 100px;
                line-height: 1em;
                color: var(--theme-color-dark);
                transition: all 300ms ease;
            }
        }
        .content-box{
            position: relative;
            .title{
                margin-bottom: 18px;
                font-weight: 500;
                a:hover {
                    color: var(--theme-color1);
                }
            }
            .text{
                font-size: 18px;
                margin-bottom: 30px;
                line-height: 32px;
            }
            .read-more{
                font-size: 14px;
                text-transform: uppercase;
                color: var(--theme-color-dark);
                &:hover {
                    color: var(--theme-color1);
                }
                .icon{
                    position: relative;
                    top: -1px;
                    width: 22px;
                    height: 22px;
                    text-align: center;
                    line-height: 22px;
                    background-color: var(--theme-color1);
                    border-radius: 50%;
                    color: var(--theme-color-light);
                    font-size: 10px;
                    margin-left: 4px;
                }
            }
        }
    }
}