/*
|--------------------------------------------------------------------------
| GURU LIST
|--------------------------------------------------------------------------
*/

.teacher-page{

    padding:20px 0 60px;

}

.teacher-header{

    text-align:center;

    margin-bottom:50px;

}

.teacher-header h1{

    font-size:48px;

    color:var(--primary);

    margin:10px 0;

}

.teacher-header p{

    max-width:700px;

    margin:auto;

    color:#666;

    line-height:1.8;

}

/*
|--------------------------------------------------------------------------
| GRID
|--------------------------------------------------------------------------
*/

.teacher-grid{

    display:grid;

    grid-template-columns:repeat(4,320px);

    justify-content:center;

    gap:30px;

}

@media(max-width:1400px){

.teacher-grid{

grid-template-columns:repeat(3,320px);

}

}

@media(max-width:1100px){

.teacher-grid{

grid-template-columns:repeat(2,320px);

}

}

@media(max-width:768px){

.teacher-grid{

grid-template-columns:1fr;

}

}

/*
|--------------------------------------------------------------------------
| CARD
|--------------------------------------------------------------------------
*/

.teacher-card{

    position:relative;
    overflow:hidden;

    border-radius:22px;

    aspect-ratio:3/4;

    box-shadow:0 12px 35px rgba(0,0,0,.18);

}

.teacher-image{

    position:absolute;

    inset:0;

}

.teacher-image img{

    width:100%;
    height:100%;

    display:block;

    object-fit:cover;
    object-position:center top;

}

.teacher-card:hover img{

    transform:scale(1.06);

}

/*
|--------------------------------------------------------------------------
| OVERLAY
|--------------------------------------------------------------------------
*/

.teacher-overlay{

    position:absolute;

    inset:0;

    display:flex;

    flex-direction:column;

    justify-content:flex-end;

    padding:30px;

    color:#fff;

    background:linear-gradient(

        to top,

        rgba(15,46,109,.95),

        rgba(15,46,109,.45),

        rgba(15,46,109,.05)

    );

}

/*
|--------------------------------------------------------------------------
| DEFAULT
|--------------------------------------------------------------------------
*/

.teacher-name{

    font-size:34px;

    font-weight:700;

    line-height:1.1;

    color:#fff;

}

.teacher-info{

    width:100%;

    margin-top:10px;

    opacity:0;

    max-height:0;

    overflow:hidden;

    transition:.35s;

}

/*
|--------------------------------------------------------------------------
| HOVER
|--------------------------------------------------------------------------
*/

.teacher-card:hover .teacher-info{

    opacity:1;

    max-height:180px;

}

.teacher-class{

    font-size:18px;

    color:#fff;

    margin-bottom:18px;

}

.teacher-link{

    display:inline-flex;

    color:#FFD166;

    font-weight:700;

    transition:.3s;

}

.teacher-card:hover .teacher-link{

    color:#fff;

}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media(max-width:768px){
    
.teacher-page .container,
.student-page .container{

    padding-left:40px;
    padding-right:40px;

}

.teacher-page{

    padding:26px 0 40px;

}

.student-hero{

    padding:105px 0 45px;

}

.teacher-header h1{

font-size:34px;

}

.teacher-name{

font-size:30px;

}

.teacher-info{

opacity:1;

max-height:180px;

margin-top:15px;

}

.teacher-class{

font-size:17px;

}

}


 