/* home_banner */
/* ............................................ */
.home_banner{
    height: 600px;

    .text{
        width: 31%;
        position: absolute;
        left: 55px;
        top: 73px;
        z-index: 1;
    }
    .photoWrap{
        background-color: #ebebeb;
        width: 660px;
        height: 440px;
        position: absolute;
        right: 40px;
        top: 50px;
        z-index: 1;
        

        li{
            position: absolute;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            border-radius: 5px;

            -webkit-transition: all 0.3s;
            -moz-transition: all 0.3s;
            -o-transition: all 0.3s;
            transition: all 0.3s;

            opacity: 0;
            z-index: -1;

            &.active{
                opacity: 1;
                z-index: 1;
            }

            &:hover{
                filter: brightness(1.1);
            }
        }
        
    }

    .content{
        position: absolute;
        top: 345px;
        z-index: 1;
        font-size: 20px;
        width: 40%;

        li{

            display: none;

            &.active{
                display: block;
            }

        }
    }
    .content_dots{
        position: absolute;
        top: 400px;
        z-index: 1;
        font-size: 20px;
        width: 40%;

        li{
            width: 13px;
            height: 13px;
            background-color: #7a7a7a;
            display: inline-block;
            transform: rotate(45deg);
            margin: 6px;
            cursor: pointer;

            &.active{
                background-color: #d82b2b;
            }
        }
    }

    .gradient-bg {
        background: linear-gradient(to bottom, #e8aeb0 0%, #ffffff 100%);
        width: 100%;
        height: 50%;
        position: absolute;
        bottom: 0;
        z-index: 0;
        opacity: 0.5;
                z-index: -2;
    }
}


/* service */
/* ............................................ */
.home_service{

    .in{

        display: flex;
        text-align: left;
        padding: 60px;
        padding-top: 0;
        padding-bottom: 0;
        flex-direction: row-reverse;
    

        .left{
            flex: 0 0 46%;

            .photo{
                background-color: #e9e9e9;
                width: 85%;
                padding-bottom: 128%;
                background-size: cover;
                background-position: center;
                background-repeat: no-repeat;
                                border-radius: 5px;
            }

           
        }
        .right{
            flex: 1;

            h3{
                font-size: 50px;
                font-family: serif;
            }
            h2{
                margin-bottom: 30px;
            }

            .each{
                background-color: #f9f9f9;
                padding: 25px;
                margin-bottom: 25px;

                -webkit-transition: all 0.3s;
                -moz-transition: all 0.3s;
                -o-transition: all 0.3s;
                transition: all 0.3s;

                &:hover{
                    transform: translateX(20px);
                }

                .icon{
                    background-color: #d1a3a3;
                    width: 130px;
                    height: 130px;
                    background-size: cover;
                    display: inline-block;
                    vertical-align: top;
                    margin-right: 27px;
                }
                .content{
                    display: inline-block;
                    vertical-align: top;

                    .thetitle{
                            font-size: 26px;
                            margin-bottom: 10px;
                    }
                    .thetext{
                        line-height: 1.7;
                        font-size: 15px;
                        color: #555;
                    }
                }
            }
        }
    }



}

/* news */
/* ............................................ */
.home_news{

    .in{

        display: flex;
        text-align: left;
        padding: 60px;
        padding-top: 30px;

        .left{
            flex: 0 0 200px;

            h3{
                font-size: 50px;
                font-family: serif;
            }
        }
        .right{
            flex: 1;
        }
    }

    .btn{
        background-color: #5d5d5d;
        color: #FFF;
        text-align: center;
        width: 300px;
        margin: auto;
        height: 40px;
        line-height: 40px;
        cursor: pointer;
        margin-top: 30px;
    }


    .class_wrap{
        text-align: right;
        color: #5a5a5a;
        margin-bottom: 14px;

        li{
            display: inline-block;
            border: 1px solid transparent;
            padding-left: 15px;
            padding-right: 15px;
            height: 33px;
            line-height: 33px;
            margin-right: 5px;
        }
        li.thebtn{
            display: inline-block;
            border: 1px solid #aeaeae;
            padding-left: 15px;
            padding-right: 15px;
            height: 33px;
            line-height: 33px;
            cursor: pointer;

            &:hover{
                background-color: #616161;
                color: #FFF;
            }
        }
    }


}

/* animates */
/* -----------------------------------*/


.gradient-bg{
    animation: gradientbg 1s ease-out;
    -webkit-animation: gradientbg 1s ease-out;

}
@keyframes gradientbg {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 0.5;
        }
}


/* animates01 */
.animates01{
	opacity: 0;

    &.active{

        opacity: 1;

        animation: animates01 0.6s ease-out;
        -webkit-animation: animates01 0.6s ease-out;

	}
}
@keyframes animates01 {
        0% {
            opacity: 0;
            transform: translate(0px, 50px);
        }
        100% {
            opacity: 1;
            transform: translate(0px, 0px);
        }
}
/* animates02 */
.animates02{
	opacity: 0;

    &.active{

        opacity: 1;

        animation: animates02 0.6s ease-out;
        -webkit-animation: animates02 0.6s ease-out;

	}
}
@keyframes animates02 {
        0% {
            opacity: 0;
            transform: translate(0px, 50px);
        }
        100% {
            opacity: 1;
            transform: translate(0px, 0px);
        }
}
/* animates03 */
.animates03{
	opacity: 0;

    &.active{

        opacity: 1;

        animation: animates03 0.6s ease-out;
        -webkit-animation: animates03 0.6s ease-out;

	}
}
@keyframes animates03 {
        0% {
            opacity: 0;
            transform: translate(0px, 50px);
        }
        100% {
            opacity: 1;
            transform: translate(0px, 0px);
        }
}






/*  rwd  */
/* -----------------------------------*/
@media screen and (max-width: 1080px) {


    .home_banner {
        height: auto;
    }


    .home_banner .text {
        width: 42%;
        position: relative;
        left: 0px;
        top: 0px;
        z-index: 1;
        display: block;
        margin-left: 35px;
        
    }

    .home_banner .photoWrap {
        background-color: #ebebeb;
        width: 90%;
        height: 53vw;
        position: relative;
        right: 0px;
        top: 0;
        z-index: 1;
        left: 10%;
        margin-top: 10px;
        
    }

    .home_banner .gradient-bg {
        top: 46vw;
    }
    .home_banner  .content_dots {
        position: relative;
        top: 0px;
        z-index: 1;
        font-size: 20px;
        width: 40%;
        margin: auto;
        margin-top: 16px;
        
    }
    .home_banner .content {
        position: relative;
        top: -11px;
        z-index: 1;
        font-size: 15px;
        width: 80%;
        margin: auto;
        margin-top: 20px;
        letter-spacing: 1px;
        text-align: left;
        
    }
    .home_banner .text{
        width: 55%;
        position: relative;
        left: 0px;
        top: auto;
        z-index: 1;
        display: block;
        margin-left: 36px;
        margin-top: 80px;
        margin-bottom: 22px;
    }

    /* home_news */
    .home_news {
        .in {
            display: block;
            text-align: center;
            padding: 30px;
            padding-top: 0;
        }
    }
    .home_news  .in .left h3{
        font-size: 30px;
    }
    .home_news  .in .left h4{
        font-size: 20px;
    }


    /* home_service */

    .home_service  .in .right h3 ,.home_service  .in .right h2{
        text-align: center;
        margin-right: 40px;
    }

    .home_service  .in .right h3{
        font-size: 30px;
    }
    .home_service  .in .right h4{
        font-size: 20px;
    }

    .home_service .in {
        display: block;
        padding: 30px;
        padding-right: 0px;
        padding-top: 10px;

        .left .photo{
            width: calc(100% - 40px);
            padding-bottom: 107%;
        }
    }
    .home_service  .in  .right  .each {
        padding: 18px;
        padding-bottom: 30px;

        .icon {
            width: 70px;
            height: 70px;
            margin-right: 10px;
        }
        .content{
            width: calc(100% - 100px);
            
            .thetext{
                font-size: 14px;
            }
            .thetitle {
                font-size: 18px;
                margin-bottom: 10px;
                margin-left: 12px;
            }
        }
    }


    .home_news  .class_wrap {
        text-align: center;
        font-size: 14px;
    }

    .home_news {
        & .class_wrap {
            li.thebtn {
                display: inline-block;
                border: 1px solid #aeaeae;
                padding-left: 10px;
                padding-right: 10px;
                height: 30px;
                line-height: 30px;
                cursor: pointer;
                margin-right: 0px;
                
            }
        }
    }
    .home_news {
        & .class_wrap {
            margin-bottom: 7px;
            
            li {
                display: none;
            }
        }
    }
    .home_news .in .right {
        margin-top: 20px;
    }
}