:root {
    --primary-green: #1d8884;
    --dark-green: #13514e;
    --primary-red: #E42525;
    --mint: #9fd4c0;
    --white: #ffffff;
    --light-bg: #f5faf7;
    --text-dark: #222222;
    --border-color: #e5e5e5;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --font-primary: "Poppins", sans-serif; 
}

/* ==========================
   STUDENT LIFE PAGE BANNER
========================== */

.studentlife-banner {
    position: relative;
    width: 100%;
    height: 450px;
    background: url("../images/S l/Bannner.webp")
        center center/cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 20px;
}

/* .studentlife-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
} */

.studentlife-banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    top: 60px;
}

.studentlife-banner-content h1 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.studentlife-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.studentlife-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s ease;
}

.studentlife-breadcrumb a:hover {
    color: var(--primary-green);
}

.studentlife-breadcrumb span {
    color: #fff;
    font-size: 15px;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 992px) {
    .studentlife-banner {
        height: 350px;
        margin-top: 70px;
    }

    .studentlife-banner-content h1 {
        font-size: 45px;
    }
}

@media (max-width: 576px) {
    .studentlife-banner {
        height: 280px;
    }

    .studentlife-banner-content h1 {
        font-size: 32px;
    }

    .studentlife-breadcrumb {
        gap: 6px;
        font-size: 14px;
    }
}


/* Campus Overview Section */

.campus-overview{
    padding:2px 0;
    background:#fff;
}

.campus-image{
    overflow:hidden;
    border-radius:24px;
    box-shadow:0 15px 35px rgba(0,0,0,0.12);
}

.campus-image img{
    width:100%;
    height:500px;
    object-fit:cover;
    display:block;
    transition:0.5s;
}

.campus-image:hover img{
    transform:scale(1.05);
}

.section-tag{
    display:inline-block;
    background:#e8f7f6;
    color:#1d8884;
    padding:8px 18px;
    border-radius:30px;
    font-size:14px;
    font-weight:600;
    margin-bottom:15px;
}

.campus-content h2{
    font-size:42px;
    font-weight:700;
    color:#222;
    margin-bottom:20px;
    line-height:1.3;
}

.campus-content p{
    font-size:16px;
    color:#555;
    line-height:1.9;
    margin-bottom:18px;
}

.campus-btn{
    display:inline-block;
    background:#1d8884;
    color:#fff;
    text-decoration:none;
    padding:14px 30px;
    border-radius:50px;
    font-weight:600;
    transition:0.3s;
}

.campus-btn:hover{
    background:#E42525;
    color:#fff;
}

/* Tablet */

@media(max-width:991px){

    .campus-content h2{
        font-size:34px;
    }

    .campus-image img{
        height:400px;
    }
}

/* Mobile */

@media(max-width:767px){

    .campus-overview{
        padding:70px 0;
    }

    .campus-content{
        text-align:center;
    }

    .campus-content h2{
        font-size:28px;
    }

    .campus-content p{
        font-size:15px;
    }

    .campus-image img{
        height:300px;
    }
}

/* ==================================
HOSTEL FACILITIES
================================== */

.hostel-facilities{
    padding:50px 0;
    background:#fff;
}

.hostel-header{
    text-align:center;
    max-width:750px;
    margin:0 auto 60px;
}

.hostel-header h2{
    font-size:42px;
    color:var(--text-dark);
    margin-bottom:15px;
}

.hostel-header p{
    color:#666;
    line-height:1.8;
}

.hostel-wrapper{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
}

.hostel-image{
    overflow:hidden;
    border-radius:25px;
    box-shadow:var(--shadow);
}

.hostel-image img{
    width:100%;
    height: 550px;
    display:block;
    object-fit:cover;
    transition:.6s;
}

.hostel-image:hover img{
    transform:scale(1.08);
}

.hostel-content{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.hostel-feature{
    display:flex;
    align-items:flex-start;
    gap:20px;
    background:#fff;
    padding:22px;
    border-radius:18px;
    box-shadow:var(--shadow);
    transition:.4s;
    opacity:0;
    transform:translateY(40px);
}

.hostel-feature.show{
    opacity:1;
    transform:translateY(0);
}

.hostel-feature:hover{
    transform:translateX(10px);
}

.hostel-feature i{
    width:65px;
    height:65px;
    min-width:65px;
    border-radius:50%;
    background:rgba(29,136,132,.1);
    color:var(--primary-green);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
}

.hostel-feature h3{
    margin-bottom:8px;
    color:var(--text-dark);
    font-size:22px;
}

.hostel-feature p{
    margin:0;
    color:#666;
    line-height:1.7;
}

/* ==========================
TABLET
========================== */

@media(max-width:991px){
    .hostel-wrapper{
        grid-template-columns:1fr;
        gap:35px;
    }

    .hostel-header h2{
        font-size:34px;
    }

    .hostel-image{
        max-height:450px;
    }
}

/* ==========================
MOBILE
========================== */

@media(max-width:767px){
    .hostel-facilities{
        padding:70px 0;
    }

    .hostel-header{
        margin-bottom:40px;
    }

    .hostel-header h2{
        font-size:28px;
    }

    .hostel-header p{
        font-size:15px;
    }

    .hostel-feature{
        padding:18px;
        gap:15px;
    }

    .hostel-feature i{
        width:55px;
        height:55px;
        min-width:55px;
        font-size:22px;
    }

    .hostel-feature h3{
        font-size:18px;
    }

    .hostel-feature p{
        font-size:14px;
    }
}


/* =================================
LIBRARY SECTION
================================= */

.library-section{
    padding:50px 0;
    background:#fff;
}

.library-header{
    text-align:center;
    max-width:750px;
    margin:auto;
    margin-bottom:50px;
}

.library-header h2{
    font-size:42px;
    color:var(--text-dark);
    margin-bottom:15px;
}

.library-header p{
    color:#666;
    line-height:1.8;
}

.library-image-box{
    position:relative;
    max-width:900px;
    margin:auto;
    margin-bottom:60px;
}

.library-image-box img{
    width:100%;
    height:500px;
    object-fit:cover;
    border-radius:25px;
    display:block;
}

.library-badge{
    position:absolute;
    bottom:25px;
    right:25px;
    background:var(--primary-red);
    color:#fff;
    padding:15px 25px;
    border-radius:50px;
    font-weight:600;
}

/* BOOK SHELF */

.library-shelf{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    position:relative;
}

.library-shelf::after{
    content:"";
    position:absolute;
    bottom:-15px;
    left:0;
    width:100%;
    height:12px;
    background:var(--primary-green);
    border-radius:20px;
}

.library-book{
    background:var(--primary-green);
    color:#fff;
    padding:30px 20px;
    text-align:center;
    border-radius:12px 12px 0 0;

    transform:translateY(40px);
    opacity:0;
    transition:.7s ease;
}

.library-book.show{
    opacity:1;
    transform:translateY(0);
}

.library-book:nth-child(2){
    background:var(--primary-red);
}

.library-book:nth-child(4){
    background:var(--primary-red);
}

.library-book i{
    font-size:32px;
    margin-bottom:15px;
}

.library-book h3{
    margin-bottom:10px;
}

.library-book p{
    font-size:14px;
    line-height:1.7;
    margin:0;
}

/* =====================
TABLET
===================== */

@media(max-width:991px){

    .library-shelf{
        grid-template-columns:repeat(2,1fr);
    }

    .library-header h2{
        font-size:34px;
    }

    .library-image-box img{
        height:400px;
    }
}

/* =====================
MOBILE
===================== */

@media(max-width:767px){

    .library-section{
        padding:70px 0;
    }

    .library-header h2{
        font-size:28px;
    }

    .library-image-box img{
        height:280px;
    }

    .library-badge{
        font-size:13px;
        padding:10px 18px;
        right:15px;
        bottom:15px;
    }

    .library-shelf{
        grid-template-columns:1fr;
    }

    .library-book{
        border-radius:15px;
    }

    .library-shelf::after{
        display:none;
    }
}



/* ==========================
SPORTS & RECREATION
========================== */

.sports-recreation{
    padding:50px 0;
    background:#f5faf7;
    overflow:hidden;
}

.sports-heading{
    text-align:center;
    max-width:750px;
    margin:auto;
    margin-bottom:50px;
}

.sports-heading h2{
    font-size:42px;
    color:var(--text-dark);
    margin-bottom:15px;
}

.sports-heading p{
    color:#666;
    line-height:1.8;
}

/* Slider */

.sports-slider{
    overflow:hidden;
}

.sports-track{
    display:flex;
    gap:25px;
    width:max-content;
    animation:sportsMove 30s linear infinite;
}

.sports-slider:hover .sports-track{
    animation-play-state:paused;
}

.sport-card{
    width:320px;
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    box-shadow:var(--shadow);
    flex-shrink:0;
}

.sport-card img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
}

.sport-content{
    padding:20px;
}

.sport-content h3{
    margin-bottom:10px;
    color:var(--text-dark);
}

.sport-content p{
    color:#666;
    margin:0;
    line-height:1.7;
}

@keyframes sportsMove{

    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-50%);
    }
}

/* Tablet */

@media(max-width:991px){

    .sports-heading h2{
        font-size:34px;
    }

    .sport-card{
        width:280px;
    }

    .sport-card img{
        height:190px;
    }
}

/* Mobile */

@media(max-width:767px){

    .sports-recreation{
        padding:70px 0;
    }

    .sports-heading h2{
        font-size:28px;
    }

    .sport-card{
        width:240px;
    }

    .sport-card img{
        height:160px;
    }

    .sport-content{
        padding:15px;
    }

    .sport-content h3{
        font-size:18px;
    }

    .sport-content p{
        font-size:14px;
    }
}


/* ==========================
STUDENT ACTIVITIES
========================== */

.student-activities{
    padding:50px 0;
    background:#fff;
}

.activities-heading{
    text-align:center;
    max-width:750px;
    margin:auto;
    margin-bottom:60px;
}

.activities-heading h2{
    font-size:42px;
    color:var(--text-dark);
    margin-bottom:15px;
}

.activities-heading p{
    color:#666;
    line-height:1.8;
}

/* Masonry Grid */

.activities-gallery{
    columns:4 250px;
    column-gap:20px;
}

.activity-photo{
    position:relative;
    margin-bottom:20px;
    break-inside:avoid;
    overflow:hidden;
    border-radius:22px;
    cursor:pointer;
}

.activity-photo img{
    width:100%;
    display:block;
    border-radius:22px;
    transition:.6s;
}

.activity-photo:hover img{
    transform:scale(1.08);
}

.photo-caption{
    position:absolute;
    left:0;
    right:0;
    bottom:0;

    padding:20px;

    color:#fff;
    font-weight:600;

    background:linear-gradient(
        transparent,
        rgba(0,0,0,.8)
    );

    opacity:0;
    transition:.4s;
}

.activity-photo:hover .photo-caption{
    opacity:1;
}

/* Tablet */

@media(max-width:991px){
    .activities-heading h2{
        font-size:34px;
    }

    .activities-gallery{
        columns:3 220px;
    }
}

/* Mobile */

@media(max-width:767px){

    .student-activities{
        padding:70px 0;
    }

    .activities-heading h2{
        font-size:28px;
    }

    .activities-gallery{
        columns:1;
    }

    .photo-caption{
        opacity:1;
    }
}

/* ==================================
EVENTS & CELEBRATIONS
================================== */

.events-section{
    padding:100px 0;
    background:#f5faf7;
}

.events-header{
    text-align:center;
    max-width:750px;
    margin:auto;
    margin-bottom:60px;
}

.events-header h2{
    font-size:42px;
    color:var(--text-dark);
    margin-bottom:15px;
}

.events-header p{
    color:#666;
    line-height:1.8;
}

.events-ribbon{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:35px;
}

.event-card{
    width:260px;
    position:relative;
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:var(--shadow);
    transform:translateY(40px);
    opacity:0;
    transition:.7s;
}

.event-card.show{
    transform:translateY(0);
    opacity:1;
}

/* Alternate heights */

.event-card:nth-child(odd){
    margin-top:50px;
}

.event-card:nth-child(even){
    margin-bottom:50px;
}

/* Ribbon Hook */

.event-card::before{
    content:"";
    position:absolute;
    top:-30px;
    left:50%;
    transform:translateX(-50%);
    width:4px;
    height:30px;
    background:var(--primary-red);
}

.event-card::after{
    content:"";
    position:absolute;
    top:-38px;
    left:50%;
    transform:translateX(-50%);
    width:16px;
    height:16px;
    border-radius:50%;
    background:var(--primary-green);
}

.event-image img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
}

.event-content{
    padding:20px;
}

.event-content h3{
    margin-bottom:10px;
    color:var(--text-dark);
}

.event-content p{
    color:#666;
    margin:0;
    line-height:1.7;
}

/* Tablet */

@media(max-width:991px){

    .events-header h2{
        font-size:34px;
    }

    .event-card{
        width:300px;
    }
}

/* Mobile */

@media(max-width:767px){

    .events-section{
        padding:70px 0;
    }

    .events-header h2{
        font-size:28px;
    }

    .events-ribbon{
        gap:25px;
    }

    .event-card{
        width:100%;
        max-width:400px;
        margin:0 !important;
    }

    .event-image img{
        height:200px;
    }
}