﻿
.teachers-personnel-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding: 135px 0;
    position: relative;
}
.teachers-personnel-info-box{
    margin-top: 80px;
}
.teachers-personnel-info{
    width: 320px;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    padding: 25px;
    padding-bottom: 25px;
    border: 1px solid #ddd;
    margin-left: 120px;
    margin-bottom: 35px;
    position: relative;
    transition: all .3s linear;
}
.teachers-personnel-info:nth-child(3n + 1){
    margin-left: 0;
}
.teachers-personnel-img-box{
    width: 270px;
    height: 400px;
    display: block;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 26px;
}
.teachers-personnel-text-name{
    font-size: 16px;
    color: #000;
    display: block;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-align: center;
}
.teachers-personnel-position{
    font-size: 14px;
    letter-spacing: 1px;
    color: #555;
    text-align: center;
}
.teachers-personnel-info-cube{
    width: 5px;
    height: 5px;
    display: block;
    position: absolute;
    background-color: #ab88c1;
    transition: all 0.6s linear;
}
.cube-lt{
    top: -3px;
    left: -3px;
}
.cube-lb{
    bottom: -3px;
    left: -3px;
}
.cube-rt{
    top: -3px;
    right: -3px;
}
.cube-rb{
    bottom: -3px;
    right: -3px;
}
.teachers-personnel-info-linkedin-logo{
    content: '';
    width: 40px;
    height: 40px;
    background-image: url(../img/front/linkedin-logo.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: all .3s linear;
}


/*--------------hover-------------*/
.teachers-personnel-info:hover{
    background-color: #f5f5f5;
}
.teachers-personnel-info:hover .cube-lt{
    left: calc(100% - 3px);
}
.teachers-personnel-info:hover .cube-lb{
    bottom: calc(100% - 3px);
}
.teachers-personnel-info:hover .cube-rt{
    top: calc(100% - 3px);
}
.teachers-personnel-info:hover .cube-rb{
    right: calc(100% - 3px);
}
.teachers-personnel-info:hover .teachers-personnel-info-linkedin-logo{
    opacity: 1;
}




@media only screen and (max-width: 1200px){
    .teachers-personnel-box{
        width: 1000px;
        padding: 100px 0;
    }
    .teachers-personnel-info{
        margin-left: 65px;
        width: 290px;
    }
    .teachers-personnel-img-box{
        width: 100%;
        height: calc((400 / 270) * 238px);
    }
}
@media only screen and (max-width: 1000px){
    .teachers-personnel-box{
        width: 750px;
        padding: 80px 0;
    }
    .teachers-personnel-info{
        margin-left: 30px;
        margin-bottom: 20px;
        padding: 25px;
        padding-bottom: 20px;
        width: 230px;
    }
    .teachers-personnel-img-box{
        width: 100%;
        height: calc((400 / 270) * 178px);
        margin-bottom: 16px;
    }
    .teachers-personnel-text-name{
        margin-bottom: 10px;
    }
}
@media only screen and (max-width: 750px){
    .teachers-personnel-box{
        width: 550px;
        padding: 40px 0;
    }
    .teachers-personnel-info-box {
        margin-top: 40px;
    }
    .teachers-personnel-title{
        padding: 50px 0;
    }
    .teachers-personnel-box{
        padding-bottom: 15px;
    }
    .teachers-personnel-info{
        width: 260px;
    }
    .teachers-personnel-info:nth-child(n){
        margin-left: 30px;
    }
    .teachers-personnel-info:nth-child(2n + 1){
        margin-left: 0;
    }
    .teachers-personnel-img-box{
        height: calc((400 / 270) * 208px);
    }
}
@media only screen and (max-width: 550px){
    .teachers-personnel-box{
        width: 400px;
        padding: 20px 0;
    }
    .teachers-personnel-info-box {
        margin-top: 20px;
    }
    .teachers-personnel-title{
        padding: 30px 0;
    }
    .teachers-personnel-info{
        width: 190px;
        padding: 15px;
    }
    .teachers-personnel-info:nth-child(n){
        margin-left: 20px;
    }
    .teachers-personnel-info:nth-child(2n + 1){
        margin-left: 0;
    }
    .teachers-personnel-img-box{
        height: calc((400 / 270) * 158px);
    }
    .teachers-personnel-text-name{
        font-size: 14px;
        margin-bottom: 0;
    }
    .teachers-personnel-position{
        font-size: 12px;
    }
}
@media only screen and (max-width: 400px){
    .teachers-personnel-box{
        width: 260px;
    }
    .teachers-personnel-info{
        width: 100%;
    }
    .teachers-personnel-info:nth-child(n){
        margin-left: 0;
    }
    .teachers-personnel-img-box{
        height: calc((400 / 270) * 228px);
    }
    .teachers-personnel-title{
        padding: 20px 0;
    }
}



