/*==================================================
                FACULTY PAGE
==================================================*/

/* HEADER */

.faculty-header{

    background:linear-gradient(
        135deg,
        #062741,
        #0B4C78,
        #55ACEE
    );

    color:#fff;

    padding:90px 0;

    position:relative;

    overflow:hidden;

}

.faculty-header::before{

    content:"";

    position:absolute;

    width:320px;

    height:320px;

    background:rgba(255,255,255,.08);

    border-radius:50%;

    top:-140px;

    left:-120px;

}

.faculty-header::after{

    content:"";

    position:absolute;

    width:260px;

    height:260px;

    background:rgba(255,255,255,.06);

    border-radius:50%;

    bottom:-120px;

    right:-80px;

}

.faculty-header h1{

    font-weight:800;

}

.faculty-header p{

    font-size:18px;

}


/* SECTION */

.faculty-section{

    background:#f5f9fc;

    padding:80px 0;

}


/* CARD */

.faculty-card{

    position:relative;

    max-width:240px;

    width:100%;;

    height:100%;

    border-radius:18px;

    overflow:hidden;

    background:#fff;

    box-shadow:0 12px 28px rgba(0,0,0,.08);

    transition:.4s;

    margin:auto;

}

.faculty-card:hover{

    transform:translateY(-10px);

    box-shadow:0 25px 50px rgba(0,0,0,.18);

}


/* IMAGE */

.faculty-image{

    overflow:hidden;

}

.faculty-image img{

    width:100%;

    height:260px;      /* Reduced from 320px */

    object-fit:cover;

    transition:.5s;

}
.faculty-card:hover .faculty-details{

    opacity:1;

    visibility:visible;

}
.faculty-card:hover .faculty-image img{

    transform:scale(1.06);

}
.faculty-card:hover img{

    transform:scale(1.06);

}


/* NAME */

.faculty-name{

    background:#fff;

    padding:14px;

    text-align:center;

}

.faculty-name h4{

    margin:0;

    color:#062741;

    font-weight:700;

    font-size:1.15rem;

}

.faculty-name h5{

    margin-top:6px;

    font-size:0.95rem;

    font-weight:600;

    color:#555;

}

.faculty-subject{

    display:block;

    margin-top:5px;

    color:#55ACEE;

    font-size:14px;

    font-weight:600;

}


/* HOVER DETAILS */

.faculty-details{

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:100%;

    background:rgba(6,39,65,.72);

    backdrop-filter:blur(4px);

    -webkit-backdrop-filter:blur(4px);

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:20px;

    color:#fff;

    opacity:0;

    visibility:hidden;

    transition:all .35s ease;

    z-index:5;
}


.faculty-details h5{

    font-size:20px;

    margin-bottom:15px;

    font-weight:700;

}

.faculty-details p{

    margin-bottom:12px;

    line-height:1.5;

    font-size:14px;

}

.faculty-details strong{

    color:#55ACEE;

}


/* EMPTY */

.empty-faculty{

    background:#fff;

    padding:70px;

    border-radius:20px;

    text-align:center;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

}

.empty-faculty i{

    font-size:70px;

    color:#55ACEE;

}

.empty-faculty h3{

    color:#062741;

    margin-top:20px;

}

.empty-faculty p{

    color:#666;

}
.faculty-subject{

    display:block;

    margin-top:6px;

    color:#55ACEE;

    font-size:15px;

    font-weight:600;

}

@media (max-width:768px){

    .faculty-card{

        max-width:80px;

        border-radius:12px;

    }

    .faculty-image img{

        height:90px;

    }

    .faculty-name{

        padding:8px 4px;

    }

    .faculty-name h4{

        font-size:11px;

        margin-bottom:2px;

    }

    .faculty-name h5{

        font-size:9px;

        margin-bottom:2px;

    }

    .faculty-subject{

        font-size:8px;

    }

    .faculty-details{

        padding:8px;

    }

    .faculty-details h5{

        font-size:10px;

        margin-bottom:5px;

    }

    .faculty-details p{

        font-size:8px;

        line-height:1.3;

        margin-bottom:5px;

    }

}