/* =============================================
   PUBLIC WEBSITE STYLESHEET
   School Admin Portal - Public Face
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    --primary: #1e3a8a;
    --primary-light: #2563eb;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --green: #10b981;
    --purple: #7c3aed;
    --bg: #f0f4ff;
    --bg-alt: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0ea5e9 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --shadow-sm: 0 2px 8px rgba(30, 58, 138, .08);
    --shadow-md: 0 8px 30px rgba(30, 58, 138, .12);
    --shadow-lg: 0 20px 60px rgba(30, 58, 138, .18);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}

a {
    text-decoration: none;
    color: inherit;
}

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

ul {
    list-style: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, .1);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-heading span {
    color: var(--primary-light);
}

.section-subtext {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.divider {
    width: 70px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    margin: 16px auto 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, .35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, .45);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .6);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .15);
    transform: translateY(-3px);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(245, 158, 11, .35);
}

.btn-accent:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
}

.btn-ghost {
    background: rgba(37, 99, 235, .08);
    color: var(--primary-light);
}

.btn-ghost:hover {
    background: rgba(37, 99, 235, .15);
}

/* ============================================
   TOP ANNOUNCEMENT BAR
   ============================================ */
.top-bar {
    background: var(--gradient);
    color: #fff;
    padding: 10px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .82rem;
    font-weight: 500;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: .9;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-social {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, .15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    transition: var(--transition);
    cursor: pointer;
}

.top-social:hover {
    background: rgba(255, 255, 255, .3);
}

/* ============================================
   NAVBAR
   ============================================ */
/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, .05);
    border-bottom: 1px solid rgba(0, 0, 0, .03);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-brand:hover {
    opacity: 0.85;
}

.nav-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.nav-brand-text h1 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.5px;
}

.nav-brand-text p {
    font-size: .65rem;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    margin-right: 30px;
}

.nav-item {
    position: relative;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 15px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: .92rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.nav-link:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary-light);
}

.nav-link.active {
    color: var(--primary-light);
    background: rgba(37, 99, 235, 0.05);
}

.nav-link i.chevron {
    font-size: .65rem;
    margin-left: 2px;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.nav-item:hover .chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    min-width: 240px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    display: block;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    pointer-events: none;
}

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

/* Fix for dropdowns near the right edge of the screen */
.nav-item:last-child .dropdown,
.nav-item:nth-last-child(2) .dropdown {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(10px);
}

.nav-item:last-child:hover .dropdown,
.nav-item:nth-last-child(2):hover .dropdown {
    transform: translateX(0) translateY(0);
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown a i {
    width: 24px;
    text-align: center;
    color: var(--primary-light);
    font-size: 1rem;
    opacity: 0.8;
}

.dropdown a:hover {
    background: var(--bg);
    color: var(--primary-light);
    padding-left: 20px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-nav-portal {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-nav-login {
    color: var(--text);
}

.btn-nav-login:hover {
    color: var(--primary-light);
}

.btn-nav-admission {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-nav-admission:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.nav-item:hover .dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

.dropdown a:hover {
    background: var(--bg);
    color: var(--primary-light);
}

.dropdown a i {
    width: 20px;
    color: var(--primary-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-nav-portal {
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
}

.btn-nav-login {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-nav-login:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.btn-nav-admission {
    background: var(--gradient);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, .3);
}

.btn-nav-admission:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, .4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0c1a3a;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .35;
    filter: blur(1px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 26, 58, .92) 0%, rgba(14, 26, 58, .6) 60%, rgba(14, 26, 58, .3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 100px 5% 80px;
    max-width: 750px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(245, 158, 11, .15);
    border: 1px solid rgba(245, 158, 11, .4);
    color: #fbbf24;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 28px;
    animation: fadeSlideUp 0.6s ease-out both;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.12;
    margin-bottom: 24px;
    animation: fadeSlideUp 0.7s ease-out 0.1s both;
}

.hero-title span {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, .75);
    max-width: 560px;
    margin-bottom: 40px;
    line-height: 1.7;
    animation: fadeSlideUp 0.7s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.7s ease-out 0.3s both;
}

.hero-stats {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 0;
    margin-top: 60px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    animation: fadeSlideUp 0.7s ease-out 0.4s both;
    align-self: flex-end;
}

.hero-stat {
    padding: 24px 30px;
    text-align: center;
    flex: 1;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

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

.hero-stat-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    display: block;
}

.hero-stat-label {
    font-size: .8rem;
    color: rgba(255, 255, 255, .6);
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* Floating cards on hero */
.hero-float-card {
    position: absolute;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;
    padding: 16px 20px;
    color: #fff;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.hero-float-card.card-1 {
    right: 8%;
    top: 25%;
    animation-delay: 0s;
}

.hero-float-card.card-2 {
    right: 18%;
    bottom: 22%;
    animation-delay: 1s;
}

.hero-float-card.card-3 {
    right: 5%;
    bottom: 35%;
    animation-delay: 2s;
}

.hero-float-card .fc-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.hero-float-card h4 {
    font-size: .9rem;
    font-weight: 700;
}

.hero-float-card p {
    font-size: .75rem;
    opacity: .7;
}

.hero-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
}

.hero-scroll-down i {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

.hero-scroll-down span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.hero-scroll-down:hover {
    color: var(--primary-light);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ============================================
   NOTICE TICKER
   ============================================ */
.notice-ticker {
    background: #fff;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 48px;
}

.ticker-label {
    background: var(--accent);
    color: #fff;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: .82rem;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-inner {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

.ticker-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================
   QUICK LINKS SECTION
   ============================================ */
.quick-links-section {
    padding: 70px 5%;
    background: #fff;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.quick-link-card {
    background: linear-gradient(135deg, var(--bg) 0%, #fff 100%);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.quick-link-card:hover::before {
    transform: scaleX(1);
}

.quick-link-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.ql-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 18px;
    transition: var(--transition);
}

.quick-link-card:hover .ql-icon {
    transform: scale(1.1) rotate(-5deg);
}

.quick-link-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.quick-link-card p {
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   HIGHLIGHTS SECTION
   ============================================ */
.highlights-section {
    padding: 80px 5%;
    background: var(--bg);
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 60px;
}

.highlight-featured {
    grid-row: span 2;
    background: var(--gradient);
    border-radius: 24px;
    padding: 50px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.highlight-featured::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, .07);
    border-radius: 50%;
    right: -80px;
    top: -80px;
}

.highlight-featured::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, .05);
    border-radius: 50%;
    right: 60px;
    bottom: -40px;
}

.highlight-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

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

.hc-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.hc-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.hc-content p {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   ABOUT PREVIEW
   ============================================ */
.about-preview {
    padding: 100px 5%;
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 0;
}

.about-image-wrap {
    position: relative;
}

.about-main-img {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.about-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-badge-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gradient);
    color: #fff;
    padding: 20px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(37, 99, 235, .4);
}

.about-badge-card .num {
    font-size: 2.5rem;
    font-weight: 900;
    display: block;
}

.about-badge-card .label {
    font-size: .75rem;
    opacity: .85;
    font-weight: 600;
}

.about-experience-strip {
    position: absolute;
    top: -15px;
    left: -15px;
    background: var(--accent);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: .9rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, .4);
}

.about-text .section-tag {
    margin-top: 0;
}

.about-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
}

.pillar-item {
    background: var(--bg);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.pillar-item:hover {
    background: rgba(37, 99, 235, .07);
}

.pillar-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pillar-item h4 {
    font-size: .9rem;
    font-weight: 700;
}

.pillar-item p {
    font-size: .78rem;
    color: var(--text-muted);
}

/* ============================================
   ACADEMICS STRIP
   ============================================ */
.academics-strip {
    padding: 80px 5%;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.academics-strip::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, .05);
    border-radius: 50%;
    right: -100px;
    top: -200px;
}

.academics-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.as-text {
    color: #fff;
}

.as-text .section-tag {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

.as-text h2 {
    color: #fff;
}

.as-text p {
    color: rgba(255, 255, 255, .75);
    margin-top: 12px;
}

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

.dept-card {
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;
    padding: 20px;
    color: #fff;
    transition: var(--transition);
    cursor: pointer;
}

.dept-card:hover {
    background: rgba(255, 255, 255, .2);
    transform: translateY(-4px);
}

.dept-card i {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: block;
}

.dept-card h4 {
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.dept-card p {
    font-size: .75rem;
    opacity: .75;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    padding: 100px 5%;
    background: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--bg);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    transition: var(--transition);
    border: 1.5px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--primary-light);
    line-height: 1;
    opacity: .3;
    margin-bottom: -10px;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: .95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.author-name {
    font-weight: 700;
    font-size: .95rem;
}

.author-role {
    font-size: .78rem;
    color: var(--text-muted);
}

.stars {
    color: #f59e0b;
    font-size: .85rem;
    margin-bottom: 4px;
}

/* ============================================
   ADMISSION CTA
   ============================================ */
.admission-cta {
    margin: 0 5% 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0ea5e9 100%);
    border-radius: 28px;
    padding: 70px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.admission-cta::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, .06) 0%, transparent 70%);
    right: -100px;
    top: -100px;
}

.cta-text {
    color: #fff;
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-text p {
    color: rgba(255, 255, 255, .75);
    font-size: 1rem;
    max-width: 400px;
}

.cta-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* ============================================
   EVENTS PREVIEW
   ============================================ */
.events-preview {
    padding: 100px 5%;
    background: var(--bg);
}

.events-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.event-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.event-date-strip {
    background: var(--gradient);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
}

.event-month-day .day {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}

.event-month-day .month {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .85;
}

.event-type-tag {
    background: rgba(255, 255, 255, .2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.event-body {
    padding: 24px;
}

.event-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.event-body p {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: .8rem;
    color: var(--text-muted);
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   GALLERY PREVIEW
   ============================================ */
.gallery-preview {
    padding: 100px 5%;
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 16px;
    margin-top: 50px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item:first-child {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 1;
    visibility: visible;
    display: none;
    transition: var(--transition);
    color: #fff;
}

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

.gallery-overlay h4 {
    font-size: .9rem;
    font-weight: 700;
}

.gallery-overlay p {
    font-size: .75rem;
    opacity: .8;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #080e1f;
    color: #fff;
    padding: 90px 5% 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 60px;
    margin-bottom: 60px;
}


.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
}

.footer-logo h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.footer-logo p {
    font-size: .68rem;
    color: #64748b;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-desc {
    font-size: .88rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .07);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    color: #94a3b8;
    cursor: pointer;
    transition: var(--transition);
}

.footer-social-icon:hover {
    background: var(--primary-light);
    color: #fff;
}

.footer-col h4 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 22px;
    color: #fff;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

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

.footer-list li a {
    color: #64748b;
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-list li a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-list li a i {
    font-size: .7rem;
    color: var(--secondary);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #64748b;
    font-size: .85rem;
    line-height: 1.5;
}

.footer-contact-item i {
    color: var(--secondary);
    margin-top: 2px;
    flex-shrink: 0;
    font-size: .9rem;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .82rem;
    color: #475569;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #475569;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--secondary);
}

/* ============================================
   PAGE HEADER (for inner pages)
   ============================================ */
.page-header {
    background: var(--gradient);
    padding: 100px 5% 70px;
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, .05);
    border-radius: 50%;
    right: -100px;
    top: -200px;
}

.page-header::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, .04);
    border-radius: 50%;
    left: -50px;
    bottom: -100px;
}

.page-header h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .75);
    max-width: 550px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .82rem;
    color: rgba(255, 255, 255, .6);
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: rgba(255, 255, 255, .8);
}

.breadcrumb i {
    font-size: .65rem;
}

/* ============================================
   ABOUT PAGE SPECIFIC
   ============================================ */
.mission-vision-section {
    padding: 100px 5%;
    background: #fff;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 60px;
}

.mv-card {
    padding: 50px 40px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.mv-card.mission {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0eaff 100%);
    border: 2px solid rgba(37, 99, 235, .15);
}

.mv-card.vision {
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
    border: 2px solid rgba(245, 158, 11, .2);
}

.mv-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.mission .mv-icon {
    background: rgba(37, 99, 235, .12);
    color: var(--primary-light);
}

.vision .mv-icon {
    background: rgba(245, 158, 11, .12);
    color: var(--accent-dark);
}

.mv-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.mv-card p {
    font-size: .95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.principal-section {
    padding: 100px 5%;
    background: var(--bg);
}

.principal-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.principal-img-wrap {
    position: relative;
}

.principal-img-wrap img {
    border-radius: 24px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.principal-name-card {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: #fff;
    padding: 14px 24px;
    border-radius: 14px;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(37, 99, 235, .4);
    z-index: 2;
}

.principal-name-card h4 {
    font-size: 1rem;
    font-weight: 800;
}

.principal-name-card p {
    font-size: .72rem;
    opacity: .85;
}

.principal-message blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 4px solid var(--accent);
}

.principal-message p {
    font-size: .95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 14px;
}

/* ============================================
   STAFF PAGE SPECIFIC
   ============================================ */
.staff-section {
    padding: 80px 5%;
    background: #fff;
}

.dept-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: #fff;
    color: var(--text-muted);
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, .25);
}

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

.staff-card {
    background: var(--bg);
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    border: 1.5px solid var(--border);
}

.staff-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.staff-card-top {
    height: 100px;
    background: var(--gradient);
    position: relative;
}

.staff-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-info {
    padding: 52px 20px 28px;
}

.staff-name {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.staff-subject {
    font-size: .82rem;
    color: var(--primary-light);
    font-weight: 600;
}

.staff-dept {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.staff-qual {
    display: inline-block;
    background: rgba(37, 99, 235, .08);
    color: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    margin-top: 12px;
}

/* ============================================
   ACADEMICS PAGE SPECIFIC
   ============================================ */
.academics-page-section {
    padding: 80px 5%;
    background: #fff;
}

.curriculum-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.curriculum-card {
    background: var(--bg);
    border-radius: 20px;
    padding: 32px;
    border: 1.5px solid var(--border);
    transition: var(--transition);
}

.curriculum-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, .2);
}

.cc-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.cc-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(37, 99, 235, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-light);
}

.cc-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.cc-header p {
    font-size: .78rem;
    color: var(--text-muted);
}

.curriculum-card ul {
    margin-top: 10px;
}

.curriculum-card ul li {
    font-size: .87rem;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.curriculum-card ul li:last-child {
    border-bottom: none;
}

.curriculum-card ul li i {
    color: var(--green);
    font-size: .75rem;
}

/* ============================================
   ADMISSIONS PAGE SPECIFIC
   ============================================ */
.admissions-page {
    padding: 80px 5%;
    background: #fff;
}

.admission-process-steps {
    margin-top: 50px;
}

.step-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.step-item::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 60px;
    width: 2px;
    height: calc(100% + 20px);
    background: linear-gradient(to bottom, var(--primary-light), transparent);
    opacity: .3;
}

.step-item:last-child::after {
    display: none;
}

.step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(37, 99, 235, .3);
}

.step-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.step-content p {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.fee-table-wrap {
    background: var(--bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    margin-top: 50px;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
}

.fee-table th {
    background: var(--gradient);
    color: #fff;
    padding: 16px 20px;
    text-align: left;
    font-size: .88rem;
    font-weight: 700;
}

.fee-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: .88rem;
}

.fee-table tr:last-child td {
    border-bottom: none;
}

.fee-table tr:hover td {
    background: rgba(37, 99, 235, .03);
}

.admission-form-section {
    padding: 80px 5%;
    background: var(--bg);
}

.admission-form-card {
    background: #fff;
    border-radius: 24px;
    padding: 50px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

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

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

.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: .9rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   EVENTS PAGE SPECIFIC
   ============================================ */
.events-page {
    padding: 80px 5%;
    background: #fff;
}

.events-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

/* ============================================
   GALLERY PAGE SPECIFIC
   ============================================ */
.gallery-page {
    padding: 80px 5%;
    background: #fff;
}

.gallery-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-full-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-full-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* ============================================
   CONTACT PAGE SPECIFIC
   ============================================ */
.contact-page {
    padding: 80px 5%;
    background: #fff;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info-card {
    background: var(--gradient);
    border-radius: 24px;
    padding: 50px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
    height: fit-content;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, .07);
    border-radius: 50%;
    right: -60px;
    bottom: -60px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.cii-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cii-text h4 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.cii-text p {
    font-size: .85rem;
    opacity: .8;
    line-height: 1.5;
}

.map-embed {
    border-radius: 16px;
    overflow: hidden;
    margin-top: 30px;
    height: 200px;
}

.map-embed iframe {
    border: none;
    width: 100%;
    height: 100%;
}

.map-placeholder {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, .1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
    color: rgba(255, 255, 255, .8);
    font-size: .9rem;
}

.map-placeholder i {
    font-size: 2rem;
    opacity: .6;
}

.contact-form-card {
    background: var(--bg);
    border-radius: 24px;
    padding: 50px;
}

/* ============================================
   MOBILE NAV
   ============================================ */
.mobile-nav {
    visibility: hidden;
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 1100;
    padding: 80px 30px 40px;
    box-shadow: -10px 0 50px rgba(0, 0, 0, .15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    overflow-y: auto;
}

.mobile-nav.open {
    visibility: visible;
    transform: translateX(0);
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--bg);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text);
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: .95rem;
    color: var(--text);
}

.mobile-nav a:hover {
    color: var(--primary-light);
}

.mobile-nav a i:first-child {
    width: 24px;
    color: var(--primary-light);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 1099;
    backdrop-filter: blur(4px);
}

.mobile-nav-overlay.open {
    display: block;
}

/* Mobile Nav Sub-menus Expansion */
.mobile-nav-item {
    border-bottom: 1px solid var(--border);
}

.mobile-nav-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.mobile-nav-row a {
    flex-grow: 1;
    border-bottom: none !important;
}

.mobile-toggle {
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: .8rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-toggle.active {
    transform: rotate(180deg);
    color: var(--primary-light);
}

.mobile-sub {
    display: none;
    background: var(--bg);
    padding-left: 20px;
}

.mobile-sub.open {
    display: block;
}

.mobile-sub a {
    border-bottom: none !important;
    padding: 10px 14px;
    font-size: .88rem;
    font-weight: 500;
}

.mobile-sub a i {
    font-size: 0.75rem;
    opacity: 0.5;
}


/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeSlideUp {
    from {
        opacity: 1;
        visibility: visible;
        display: none;
        transform: translateY(30px);
    }

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes pulse {

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

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

/* Intersection Observer revealed */
.reveal {
    opacity: 0;
    visibility: hidden;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {

    .nav-menu,
    .nav-actions {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .hero-float-card {
        display: none;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .about-grid,
    .academics-inner,
    .principal-grid,
    .contact-layout,
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .highlights-grid .highlight-featured {
        grid-row: span 1;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gallery-grid .gallery-item:first-child {
        grid-row: span 1;
    }

    .admission-cta {
        flex-direction: column;
        text-align: center;
        padding: 50px 30px;
    }

    .cta-text p {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    section {
        padding-left: 5% !important;
        padding-right: 5% !important;
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .hero-content {
        padding: 60px 5% 40px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    .hero-stats {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .mv-grid,
    .departments-grid,
    .about-grid,
    .feature-grid,
    .stats-grid,
    .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }

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

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

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Standardized Grids for Public Pages */
    .about-history-grid,
    .academics-exams-grid,
    .academics-results-grid,
    .admissions-main-grid,
    .principal-grid,
    .contact-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        width: 100% !important;
    }

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

    .about-badge-card,
    .about-experience-strip {
        position: relative !important;
        inset: auto !important;
        margin-top: 20px;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .page-header {
        padding: 60px 4% 40px !important;
        text-align: center;
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
    }

    .page-header h1 {
        font-size: 1.8rem !important;
        word-wrap: break-word;
    }

    .breadcrumb {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px !important;
    }

    /* Navbar Mobile Constraints */
    .nav-brand-text h1 {
        font-size: 1.05rem !important;
    }

    .nav-brand-text p {
        font-size: 0.55rem !important;
    }

    .navbar {
        padding: 0 4% !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* Fix for flex-between items on mobile */
    .prospectus-box,
    .fee-discounts {
        flex-direction: column !important;
        text-align: center;
        gap: 20px !important;
        width: 100% !important;
    }

    .prospectus-box button {
        width: 100%;
    }

    .fee-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin-left: -4%;
        margin-right: -4%;
        width: calc(100% + 8%) !important;
        border-radius: 0;
    }

    .fee-table {
        min-width: 500px;
    }
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    border: none;
    outline: none;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.45);
}

@media (max-width: 768px) {
    .scroll-top {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
        z-index: 9999;
        /* Ensure it's above everything */
    }

    .hero-scroll-down {
        bottom: 20px;
    }
}

/* Auth Enhancement Styles (For eye icon alignment) */
.auth-pwd-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

.auth-pwd-wrapper input {
    padding-right: 48px !important;
    width: 100% !important;
}

.toggle-password {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    color: #94a3b8 !important;
    z-index: 100 !important;
    font-size: 1.1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    transition: all 0.2s ease !important;
    pointer-events: all !important;
}

.toggle-password:hover {
    color: var(--primary-light, #2563eb) !important;
}