/*
 * =====================================================
 *  JAMA-ATH Residential Public School
 *  Global Design System — app.css
 *  Mobile-first, App-style, Premium UI
 * =====================================================
 */

/* ─── Urgent Alert Bar (Modern Scrolling) ────────── */
.urgent-alert-bar {
    background: #ef4444 !important;
    color: #fff !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    z-index: 2000 !important;
    overflow: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

.alert-inner {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    gap: 12px !important;
}

.alert-label {
    flex-shrink: 0 !important;
    background: #ef4444 !important;
    z-index: 5 !important;
    display: flex !important;
    align-items: center !important;
}

.alert-badge {
    background: #fff !important;
    color: #ef4444 !important;
    font-weight: 800 !important;
    font-size: 0.7rem !important;
    padding: 3px 10px !important;
    border-radius: 4px !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
}

.alert-scroll-container {
    flex: 1 !important;
    overflow: hidden !important;
    position: relative !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
}

.alert-scroll-text {
    display: inline-block !important;
    animation: alertScroll 30s linear infinite !important;
    padding-left: 20px !important;
}

.alert-scroll-text p {
    display: inline-block !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
    color: #fff !important;
}

@keyframes alertScroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

.alert-close {
    flex-shrink: 0 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,0.25) !important;
    border-radius: 50% !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    z-index: 2005 !important;
    pointer-events: auto !important;
    transition: all 0.3s ease !important;
}

.alert-close:hover {
    background: #fff !important;
    color: #ef4444 !important;
}

.urgent-alert-bar.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .urgent-alert-bar { height: 36px !important; padding: 0 10px !important; }
    .alert-scroll-text p { font-size: 0.8rem !important; }
    .alert-badge { padding: 2px 8px !important; font-size: 0.65rem !important; }
}


/* ─── CSS Custom Properties (Design Tokens) ────────── */
:root {
    /* Brand Palette */
    --c-primary: #0a1628;
    --c-primary-light: #132240;
    --c-primary-lighter: #1e3a5f;
    --c-accent: #2563eb;
    --c-accent-glow: #3b82f6;
    --c-accent-soft: rgba(37, 99, 235, 0.12);
    --c-gold: #f59e0b;
    --c-gold-soft: rgba(245, 158, 11, 0.12);
    --c-success: #10b981;
    --c-danger: #ef4444;
    --c-warning: #f59e0b;
    --c-info: #06b6d4;

    /* Surfaces */
    --c-bg: #f8fafc;
    --c-surface: #ffffff;
    --c-surface-hover: #f1f5f9;
    --c-surface-dark: #0f172a;
    --c-border: #e2e8f0;
    --c-border-light: #f1f5f9;

    /* Text */
    --c-text: #1e293b;
    --c-text-secondary: #64748b;
    --c-text-muted: #94a3b8;
    --c-text-on-dark: #f1f5f9;
    --c-text-on-primary: #ffffff;

    /* Typography */
    --font-primary: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --fs-xs: 0.75rem;
    --fs-sm: 0.8125rem;
    --fs-base: 0.9375rem;
    --fs-md: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 1.875rem;
    --fs-4xl: 2.25rem;
    --fs-5xl: 3rem;

    /* Spacing */
    --sp-xs: 0.25rem;
    --sp-sm: 0.5rem;
    --sp-md: 0.75rem;
    --sp-base: 1rem;
    --sp-lg: 1.5rem;
    --sp-xl: 2rem;
    --sp-2xl: 3rem;
    --sp-3xl: 4rem;
    --sp-4xl: 6rem;

    /* Radius */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 20px;
    --r-2xl: 28px;
    --r-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 400ms;

    /* Layout */
    --header-h: 72px;
    --header-height: 72px;
    --top-bar-h: 40px;
    --bottom-nav-h: 180px;
    --container-max: 1200px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    /* ─── Legacy variable aliases (used by inner pages) ─ */
    --primary:        #2563eb;
    --primary-light:  #818cf8;
    --primary-soft:   rgba(37, 99, 235, 0.10);
    --primary-dark:   #1e40af;
    --white:          #ffffff;
    --bg-dark:        #0a1628;
    --bg-darker:      #060d1b;
    --text-base:      #cbd5e1;
    --text-muted:     #94a3b8;
    --glass-card:     rgba(255, 255, 255, 0.04);
    --glass-border:   rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: 0;
}



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

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

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: var(--fs-base);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.25;
    color: var(--c-primary);
}

/* ─── Container ─────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--sp-lg);
}

/* ─── Sections ──────────────────────────────────────── */
.section {
    padding: var(--sp-4xl) 0;
}

@media (max-width: 768px) {
    .section {
        padding: var(--sp-xl) 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: var(--sp-lg);
}

.section-header.light .section-title,
.section-header.light .section-desc {
    color: var(--c-text-on-dark);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--c-accent);
    background: var(--c-accent-soft);
    padding: var(--sp-xs) var(--sp-md);
    border-radius: var(--r-full);
    margin-bottom: var(--sp-md);
}

.section-title {
    font-size: var(--fs-3xl);
    font-weight: 800;
    margin-bottom: var(--sp-sm);
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: var(--fs-base);
    color: var(--c-text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.section-action {
    text-align: center;
    margin-top: var(--sp-xl);
}

/* ─── Buttons ───────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    background: linear-gradient(135deg, var(--c-accent), #1d4ed8);
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: var(--r-full);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--fs-base);
    border: none;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.45);
}

.btn-primary.full {
    width: 100%;
    justify-content: center;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    background: transparent;
    color: var(--c-accent);
    padding: 0.65rem 1.5rem;
    border-radius: var(--r-full);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--fs-sm);
    border: 2px solid var(--c-accent);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease);
}

.btn-outline:hover {
    background: var(--c-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ─── Top Bar ───────────────────────────────────────── */
.top-bar {
    height: var(--top-bar-h);
    background: var(--c-primary);
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.top-info, .top-links {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
}

.top-info a, .top-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--duration-fast);
}

.top-info a:hover, .top-links a:hover {
    color: #fff;
}

.top-info a i {
    color: var(--c-gold);
}

.top-social {
    display: flex;
    align-items: center;
    gap: var(--sp-base);
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: var(--sp-base);
    margin-left: var(--sp-base);
}

@media (max-width: 600px) {
    .top-bar {
        height: auto;
        padding: 6px 0;
    }
    .top-bar-inner {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    .top-loc, .top-social, .top-links {
        display: none;
    }
    .top-info {
        gap: var(--sp-md);
    }
}

/* ─── Header ────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--c-border);
    transition: all var(--duration-base) var(--ease);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--sp-lg);
}

/* Logo */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    text-decoration: none;
}

.logo-img {
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    object-fit: contain;
    transition: transform var(--duration-base) var(--ease-bounce);
}

.logo-wrap:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--c-primary);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--c-text-secondary);
    font-weight: 500;
    letter-spacing: 0.2px;
    margin-top: 2px;
}

/* Desktop Nav */
.desktop-nav {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: block;
    }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-text);
    border-radius: var(--r-md);
    transition: all var(--duration-fast) var(--ease);
}

.nav-item > a:hover,
.nav-item.active > a {
    color: var(--c-accent);
    background: var(--c-accent-soft);
}

.nav-item > a .fa-chevron-down {
    font-size: 0.55rem;
    transition: transform var(--duration-fast) var(--ease);
}

/* Dropdowns */
.nav-item.has-dropdown {
    position: relative;
}

.nav-item .dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    padding: var(--sp-sm);
    background: var(--c-surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--c-border-light);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-base) var(--ease);
}

.nav-item.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-item.has-dropdown:hover > a .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown li a {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: 0.6rem 0.9rem;
    font-size: var(--fs-sm);
    color: var(--c-text);
    border-radius: var(--r-md);
    transition: all var(--duration-fast) var(--ease);
}

.dropdown li a i {
    width: 18px;
    text-align: center;
    color: var(--c-accent);
    font-size: var(--fs-sm);
}

.dropdown li a:hover {
    background: var(--c-accent-soft);
    color: var(--c-accent);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
}

.btn-apply-now {
    display: none;
    align-items: center;
    gap: var(--sp-sm);
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--c-gold), #d97706);
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: var(--fs-sm);
    border-radius: var(--r-full);
    transition: all var(--duration-base) var(--ease);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

@media (min-width: 768px) {
    .btn-apply-now {
        display: inline-flex;
    }
}

.btn-apply-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.5);
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    border-radius: var(--r-md);
    transition: background var(--duration-fast) var(--ease);
}

@media (min-width: 1024px) {
    .hamburger {
        display: none;
    }
}

.hamburger:hover {
    background: rgba(255,255,255,0.1);
}

.hamburger span {
    width: 100%;
    height: 2.5px;
    background: var(--c-primary);
    border-radius: 2px;
    transition: all var(--duration-base) var(--ease);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile Slide-out Menu ─────────────────────────── */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-base) var(--ease);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    height: 100dvh;
    background: var(--c-surface);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: var(--sp-lg);
    border-bottom: 1px solid var(--c-border-light);
}

.mobile-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
}

.mobile-menu-title {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: var(--fs-lg);
    color: var(--c-primary);
    flex: 1;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-full);
    background: var(--c-surface-hover);
    border: none;
    cursor: pointer;
    color: var(--c-text-secondary);
    font-size: var(--fs-lg);
    transition: all var(--duration-fast) var(--ease);
}

.mobile-menu-close:hover {
    background: var(--c-danger);
    color: #fff;
}

.mobile-nav {
    flex: 1;
    padding: var(--sp-base);
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--c-text);
    border-radius: var(--r-md);
    transition: all var(--duration-fast) var(--ease);
}

.mobile-nav-item:hover, .mobile-nav-item.active {
    background: var(--c-accent-soft);
    color: var(--c-accent);
}

.mobile-nav-item i {
    width: 22px;
    text-align: center;
    color: var(--c-text-secondary);
}

.mobile-nav-item.active i {
    color: var(--c-accent);
}

.mobile-nav-group {
    margin-bottom: var(--sp-xs);
}

.mobile-nav-toggle {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: 0.75rem 1rem;
    width: 100%;
    font-weight: 500;
    color: var(--c-text);
    border-radius: var(--r-md);
    transition: all var(--duration-fast) var(--ease);
}

.mobile-nav-toggle:hover {
    background: var(--c-surface-hover);
}

.mobile-nav-toggle i:first-child {
    width: 22px;
    text-align: center;
    color: var(--c-text-secondary);
}

.toggle-arrow {
    margin-left: auto;
    font-size: 0.6rem;
    transition: transform var(--duration-base) var(--ease);
}

.mobile-nav-group.open .toggle-arrow {
    transform: rotate(180deg);
}

.mobile-nav-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease);
    padding-left: 2.5rem;
}

.mobile-nav-group.open .mobile-nav-sub {
    max-height: 300px;
}

.mobile-nav-sub a {
    display: block;
    padding: 0.55rem 0.75rem;
    font-size: var(--fs-sm);
    color: var(--c-text-secondary);
    border-radius: var(--r-sm);
    transition: all var(--duration-fast) var(--ease);
}

.mobile-nav-sub a:hover {
    color: var(--c-accent);
    background: var(--c-accent-soft);
}

.mobile-menu-footer {
    padding: var(--sp-lg);
    border-top: 1px solid var(--c-border-light);
    display: flex;
    gap: var(--sp-sm);
}

.mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    flex: 1;
    padding: 0.65rem;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: var(--fs-sm);
    background: var(--c-accent);
    color: #fff;
    transition: all var(--duration-fast) var(--ease);
}

.mobile-cta.whatsapp {
    background: #25d366;
}

.mobile-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ─── Mobile Bottom Navigation (Premium React Style) ── */
:root {
    --nav-height: 65px;
    --nav-margin: 15px;
}

.mobile-bottom-nav-container {
    position: fixed;
    bottom: var(--nav-margin);
    left: var(--nav-margin);
    right: var(--nav-margin);
    z-index: 2000;
    pointer-events: none;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 769px) {
    .mobile-bottom-nav-container {
        display: none;
    }
}

.mobile-bottom-nav {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    padding: 0 10px;
}

.nav-indicator {
    position: absolute;
    display: none;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--c-text-secondary);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    transition: all 0.3s var(--ease);
    height: 100%;
}

.nav-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    transition: transform 0.3s var(--ease-bounce);
}

.bottom-nav-item i {
    font-size: 1.15rem;
}

.bottom-nav-item.active {
    color: var(--c-accent);
}

.bottom-nav-item.active .nav-icon-wrapper {
    transform: translateY(-2px);
}

/* Center Action Button (Apply) */
.bottom-nav-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.center-apply-btn {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--c-accent), #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    border: 5px solid #fff;
    transition: all 0.3s var(--ease-bounce);
    z-index: 50;
}

.center-apply-btn:active {
    transform: translateX(-50%) scale(0.9);
}

.apply-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    line-height: 1;
}

.apply-inner i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.apply-inner span {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Floating Badge */
.bottom-nav-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--c-danger);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.bottom-nav-item::after {
    content: '';
    position: absolute;
    bottom: 8px;
    width: 4px;
    height: 4px;
    background: var(--c-accent);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s var(--ease);
}

.bottom-nav-item.active::after {
    opacity: 1;
    transform: scale(1);
}





/* ─── Footer ────────────────────────────────────────── */
.site-footer {
    background: #0a1628;
    color: #fff;
    position: relative;
    padding-top: 0;
    margin-top: 0;
}

.footer-wave {
    color: #0a1628;
    margin-top: -1px;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 40px; /* Reduced from 60px to tighten footer top space */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: var(--sp-2xl);
    padding: var(--sp-2xl) 0; /* Reduced from sp-4xl to tighten footer */
}

.footer-logo {
    margin-bottom: var(--sp-lg);
    background: #fff;
    padding: 10px;
    border-radius: 16px;
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.footer-brand h3 {
    font-size: 1.4rem;
    color: #fff;
    line-height: 1.3;
    margin-bottom: var(--sp-md);
    font-weight: 800;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: var(--sp-xl);
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s var(--ease);
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-social a:hover {
    background: var(--c-accent);
    color: #fff;
    transform: translateY(-5px);
    border-color: var(--c-accent);
}

.footer-links h4,
.footer-contact h4,
.footer-map h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: var(--sp-xl);
    font-weight: 700;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
}

.footer-links ul li a,
.footer-contact ul li a {
    color: inherit;
    transition: color 0.3s var(--ease);
}

.footer-links ul li a:hover,
.footer-contact ul li a:hover {
    color: var(--c-accent);
}

.footer-contact ul li {
    display: flex;
    gap: 15px;
}

.footer-contact ul li i {
    color: var(--c-accent);
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-bottom {
    background: #060e1a;
    padding: var(--sp-xl) 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
    margin-bottom: 8px;
}

.footer-cbse {
    font-size: 0.75rem !important;
    opacity: 0.7;
}

.footer-developer {
    font-size: 0.8rem !important;
    margin-top: 12px;
}

.footer-developer a {
    color: var(--c-accent);
    text-decoration: none;
    font-weight: 600;
}

.footer-developer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-bottom {
        padding-bottom: 120px !important; /* Force extra space to clear the floating nav */
    }
}

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

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-xl);
    }
    
    .footer-brand, .footer-links, .footer-contact, .footer-map {
        text-align: center;
    }
    
    .footer-logo, .footer-social {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
    
    .footer-contact ul li {
        justify-content: center;
    }
}

/* ─── Global Modals ──────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 5000;
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
    padding: var(--sp-base);
    animation: fadeIn 0.3s var(--ease);
}

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

.modal-container {
    background: var(--c-surface);
    width: 100%;
    max-width: 500px;
    border-radius: var(--r-2xl);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.4s var(--ease-bounce);
}

@keyframes modalIn {
    from { transform: translateY(50px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--c-surface-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-secondary);
    z-index: 10;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--c-danger);
    color: #fff;
    transform: rotate(90deg);
}

.modal-header {
    padding: var(--sp-xl) var(--sp-xl) var(--sp-md);
    text-align: center;
    background: linear-gradient(to bottom, var(--c-accent-soft), transparent);
}

.modal-icon {
    font-size: 2rem;
    color: var(--c-accent);
    margin-bottom: var(--sp-md);
}

.modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.modal-header p {
    font-size: var(--fs-sm);
    color: var(--c-text-secondary);
}

.modal-content {
    padding: 0 var(--sp-xl) var(--sp-xl);
}

.modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
}

@media (max-width: 480px) {
    .modal-form .form-row {
        grid-template-columns: 1fr;
    }
    .modal-container {
        border-radius: var(--r-xl);
    }
}

/* ─── Pop-up Modal ──────────────────────────────────── */
.popup-overlay {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    pointer-events: none;
    animation: slideUp var(--duration-slow) var(--ease);
}

@media (max-width: 768px) {
    .popup-overlay {
        bottom: 80px; /* Above the mobile bottom nav */
        right: 16px;
        left: 16px;
        justify-content: center; /* Center on mobile */
    }
}

.popup-modal {
    background: rgba(10, 22, 40, 0.75); /* Deep dark blue, highly transparent */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--r-xl);
    max-width: 380px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid #3b82f6; /* Colorful indicator to get attention */
}

/* Animated gradient top border indicator */
.popup-modal::before {
    content: '';
    position: absolute;
    top: -3px; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #ff416c, #ff4b2b, #f59e0b, #3b82f6, #8b5cf6);
    background-size: 300% 100%;
    animation: gradientBG 4s linear infinite;
    z-index: 5;
}

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

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--duration-fast) var(--ease);
    border: none;
    cursor: pointer;
}

.popup-close:hover {
    background: var(--c-danger);
    color: #fff;
    transform: rotate(90deg);
}

.popup-image {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
}

.glass-popup {
    padding: 24px 20px;
    display: flex;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 480px) {
    .glass-popup {
        padding: 20px 16px;
        gap: 12px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.popup-icon-container {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

@media (max-width: 480px) {
    .popup-icon-container {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
}

.popup-icon-container i {
    color: #fff;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.popup-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.5);
    filter: blur(20px);
    border-radius: 50%;
    z-index: 1;
    animation: pulseBtn 3s infinite;
}

@keyframes pulseBtn {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
}

.popup-content-wrapper {
    flex: 1;
}

.popup-body h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
}

.popup-body p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.side-popup-actions {
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .popup-body { text-align: center; }
    .popup-body h3 { font-size: 1.15rem; justify-content: center; }
    .popup-body p { font-size: 0.85rem; margin-bottom: 14px; }
    .side-popup-actions { justify-content: center; }
}

.side-popup-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--r-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.side-popup-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1d4ed8, #4338ca);
}

/* ─── Quick Actions Badge ─────────────────────────────── */
.quick-card.position-relative {
    position: relative;
    overflow: visible; /* ensure badge can overflow */
}

.badge-started {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--c-danger) !important;
    color: #fff !important;
    font-size: 0.5rem !important;
    font-weight: 800 !important;
    padding: 2px 5px !important;
    border-radius: 8px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
    animation: pulseBadge 2s infinite;
    z-index: 10;
    line-height: 1 !important;
    margin: 0 !important;
    text-align: center !important;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ─── Toast Notifications ───────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
    pointer-events: none;
}

@media (min-width: 769px) {
    .toast-container {
        bottom: 24px;
        left: auto;
        right: 24px;
        transform: none;
    }
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: 0.75rem 1.25rem;
    background: var(--c-surface-dark);
    color: #fff;
    border-radius: var(--r-lg);
    font-size: var(--fs-sm);
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    animation: toastIn var(--duration-slow) var(--ease);
    pointer-events: auto;
    min-width: 280px;
}

.toast.success { border-left: 4px solid var(--c-success); }
.toast.error { border-left: 4px solid var(--c-danger); }
.toast.info { border-left: 4px solid var(--c-info); }

.toast i {
    font-size: 1rem;
}

.toast.success i { color: var(--c-success); }
.toast.error i { color: var(--c-danger); }
.toast.info i { color: var(--c-info); }

/* ─── Skeleton Loaders ──────────────────────────────── */
.skeleton {
    pointer-events: none;
}

.skeleton-img {
    background: linear-gradient(90deg, var(--c-border-light) 25%, #e8ecf1 50%, var(--c-border-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--r-md);
    min-height: 120px;
}

.skeleton-text {
    height: 14px;
    background: linear-gradient(90deg, var(--c-border-light) 25%, #e8ecf1 50%, var(--c-border-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: var(--sp-sm);
}

.skeleton-text.short {
    width: 60%;
}

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

/* ─── Keyframe Animations ───────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

/* ─── Scroll reveal (JS will add .visible) ──────────── */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-aos].aos-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Lightbox / Gallery Popup ──────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--sp-2xl);
    animation: fadeIn var(--duration-base) var(--ease);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 1000px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: zoomIn 0.4s var(--ease-bounce) forwards;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--r-lg);
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-caption {
    margin-top: var(--sp-lg);
    color: #fff;
    font-size: var(--fs-lg);
    font-family: var(--font-primary);
    font-weight: 500;
    text-align: center;
    padding: 0 var(--sp-md);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--r-full);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--duration-fast) var(--ease);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--c-danger);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--r-full);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--duration-base) var(--ease);
    border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-nav:hover {
    background: var(--c-accent);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

@media (max-width: 768px) {
    .lightbox { padding: var(--sp-md); }
    .lightbox-nav {
        top: auto;
        bottom: 24px;
        transform: none;
    }
    .lightbox-nav:hover { transform: scale(1.1); }
    .lightbox-nav.prev { left: calc(50% - 70px); }
    .lightbox-nav.next { right: calc(50% - 70px); }
    .lightbox-close { top: 16px; right: 16px; width: 40px; height: 40px; }
}

.gallery-item {
    cursor: pointer;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ─── Utility ───────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
html { background-color: #0a1628; } body { background-color: var(--c-bg); }

/* ─── Urgent Ticker (Notice Bar) ───────────────────── */
.ticker-bar {
    background: #c61f23;
    border-bottom: none;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.ticker-content {
    display: flex;
    align-items: center;
    max-width: 100%;
    margin: 0;
    padding: 0 0 0 var(--sp-base);
}

.ticker-badge {
    background: #8d1010;
    color: #fff;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-right: var(--sp-base);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
}

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

.ticker-scroll p {
    display: inline-block;
    margin: 0;

    font-size: var(--fs-sm);
    font-weight: 600;
    color: #fff;
    animation: ticker-scroll 25s linear infinite;
}

@keyframes ticker-scroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

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

/* ─── Floating Action Buttons (WhatsApp/Phone) ─────── */
.floating-actions {
    position: fixed;
    bottom: calc(var(--bottom-nav-h) + 40px);
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 950;
    pointer-events: auto;
}

@media (min-width: 769px) {
    .floating-actions {
        bottom: 30px;
        right: 30px;
    }
}

.fab {
    width: 54px;
    height: 54px;
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-base) var(--ease-bounce);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.fab.whatsapp { background: #25d366; }
.fab.phone { background: var(--c-accent); }

.fab:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    color: #fff;
}

/* ─── SPA Page Transitions ──────────────────────────── */
.page-transition-wrapper {
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
    opacity: 1;
}

.page-transition-wrapper.is-loading {
    opacity: 0;
    transform: translateY(10px);
}

/* ─── Scroll Reveal Animations ─────────────────────── */
.reveal {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: all 0.8s var(--ease) !important;
}

.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.reveal-left {
    transform: translateX(-30px) !important;
}

.reveal-right {
    transform: translateX(30px) !important;
}

/* ─── Micro-interactions: School Topper Cards ──────── */
.topper-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.topper-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(10, 22, 40, 0.15) !important;
}








