:root{
  --brand:#1565c0;
  --brand-dark:#0d47a1;
  --accent:#ff9800;
}

/* Premium Background */
body{
  font-family:'Segoe UI',Roboto,Arial,sans-serif;
  color:#222;
  background:
    radial-gradient(circle at top right,#dbeafe 0%,transparent 35%),
    radial-gradient(circle at bottom left,#bfdbfe 0%,transparent 35%),
    linear-gradient(180deg,#f8fbff 0%,#eef5ff 50%,#ffffff 100%);
  background-attachment:fixed;
}

.navbar{
  background:rgba(255,255,255,.95)!important;
  backdrop-filter:blur(10px);
  box-shadow:0 2px 15px rgba(0,0,0,.05);
}

.navbar-brand span{font-size:1.15rem}
.text-primary{color:var(--brand)!important}
.bg-primary{background:var(--brand)!important}

/* =========================
   NAVBAR HOVER EFFECT
========================= */

.navbar-nav .nav-item{
    position:relative;
}

.navbar-nav .nav-link{
    color:#222 !important;
    padding:10px 15px !important;
    border-radius:8px;
    transition:all .3s ease;
    font-weight:500;
}

/* Main Menu Hover */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus{
    background:#1565c0;
    color:#fff !important;
}

/* Active Menu */
.navbar-nav .nav-link.active{
    background:#1565c0;
    color:#fff !important;
}

/* Dropdown Toggle Hover */
.navbar-nav .dropdown:hover > .nav-link{
    background:#1565c0;
    color:#fff !important;
}

/* Dropdown Menu */
.dropdown-menu{
    border:none;
    border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
    padding:8px;
}

/* Dropdown Items */
.dropdown-menu .dropdown-item{
    padding:10px 15px;
    border-radius:8px;
    transition:all .3s ease;
    color:#222;
}

/* Dropdown Item Hover */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus{
    background:#1565c0;
    color:#fff;
}

/* Active Dropdown Item */
.dropdown-menu .dropdown-item.active{
    background:#1565c0;
    color:#fff;
}

/* Desktop Hover Dropdown Open */
@media (min-width: 992px){

    .navbar .dropdown-menu{
        display:block;
        opacity:0;
        visibility:hidden;
        transform:translateY(10px);
        transition:all .3s ease;
        margin-top:0;
    }

    .navbar .dropdown:hover .dropdown-menu{
        opacity:1;
        visibility:visible;
        transform:translateY(0);
    }
}

.btn-primary{
  background:var(--brand);
  border-color:var(--brand);
}
.btn-primary:hover{
  background:var(--brand-dark);
  border-color:var(--brand-dark);
}

.btn-accent{
  background:var(--accent);
  color:#fff;
}
.btn-accent:hover{
  background:#e68900;
  color:#fff;
}

/* Preloader */
#preloader{
  position:fixed;
  inset:0;
  background:#fff;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:opacity .4s;
}
.loader{
  width:50px;
  height:50px;
  border:5px solid #eee;
  border-top-color:var(--brand);
  border-radius:50%;
  animation:spin 1s linear infinite;
}
@keyframes spin{
  to{transform:rotate(360deg)}
}

/* Hero Carousel */
.hero-carousel .carousel-item{
  height:80vh;
  min-height:480px;
  background-size:cover;
  background-position:center;
  position:relative;
}
.hero-carousel .carousel-item::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,.45),
    rgba(0,0,0,.65)
  );
}
.hero-carousel .carousel-caption{
  top:50%;
  transform:translateY(-50%);
  bottom:auto;
  z-index:2;
  text-align:center;
}
.hero-carousel h1{
  font-size:clamp(1.8rem,4vw,3.5rem);
  font-weight:800;
  text-shadow:0 4px 18px rgba(0,0,0,.5);
}
.hero-carousel p{
  font-size:clamp(1rem,1.6vw,1.25rem);
  max-width:760px;
  margin:0 auto 1.5rem;
}

/* Sections */
.section{
  padding:5rem 0;
  position:relative;
}

.section:nth-child(even){
  background:#d3e3f9;
}

.section:nth-child(odd){
  background:#d1e0f4;
}

.section-title{
  font-weight:800;
  margin-bottom:.5rem;
}

.section-sub{
  color:#666;
  margin-bottom:3rem;
}

/* Cards */
.feature-card{
  border:0;
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 30px rgba(0,0,0,.06);
  transition:.3s;
  height:100%;
}
.feature-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(0,0,0,.12);
}
.feature-card .icon{
  width:64px;
  height:64px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(
    135deg,
    var(--brand),
    var(--brand-dark)
  );
  color:#fff;
  font-size:1.6rem;
  margin-bottom:1rem;
}

/* Notice Board */
.notice-board{
  background:#fff;
  border-radius:14px;
  box-shadow:0 8px 22px rgba(0,0,0,.06);
}
.notice-board .notice-item{
  padding:.85rem 1rem;
  border-bottom:1px dashed #eee;
}
.notice-board .notice-item:last-child{
  border-bottom:0;
}

/* Toppers / Staff */
.person-card{
  text-align:center;
  background:#fff;
  border-radius:16px;
  padding:1.5rem 1rem;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  transition:.3s;
  height:100%;
}
.person-card:hover{
  transform:translateY(-4px);
}
.person-card img{
  width:130px;
  height:130px;
  border-radius:50%;
  object-fit:cover;
  border:4px solid var(--brand);
  margin-bottom:1rem;
}

/* Gallery */
.gallery-img{
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:12px;
  width:100%;
  cursor:pointer;
  transition:.3s;
}
.gallery-img:hover{
  transform:scale(1.03);
}

/* Testimonials */
.testimonial-card{
  background:#fff;
  border-radius:18px;
  padding:1.5rem;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  height:100%;
}
.testimonial-card .stars{
  color:#f5a623;
}

/* Scroll Top */
#scrollTop{
  position:fixed;
  right:24px;
  bottom:24px;
  width:46px;
  height:46px;
  display:none;
  z-index:1000;
}
#scrollTop.show{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* Admin Panel */
.admin-wrap{
  min-height:100vh;
  display:flex;
}

.admin-sidebar{
  width:250px;
  background:linear-gradient(
    180deg,
    #0f172a,
    #1e293b
  );
  color:#cfd8dc;
  padding:1rem;
  flex-shrink:0;
}

.admin-sidebar a{
  color:#cfd8dc;
  display:block;
  padding:.55rem .8rem;
  border-radius:8px;
  text-decoration:none;
  font-size:.92rem;
}

.admin-sidebar a:hover,
.admin-sidebar a.active{
  background:#1565c0;
  color:#fff;
}

.admin-sidebar h6{
  color:#90a4ae;
  font-size:.72rem;
  letter-spacing:.08em;
  margin:1rem .8rem .35rem;
  text-transform:uppercase;
}

.admin-main{
  flex:1;
  background:linear-gradient(
    135deg,
    #f4f8ff,
    #edf4ff
  );
  min-width:0;
}

.admin-topbar{
  background:#fff;
  padding:.85rem 1.25rem;
  display:flex;
  justify-content:space-between;
  align-items:center;
  box-shadow:0 2px 6px rgba(0,0,0,.04);
}

.admin-content{
  padding:1.5rem;
}

.stat-card{
  border:0;
  border-radius:14px;
  color:#fff;
  padding:1.25rem;
  box-shadow:0 10px 22px rgba(0,0,0,.08);
}

.stat-card .num{
  font-size:2rem;
  font-weight:800;
  line-height:1;
}

.bg-grad-1{background:linear-gradient(135deg,#1976d2,#0d47a1)}
.bg-grad-2{background:linear-gradient(135deg,#43a047,#1b5e20)}
.bg-grad-3{background:linear-gradient(135deg,#fb8c00,#e65100)}
.bg-grad-4{background:linear-gradient(135deg,#8e24aa,#4a148c)}
.bg-grad-5{background:linear-gradient(135deg,#e53935,#b71c1c)}
.bg-grad-6{background:linear-gradient(135deg,#00897b,#004d40)}

@media(max-width:768px){
  .admin-sidebar{
    position:fixed;
    left:-260px;
    height:100vh;
    transition:.3s;
    z-index:1050;
  }
  .admin-sidebar.open{
    left:0;
  }
}
/* =========================
   ABOUT SCHOOL SECTION
========================= */

.about-school-image{
    width:100%;
    height:520px;
    object-fit:cover;
    border-radius:25px;
    box-shadow:0 20px 45px rgba(0,0,0,.15);
    transition:.4s;
}

.about-school-image:hover{
    transform:scale(1.02);
}

.about-school-box{
    background:#fff;
    padding:45px;
    border-radius:25px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
    border-top:5px solid #1565c0;
    height:100%;
}

.about-school-box .section-title{
    font-size:2rem;
    font-weight:800;
    margin-bottom:20px;
    color:#1565c0;
}

.about-text{
    font-size:16px;
    line-height:1.9;
    color:#555;
    text-align:justify;
}

/* Vision Mission */

.mini-box{
    background:#f8fbff;
    padding:25px;
    border-radius:18px;
    height:100%;
    transition:.35s;
    border-left:4px solid #1565c0;
}

.mini-box:hover{
    transform:translateY(-8px);
    box-shadow:0 12px 30px rgba(0,0,0,.10);
}

.mini-box h5{
    font-size:18px;
    margin-bottom:15px;
}

.mini-box p{
    color:#666;
    line-height:1.7;
}

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

.message-card{
    background:#fff;
    padding:35px;
    border-radius:25px;
    text-align:center;
    height:100%;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
    transition:.4s;
    position:relative;
    overflow:hidden;
}

.message-card::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:5px;
    background:linear-gradient(90deg,#1565c0,#42a5f5);
}

.message-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 45px rgba(0,0,0,.12);
}

.message-photo{
    width:150px;
    height:150px;
    border-radius:50%;
    object-fit:cover;
    border:5px solid #1565c0;
    padding:4px;
    background:#fff;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
    margin-bottom:20px;
}

.message-card h4{
    font-size:1.5rem;
    margin-bottom:15px;
}

.message-card p{
    color:#666;
    line-height:1.8;
    text-align:justify;
}

.message-card h6{
    margin-top:15px;
    font-size:18px;
    color:#222;
}

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

@media(max-width:991px){

    .about-school-image{
        height:300px;
        margin-bottom:20px;
    }

    .about-school-box{
        padding:25px;
    }

    .message-card{
        padding:25px;
    }

    .message-photo{
        width:120px;
        height:120px;
    }
}