* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Segoe UI,Arial,sans-serif
}

body {
    background: #f4f7fb;
    color: #222
}

a {
    text-decoration: none;
    color: inherit
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: auto
}

.section {
    padding: 40px 0
}

    .section h2 {
        text-align: center;
        margin-bottom: 25px;
        color: #0f4c81
    }

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(90deg,#0f4c81,#1e88e5);
    color: #fff;
    padding: 12px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,.25)
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.logo {
    font-size: 26px;
    font-weight: bold
}

.menu {
    display: flex;
    gap: 18px;
    align-items: center
}

    .menu a {
        color: #fff;
        font-weight: 600
    }

        .menu a:hover {
            opacity: .85
        }

/* Dropdown */
.dropdown {
    position: relative
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #fff;
    color: #000;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    border-radius: 6px;
    overflow: hidden
}

    .dropdown-content a {
        display: block;
        padding: 10px;
        color: #333
    }

        .dropdown-content a:hover {
            background: #f0f0f0
        }

.dropdown:hover .dropdown-content {
    display: block
}

/* FIRST ROW */
.top-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    align-items: center
}

.profile-card {
    background: #fff;
    border-radius: 14px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
    transition: .3s
}

    .profile-card:hover {
        transform: translateY(-5px)
    }

    .profile-card img {
        width: 70%;
        height: 200px;
        object-fit: cover;
        border-radius: 10px
    }

    .profile-card h3 {
        margin-top: 10px;
        color: #0f4c81
    }

.school-hero {
    position: relative;
    height: 260px;
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center
}

    .school-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1') center/cover no-repeat;
        filter: brightness(.55)
    }

    .school-hero h1 {
        position: relative;
        font-size: 40px
    }

/* SECOND ROW */
.two-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.box {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,.08)
}

    .box ul {
        list-style: none
    }

    .box li {
        padding: 8px 0;
        border-bottom: 1px dashed #ddd
    }

/* STAFF */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
    gap: 18px
}

.staff-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.08)
}

    .staff-card img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: 8px
    }

/* TOPPER */
.topper-slider {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-radius: 16px
}

.topper-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: topperShow 15s infinite
}

    .topper-slide:nth-child(2) {
        animation-delay: 5s
    }

    .topper-slide:nth-child(3) {
        animation-delay: 10s
    }

@keyframes topperShow {
    0% {
        opacity: 0
    }

    6% {
        opacity: 1
    }

    30% {
        opacity: 1
    }

    36% {
        opacity: 0
    }

    100% {
        opacity: 0
    }
}

/* Footer */
.footer {
    background: #0f4c81;
    color: #fff;
    padding: 30px 0;
    margin-top: 40px
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 20px
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
@media(max-width:900px) {
    .top-grid {
        grid-template-columns: 1fr
    }

    .two-grid {
        grid-template-columns: 1fr
    }

    .school-hero h1 {
        font-size: 28px
    }
}
/* ===== STAFF RUNNING STRIP ===== */
.staff-marquee {
    overflow: hidden;
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 18px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.staff-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    width: max-content;
    animation: staffScroll 35s linear infinite;
}

.staff-marquee:hover .staff-track {
    animation-play-state: paused;
}

.staff-item {
    text-align: center;
    min-width: 160px;
    flex: 0 0 auto;
}

    .staff-item img {
        width: 90px;
        height: 110px;
        object-fit: cover;
        border-radius: 10px;
        border: 2px solid #0f4c81;
    }

.staff-name {
    margin-top: 6px;
    font-weight: 600;
    font-size: 14px;
}

@keyframes staffScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}
/* ===== TOPPER HORIZONTAL STRIP (PRO) ===== */
.topper-marquee {
    overflow: hidden;
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 18px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.topper-track {
    display: flex;
    flex-direction: row; /* ⭐ VERY IMPORTANT */
    align-items: center;
    gap: 28px;
    width: max-content;
    animation: topperScroll 30s linear infinite;
}

.topper-marquee:hover .topper-track {
    animation-play-state: paused; /* hover pause */
}

.topper-item {
    text-align: center;
    min-width: 120px;
    flex: 0 0 auto; /* ⭐ ye line missing thi */
}
    .topper-item img {
        width: 90px;
        height: 110px;
        object-fit: cover;
        border-radius: 8px;
        border: 2px solid #0f4c81;
    }

.topper-name {
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
}

.topper-rank {
    font-size: 12px;
    color: #e53935;
    font-weight: bold;
}
.topper-marks {
    font-size: 12px;
    font-weight: bold;
    color: #2e7d32;
    margin-top: 4px;
}
@keyframes topperScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}
/* NOTICE BAR */
.notice-bar {
    background: #ffeb3b;
    overflow: hidden;
    padding: 6px 0;
    font-weight: 600;
}

.notice-track {
    display: inline-block;
    white-space: nowrap;
    animation: noticeMove 25s linear infinite;
}

@@keyframes noticeMove {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

/* HERO SLIDER */
.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: heroFade 15s infinite;
}

    .hero-slide:nth-child(2) {
        animation-delay: 5s
    }

    .hero-slide:nth-child(3) {
        animation-delay: 10s
    }

@@keyframes heroFade {
    0% {
        opacity: 0
    }

    10% {
        opacity: 1
    }

    30% {
        opacity: 1
    }

    40% {
        opacity: 0
    }

    100% {
        opacity: 0
    }
}

/* EVENT CARD */
.event-card {
    background: #f8fafc;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: .25s;
}

    .event-card:hover {
        transform: translateY(-3px);
    }

/* POPUP */
.popup-bg {
    background: rgba(0,0,0,.6);
}
