/* =====================================================
   SCPM CAMPUS PAGE CSS
===================================================== */


/* ================= CAMPUS HERO ================= */

.campus-hero{

    min-height:520px;

    background:
    linear-gradient(
        rgba(0,0,0,.45),
        rgba(0,0,0,.45)
    ),
    url("../images/campus.jpg");

    background-size:cover;
    background-position:center;

    display:flex;
    align-items:center;

    padding:80px 20px;

}


.campus-overlay{

    max-width:750px;

    color:white;

}


.campus-overlay h1{

    font-size:52px;

    line-height:1.15;

    margin:15px 0;

    font-family:'Fraunces',serif;

}


.campus-overlay h1 span{

    color:#FF671F;

}


.campus-overlay p{

    font-size:18px;

    line-height:1.7;

    max-width:650px;

}




/* ================= CAMPUS SECTION ================= */


.campus-section{

    padding:90px 0;

    background:#fff;

}



.section-head{

    text-align:center;

    max-width:750px;

    margin:auto;

}



.section-head h2{

    font-size:38px;

    margin:15px 0;

    color:#17211F;

}


.section-head p{

    color:#64748b;

    line-height:1.7;

}




/* ================= FACILITY GRID ================= */


.campus-grid{


    margin-top:50px;

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;


}



.campus-card{


    background:white;

    padding:35px 30px;

    border-radius:20px;

    border:1px solid #f1e2d5;

    box-shadow:
    0 15px 35px rgba(0,0,0,.08);


    transition:.35s;


}



.campus-card:hover{


    transform:translateY(-10px);

    border-color:#FF671F;


}



.campus-card .icon{


    width:65px;

    height:65px;

    background:#fff0e5;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    font-size:30px;

    margin-bottom:20px;


}



.campus-card h3{


    font-size:22px;

    margin-bottom:12px;

    color:#17211F;


}



.campus-card p{


    color:#64748b;

    line-height:1.7;

}





/* ================= HIGHLIGHT SECTION ================= */


.campus-highlight{


    padding:90px 0;

    background:#fff7ef;


}



.highlight-grid{


    display:grid;

    grid-template-columns:1fr 1fr;

    gap:60px;

    align-items:center;


}



.highlight-grid img{


    width:100%;

    height:420px;

    object-fit:cover;

    border-radius:25px;


}



.highlight-content h2{


    font-size:38px;

    margin:15px 0;


}



.highlight-content p{


    color:#64748b;

    line-height:1.8;


}



.highlight-content ul{


    list-style:none;

    padding:0;

    margin:25px 0;


}



.highlight-content li{


    margin-bottom:12px;

    font-size:16px;

    color:#334155;


}





/* ================= GALLERY ================= */


.campus-gallery{


    padding:90px 0;

}



.gallery-box{


    margin-top:45px;


    display:grid;


    grid-template-columns:repeat(4,1fr);


    gap:25px;


}



.gallery-box div{


    position:relative;

    overflow:hidden;

    border-radius:20px;


}



.gallery-box img{


    width:100%;

    height:260px;

    object-fit:cover;

    transition:.4s;


}



.gallery-box div:hover img{


    transform:scale(1.1);


}



.gallery-box span{


    position:absolute;

    bottom:0;

    left:0;

    width:100%;

    padding:15px;

    color:white;

    background:
    linear-gradient(
    transparent,
    rgba(0,0,0,.8)
    );


    font-size:18px;

    font-weight:600;


}




/* ================= BUTTON ================= */


.btn-primary{


    background:#FF671F;

    color:white;

    padding:14px 28px;

    border-radius:30px;

    display:inline-block;

    margin-top:20px;

    text-decoration:none;

    transition:.3s;


}



.btn-primary:hover{


    background:#d94e0b;


}





/* ================= RESPONSIVE ================= */


@media(max-width:992px){


.campus-grid{

grid-template-columns:repeat(2,1fr);

}


.highlight-grid{

grid-template-columns:1fr;

}



.gallery-box{

grid-template-columns:repeat(2,1fr);

}



.campus-overlay h1{

font-size:42px;

}


}





@media(max-width:600px){


.campus-hero{

min-height:420px;

}


.campus-overlay h1{

font-size:32px;

}


.campus-grid{

grid-template-columns:1fr;

}



.gallery-box{

grid-template-columns:1fr;

}



.highlight-grid img{

height:280px;

}



.section-head h2{

font-size:28px;

}


}
.lab-slider{
    width:100%;
    height:280px;
    border-radius:18px;
    overflow:hidden;
    position:relative;
    cursor:pointer;
}

.lab-slider img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:opacity .8s ease;
}

.caption{
    position:absolute;
    left:15px;
    bottom:15px;
    background:rgba(0,0,0,.6);
    color:#fff;
    padding:8px 18px;
    border-radius:30px;
    font-weight:600;
}

#lightbox{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.95);
    justify-content:center;
    align-items:center;
    z-index:99999;
}

#lightbox img{
    width:auto;
    height:auto;
    max-width:95vw;
    max-height:95vh;
    object-fit:contain;   /* Cover nahi, Contain */
    border-radius:10px;
    box-shadow:0 0 30px rgba(0,0,0,.5);
}
#lightbox .close{
    position:absolute;
    top:20px;
    right:35px;
    color:white;
    font-size:45px;
    cursor:pointer;
}
.library-slider{
    width:100%;
    height:260px;
    background:#f5f5f5;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border-radius:15px;
}

.library-slider img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    object-position:center !important;
    display:block;
}
.student-slider{
    width:100%;
    height:260px;
    overflow:hidden;
    border-radius:15px;
    position:relative;
    cursor:pointer;
}

.student-slider img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:opacity .4s ease;
}

.student-slider .caption{
    position:absolute;
    bottom:15px;
    left:15px;
    background:rgba(0,0,0,.6);
    color:#fff;
    padding:8px 15px;
    border-radius:30px;
}