/* landing */
.landing.teachers {
    width: 100%;
    height: 500px;
    position: relative;
    background-image: url('../../../images/bg/bg1.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    display: flex;
    flex-direction: column-reverse;
}

.landing.teachers::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #0000007d;
}

.landing.teachers h1, .landing.teachers p {
    margin: 0 50px 30px 0;
    position: relative;
}
.landing.teachers i {
    font-size: 11px;
}
/* start teachers  */


.teachers .box {
    position: relative;
}

.teachers .box::before,
.teachers .box::after {
    content: "";
    background-color: #f3f3f3;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 10px;
    transition: var(--main-transition);
}

.teachers .box::before {
    width: 70%;
    z-index: -2;
}
@media(max-width:1400px) {
    .teachers .box::before {
        width: 80%;
    }
}
@media(max-width:1190px) {
    .teachers .box::before {
        width: 90%;
    }
}
@media(max-width:767px) {
    .teachers .box::before {
        width: 100%;
    }
}

.teachers .box::after {
    z-index: -1;
    background-color: #e4e4e4;
    width: 0;
}

.teachers .box:hover::after {
    width: 70%;
}

.teachers .box .data {
    display: flex;
    align-items: center;
    padding-top: 60px;
}

.teachers .box .data img {
    max-width: calc(100% - 60px);
    border-radius: 10px;
    transition: var(--main-transition);
}

.teachers .box:hover .data img {
    filter: grayscale(100%);
}

.teachers .box .data .social {
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.teachers .box .data .social a {
    width: 60px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.teachers .box .data .social a:hover i {
    color: var(--main-color);
}

.teachers .box .data .social i {
    transition: var(--main-transition);
    color: #777;
}

.teachers .box .info {
    padding-left: 80px;
}

.teachers .box .info h3 {
    margin-bottom: 0;
    color: var(--main-color);
    font-size: 22px;
    transition: var(--main-transition);
    width: 70%;
}

@media(max-width:1190px) {
    .teachers .box .info h3 {
        width: 100%;
    }
}

.teachers .box .info p {
    margin-top: 10px;
    margin-bottom: 25px;
}

.teachers .box:hover .info h3 {
    color: #777;
}

/* end teachers  */