/*
 Optimized stylesheet (light cleanup)
 ------------------------------------
 This version preserves the original styling while:
 - Normalizing whitespace
 - Keeping comments
 NOTE:
 A full semantic refactor requires manual review because duplicate selectors
 intentionally override earlier rules in several places. Removing them
 automatically could change the website appearance.
*/
        *{
            margin:0;
            padding:0;
            box-sizing:border-box;
            font-family:'Poppins', sans-serif;
        }

        html{
            scroll-behavior:smooth;
        }

        body{
            overflow-x:hidden;
        }

.page-content{
    margin-top:120px;
}

.top-marquee{
    background:#87CEFA;
    color:red;
    padding:8px;
    font-weight:bold;
    overflow:hidden;
    white-space:nowrap;

    margin-top:90px;
}

@media(max-width:768px){

    .top-marquee{
        margin-top:60px;
    }

}
        /* ================= NAVBAR ================= */

.navbar{
          background-color:#000978;
    padding:0 !important;
    min-height:70px;
}

.navbar .container-fluid{

    padding-top:0 !important;
    padding-bottom:0 !important;

    display:flex;
    align-items:flex-start !important;

}

.navbar-brand{
    margin-bottom:0 !important;
}

.logo-img{
    width:50px;
    height:50px;

    margin-top:-22px !important;
    margin-right:00px;
    margin-left:-22px;

    display:block;
}

.school-title{
    font-size:40px;
    line-height:1;
    margin-bottom:0;
       font-weight:bold;
          color:white;
}

.school-subtitle{
    font-size:14px;
    color:white;
    margin-bottom:0;
}

/* DESKTOP NAVBAR MENU POSITION */

.navbar-collapse{

    margin-left:-140px;   /* move menu more to left */

    margin-top:42px;      /* align under SCHOOL title */

}

.navbar-nav{

    align-items:center;

    gap:8px;              /* reduce space between menus */

}

.nav-link{
     color:white !important;
    padding:4px 8px !important;
}
.nav-link:hover{

    background:red;

    color:white !important;

    border-radius:5px;

    transition:0.3s;

}
/* ================= MOBILE NAVBAR ================= */

@media(max-width:768px){

    .navbar .container-fluid{
        flex-direction:row !important;
        align-items:center !important;
        justify-content:space-between !important;
    }

    
.navbar-toggler{

    margin-left:0 !important;

    margin-top:0 !important;

    padding:2px 6px;

    align-self:flex-start;

}

}

/* ================= SCHOOL SLIDER ================= */

.school-slider{
    position:relative;

width:100%;

overflow:hidden;

background:#fff;


}

.slider-image{

width:100%;

height:280;

object-fit:cover;

object-position:center;
margin:0px;

}

.slider-caption{

background:
rgba(0,0,0,.55);

padding:20px;

border-radius:15px;

max-width:700px;

margin:auto;

}

.slider-caption h1{

color:#fff;

font-weight:800;

font-size:48px;

}

.slider-caption p{

color:#fff;

font-size:20px;

}

/* ARROWS */

.carousel-control-prev-icon,
.carousel-control-next-icon{

background-color:
rgba(0,0,0,.5);

padding:25px;

border-radius:50%;

}

/* MOBILE */

@media(max-width:768px){

.slider-image{

    height:280px;

    object-fit:cover;

}

.slider-caption{

    padding:10px;

}

.slider-caption h1{

    font-size:20px;

}

.slider-caption p{

    font-size:12px;

}

.btn-lg{

    font-size:12px;

    padding:6px 12px;

}

}

        /* ================= ABOUT ================= */

        /* ================= ABOUT SECTION ================= */

.about-section{
    background:#f4f8ff;
}

.about-main-title{
    font-size:48px;
    font-weight:800;
    color:red;
}

.title-line{
    width:120px;
    height:5px;
    background:#ffd700;
    margin:15px auto;
    border-radius:20px;
}

.school-quote{
    font-size:28px;
    font-weight:700;
    color:#002244;
    font-style:italic;
}

.about-card{
    background:white;
    padding:50px;
    border-radius:30px;
    box-shadow:0 10px 35px rgba(0,0,0,0.1);
}

.about-text{
    font-size:19px;
    line-height:2;
    color:#333;
    text-align:justify;
    margin-bottom:25px;
}

.sub-heading{
    font-size:34px;
    font-weight:800;
    color:red;
    margin-bottom:20px;
}

.motto-section{
    margin:50px 0;
}

.motto-box{
    background:linear-gradient(135deg,#ffd700,#ffef8a);
    padding:30px;
    border-radius:20px;
    font-size:36px;
    font-weight:800;
    color:#002244;
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

.info-section{
    margin-top:50px;
}

.facility-card{
    background:#002244;
    color:white;
    padding:25px;
    border-radius:20px;
    text-align:center;
    transition:0.4s;
    height:100%;
}

.facility-card:hover{
    background:#ffd700;
    color:red;
    transform:translateY(-8px);
}

.facility-card i{
    font-size:45px;
    margin-bottom:15px;
}

.facility-card h5{
    font-weight:700;
}

.vision-box{
    margin-top:60px;
    background:
    linear-gradient(rgba(0,0,0,0.75),
    rgba(0,0,0,0.75)),
    url('images/school.png');

    background-size:cover;
    background-position:center;

    padding:60px;
    border-radius:30px;
    color:white;
}

.vision-box h2{
    color:#ffd700;
    font-size:42px;
    font-weight:800;
    margin-bottom:25px;
}

.vision-box p{
    font-size:20px;
    line-height:2;
}

@media(max-width:768px){

    .about-main-title{
        font-size:32px;
    }

    .school-quote{
        font-size:22px;
    }

    .about-card{
        padding:25px;
    }

    .about-text{
        font-size:16px;
    }

    .sub-heading{
        font-size:28px;
    }

    .motto-box{
        font-size:24px;
    }

    .vision-box{
        padding:30px 20px;
    }

    .vision-box h2{
        font-size:28px;
    }

}

     /* ================= VISION & MISSION ================= */

.vision-section{

    background:
    linear-gradient(rgba(0,0,0,0.75),
    rgba(0,0,0,0.75)),
    url('images/school.png');

    background-size:cover;
    background-position:center;
    background-attachment:fixed;

}

.vision-main-title{
    font-size:52px;
    font-weight:800;
    color:#ffd700;
}

.vision-line{
    width:120px;
    height:5px;
    background:white;
    margin:15px auto;
    border-radius:20px;
}

.vision-card{
    background:rgba(255,255,255,0.12);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);

    padding:45px;

    border-radius:30px;

    box-shadow:0 10px 35px rgba(0,0,0,0.35);

    color:white;

    transition:0.4s;
}

.vision-card:hover{
    transform:translateY(-10px);
}

.vision-icon{
    font-size:70px;
    color:#ffd700;
}

.vision-heading{
    font-size:42px;
    font-weight:800;
    margin-top:15px;
}

.vision-quote{
    background:rgba(255,215,0,0.15);
    border-left:5px solid #ffd700;

    padding:25px;

    border-radius:20px;

    font-size:22px;
    line-height:1.8;
    font-style:italic;

    margin-bottom:35px;
}

.commit-title{
    color:#ffd700;
    font-weight:700;
    margin-bottom:20px;
}

.vision-list{
    padding-left:20px;
}

.vision-list li{
    margin-bottom:22px;
    font-size:18px;
    line-height:1.9;
}

.vision-content p{
    font-size:18px;
    line-height:2;
    margin-bottom:22px;
    text-align:justify;
}

.final-vision-box{

    margin-top:40px;

    background:linear-gradient(135deg,#ffd700,#ffef8a);

    padding:35px;

    border-radius:25px;

    text-align:center;

    color:#002244;

}

.final-vision-box h3{
    font-size:32px;
    font-weight:800;
    margin-bottom:15px;
}

.final-vision-box p{
    font-size:22px;
    font-weight:700;
    margin-bottom:25px;
}

.vision-tags{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    justify-content:center;
}

.vision-tags span{

    background:#002244;
    color:white;

    padding:14px 22px;

    border-radius:50px;

    font-size:17px;
    font-weight:700;

}

@media(max-width:768px){

    .vision-main-title{
        font-size:34px;
    }

    .vision-card{
        padding:25px;
    }

    .vision-heading{
        font-size:30px;
    }

    .vision-quote{
        font-size:18px;
    }

    .vision-list li,
    .vision-content p{
        font-size:16px;
    }

    .final-vision-box h3{
        font-size:24px;
    }

    .vision-tags span{
        font-size:14px;
    }

}

        /* ================= PRINCIPAL ================= */

   /* ================= PRINCIPAL SECTION ================= */

.principal-section{
    background:#f7f9ff;
}

.principal-main-title{
    font-size:52px;
    font-weight:800;
    color:red;
}

.principal-line{
    width:120px;
    height:5px;
    background:#ffd700;
    margin:15px auto;
    border-radius:20px;
}

.principal-image-box{

    position:sticky;

    top:120px;

    align-self:flex-start;

}

.principal-photo{
    width:100%;
    border-radius:30px;
    box-shadow:0 15px 40px rgba(0,0,0,0.25);
}

.principal-name-box{
    background:#ffd700;
    padding:20px;
    border-radius:0 0 25px 25px;
    text-align:center;
}

.principal-name-box h3{
    color:red;
    font-weight:700;
    font-size:22px;
    margin-bottom:5px;
    white-space:nowrap;
}

.principal-name-box p{
    color:#002244;
    font-weight:700;
    margin:0;
}

.principal-content-box{
    background:white;
    padding:50px;
    border-radius:30px;
    box-shadow:0 10px 35px rgba(0,0,0,0.1);
}

.principal-quote{
    background:linear-gradient(135deg,#ffd700,#ffef8a);
    padding:35px;
    border-radius:25px;

    font-size:28px;
    font-style:italic;
    font-weight:700;

    color:#002244;

    margin-bottom:35px;

    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

.principal-text{
    font-size:18px;
    line-height:2;
    color:#333;
    text-align:justify;
    margin-bottom:22px;
}

.principal-signature{
    margin-top:50px;
    padding:30px;
    background:#002244;
    border-radius:25px;
    color:white;
}

.principal-signature h4{
    color:#ffd700;
    font-size:30px;
    font-weight:800;
}

.principal-signature p{
    font-size:18px;
    line-height:1.8;
    margin-top:10px;
}

@media(max-width:768px){

    .principal-main-title{
        font-size:34px;
    }

    .principal-content-box{
        padding:25px;
    }

    .principal-quote{
        font-size:20px;
        padding:20px;
    }

    .principal-text{
        font-size:16px;
    }

    .principal-signature h4{
        font-size:24px;
    }

}
  

 /* ================= COMMITTEE TABLE ================= */

.committee-section{
    background:#f8f9ff;
}

.committee-main-title{
    font-size:40px;
    font-weight:800;
    color:red;
}

.committee-line{
    width:100px;
    height:4px;
    background:#ffd700;
    margin:12px auto;
    border-radius:20px;
}

.committee-table-box{
    background:white;
    padding:25px;
    border-radius:20px;
    box-shadow:0 8px 25px rgba(0,0,0,0.08);
}

.committee-table{
    margin-bottom:0;
    border:2px solid #002244;
}

.committee-table thead th{

    background:#002244 !important;

    color:white;

    font-size:15px;
    font-weight:700;

    text-align:center;

    vertical-align:middle;

    border:1px solid #ffffff;

    padding:14px;
}

.committee-table tbody td{

    font-size:14px;

    line-height:1.6;

    color:#333;

    border:1px solid #999;

    padding:14px;

    vertical-align:middle;

}

.committee-table tbody tr:hover{
    background:#fff8dc;
}

.committee-table strong{
    color:#002244;
}

@media(max-width:768px){

    .committee-main-title{
        font-size:28px;
    }

    .committee-table thead th,
    .committee-table tbody td{

        font-size:12px;
        padding:10px;

    }

    .committee-table-box{
        padding:10px;
    }

}

.position-badge{
    background:#ffd700;
    color:red;
    padding:10px 18px;
    border-radius:30px;
    font-weight:700;
    display:inline-block;
}

@media(max-width:768px){

    .committee-main-title{
        font-size:32px;
    }

    .committee-table-box{
        padding:20px;
    }

    .committee-table thead th,
    .committee-table tbody td{
        font-size:14px;
        padding:12px;
    }

    .position-badge{
        font-size:13px;
        padding:8px 12px;
    }

}

 /* ================= ADMISSIONS ================= */

.admissions-section{
    background:#f5f8ff;
}

.admission-main-title{
    font-size:48px;
    font-weight:800;
    color:red;
}

.admission-line{
    width:120px;
    height:5px;
    background:#ffd700;
    margin:15px auto;
    border-radius:20px;
}

.admission-card{
    background:white;
    padding:45px;
    border-radius:30px;
    box-shadow:0 10px 35px rgba(0,0,0,0.1);
}

.admission-header{

    background:
    linear-gradient(rgba(0,0,0,0.75),
    rgba(0,0,0,0.75)),
    url('images/school.png');

    background-size:cover;
    background-position:center;

    padding:50px;
    border-radius:25px;

    color:white;

    margin-bottom:50px;
}

.admission-icon{
    font-size:70px;
    color:#ffd700;
}

.admission-header h2{
    font-size:40px;
    font-weight:800;
    margin-top:15px;
}

.admission-header p{
    color:#ffd700;
    font-size:22px;
}

.rules-title,
.withdrawal-title{
    font-size:36px;
    font-weight:800;
    color:red;
    margin-bottom:30px;
}

.rule-item{
    display:flex;
    gap:20px;
    margin-bottom:28px;
    align-items:flex-start;
}

.rule-number{

    min-width:48px;
    height:48px;

    background:#002244;
    color:white;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:20px;
    font-weight:800;
}

.rule-item p{
    font-size:18px;
    line-height:1.9;
    color:#333;
    text-align:justify;
}

.document-card{
    background:#002244;
    color:white;
    padding:30px;
    border-radius:20px;
    text-align:center;
    transition:0.4s;
    height:100%;
}

.document-card:hover{
    background:#ffd700;
    color:red;
    transform:translateY(-8px);
}

.document-card i{
    font-size:45px;
    margin-bottom:15px;
}

.document-card h5{
    font-weight:700;
    line-height:1.6;
}

.important-note{

    margin-top:50px;

    background:#fff3cd;

    border-left:6px solid #ff9800;

    padding:25px;

    border-radius:15px;

    display:flex;
    gap:15px;
    align-items:flex-start;
}

.important-note i{
    font-size:30px;
    color:#ff9800;
}

.important-note p{
    margin:0;
    font-size:18px;
    font-weight:600;
    color:#664d03;
}

.withdrawal-section{
    margin-top:60px;
}

@media(max-width:768px){

    .admission-main-title{
        font-size:32px;
    }

    .admission-card{
        padding:25px;
    }

    .admission-header{
        padding:30px 20px;
    }

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

    .rules-title,
    .withdrawal-title{
        font-size:26px;
    }

    .rule-item p{
        font-size:16px;
    }

}

        /* ================= RULES ================= */

      /* ================= GENERAL RULES ================= */

.rules-section{
    background:#f5f8ff;
}

.rules-main-title{
    font-size:52px;
    font-weight:800;
    color:red;
}

.rules-line{
    width:120px;
    height:5px;
    background:#ffd700;
    margin:15px auto;
    border-radius:20px;
}

.rules-subtitle{
    font-size:22px;
    color:#002244;
    font-style:italic;
    font-weight:600;
}

.rule-image{
    width:100%;
    border-radius:25px;
    box-shadow:0 10px 30px rgba(0,0,0,0.2);
}

.rule-card{
    background:white;
    padding:40px;
    border-radius:25px;
    box-shadow:0 10px 35px rgba(0,0,0,0.1);
}

.rule-card h2{
    color:red;
    font-size:36px;
    font-weight:800;
    margin-bottom:25px;
}

.rule-card h2 i{
    color:#ffd700;
    margin-right:10px;
}

.rule-card ol{
    padding-left:22px;
}

.rule-card ol li{
    font-size:17px;
    line-height:1.9;
    color:#333;
    margin-bottom:18px;
    text-align:justify;
}

.rule-intro{
    font-size:18px;
    color:#002244;
    font-weight:700;
}

.fees-note{
    margin-top:30px;
    background:#fff8dc;
    padding:25px;
    border-radius:18px;
}

.fees-note h5{
    color:red;
    font-weight:800;
    margin-bottom:15px;
}

.fees-note ul{
    margin:0;
    padding-left:20px;
}

.fees-note ul li{
    font-size:16px;
    margin-bottom:10px;
}

@media(max-width:768px){

    .rules-main-title{
        font-size:34px;
    }

    .rule-card{
        padding:25px;
    }

    .rule-card h2{
        font-size:26px;
    }

    .rule-card ol li{
        font-size:15px;
    }

    .rules-subtitle{
        font-size:18px;
    }

}

        /* ================= GALLERY ================= */

        .gallery-section{
            background:#f8f9fa;
        }

        /* ================= GALLERY IMAGE SIZE ================= */

.gallery-img{

    width:250px;

    height:250px;

    object-fit:cover;

    border-radius:20px;

    box-shadow:0 8px 25px rgba(0,0,0,0.15);

    transition:0.4s;

}

/* HOVER EFFECT */

.gallery-img:hover{

    transform:scale(1.03);

}
        

        /* ================= CONTACT ================= */

       /* ================= CONTACT SECTION ================= */

.contact-section{
    background:#f5f8ff;
}

.contact-main-title{
    font-size:52px;
    font-weight:800;
    color:red;
}

.contact-line{
    width:120px;
    height:5px;
    background:#ffd700;
    margin:15px auto;
    border-radius:20px;
}

.contact-subtitle{
    font-size:22px;
    color:#002244;
    font-style:italic;
    font-weight:600;
}

.contact-card{
    background:white;
    padding:40px;
    border-radius:30px;
    box-shadow:0 10px 35px rgba(0,0,0,0.1);
}

.contact-item{
    display:flex;
    gap:20px;
    margin-bottom:35px;
    align-items:flex-start;
}

.contact-icon{

    width:70px;
    height:70px;

    background:#002244;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    flex-shrink:0;
}

.contact-icon i{
    font-size:30px;
    color:#ffd700;
}

.contact-item h3{
    font-size:28px;
    color:red;
    font-weight:800;
    margin-bottom:10px;
}

.contact-item p{
    font-size:18px;
    line-height:1.9;
    color:#333;
    margin:0;
}

.contact-info-box{

    background:#fff8dc;

    padding:25px;

    border-radius:20px;

    margin-top:30px;
}

.contact-info-box h4{
    color:red;
    font-weight:800;
    margin-bottom:10px;
}

.contact-info-box p{
    font-size:18px;
    color:#333;
    margin:0;
}

.map-card{
    overflow:hidden;
    border-radius:30px;
    box-shadow:0 10px 35px rgba(0,0,0,0.15);
    min-height:550px;
}

.map-card iframe{
    width:100%;
    height:100%;
}

@media(max-width:768px){

    .contact-main-title{
        font-size:34px;
    }

    .contact-subtitle{
        font-size:18px;
    }

    .contact-card{
        padding:25px;
    }

    .contact-item{
        flex-direction:column;
    }

    .contact-item h3{
        font-size:24px;
    }

    .contact-item p{
        font-size:16px;
    }

    .map-card{
        min-height:350px;
    }

}

        /* ================= FOOTER ================= */

        footer{
            background:#000;
            color:white;
            text-align:center;
            padding:20px;
        }

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

        @media(max-width:1200px){

            .navbar-nav{
                padding-top:15px;
            }

        }
        
        @media(max-width:768px){

    .hero{

        padding-top:100px;

    }

    .hero-content{

        min-height:70vh;
        padding:20px;

    }

    .hero h1{

        font-size:42px;

    }

    .hero p{

        font-size:20px;

    }

    .hero-btn{

        padding:14px 30px;
        font-size:18px;

    }

}
        
        
        @media(max-width:768px){

            .logo-img{
                width:55px;
                height:55px;
            }

            .school-title{
                font-size:20px;
            }

            .hero h1{
                font-size:38px;
            }

            .hero-content{
                padding:30px 20px;
            }

            .section-title-main{
                font-size:30px;
            }

            .principal-img{
                width:200px;
            }

        }
        /* ================= SCROLL TO TOP ================= */

#topBtn{

    position:fixed;

    bottom:10px;
    right:90px;

    z-index:999;

    width:60px;
    height:60px;

    border:none;
    outline:none;

    background:#ffd700;

    color:red;

    cursor:pointer;

    border-radius:50%;

    font-size:35px;

    display:none;

    box-shadow:0 8px 20px rgba(0,0,0,0.3);

    transition:0.4s;

}

#topBtn:hover{

    background:red;

    color:white;

    transform:translateY(-5px);

}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.gallery-thumb{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:15px;
    cursor:pointer;
    transition:0.3s;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

.gallery-thumb:hover{
    transform:scale(1.05);
}

/* Modal */

.image-modal{
    display:none;
    position:fixed;
    z-index:9999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.9);
    text-align:center;
}

.modal-image{
    max-width:90%;
    max-height:85%;
    margin-top:40px;
    border-radius:10px;
}

.close-btn{
    position:absolute;
    top:20px;
    right:30px;
    color:white;
    font-size:45px;
    cursor:pointer;
    font-weight:bold;
}

/* MOBILE GALLERY FIX */

@media (max-width:768px){

    .gallery-grid{
        grid-template-columns:repeat(3, 1fr);
        gap:8px;
    }

    .gallery-thumb{
        height:90px;
    }

}

    .gallery-thumb{
        width:100%;
        height:120px;
        object-fit:cover;
        border-radius:10px;
        display:block;
    }

    .modal-image{
        max-width:95%;
        max-height:80vh;
        margin-top:60px;
    }

    .close-btn{
        top:10px;
        right:15px;
        font-size:35px;
    }


/* ================= FLOATING VIDEO ================= */

#videoPopup{

    position:fixed;

    right:15px;

    bottom:15px;

    width:380px;

    background:#ffffff;

    border-radius:15px;

    box-shadow:0 10px 35px rgba(0,0,0,.35);

    overflow:hidden;

    z-index:99999;

}

.video-header{

    background:#000978;

    color:#fff;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:8px 12px;

    font-weight:bold;

}

.video-header button{

    background:none;

    border:none;

    color:#fff;

    font-size:28px;

    cursor:pointer;

}

#welcomeVideo{

    width:100%;

    height:220px;

    display:block;

    background:#000;

}

/* Mobile */

/* ================= MOBILE VIDEO OVER SLIDER ================= */

@media (max-width:768px){

    .school-slider{

        position:relative;

    }

    .slider-video{

        position:absolute;

        top:260px;          /* Display at the top of the slider */

        right:10px;

        width:140px;

        border-radius:10px;

        overflow:hidden;

        z-index:999;

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

    }

    .slider-video video{

        width:100%;

        height:80px;

        object-fit:cover;

        display:block;

    }

    .video-title{

        font-size:11px;

        padding:3px 6px;

    }

    .video-title button{

        font-size:14px;

    }

}
/* ================= VIDEO ON SLIDER ================= */

.school-slider{

    position:relative;

}

.slider-video{

    position:absolute;

    top:260px;

    right:400px;
    left:0px;

    width:340px;

    background:#fff;

    border-radius:12px;

    overflow:hidden;

    box-shadow:0 8px 25px rgba(0,0,0,.35);

    z-index:100;

}

.video-title{

    background:#000978;

    color:#fff;

    padding:0px 0px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    font-weight:bold;

}

.video-title button{

    border:none;

    background:none;

    color:#fff;

    font-size:22px;

    cursor:pointer;

}

.slider-video video{

    width:100%;

    height:200px;

    display:block;

    background:#000;

}