       
        body{
            margin:0;
            font-family:Arial, sans-serif;
            background:#f4f4f4;
            min-height:100vh;
            
        }
        nav{
            background:#222;
            text-align:center;
            padding:12px 0;
            width: 100%;
        }


        nav a{
            color:white;
            text-decoration:none;
            margin:15px;
            font-weight:bold;
        }
        

        .btn{
            display:inline-block;
            background:#0d6efd;
            color:white;
            padding:12px 25px;
            text-decoration:none;
            border-radius:5px;
            margin-top:20px;
        }

        footer{
            background:#222;
            color:white;
            text-align:center;
            padding:8px 0;
        }
    /* ===== Facilities Page ===== */

.facilities{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
    padding:50px;
    background:#f8f9fa;
}

.facility-card{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,0.15);
    transition:0.4s;
}

.facility-card:hover{
    transform:translateY(-8px);
    box-shadow:0 12px 30px rgba(0,0,0,0.25);
}

.facility-card img{
    width:100%;
    height:220px;
    object-fit:cover;
    transition:0.5s;
}

.facility-card:hover img{
    transform:scale(1.08);
}

.facility-content{
    padding:20px;
    text-align:center;
}

.facility-content h3{
    color:#0066cc;
    margin-bottom:12px;
}

.facility-content p{
    color:#555;
    line-height:1.6;
}
.container{
    width:90%;
    margin:auto;
    padding:30px;
}

.title{
    text-align:center;
    margin-bottom:20px;
}

.legend{
    text-align:center;
    margin-bottom:30px;
}

.legend span{
    display:inline-block;
    width:20px;
    height:20px;
    margin-right:8px;
}

.available{
    background:#28a745;
}

.occupied{
    background:#dc3545;
}

.room{
    border:1px solid #ddd;
    border-radius:10px;
    padding:20px;
    margin-bottom:25px;
}

.beds{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.bed{
    width:80px;
    height:80px;
    border-radius:10px;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:22px;
    font-weight:bold;
    cursor:pointer;
    color:#fff;
}

.available-bed{
    background:#28a745;
}

.occupied-bed{
    background:#dc3545;
}/* Admission Form */

.admission-form{
    width: 90%;
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.admission-form h2{
    text-align: center;
    margin-bottom: 25px;
}

.admission-form label{
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.admission-form input,
.admission-form textarea,
.admission-form select{
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.admission-form button{
    width: 100%;
    margin-top: 25px;
    padding: 12px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}
/* ===== Premium Hero Section ===== */
.hero{
    background:linear-gradient(rgba(0,0,0,0.55),rgba(0,0,0,0.55)),
    url("../images/hero.jpeg");

    background-size:cover;
    background-position:center 100%;
    background-repeat:no-repeat;
    height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    align-items:center;
    padding-bottom:40px ;
    text-align:center;
    color:white;
    animation:zoomHero 5s ease-in-out infinite alternate;
}

.hero h1{
    font-size:32px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:2px;

    color:#ffffff;
text-align: center;
margin-bottom: 10px ;
    display:inline-block;
    padding:12px 30px;

    background:rgba(255,255,255,0.12);
    backdrop-filter:blur(8px);

    border:none;
    border-radius:25px;

    text-shadow:
    0 1px 0 #ffffff,
    0 2px 0 #ffe082,
    0 3px 0 #ffca28,
    0 8px 18px rgba(0,0,0,.55);

    box-shadow:
    0 0 20px rgba(255,215,0,.20),
    0 10px 35px rgba(0,0,0,.25);

    animation:goldGlow 3s ease-in-out infinite alternate;
}


.hero p{
    font-size:24px;
    max-width:800px;
    line-height:1.7;
    margin-bottom:20px;
}

.hero .btn{
    background:#16a34a;
    color:#fff;
    padding:15px 35px;
    border-radius:40px;
    text-decoration:none;
    font-size:18px;
    transition:.4s;
}

.hero .btn:hover{
    background:#15803d;
    transform:translateY(-4px);
}

@keyframes zoomHero{

0%{
background-size:100%;
}

100%{
background-size:130%;
}

}
@keyframes goldGlow{

0%{
box-shadow:
0 0 15px rgba(255,215,0,.18),
0 10px 35px rgba(0,0,0,.25);
}

100%{
box-shadow:
0 0 30px rgba(255,215,0,.45),
0 10px 40px rgba(0,0,0,.35);
}
}
.hero-content h1{
    font-size:48px;
    margin-bottom:15px;
}

.hero-content{
    margin-top:auto;
    margin-bottom:1px;
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    transform:translateY(35px);
}

.btn2{
    background:#28a745;
    margin-left:10px;
}

.features{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:20px;
    padding:60px 20px;
}

.feature-box{
    width:250px;
    background:white;
    padding:20px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    text-align:center;
    transition:0.3s;
}

.feature-box:hover{
    transform:translateY(-8px);
}
/* Page Header */
/* Gallery Section */
.gallery{
    height:calc(100vh - 70px);
    padding:0;
    margin:0;
    background:#f8f9fa;
    overflow:hidden;
}

.gallery .container{
    max-width:100%;
    width:100%;
    height:100%;
    margin:0;
    padding:0;
}
/* Gallery Heading */
.gallery h2{
    text-align:center;
    color:#000000;
    background:#f4b6c2;
    font-size:28px;
    font-weight:900;
    font-family:Arial, Helvetica, sans-serif;
    margin:0;
    padding:1px 10px 0px 10px;
    letter-spacing:1px;
    width:100vw;
    margin-left:calc(50%-50vw);
    }

/* Gallery Subtitle */
.gallery p{
    text-align:center;
    color:#000000;
    background:#f4b6c2;
    font-size:13px;
    font-weight:700;
    font-family:Arial, Helvetica, sans-serif;
    margin:0 0 5px 0;
    padding:0 10px 1px 10px;
    width:100vw;
    margin-left:calc(50%-50vw) ;
    }

/* 12 Photos - 4 Columns × 3 Rows */
.gallery-grid{
    display:grid;
    width:100%;
    grid-template-columns:repeat(4,minmax(0,1fr));
    grid-template-rows:repeat(3,minmax(0,1fr));
    gap:10px;
    height:calc(100% - 52px);
}

/* Gallery Item */
.gallery-item{
    min-height:0;
    text-align:center;
    overflow:hidden;
}

/* Gallery Images */
.gallery-grid img{
    width:100%;
    height:calc(100% - 28px);
    object-fit:cover;
    border-radius:7px;
    box-shadow:0 3px 8px rgba(0,0,0,0.2);
    transition:0.3s;
    cursor:pointer;
}

/* Image Hover */
.gallery-grid img:hover{
    transform:scale(1.04);
}

/* Gallery Captions */
.gallery-title{
    height:24px;
    margin:2px 0 0 0;
    padding:1px 3px;
    color:#000000;
    font-family:Arial, Helvetica, sans-serif;
    font-size:13px;
    font-weight:900;
    text-align:center;
    line-height:20px;
}

.page-header{
    background:#0d6efd;
    color:#fff;
    text-align:center;
    padding:20px 20px;
}

.page-header h1{
    font-size:40px;
    margin-bottom:10px;
}

.page-header p{
    font-size:18px;
    margin:0;
}
body:has(.gallery){
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

body:has(.gallery) .gallery{
    flex:1;
    height:auto;
    min-height:0;
}
body:has(.gallery) footer{
    margin-top:0;
    position:static;
    width:100%;
}
body:has(.residents-page){
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

body:has(.residents-page) .residents-page{
    flex:1;
    height:auto;
    min-height:0;
}

/* =========================================
   ADMISSION PAGE - FULL WIDTH RESPONSIVE
   ========================================= */

.admission-page {
    width: 100%;
    max-width: 1200px;
    margin: 15px auto 25px;
    padding: 0 15px;
    box-sizing: border-box;
}

.admission-page .card {
    width: 100%;
    margin: 0;
}

.admission-page .card-body {
    padding: 20px;
}


/* ===============================
   MOBILE
   =============================== */

@media (max-width: 767px) {

    .admission-page {
        width: 100%;
        max-width: none;
        margin: 8px 0 15px;
        padding: 0 8px;
    }

    .admission-page .card {
        width: 100%;
        margin: 0;
    }

    .admission-page .card-body {
        padding: 12px !important;
    }

    .admission-page .row {
        margin-left: 0;
        margin-right: 0;
    }

    .admission-page .row > * {
        padding-left: 6px;
        padding-right: 6px;
    }

}


/* ===============================
   MOBILE LANDSCAPE
   =============================== */

@media (max-width: 900px) and (orientation: landscape) {

    .admission-page {
        width: 100%;
        max-width: none;
        margin: 8px 0 15px;
        padding: 0 8px;
    }

    .admission-page .card-body {
        padding: 12px !important;
    }

}
