/* ===== CSS VARIABLES - Colors from Logo ===== */
:root {
    --primary: #06bff7;
    --primary-dark: #3ea3c2;
    --accent: #e8a020;
    --accent2: hwb(38 5% 7%);
    --green: #1a6b3a;
    --white: #ffffff;
    --light-bg: #f4f6f9;
    --border: #dde1e8;
    --text: #222;
    --text-muted: #555;
    --notice-bg: linear-gradient(to bottom,
            rgb(0, 162, 202) 0%,
            rgb(13, 19, 20) 100%);
    ;
    --notice-link: #f8d568;
    --ticker-hover: #e8a020;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: linear-gradient(to bottom,
            rgb(4, 158, 197) 0%,
            rgb(43, 92, 107) 100%);
    color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* justify-content: center;
  gap: 20px; */
    padding: 10px 20px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.top-bar-school {
    background: linear-gradient(to bottom,
            rgb(204, 138, 148) 0%,
            rgb(204, 138, 148) 50%,
            /* Navy Blue */
            rgb(204, 138, 148) 100%);
    color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* justify-content: center;
  gap: 20px; */
    padding: 10px 20px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}


/* ===== HEADER ===== */
.site-header {
    background: linear-gradient(to bottom,
            rgb(0, 162, 202) 0%,
            rgb(13, 19, 20) 100%);
    /* background: linear-gradient(135deg, #1a2a44 0%, #0d1e35 100%); */
    /* border-bottom: 3px solid var(--accent); */
    padding: 10px 0;
}

.site-header-school {
    background: linear-gradient(to bottom,
            #05b7e4 0%,
            #26a1ca 50%,
            /* Deep Dark Sky Blue */
            #039cca 100%);
    padding: 10px 0;
}

/* Logo Text Paragraph */

/* All links */




/* .logo-text .p4  {
    font-size: 18px;
    margin-bottom: 5px;
  }

.logo-text .p4 a,
.logo-text .p4 a:hover,
.logo-text .p4 a:focus,
.logo-text .p4 a:visited {
    text-decoration: none;
    color: inherit;
} */



/* ===== NAVIGATION ===== */

.nav-login-btn {
    background: rgb(240, 234, 234) !important;
    color: black !important;
    border-radius: 50px;
    padding: 10px 16px !important;
    font-weight: 800 !important;
}

.nav-login-btn:hover {
    background: linear-gradient(135deg, #00B9F2, #0e56c2) !important;
    color: white !important;
}

/* Dropdown */

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #0288A9;
    min-width: 190px;
    border: 1px solid #ddd;
    border-top: 3px solid var(--accent);
    z-index: 2000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
    list-style: none;

    /* Desktop smooth dropdown (slide-up) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(40px) scale(0.95);
    transition:
        opacity 500ms cubic-bezier(0.4, 0, 0.2, 1),
        transform 500ms cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s linear 500ms;

    will-change: opacity, transform;
}

/* Sub-dropdown */




/* ==========================================
   MOBILE DRAWER MENU
========================================== */

/* =====================================
   MOBILE DRAWER MENU
===================================== */

.hamburger span {
    width: 28px;
    height: 3px;
    border-radius: 50px;
    background: #fff;
    transition: .3s;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

@media(max-width:991px) {

    .nav-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
    }

    .mobile-nav-header {
        display: flex;
        align-items: center;
    }

    .mobile-logo img {
        max-height: 45px;
        width: auto;
        display: block;
    }

    .hamburger {
        display: flex;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    /* Mobile drawer menu */
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 86vw);
        max-width: none;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        background: linear-gradient(to bottom, #00b9f2 0%, #072530 100%);
        z-index: 1001;
        padding: 60px 0 20px;
        transition: .4s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, .2);
        flex-direction: column !important;
        align-items: stretch;
        flex-wrap: nowrap;
    }

    .nav-list.open {
        right: 0;
    }

    .nav-list>li {
        width: 100%;
        flex: 0 0 auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-list li {
        position: static;
    }

    .nav-list>li>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 18px;
        width: 100%;
        color: #fff;
        font-size: 14px;
        text-decoration: none;
    }

    .nav-list>li>a:hover {
        background: rgba(232, 160, 32, 0.2);
    }

    /* Mobile: drawer stacking + deterministic dropdown visibility */
    .dropdown,
    .dropdown .dropdown,
    .dropdown .dropdown .dropdown,
    .dropdown .dropdown .dropdown .dropdown {
        display: none;
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        transition: none;
        border: 0;
        box-shadow: none;
        min-width: 0;
        max-width: 100%;
        background: rgba(0, 0, 0, 0.12);
    }

    /* Any active parent shows its direct dropdown */
    .has-dropdown.active>.dropdown {
        display: block;
    }

    /* If submenu inside submenu is active, its own dropdown should show too */
    .has-dropdown.active>.dropdown .has-dropdown.active>.dropdown {
        display: block;
    }

    .has-dropdown.active>.dropdown .has-dropdown.active>.dropdown .has-dropdown.active>.dropdown {
        display: block;
    }

    .dropdown li>a {
        display: block;
        padding: 10px 16px 10px 35px;
        color: rgba(255, 255, 255, 0.85);
        font-size: 13px;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .dropdown li>a:hover {
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
    }

    /* Level 2 - more indent */
    .dropdown .dropdown li>a {
        padding-left: 55px;
        font-size: 12px;
        background: rgba(0, 0, 0, 0.1);
    }

    /* Level 3 - even more indent */
    .dropdown .dropdown .dropdown li>a {
        padding-left: 75px;
        font-size: 12px;
        background: rgba(0, 0, 0, 0.08);
    }

    /* Arrow rotation */
    .has-dropdown>a i {
        margin-left: auto;
        transition: .3s;
        font-size: 12px;
    }

    .has-dropdown.active>a i {
        transform: rotate(180deg);
    }

}

/* ===== NOTICE TICKER ===== */

.ticker-track {
    display: flex;
    align-items: center;
    gap: 30px;
    white-space: nowrap;
    width: max-content;
    padding: 5px 0;
    /* Animation controlled by JS for smooth adaptive scrolling */
}

.ticker-track:hover {
    /* Animation pause handled by JS */
}

.ticker-item {
    color: var(--notice-link);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    flex-shrink: 0;
}

.ticker-item:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ===== MAIN LAYOUT ===== */

/* ===== IMAGE SLIDER ===== */

/* ===== SECTION BLOCKS ===== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid var(--border);
    transition:
        opacity 0.2s,
        transform 0.2s;
}

.gallery-item img:hover {
    opacity: 0.85;
    transform: scale(1.03);
}

/* ===== YOUTUBE BANNER ===== */

/* ===== SIDEBAR ===== */
.sidebar {
    width: 500px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}



/* ===== NOTICES SCROLL ===== */

.notices-scroll-track {
    display: flex;
    flex-direction: column;
}

.notices-scroll-wrap:hover .notices-scroll-track {
    /* Animation controlled by JS for smooth seamless loop */
}

/* Facebook Card */

/* Visitor Table */

/* video table */
/* video table */



/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(to bottom,
            #01181f 0%,
            #007DA8 100%);
    color: #c8d4e4;
    margin-top: 24px;
}

.footer-bottom {
    background: linear-gradient(to bottom,
            #0d95be 0%,
            #007DA8 100%);

    max-width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: white;
    flex-wrap: wrap;
    gap: 8px;
}

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

@media (max-width: 768px) {

    .logo-text h1 {
        font-size: 20px;
        text-align: center;
    }

    .logo-text {
        margin-left: 0;
    }

    .logo-text p {
        font-size: 20px;
        margin-top: 6px;
        margin-bottom: 5px;
        text-align: center;
    }

    .logo-text .p1 {
        font-size: 10px;
        margin-top: 6px;
        margin-bottom: 5px;
        text-align: center;
    }

    .logo-text .p2 {
        font-size: 13px;
        margin-top: 6px;
        margin-bottom: 5px;
        text-align: center;
    }

    .logo-text .p3 {
        font-size: 10px;
        margin-top: 6px;
        margin-bottom: 5px;
        text-align: center;
    }

    .logo-text .p4 {
        font-size: 14px;
        margin-top: 6px;
        margin-bottom: 5px;
        text-align: center;
    }

    .logo-img {
        display: none;
    }

    .header-btn {
        gap: 10px;
        margin-bottom: 15px;
    }

    .header-btn p {
        font-size: 10px;
        padding: 10px;
    }

    .switcher-container {
        margin: 15px 0;
    }

    .card-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .hamburger {
        display: flex !important;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .slider-container {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

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

    .header-inner {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .school-btn {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* school college switcher */

.switch-btn.active {
    background: linear-gradient(135deg, #00B9F2, #0e56c2);
    color: white;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

/* loader css */

.custom-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    animation: pulse 2s infinite ease-in-out;
    z-index: 2;
}

.spinner {
    width: 70px;
    height: 70px;
    border: 6px solid #f0f0f0;
    border-top: 6px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.custom-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 480px) {
    .loader-logo {
        width: 100px;
        height: 100px;
    }
}


/* Important Links */

.links-list li {
    border-bottom: 1px solid #eee;
}

.links-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.links-list li a:hover {
    background: #f5f9ff;
    color: var(--primary);
    padding-left: 20px;
}
