/* ==========================================================================
   Jana Jyoti Secondary School - Core Design System & Stylesheet
   Dual Theme (Light & Dark Mode) | Modern Institutional Aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Mukta:wght@400;600;700&display=swap');

/* --- Theme Variables --- */
:root {
    /* Brand Accent Colors */
    --primary: #0f2c59;
    --primary-light: #1e40af;
    --primary-dark: #07172e;
    --secondary: #d97706;
    --secondary-hover: #b45309;
    --accent: #dc2626;
    --success: #059669;
    --info: #0284c7;
    --warning: #d97706;
    --danger: #dc2626;

    /* Light Theme Palette - Pure Crisp Light */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-secondary: #f1f5f9;
    --bg-surface-tertiary: #e2e8f0;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    /* Light Mode Component Theming */
    --topbar-bg: #f1f5f9;
    --topbar-color: #334155;
    --topbar-border: #e2e8f0;
    --header-bg: #ffffff;
    --navbar-bg: #ffffff;
    --navbar-scrolled-bg: rgba(255, 255, 255, 0.92);
    --navbar-text: #1e293b;
    --navbar-hover-bg: #f1f5f9;
    --navbar-border: #e2e8f0;
    --dropdown-bg: #ffffff;
    --dropdown-text: #0f172a;
    --dropdown-hover-bg: #f8fafc;
    --drawer-bg: #ffffff;
    --drawer-header-bg: #f8fafc;
    --drawer-text: #0f172a;
    --drawer-border: #e2e8f0;

    /* Light Mode Footer */
    --footer-bg: #ffffff;
    --footer-text: #334155;
    --footer-heading: #0f2c59;
    --footer-link: #475569;
    --footer-link-hover: #0f2c59;
    --footer-border: #e2e8f0;
    --footer-social-bg: #f1f5f9;
    --footer-social-color: #0f2c59;
    --footer-bottom-border: #e2e8f0;

    /* Shadows & Radii */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s ease;

    /* Typography */
    --font-base: 'Plus Jakarta Sans', 'Mukta', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-ne: 'Mukta', sans-serif;
}

/* --- Dark Theme Palette - Full Deep Dark --- */
[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --secondary: #fbbf24;
    --secondary-hover: #f59e0b;
    --accent: #ef4444;

    /* Full Deep Dark Palette */
    --bg-body: #050811;
    --bg-surface: #0b1120;
    --bg-surface-secondary: #111a2e;
    --bg-surface-tertiary: #192640;
    --border-color: #1e293b;
    --border-hover: #334466;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;

    /* Dark Mode Component Theming */
    --topbar-bg: #03060c;
    --topbar-color: #94a3b8;
    --topbar-border: #151f33;
    --header-bg: #070c18;
    --navbar-bg: #070c18;
    --navbar-scrolled-bg: rgba(7, 12, 24, 0.92);
    --navbar-text: #e2e8f0;
    --navbar-hover-bg: rgba(255, 255, 255, 0.08);
    --navbar-border: #151f33;
    --dropdown-bg: #0b1120;
    --dropdown-text: #f8fafc;
    --dropdown-hover-bg: #151f33;
    --drawer-bg: #070c18;
    --drawer-header-bg: #04070e;
    --drawer-text: #f8fafc;
    --drawer-border: #151f33;

    /* Dark Mode Footer */
    --footer-bg: #03060c;
    --footer-text: #94a3b8;
    --footer-heading: #f8fafc;
    --footer-link: #94a3b8;
    --footer-link-hover: #ffffff;
    --footer-border: rgba(255, 255, 255, 0.08);
    --footer-social-bg: rgba(255, 255, 255, 0.06);
    --footer-social-color: #f8fafc;
    --footer-bottom-border: rgba(255, 255, 255, 0.08);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* --- Base & Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-base);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Font Resizing Accessibility */
body.font-large {
    font-size: 18px;
}

body.font-small {
    font-size: 14px;
}

/* --- Utility Layout --- */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* --- Government Top Bar --- */
.gov-topbar {
    background: var(--topbar-bg);
    color: var(--topbar-color);
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid var(--topbar-border);
    transition: var(--transition);
}

.gov-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.gov-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gov-emblem-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--topbar-color);
    font-weight: 600;
}

.gov-text-full {
    display: inline;
}

.gov-text-mobile {
    display: none;
}

.gov-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Live Topbar Date and Time */
.topbar-datetime {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--topbar-color);
    font-size: 12.5px;
    font-weight: 500;
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-color);
    padding: 3px 12px;
    border-radius: var(--radius-full);
}

.topbar-datetime .date-item,
.topbar-datetime .time-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar-datetime .time-item {
    color: var(--secondary);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.topbar-datetime .datetime-divider {
    color: var(--border-hover);
    font-size: 11px;
}

@media (max-width: 768px) {
    .topbar-datetime .date-item {
        display: none;
    }

    .topbar-datetime .datetime-divider {
        display: none;
    }
}

/* --- Theme Toggle Switch --- */
.theme-toggle-btn {
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background: var(--border-hover);
    color: var(--primary);
}

/* --- Main Brand Header --- */
.main-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.school-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.school-logo {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15, 44, 89, 0.12);
    flex-shrink: 0;
    border: 2.5px solid #dbeafe;
    overflow: hidden;
    padding: 2px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.school-logo:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(15, 44, 89, 0.2);
}

.school-logo img,
.school-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

[data-theme="dark"] .school-logo {
    background: #1e293b;
    border-color: #3b82f6;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.brand-details h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .brand-details h1 {
    color: #60a5fa;
}

.brand-details .nepali-title {
    font-family: var(--font-ne);
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2px;
}

.brand-details .slogan {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.header-quick-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-surface-secondary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .info-icon {
    color: #60a5fa;
}

.info-text span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.info-text strong {
    font-size: 13.5px;
    color: var(--text-primary);
    font-weight: 700;
}

/* --- Sticky Navigation Bar --- */
.navbar {
    background: var(--navbar-bg);
    position: sticky;
    top: 0;
    z-index: 10000;
    border-bottom: 1px solid var(--navbar-border);
    margin: 0;
    padding: 0;
    min-height: 52px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
    background: var(--navbar-scrolled-bg) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid var(--border-hover) !important;
}

[data-theme="dark"] .navbar {
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .navbar.scrolled {
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.65) !important;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
}

/* Desktop default hiding of mobile components */
.nav-brand-mobile,
.mobile-nav-backdrop,
.mobile-drawer,
.mobile-nav-toggle {
    display: none;
}

.nav-menu-desktop {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-menu-desktop .nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-desktop .nav-item {
    position: relative;
}

.nav-menu-desktop .nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 11px;
    color: var(--navbar-text);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-menu-desktop .nav-link i:first-child {
    font-size: 12px;
    color: var(--secondary);
}

.nav-menu-desktop .nav-link .dropdown-arrow {
    font-size: 9px;
    margin-left: 2px;
}

.nav-menu-desktop .nav-link:hover,
.nav-menu-desktop .nav-item.active .nav-link {
    color: var(--primary);
    background: var(--navbar-hover-bg);
    border-radius: var(--radius-sm);
}

[data-theme="dark"] .nav-menu-desktop .nav-link:hover,
[data-theme="dark"] .nav-menu-desktop .nav-item.active .nav-link {
    color: #ffffff;
    background: var(--navbar-hover-bg);
}

.nav-menu-desktop .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-menu-desktop .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: var(--dropdown-bg);
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-xl);
    list-style: none;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
    z-index: 1010;
}

.nav-menu-desktop .dropdown-item a {
    display: block;
    padding: 10px 18px;
    font-size: 13.5px;
    color: var(--dropdown-text);
    font-weight: 500;
}

.nav-menu-desktop .dropdown-item a:hover {
    background: var(--dropdown-hover-bg);
    color: var(--primary-light);
    padding-left: 22px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-nav-admission {
    position: relative;
    overflow: hidden;
    background: var(--secondary);
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    height: 34px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
    transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 240ms cubic-bezier(0.4, 0, 0.2, 1), background 240ms ease;
    z-index: 1;
    text-decoration: none;
    line-height: 1;
}

.btn-nav-admission i {
    font-size: 12px;
    position: relative;
    z-index: 2;
}

.btn-nav-admission span {
    position: relative;
    z-index: 2;
}

.btn-nav-admission::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 50%;
    height: 200%;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 600ms cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.btn-nav-admission:hover {
    background: var(--secondary-hover);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45);
}

.btn-nav-admission:hover::before {
    left: 150%;
}

.btn-nav-result {
    background: #059669;
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    height: 34px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
    transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 240ms cubic-bezier(0.4, 0, 0.2, 1), background 240ms ease;
    text-decoration: none;
    line-height: 1;
}

.btn-nav-result i {
    font-size: 12px;
}

.btn-nav-result:hover {
    background: #047857;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.45);
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* --- Notice Marquee Ticker --- */
.notice-ticker {
    background: linear-gradient(90deg, #991b1b 0%, #b91c1c 100%);
    color: #ffffff;
    padding: 8px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -2px !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    position: relative;
    z-index: 999;
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.ticker-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f172a;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.ticker-badge i,
.ticker-badge span {
    position: relative;
    z-index: 3;
    color: #0f172a;
}

/* Continuous Looping Glossy Light Sweep Animation */
.ticker-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 35px;
    height: 200%;
    background: linear-gradient(
        115deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 25%,
        rgba(255, 255, 255, 1) 50%,
        rgba(254, 240, 138, 0.9) 65%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85));
    animation: flashBadgeSweep 2.6s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes flashBadgeSweep {
    0% {
        left: -100%;
    }
    48% {
        left: 140%;
    }
    100% {
        left: 140%;
    }
}

.ticker-marquee {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 32px;
    font-size: 13.5px;
    font-weight: 500;
}

.ticker-item a {
    color: #ffffff;
}

.ticker-item a:hover {
    text-decoration: underline;
}

@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* --- Hero Banner Section --- */
.hero-section {
    position: relative;
    background-color: #07172e;
    background-image: 
        linear-gradient(135deg, rgba(7, 23, 46, 0.88) 0%, rgba(15, 44, 89, 0.82) 50%, rgba(30, 58, 138, 0.76) 100%),
        url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 60px 0 80px;
    overflow: hidden;
}

.hero-overlay-shapes {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.4;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, rgba(59, 130, 246, 0) 70%);
    top: -100px;
    right: 10%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: #fde047;
    margin-bottom: 20px;
}

.hero-content h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.hero-content h2 .highlight {
    color: #38bdf8;
    background: linear-gradient(120deg, #38bdf8 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 16px;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 580px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), background 280ms ease, border-color 280ms ease;
    text-align: center;
}

/* 1. Apply for Admission (Gold/Orange CTA) - Smooth scale 1.04x + Orange glow + Diagonal light sweep */
.btn-gold {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), background 280ms ease;
    z-index: 1;
}

.btn-gold i,
.btn-gold span {
    position: relative;
    z-index: 2;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        115deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 40%,
        rgba(254, 240, 138, 0.75) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: left 600ms cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    transform: scale(1.04);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45), 0 0 15px rgba(217, 119, 6, 0.35);
}

.btn-gold:hover::before {
    left: 150%;
}

/* 2. Check Exam Result (Primary Blue CTA) - Smooth scale 1.04x + Glowing blue border/shadow + Horizontal moving shine */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: 1px solid transparent;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), border-color 280ms ease, background 280ms ease;
    z-index: 1;
}

.btn-primary i,
.btn-primary span {
    position: relative;
    z-index: 2;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    transition: left 550ms ease;
    pointer-events: none;
    z-index: 1;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: scale(1.04);
    border-color: rgba(147, 197, 253, 0.75);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45), 0 0 15px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover::before {
    left: 140%;
}

/* 3. Discover School (Glass Style CTA) - Premium glass brighten + Subtle border glow + Smooth highlight */
.btn-outline-white {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 280ms ease, border-color 280ms ease, box-shadow 280ms ease, transform 280ms ease;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.25), inset 0 0 12px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-card-portal {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-xl);
}

.hero-card-portal h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 12px;
}

.portal-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.portal-tile {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    transition: var(--transition);
}

.portal-tile:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

.portal-tile-icon {
    font-size: 26px;
}

.portal-tile span {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
}

/* --- Quick Statistics Bar --- */
.stats-section {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 22px 0;
    margin-top: -24px;
    position: relative;
    z-index: 20;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 8px;
    border-right: 1px solid var(--border-color);
}

.stat-box:last-child {
    border-right: none;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.05));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .stat-icon {
    color: #60a5fa;
}

.stat-number {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 3px;
}

.stat-label {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* --- Section Styling & Typography (Tightened Spacings) --- */
.section {
    padding: 46px 0;
}

.section-alt {
    background-color: var(--bg-surface-secondary);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 28px;
}

.section-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: rgba(15, 44, 89, 0.08);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}

[data-theme="dark"] .section-badge {
    color: #93c5fd;
    background: rgba(147, 197, 253, 0.12);
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 15px;
    color: var(--text-secondary);
}

/* --- Principal Welcome Section --- */
.principal-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 30px;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.principal-card-photo {
    text-align: center;
    position: relative;
}

.principal-img-wrap {
    width: 220px;
    height: 220px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--bg-surface-secondary);
    box-shadow: var(--shadow-lg);
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.principal-card-photo h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.principal-card-photo span {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.principal-content blockquote {
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 24px;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid var(--secondary);
    font-style: italic;
}

/* --- Notices Grid --- */
.notices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.notice-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.notice-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.notice-card.urgent {
    border-top: 4px solid var(--accent);
}

.notice-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.notice-category-badge {
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cat-General {
    background: #e0f2fe;
    color: #0369a1;
}

.cat-Exam {
    background: #fef3c7;
    color: #b45309;
}

.cat-Admission {
    background: #dcfce7;
    color: #15803d;
}

.cat-Scholarship {
    background: #f3e8ff;
    color: #7e22ce;
}

.cat-Holiday {
    background: #fee2e2;
    color: #b91c1c;
}

.cat-Event {
    background: #ffedd5;
    color: #c2410c;
}

[data-theme="dark"] .cat-General {
    background: rgba(3, 105, 161, 0.2);
    color: #7dd3fc;
}

[data-theme="dark"] .cat-Exam {
    background: rgba(180, 83, 9, 0.2);
    color: #fde047;
}

[data-theme="dark"] .cat-Admission {
    background: rgba(21, 128, 61, 0.2);
    color: #86efac;
}

[data-theme="dark"] .cat-Scholarship {
    background: rgba(126, 34, 206, 0.2);
    color: #d8b4fe;
}

[data-theme="dark"] .cat-Holiday {
    background: rgba(185, 28, 28, 0.2);
    color: #fca5a5;
}

.notice-date {
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.notice-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 10px;
}

.notice-title a:hover {
    color: var(--primary-light);
}

.notice-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.notice-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
}

/* --- Academic Programs Grid --- */
.academic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.academic-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.academic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.academic-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    color: #fff;
    padding: 24px;
    text-align: center;
}

.academic-card-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.academic-card-header p {
    font-size: 13.5px;
    color: #cbd5e1;
}

.academic-card-body {
    padding: 24px;
}

.academic-list {
    list-style: none;
    margin-bottom: 20px;
}

.academic-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.academic-list li:last-child {
    border-bottom: none;
}

/* --- Features / Why Choose Us Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
}

.feature-box:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

[data-theme="dark"] .feature-icon {
    color: #60a5fa;
}

.feature-box h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-box p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Events & Calendar Section --- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.event-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.event-date-badge {
    background: var(--primary);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 64px;
    flex-shrink: 0;
}

.event-date-day {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.event-date-month {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.event-info h4 {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.event-meta {
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.event-info p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Staff / Faculty Directory --- */
.staff-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.filter-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.staff-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.staff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.staff-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: var(--bg-surface-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    border: 4px solid var(--bg-surface-tertiary);
    overflow: hidden;
}

.staff-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.staff-role {
    font-size: 13.5px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

[data-theme="dark"] .staff-role {
    color: #60a5fa;
}

.staff-qual {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.staff-contact {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* --- Gallery & Lightbox --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-surface-secondary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 900px;
    width: 100%;
    position: relative;
    text-align: center;
}

.lightbox-img {
    max-height: 80vh;
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    margin: 0 auto;
}

.lightbox-caption {
    color: #ffffff;
    font-size: 15px;
    margin-top: 14px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
}

/* --- Interactive Forms (Admission & Result Search & Contact) --- */
.form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-lg);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Multi-Step Wizard */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 36px;
    padding: 0 10px;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--border-color);
    z-index: 1;
}

.step-indicator {
    position: relative;
    z-index: 2;
    background: var(--bg-surface);
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-surface-secondary);
    border: 3px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.step-indicator.active .step-circle {
    background: var(--primary);
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.25), 0 4px 12px rgba(37, 99, 235, 0.3);
    transform: scale(1.08);
}

.step-indicator.completed .step-circle {
    background: var(--success);
    border-color: var(--success);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.step-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.step-indicator.active .step-title {
    color: var(--primary);
    font-weight: 800;
}

.step-indicator.completed .step-title {
    color: var(--success);
}

/* --- Official Marksheet & Result Presentation --- */
.marksheet-card,
.marksheet-wrapper {
    background: #ffffff;
    color: #0f172a;
    border: 2px solid #0f2c59;
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 860px;
}

[data-theme="dark"] .marksheet-card,
[data-theme="dark"] .marksheet-wrapper {
    background: #ffffff;
    color: #0f172a;
}

.marksheet-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 100px;
    font-weight: 900;
    color: rgba(15, 44, 89, 0.04);
    pointer-events: none;
    white-space: nowrap;
    text-transform: uppercase;
}

.marksheet-header {
    text-align: center;
    border-bottom: 2px solid #0f2c59;
    padding-bottom: 18px;
    margin-bottom: 20px;
}

.marksheet-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0f2c59;
    margin: 4px 0;
    line-height: 1.25;
}

.marksheet-header p {
    font-size: 12.5px;
    color: #475569;
}

.marksheet-badge {
    display: inline-block;
    background: #0f2c59;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 4px;
    margin-top: 8px;
}

.marksheet-meta-grid,
.marksheet-student-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: 13.5px;
    color: #334155;
}

.marksheet-meta-grid strong,
.marksheet-student-meta strong {
    color: #0f2c59;
    font-weight: 700;
}

.marksheet-meta-grid code {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 3px;
    color: #1e3a8a;
    font-weight: 700;
}

.marksheet-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 22px;
    font-size: 13.5px;
}

.marksheet-table th,
.marksheet-table td {
    border: 1px solid #cbd5e1;
    padding: 10px 12px;
    text-align: center;
    color: #0f172a;
}

.marksheet-table th {
    background: #0f2c59;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
}

.marksheet-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.marksheet-table td.subject-name {
    text-align: left;
    font-weight: 600;
}

.gpa-summary-box,
.marksheet-summary {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 26px;
    text-align: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gpa-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.gpa-val,
.marksheet-gpa-box {
    font-size: 24px;
    font-weight: 900;
    color: #0f2c59;
}

.marksheet-signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 18px;
    text-align: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sign-box {
    flex: 1;
    min-width: 140px;
    max-width: 220px;
    border-top: 1.5px solid #0f172a;
    padding-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

/* --- Reusable Responsive Grid Utilities --- */
.about-grid,
.admission-grid,
.contact-grid,
.content-grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: start;
    margin-bottom: 50px;
}

.admission-grid {
    grid-template-columns: 1.2fr 1fr;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

/* --- Downloads Table --- */
.downloads-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.downloads-table th {
    background: var(--bg-surface-secondary);
    padding: 14px 18px;
    text-align: left;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.downloads-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

.downloads-table tr:hover td {
    background: var(--bg-surface-secondary);
}

/* --- Citizen Charter Table --- */
.charter-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.charter-table th {
    background: var(--primary);
    color: #ffffff;
    padding: 14px 16px;
    font-size: 14px;
    text-align: left;
}

.charter-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13.5px;
}

/* ==========================================================================
   Public Footer Component - Desktop Grid & Mobile Collapsible Accordion
   ========================================================================== */
.main-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 56px 0 24px;
    border-top: 4px solid var(--secondary);
    margin-top: auto;
    position: relative;
    transition: var(--transition);
}

/* Footer Top Identity & Social Bar */
.footer-top-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--footer-border);
}

.footer-brand-info {
    max-width: 680px;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.footer-logo-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    padding: 3px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

.footer-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.footer-brand-text .footer-school-en {
    font-size: 20px;
    color: var(--footer-heading);
    font-weight: 800;
    margin: 0;
    line-height: 1.25;
}

.footer-brand-text .footer-school-ne {
    font-family: var(--font-ne);
    color: var(--secondary);
    font-size: 14.5px;
    margin: 3px 0 0 0;
    font-weight: 600;
}

.footer-brand-slogan {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
}

.footer-social-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--footer-social-bg);
    color: var(--footer-social-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 14px;
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--secondary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

/* Footer Content Group - Desktop: 4 Columns Grid */
.footer-accordion-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.footer-accordion-item {
    display: flex;
    flex-direction: column;
}

.footer-accordion-header {
    background: transparent;
    border: none;
    padding: 0 0 14px 0;
    margin: 0;
    text-align: left;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: default;
    color: var(--footer-heading);
    position: relative;
}

.footer-accordion-header .accordion-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--footer-heading);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
}

.footer-accordion-header.highlight-header .accordion-title {
    color: var(--secondary);
}

.footer-accordion-header .accordion-title i {
    color: var(--secondary);
    font-size: 14px;
}

/* Underline decoration on desktop */
.footer-accordion-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
}

.footer-accordion-icon {
    display: none; /* Hidden on desktop */
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-accordion-body {
    display: block;
    margin-top: 14px;
}

/* Footer Link List */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--footer-link);
    font-size: 13.5px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.footer-links a i {
    font-size: 9px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.footer-links a:hover {
    color: var(--footer-link-hover);
    padding-left: 4px;
}

.footer-links a:hover i {
    color: var(--secondary);
    transform: translateX(2px);
}

/* Footer Contact Details Box */
.footer-contact-details .contact-line {
    font-size: 13.5px;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--footer-text);
    line-height: 1.5;
}

.footer-contact-details .contact-line i {
    margin-top: 3px;
    color: var(--secondary);
    font-size: 13px;
    flex-shrink: 0;
}

.footer-contact-details .contact-line a {
    color: var(--footer-link);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-details .contact-line a:hover {
    color: var(--footer-link-hover);
    text-decoration: underline;
}

.footer-contact-details .emergency-line {
    color: #ef4444;
    font-weight: 600;
}

.footer-contact-details .emergency-line i {
    color: #ef4444;
}

.footer-contact-details .emergency-line a {
    color: #dc2626;
    font-weight: 700;
}

.btn-footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 8px;
    transition: var(--transition);
}

.btn-footer-contact:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #ffffff;
}

/* Footer Bottom Area - Modern Clean Layout */
.footer-bottom-wrapper {
    border-top: 1px solid var(--footer-bottom-border);
    padding-top: 22px;
    margin-top: 24px;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright-text {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-copyright-text strong {
    color: var(--footer-heading);
}

.footer-dev-credit {
    font-size: 13px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-dev-credit a {
    color: var(--primary-light);
    font-weight: 600;
}

.footer-dev-credit a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.footer-dev-credit i {
    color: #38bdf8;
    font-size: 13px;
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- Important Notice Screen Popup Modal --- */
.screen-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 23, 46, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: popupFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen-popup-overlay.fade-out {
    animation: popupFadeOut 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popupFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.screen-popup-dialog {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-xl);
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.55), 0 0 35px rgba(245, 158, 11, 0.2);
    animation: popupScaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popupScaleUp {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.screen-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    font-size: 18px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.screen-popup-close:hover {
    background: #dc2626;
    color: #ffffff;
    transform: rotate(90deg);
}

.screen-popup-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-color);
}

.screen-popup-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.screen-popup-title {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding-right: 32px;
}

.screen-popup-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.popup-category-badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.screen-popup-body {
    padding: 20px 24px;
}

.screen-popup-media {
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    max-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-popup-img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.screen-popup-img:hover {
    transform: scale(1.02);
}

.screen-popup-pdf-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.03));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 16px;
}

.pdf-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #dc2626;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.pdf-details {
    flex: 1;
    min-width: 0;
}

.pdf-details h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.pdf-details p {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.screen-popup-text {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.screen-popup-footer {
    padding: 16px 24px;
    background: var(--bg-surface-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
}

.screen-popup-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    cursor: pointer;
}

.screen-popup-remember input {
    cursor: pointer;
    accent-color: var(--primary);
}

.screen-popup-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 640px) {
    .screen-popup-dialog {
        max-width: 100%;
        border-radius: var(--radius-lg);
    }
    .screen-popup-header,
    .screen-popup-body,
    .screen-popup-footer {
        padding: 16px;
    }
    .screen-popup-title {
        font-size: 17px;
    }
    .screen-popup-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .screen-popup-btns {
        width: 100%;
        justify-content: flex-end;
    }
    .screen-popup-pdf-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   Responsive Media Queries (Mobile Navigation Drawer & Accordion Footer)
   ========================================================================== */

/* ==========================================================================
   Responsive Media Queries (Streamlined Mobile Header & Gap Reductions)
   ========================================================================== */

/* 1. Medium Tablets & Below (<= 992px): Mobile Navigation Drawer & Unified Header */
@media (max-width: 992px) {
    .main-header {
        display: none !important;
    }

    .navbar {
        padding: 6px 0 !important;
        min-height: 50px;
    }

    .nav-menu-desktop {
        display: none !important;
    }

    .btn-nav-admission,
    .btn-nav-result {
        display: none !important;
    }

    .nav-brand-mobile {
        display: flex !important;
        align-items: center;
        flex: 1;
        min-width: 0;
    }

    .mobile-brand-link {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        color: var(--text-primary);
        min-width: 0;
    }

    .mobile-nav-logo {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #ffffff;
        padding: 2px;
        object-fit: contain;
        border: 1.5px solid var(--border-color);
        flex-shrink: 0;
    }

    .mobile-brand-titles {
        display: flex;
        flex-direction: column;
        min-width: 0;
        overflow: hidden;
    }

    .mobile-brand-ne {
        font-family: var(--font-ne);
        font-size: 13.5px;
        font-weight: 700;
        color: var(--secondary);
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-brand-en {
        font-size: 12px;
        font-weight: 700;
        color: var(--text-primary);
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .mobile-nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: var(--radius-md);
        background: var(--bg-surface-secondary);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        font-size: 17px;
        cursor: pointer;
        transition: var(--transition);
        z-index: 10001;
        flex-shrink: 0;
    }

    .mobile-nav-toggle:hover,
    .mobile-nav-toggle:active {
        background: var(--secondary);
        color: #ffffff;
        border-color: var(--secondary);
    }

    /* Fixed Backdrop Overlay */
    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: rgba(3, 7, 18, 0.75);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 99998;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-nav-backdrop.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Slide-in Mobile Offcanvas Drawer */
    .mobile-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        max-width: 86vw;
        height: 100vh;
        height: 100dvh;
        background: var(--drawer-bg);
        color: var(--drawer-text);
        z-index: 99999;
        transform: translateX(100%);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
        box-shadow: -12px 0 35px rgba(0, 0, 0, 0.4);
        overflow: hidden;
        border-left: 1px solid var(--border-color);
    }

    .mobile-drawer.open {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    /* Drawer Header */
    .mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 18px;
        background: var(--drawer-header-bg);
        border-bottom: 1px solid var(--drawer-border);
        flex-shrink: 0;
    }

    .drawer-brand {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .drawer-logo {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #ffffff;
        padding: 2px;
        object-fit: contain;
        border: 1px solid var(--border-color);
    }

    .drawer-titles {
        display: flex;
        flex-direction: column;
    }

    .drawer-title-ne {
        font-family: var(--font-ne);
        font-size: 13.5px;
        font-weight: 700;
        color: var(--secondary);
        line-height: 1.2;
    }

    .drawer-title-en {
        font-size: 11.5px;
        color: var(--text-muted);
        font-weight: 600;
        line-height: 1.2;
    }

    .drawer-close-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--bg-surface-secondary);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        cursor: pointer;
        transition: var(--transition);
        flex-shrink: 0;
    }

    .drawer-close-btn:hover,
    .drawer-close-btn:active {
        background: #dc2626;
        color: #ffffff;
        border-color: #dc2626;
    }

    /* Drawer Quick Action Banner */
    .mobile-drawer-quick-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 12px 16px;
        background: var(--bg-surface-secondary);
        border-bottom: 1px solid var(--border-color);
        flex-shrink: 0;
    }

    .drawer-action-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 9px 10px;
        border-radius: var(--radius-sm);
        font-size: 12px;
        font-weight: 700;
        text-decoration: none;
        transition: var(--transition);
        text-align: center;
    }

    .drawer-action-btn.btn-apply {
        background: linear-gradient(135deg, #d97706, #b45309);
        color: #ffffff !important;
    }

    .drawer-action-btn.btn-result {
        background: linear-gradient(135deg, #059669, #047857);
        color: #ffffff !important;
    }

    /* Scrollable Navigation Menu */
    .mobile-drawer-nav {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 6px 0;
        margin: 0;
        list-style: none;
    }

    .mobile-drawer-nav .nav-item {
        border-bottom: 1px solid var(--border-color);
        display: block;
        width: 100%;
    }

    .mobile-drawer-nav .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 13px 18px;
        color: var(--text-primary);
        font-size: 14.5px;
        font-weight: 600;
        text-decoration: none;
        transition: var(--transition);
        cursor: pointer;
        width: 100%;
    }

    .mobile-drawer-nav .nav-link i:first-child {
        width: 24px;
        color: var(--secondary);
        font-size: 14px;
        text-align: center;
    }

    .mobile-drawer-nav .nav-link span {
        flex: 1;
        margin-left: 8px;
    }

    .mobile-drawer-nav .nav-link .dropdown-arrow {
        font-size: 12px;
        color: var(--text-muted);
        transition: transform 0.3s ease;
    }

    .mobile-drawer-nav .nav-item.dropdown.dropdown-open .dropdown-arrow {
        transform: rotate(180deg);
        color: var(--secondary);
    }

    .mobile-drawer-nav .dropdown-menu {
        display: block !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        box-shadow: none !important;
        width: 100% !important;
        min-width: 100% !important;
        border: none !important;
        border-radius: 0 !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        background: var(--bg-surface-secondary) !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none;
    }

    .mobile-drawer-nav .nav-item.dropdown.dropdown-open .dropdown-menu {
        max-height: 500px;
    }

    .mobile-drawer-nav .dropdown-item {
        width: 100%;
        display: block;
    }

    .mobile-drawer-nav .dropdown-item a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 11px 18px 11px 36px;
        color: var(--text-secondary);
        font-size: 13.5px;
        text-decoration: none;
        border-bottom: 1px solid var(--border-color);
        transition: all 0.2s ease;
        width: 100%;
    }

    .mobile-drawer-nav .dropdown-item a:hover,
    .mobile-drawer-nav .dropdown-item a:active {
        color: var(--primary);
        background: var(--border-color);
        padding-left: 40px;
    }

    .mobile-drawer-nav .dropdown-item a i {
        font-size: 12px;
        color: var(--secondary);
        width: 16px;
        text-align: center;
    }

    /* Drawer Footer Contact Bar */
    .mobile-drawer-footer {
        padding: 14px 18px;
        background: var(--drawer-header-bg);
        border-top: 1px solid var(--drawer-border);
        flex-shrink: 0;
    }

    .drawer-contact-info {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .drawer-contact-row {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 12.5px;
        color: var(--text-muted);
        text-decoration: none;
    }

    .drawer-contact-row i {
        color: var(--secondary);
        font-size: 13px;
        width: 16px;
        text-align: center;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .principal-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        text-align: center;
    }

    .principal-img-wrap {
        margin: 0 auto 12px auto;
    }

    .principal-content blockquote {
        text-align: left;
    }

    .footer-accordion-group {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* 2. Mobile Screens (<= 768px): Compact Topbar, No Over-gaps & Clean Spacing */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    /* Ultra-Slim Single Line Gov Topbar */
    .gov-topbar {
        padding: 3px 0 !important;
        font-size: 11px !important;
    }

    .gov-topbar-inner {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 0 !important;
    }

    .gov-topbar-left {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
    }

    .gov-emblem-badge {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .gov-text-full {
        display: none !important;
    }

    .gov-text-mobile {
        display: inline !important;
        font-size: 11px;
    }

    .gov-topbar-right {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0;
        width: auto !important;
    }

    .topbar-datetime {
        padding: 2px 7px !important;
        font-size: 10.5px !important;
    }

    .topbar-datetime .date-item,
    .topbar-datetime .datetime-divider {
        display: none !important;
    }

    .theme-toggle-btn {
        padding: 2px 8px !important;
        font-size: 11px !important;
    }

    .theme-toggle-btn span {
        display: none !important;
    }

    /* Notice Ticker Compact */
    .notice-ticker {
        padding: 4px 0 !important;
    }

    .ticker-badge {
        padding: 2px 8px !important;
        font-size: 11px !important;
    }

    .ticker-text {
        font-size: 12px !important;
    }

    /* --- HERO & HOMEPAGE ZERO OVER-GAPS ON MOBILE --- */
    .hero-section {
        padding: 14px 0 18px !important;
    }

    .hero-badge {
        margin-bottom: 6px !important;
        padding: 2px 9px !important;
        font-size: 11px !important;
    }

    .hero-content h2 {
        font-size: 19px !important;
        line-height: 1.25 !important;
        margin-bottom: 6px !important;
    }

    .hero-content p {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
        margin-bottom: 10px !important;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 6px !important;
        margin-bottom: 10px !important;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
        font-size: 13px !important;
        padding: 9px 12px !important;
    }

    .hero-card-portal {
        padding: 12px 10px !important;
        border-radius: var(--radius-md) !important;
        margin-top: 8px !important;
    }

    .hero-card-portal h3 {
        font-size: 13.5px !important;
        margin-bottom: 8px !important;
        justify-content: center;
    }

    .portal-links-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    .portal-tile {
        padding: 7px 5px !important;
        font-size: 11px !important;
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }

    .portal-tile-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }

    .stats-section {
        margin-top: 0 !important;
        padding: 10px 8px !important;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .stat-box {
        border-right: none !important;
        padding: 6px 4px !important;
        gap: 8px;
    }

    .stat-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-label {
        font-size: 10.5px;
    }

    .principal-grid {
        padding: 14px 10px !important;
        gap: 12px !important;
    }

    .principal-img-wrap {
        width: 110px !important;
        height: 110px !important;
        margin: 0 auto 10px auto !important;
    }

    .principal-content blockquote {
        font-size: 13px !important;
        line-height: 1.55 !important;
        padding-left: 10px;
    }

    /* Global Section Spacing - Remove Over-gaps */
    .section-padding,
    .py-5,
    .about-section,
    .notices-section,
    .academics-section,
    .facilities-section,
    .gallery-section,
    .testimonials-section,
    .contact-section {
        padding: 20px 0 !important;
    }

    .section-header {
        margin-bottom: 12px !important;
        text-align: center;
    }

    .section-tag {
        font-size: 10.5px !important;
        margin-bottom: 3px !important;
    }

    .section-title {
        font-size: 19px !important;
        line-height: 1.25 !important;
        margin-bottom: 4px !important;
    }

    .section-subtitle {
        font-size: 12.5px !important;
        margin-bottom: 0 !important;
    }

    .about-grid,
    .admission-grid,
    .contact-grid,
    .content-grid-2,
    .academic-grid,
    .features-grid,
    .form-grid-2,
    .form-grid-3,
    .form-grid-4,
    .notices-grid,
    .events-grid,
    .staff-grid,
    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .marksheet-wrapper,
    .marksheet-card {
        padding: 14px 10px !important;
        border-width: 1px !important;
    }

    .marksheet-meta-grid,
    .marksheet-student-meta {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        padding: 10px 12px !important;
    }

    .gpa-summary-box,
    .marksheet-summary {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 10px !important;
    }

    .marksheet-signatures {
        flex-direction: column !important;
        align-items: center !important;
        gap: 14px !important;
        margin-top: 16px !important;
    }

    .downloads-table,
    .charter-table,
    .marksheet-table,
    .table-responsive {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* --- MOBILE FOOTER COMPACT ACCORDION --- */
    .main-footer {
        padding: 24px 0 14px !important;
    }

    .footer-top-brand {
        margin-bottom: 14px;
        padding-bottom: 12px;
        text-align: center;
    }

    .footer-brand-header {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 6px;
    }

    .footer-logo-img {
        width: 44px;
        height: 44px;
    }

    .footer-school-en {
        font-size: 15.5px;
    }

    .footer-school-ne {
        font-size: 12.5px;
    }

    .footer-brand-slogan {
        font-size: 11.5px;
        margin-top: 4px;
    }

    .footer-social-bar {
        justify-content: center;
        margin-top: 10px;
        gap: 8px;
    }

    .footer-social-bar .social-link {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .footer-accordion-group {
        display: flex;
        flex-direction: column;
        gap: 0;
        background: var(--bg-surface-secondary);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        overflow: hidden;
        margin-bottom: 16px;
    }

    .footer-accordion-item {
        border-bottom: 1px solid var(--border-color);
    }

    .footer-accordion-item:last-child {
        border-bottom: none;
    }

    .footer-accordion-header {
        padding: 11px 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: transparent;
        border: none;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .footer-accordion-header::after {
        display: none !important;
    }

    .footer-accordion-header .accordion-title {
        font-size: 13px;
        font-weight: 700;
        color: var(--footer-heading);
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .footer-accordion-header.highlight-header .accordion-title {
        color: var(--secondary);
    }

    .footer-accordion-icon {
        display: inline-block !important;
        font-size: 11px;
        color: var(--text-muted);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
    }

    .footer-accordion-item.active .footer-accordion-header {
        background: var(--border-color);
    }

    .footer-accordion-item.active .footer-accordion-header .accordion-title {
        color: var(--primary);
    }

    .footer-accordion-item.active .footer-accordion-icon {
        transform: rotate(180deg);
        color: var(--secondary);
    }

    .footer-accordion-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        opacity: 0;
        margin-top: 0;
    }

    .footer-accordion-item.active .footer-accordion-body {
        max-height: 600px;
        opacity: 1;
        padding: 4px 14px 12px 14px;
    }

    .footer-links li {
        margin-bottom: 6px;
    }

    .footer-links a {
        font-size: 12px;
        padding: 2px 0;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .footer-contact-details .contact-line {
        font-size: 11.5px;
        margin-bottom: 6px;
        display: flex;
        align-items: flex-start;
        gap: 6px;
    }

    .btn-footer-contact {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 7px 12px;
        font-size: 11.5px;
        margin-top: 6px;
        border-radius: var(--radius-sm);
    }

    /* Footer Bottom in Mobile */
    .footer-bottom-wrapper {
        padding-top: 14px;
        margin-top: 12px;
    }

    .footer-bottom-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
        width: 100%;
    }

    .footer-copyright-text {
        font-size: 11.5px;
        line-height: 1.5;
    }

    .footer-dev-credit {
        font-size: 11.5px;
    }
}

    .section {
        padding: 30px 0;
    }

    .form-card {
        padding: 18px 14px;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date-badge {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        min-width: unset;
        padding: 6px 12px;
    }

    .staff-avatar {
        width: 80px;
        height: 80px;
    }

    .footer-brand-text h3 {
        font-size: 18px;
    }
}

/* ==========================================================================
   Print Stylesheet (Official Slips, Marksheets, and Confirmation Cards)
   ========================================================================== */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 12pt;
    }

    .gov-topbar,
    .gov-header,
    .main-navbar,
    .gov-footer,
    .no-print,
    .flash-ticker,
    .btn,
    .alert-danger {
        display: none !important;
    }

    main {
        padding: 0 !important;
        margin: 0 !important;
    }

    .section {
        padding: 0 !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .form-card,
    .admission-slip-card,
    .marksheet-card {
        border: 2px solid #0f2c59 !important;
        box-shadow: none !important;
        padding: 24px !important;
        margin: 0 !important;
        background: #ffffff !important;
        page-break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .form-grid-2 {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
}

/* --- Toast Notifications System --- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #0f172a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-theme="dark"] .toast {
    background: #1e293b;
    border-color: #3b82f6;
    color: #f8fafc;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Pure Text Highlight Animation for Creator Name --- */
.creator-lightning-name,
.creator-highlight-text {
    display: inline-block;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(90deg, #fbbf24 0%, #fde047 25%, #ffffff 50%, #38bdf8 75%, #fbbf24 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textHighlightShimmer 2.8s linear infinite;
    transition: filter 0.3s ease, transform 0.2s ease;
    vertical-align: baseline;
}

.creator-lightning-name:hover,
.creator-highlight-text:hover {
    filter: drop-shadow(0 0 8px rgba(253, 224, 71, 0.9)) drop-shadow(0 0 16px rgba(56, 189, 248, 0.7));
    transform: scale(1.05);
}

@keyframes textHighlightShimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}