/* ==========================================================================
   Sri Bhashyam Public School - Design System & Custom Stylesheet
   ========================================================================== */

/* 1. Global Variables & Themes */
:root {
    --primary-color: #2563eb;       /* Bright Royal Blue */
    --primary-dark: #0b0f19;        /* Deep Space Blue */
    --primary-light: #3b82f6;       /* Radiant Blue */
    --secondary-color: #e11d48;     /* Neon Rose Crimson */
    --secondary-dark: #be123c;      /* Deep Rose Crimson */
    --accent-color: #ea580c;        /* Neon Amber Orange */
    --accent-light: #f59e0b;       /* Glowing Gold */
    --accent-yellow: #facc15;      /* Vibrant Sun Yellow */
    --text-dark: #0f172a;           /* Rich Obsidian */
    --text-muted: #475569;          /* Cool Slate */
    --bg-light: #f1f5f9;            /* Ice White */
    --bg-white: #ffffff;            /* Pure White */
    --bg-body: #f7f7f9;             /* Premium Pearl-Gray/Whisper */
    --border-color: #e2e8f0;        /* Light Gray Border */
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;
    
    /* Vibrant Premium Gradients */
    --gradient-primary: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #60a5fa 100%);
    --gradient-primary-hover: linear-gradient(135deg, #1e40af 0%, #1d4ed8 50%, #3b82f6 100%);
    --gradient-gold: linear-gradient(135deg, #ea580c 0%, #f59e0b 50%, #facc15 100%);
    --gradient-gold-hover: linear-gradient(135deg, #c2410c 0%, #ea580c 50%, #f59e0b 100%);
    --gradient-dark: linear-gradient(135deg, #0b0f19 0%, #1e1b4b 50%, #0f172a 100%);
    --gradient-soft: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.85) 100%);
    --gradient-glass-dark: linear-gradient(135deg, rgba(11, 15, 25, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
    --gradient-neon: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #f43f5e);
    
    /* Modern Premium Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 20px -2px rgba(37, 99, 235, 0.06), 0 2px 8px -1px rgba(37, 99, 235, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(37, 99, 235, 0.1), 0 10px 10px -5px rgba(37, 99, 235, 0.05);
    --shadow-xl: 0 25px 50px -12px rgba(11, 15, 25, 0.2);
    --shadow-glow-blue: 0 0 25px rgba(59, 130, 246, 0.45);
    --shadow-glow-gold: 0 0 25px rgba(245, 158, 11, 0.55);
    --shadow-glow-pink: 0 0 25px rgba(236, 72, 153, 0.4);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 2. Resets & Base Configuration */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 3. Utility Typography & Components */
.py-20 { padding-top: 48px; padding-bottom: 48px; }
.mt-6 { margin-top: 24px; }
.mt-10 { margin-top: 40px; }
.mt-20 { margin-top: 40px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.highlight { color: var(--accent-light); }

.section-header {
    margin-bottom: 50px;
}

.section-tag {
    font-family: var(--font-heading);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: var(--border-radius-full);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.25;
}

.section-lead-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 650px;
    margin: 12px auto 0;
}

.title-bar {
    width: 80px;
    height: 5px;
    background: var(--gradient-gold);
    margin: 16px auto 0;
    border-radius: var(--border-radius-full);
}

/* Glassmorphism utility */
.glassmorphism {
    background: var(--gradient-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
}

.glassmorphism-dark {
    background: var(--gradient-glass-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-xl);
}

/* Custom Buttons styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.btn-xs {
    padding: 8px 18px;
    font-size: 0.8rem;
    border-radius: var(--border-radius-sm);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4), var(--shadow-glow-blue);
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
    background: var(--gradient-gold-hover);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4), var(--shadow-glow-gold);
}

.btn-outline-white {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--bg-white);
    backdrop-filter: blur(4px);
}

.btn-outline-white:hover {
    background-color: var(--bg-white);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

.btn-block {
    display: inline-flex;
    width: 100%;
}

/* Form Styles */
.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-white);
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-row {
    display: flex;
    gap: 16px;
}

.col-6 {
    width: 50%;
}

.form-response {
    margin-top: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius-sm);
    padding: 10px;
    display: none;
}

.form-response.success {
    display: block;
    background-color: rgba(34, 197, 94, 0.15);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-response.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 4. Top Header & Nav Menu */
.top-bar {
    background: var(--gradient-dark);
    color: #cbd5e1;
    font-size: 0.825rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.top-info {
    display: flex;
    gap: 20px;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-info i {
    color: var(--accent-light);
}

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

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

.social-links a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--accent-light);
}

.main-header {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-bounce);
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding: 4px 0;
    position: relative;
}

.main-header.scrolled::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-neon);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.school-logo-img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    border-radius: 4px;
}


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

.school-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
    line-height: 1.1;
}

.school-subtitle {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1.5px;
}

.motto-text {
    font-family: var(--font-serif);
    font-size: 0.65rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius-full);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-cta {
    margin-left: 8px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* Mobile Drawer Nav */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-white);
    z-index: 1000;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.drawer-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drawer-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.drawer-link:hover {
    color: var(--secondary-color);
    padding-left: 8px;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
}

.drawer-overlay.open {
    display: block;
}

/* 5. Hero Section styling */
.hero-section {
    background-image: linear-gradient(135deg, rgba(11, 15, 25, 0.95) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(11, 15, 25, 0.5) 100%), url('../hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--bg-white);
    padding: 160px 0 140px;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(139, 92, 246, 0.15) 50%, transparent 100%);
    filter: blur(90px);
    z-index: 1;
    pointer-events: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, var(--bg-white) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-content {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-slogan {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.badge-innovation {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
    border: 1px solid rgba(96, 165, 250, 0.5);
    color: #93c5fd;
    padding: 8px 18px;
    border-radius: var(--border-radius-full);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-glow-blue);
}

.badge-motto {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.25) 0%, rgba(245, 158, 11, 0.25) 100%);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: var(--accent-yellow);
    padding: 8px 18px;
    border-radius: var(--border-radius-full);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.85rem;
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    background: linear-gradient(to right, #f59e0b, #ffeb3b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero-desc {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-quick-card {
    border-radius: var(--border-radius-lg);
    padding: 36px 30px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1), cardGlowPulse 6s infinite ease-in-out;
    background: var(--gradient-glass-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
}

@keyframes cardGlowPulse {
    0%, 100% {
        box-shadow: var(--shadow-xl), 0 0 15px rgba(37, 99, 235, 0.15);
        border-color: rgba(59, 130, 246, 0.2);
    }
    50% {
        box-shadow: var(--shadow-xl), 0 0 30px rgba(37, 99, 235, 0.4);
        border-color: rgba(96, 165, 250, 0.45);
    }
}

.hero-quick-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.hero-quick-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-white);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hero-quick-card p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 28px;
}

.quick-form .form-group input,
.quick-form .form-group select {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: var(--bg-white);
    padding: 14px 18px;
    border-radius: var(--border-radius-md);
}

.quick-form .form-group input::placeholder {
    color: #94a3b8;
}

.quick-form .form-group select option {
    background-color: var(--primary-dark);
    color: var(--bg-white);
}

.quick-form .form-group input:focus,
.quick-form .form-group select:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
    background: rgba(255, 255, 255, 0.1);
}

.quick-form .btn-primary {
    padding: 14px;
    margin-top: 10px;
}

/* 6. Stats Section styling */
.stats-section {
    background-color: var(--bg-white);
    padding: 40px 0;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 10;
    margin-top: -50px;
    border-radius: var(--border-radius-lg);
    margin-left: 24px;
    margin-right: 24px;
    max-width: 1232px !important;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 30px;
    border-right: 1.5px solid var(--border-color);
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
}

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

.stat-icon {
    font-size: 2.25rem;
    color: var(--accent-light);
    background: rgba(245, 158, 11, 0.1);
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    transition: var(--transition-bounce);
}

.stat-card:hover .stat-icon {
    background: var(--gradient-gold);
    color: var(--bg-white);
    transform: rotate(10deg) scale(1.1);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
}

.stat-plus, .stat-percent {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 2px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 7. About Us Section styling */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    /* height driven by the img inside */
}

.about-accent-bg {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background-color: rgba(211, 47, 47, 0.05);
    border: 3px solid var(--secondary-color);
    border-radius: var(--border-radius-lg);
    z-index: 1;
}

.about-main-image {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius-lg);
    z-index: 2;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    line-height: 0; /* remove img inline gap */
}

.about-teacher-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--border-radius-lg);
}

.about-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 15, 35, 0.95) 0%, rgba(10, 15, 35, 0.6) 70%, transparent 100%);
    backdrop-filter: blur(2px);
    padding: 28px 28px 24px;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    color: var(--bg-white);
}

.about-image-overlay i {
    font-size: 1.4rem;
    color: var(--accent-light);
    margin-bottom: 10px;
    display: block;
}

.overlay-quote {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
    color: #f1f5f9;
    margin: 0;
}

.about-text-content h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.about-paragraph {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 16px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(30, 58, 138, 0.08);
    color: var(--primary-color);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
}

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

.about-subgrid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: flex-start;
}

.message-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding-bottom: 12px;
}

.msg-tab {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 14px;
    border-radius: var(--border-radius-full);
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.msg-tab:hover {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

.msg-tab.active {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.08);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.message-card {
    padding: 40px;
    border-radius: var(--border-radius-lg);
    position: relative;
    border-left: 5px solid var(--accent-light);
    border-top: none;
    background: var(--gradient-soft);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-bounce);
}

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

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

.message-header .avatar {
    width: 70px;
    height: 70px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-full);
    border: 3px solid var(--bg-white);
    box-shadow: var(--shadow-md), 0 0 0 2px var(--accent-light);
    transition: var(--transition-bounce);
}

.message-card:hover .avatar {
    transform: scale(1.1);
}

.message-header .name {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.message-header .role {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.message-text {
    font-family: var(--font-serif);
    color: var(--text-dark);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.8;
}

/* Vision Mission Tab System */
.vision-mission-tabs {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
}

.tab-triggers {
    display: flex;
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.tab-trigger {
    flex: 1;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 20px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-bounce);
    border-bottom: 3px solid transparent;
}

.tab-trigger:hover {
    color: var(--primary-light);
    background-color: rgba(59, 130, 246, 0.02);
}

.tab-trigger.active {
    color: var(--primary-color);
    background-color: var(--bg-white);
    border-bottom-color: var(--primary-color);
    font-weight: 800;
}

.tab-contents {
    padding: 36px;
}

.tab-pane {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.tab-pane.active {
    display: block;
}

.tab-pane p {
    color: var(--text-dark);
    font-size: 1.025rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.tab-pane ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tab-pane ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.tab-pane ul li i {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-full);
}

/* Values inside Tab */
.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.value-card {
    background-color: var(--bg-white);
    padding: 20px;
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--accent-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--shadow-glow-blue);
    background: var(--gradient-soft);
}

.val-num {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-light);
    display: block;
    margin-bottom: 4px;
}

.value-card h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-dark);
}

.value-card p {
    font-size: 0.8rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

/* 8. Academics Section styling */
.academics-tabs-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: flex-start;
}

.program-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prog-btn {
    background-color: var(--bg-white);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 24px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    text-align: left;
    gap: 20px;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-sm);
}

.prog-btn .icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-normal);
}

.prog-btn .title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary-dark);
    display: block;
    letter-spacing: -0.3px;
}

.prog-btn .sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    font-weight: 600;
    margin-top: 4px;
}

.prog-btn:hover {
    border-color: var(--primary-light);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.prog-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--bg-white);
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
    position: relative;
}

.prog-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background: var(--gradient-gold);
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
}

.prog-btn.active .icon {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--bg-white);
}

.prog-btn.active .title,
.prog-btn.active .sub {
    color: var(--bg-white);
}

.program-content-display {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    min-height: 480px;
    transition: var(--transition-normal);
}

.program-panel {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.program-panel.active {
    display: block;
}

.panel-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
}

.panel-text {
    padding: 48px;
}

.panel-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.panel-text .lead {
    font-size: 1.1rem;
    color: var(--primary-light);
    font-weight: 700;
    margin-bottom: 24px;
}

.panel-text p {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 28px;
    line-height: 1.7;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
}

.f-list-item {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-bounce);
}

.f-list-item i {
    color: var(--bg-white);
    background: var(--gradient-primary);
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    transition: var(--transition-bounce);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.f-list-item:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

.f-list-item:hover i {
    background: var(--gradient-gold);
    box-shadow: var(--shadow-glow-gold);
}

.panel-image {
    background-size: cover;
    background-position: center;
    min-height: 480px;
}

/* 9. Facilities Section styling */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.facility-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl), var(--shadow-glow-blue);
    border-color: var(--primary-light);
}

.fac-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    transition: var(--transition-slow);
}

.facility-card:hover .fac-image {
    transform: scale(1.08);
}

.fac-content {
    padding: 36px 30px 30px;
    position: relative;
}

.fac-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    color: var(--primary-dark);
    font-size: 1.5rem;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -30px;
    left: 30px;
    border: 4px solid var(--bg-white);
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
}

.facility-card:hover .fac-icon {
    transform: translateY(-5px) rotate(-5deg);
    box-shadow: var(--shadow-lg), var(--shadow-glow-gold);
    background: var(--gradient-gold-hover);
    color: var(--bg-white);
}

.fac-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-top: 10px;
    margin-bottom: 12px;
}

.fac-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 10. Fee Estimator styling */
.fees-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: stretch;
}

.calculator-card {
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calculator-card .card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.calculator-card .card-title i {
    color: var(--accent-light);
}

.calc-input {
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    padding: 14px 18px;
    border-radius: var(--border-radius-md);
    width: 100%;
    font-size: 1rem;
    transition: var(--transition-bounce);
}

.calc-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background-color: var(--bg-white);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    position: relative;
    padding: 10px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: #f8fafc;
    transition: var(--transition-normal);
}

.radio-label:hover {
    border-color: var(--primary-light);
    background-color: rgba(59, 130, 246, 0.02);
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    margin: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    margin-top: 16px;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: #f8fafc;
    transition: var(--transition-normal);
}

.checkbox-label:hover {
    border-color: var(--primary-light);
    background-color: rgba(59, 130, 246, 0.02);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    margin: 0;
}

.results-card {
    background: var(--gradient-dark);
    color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.results-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-gold);
    box-shadow: var(--shadow-glow-gold);
}

.results-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

.results-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.receipt-divider {
    height: 1px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    margin: 16px 0;
}

.receipt-rows {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #94a3b8;
    font-weight: 600;
}

.receipt-row .price {
    color: var(--bg-white);
    font-weight: 700;
    font-family: var(--font-heading);
}

.receipt-row.sibling-discount-row .discount-value {
    color: #4ade80;
    font-weight: 800;
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.receipt-total span {
    font-size: 1.05rem;
    font-weight: 700;
    color: #94a3b8;
}

.receipt-total .total-price {
    font-size: 2.35rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    font-family: var(--font-heading);
    letter-spacing: -1px;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
}

.results-disclaimer {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 24px;
    font-style: italic;
    line-height: 1.5;
}

/* Timeline styles */
.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 40px;
}

.timeline-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.timeline-steps::after {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 3px;
    background-color: var(--border-color);
    z-index: 1;
}

.step-card {
    background-color: var(--bg-white);
    padding: 30px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
    transition: var(--transition-normal);
}

.step-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
    background: var(--gradient-soft);
}

.step-number {
    font-family: var(--font-heading);
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-full);
    background: var(--gradient-primary);
    color: var(--bg-white);
    font-size: 1.25rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border: 4px solid var(--bg-white);
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
}

.step-card:hover .step-number {
    background: var(--gradient-gold);
    box-shadow: var(--shadow-md), var(--shadow-glow-gold);
    transform: scale(1.1) rotate(5deg);
}

.step-card h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 11. Gallery Section styling */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
}

.filter-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.filter-btn.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--bg-white);
}

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

.gallery-item {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 280px;
    position: relative;
    box-shadow: var(--shadow-md);
    background-color: #0b0f19;
    animation: scaleIn 0.4s ease;
}

.gal-image-blur-bg {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background-size: cover;
    background-position: center;
    filter: blur(14px) brightness(0.65);
    opacity: 0.75;
    z-index: 1;
}

.gal-image-holder {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    z-index: 2;
    transition: var(--transition-slow);
}

.gallery-item:hover .gal-image-holder {
    transform: scale(1.03);
}

.gal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: var(--transition-normal);
}

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

.gal-overlay .tag {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--accent-yellow);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.gal-overlay h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bg-white);
}

.zoom-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    background-color: var(--bg-white);
    border: none;
    color: var(--primary-dark);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition-normal);
}

.gallery-item:hover .zoom-btn {
    opacity: 1;
    transform: translateY(0);
}

.zoom-btn:hover {
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

/* Lightbox styles */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

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

.lightbox-modal img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* 12. Testimonials Section styling */
.carousel-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.carousel-track-wrapper {
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    min-width: 100%;
    padding: 10px;
}

.testimonial-card {
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--primary-color);
}

.testimonial-card .rating {
    color: var(--accent-light);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.testimonial-card .quote {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 30px;
}

.parent-info h5 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.parent-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.car-arrow {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    color: var(--primary-dark);
    transition: var(--transition-fast);
}

.car-arrow:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: var(--border-radius-full);
    background-color: #cbd5e1;
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-dots .dot.active {
    background-color: var(--primary-color);
    width: 24px;
}

/* 13. Contact & Registration Form Section styling */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
}

.badge-contact {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.contact-info-panel h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.contact-info-panel p {
    color: var(--text-muted);
    margin-bottom: 36px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 30px;
}

.method-card {
    display: flex;
    gap: 16px;
}

.method-card .icon {
    width: 50px;
    height: 50px;
    background-color: rgba(211, 47, 47, 0.08);
    color: var(--secondary-color);
    font-size: 1.35rem;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-card h5 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.method-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.map-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 200px;
    box-shadow: var(--shadow-md);
    margin-top: auto;
    border: 1px solid var(--border-color);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    position: relative;
    padding: 24px;
    text-align: center;
}

.map-pin {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
    animation: bounce 2s infinite;
}

.map-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
}

.map-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

.inquiry-form-panel {
    border-radius: var(--border-radius-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.inquiry-form-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.inquiry-form-panel p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Spinner and submission state */
.btn-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 14. Footer styling */
.main-footer {
    background-color: var(--primary-dark);
    color: #94a3b8;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-col .footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.brand-col .footer-logo .title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--bg-white);
    letter-spacing: 1px;
}

.brand-col .footer-logo .sub {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-light);
    letter-spacing: 2px;
}

.brand-col p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

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

.footer-social a {
    width: 38px;
    height: 38px;
    background-color: rgba(255,255,255,0.05);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--accent-light);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.875rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.footer-links a:hover {
    color: var(--bg-white);
}

.footer-links a:hover i {
    transform: translateX(4px);
    color: var(--accent-light);
}

.footer-col p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius-sm);
    padding: 10px 16px;
    color: var(--bg-white);
    font-size: 0.875rem;
    flex-grow: 1;
    font-family: var(--font-body);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-light);
}

.newsletter-form .btn {
    padding: 10px 20px;
}

.newsletter-response {
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    display: none;
}

.newsletter-response.success {
    display: block;
    color: #4ade80;
}

.footer-bottom {
    margin-top: 60px;
    background-color: #0b0f19;
    padding: 24px 0;
    font-size: 0.8rem;
}

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

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

.bottom-links a:hover {
    color: var(--bg-white);
}

/* 15. Keyframes & Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ==========================================================================
   16. Universal Responsiveness & Fluid Mobile Utilities
   ========================================================================== */

/* Touch & Global Mobile Adjustments */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

img, video, iframe, svg, canvas {
    max-width: 100%;
    height: auto;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: var(--border-radius-md);
}

/* ==========================================================================
   Premium Scroll Reveals & Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
    }
}

.reveal-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.pulse-animation {
    animation: pulse-glow 3s infinite;
}

/* Educators & Achievers card styling */
.showcase-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
    border-color: var(--primary-light);
}

.showcase-avatar-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    position: relative;
}

.showcase-avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-full);
    background-size: cover;
    background-position: center;
    border: 4px solid var(--bg-white);
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
}

.showcase-card:hover .showcase-avatar {
    transform: scale(1.08) rotate(3deg);
    box-shadow: var(--shadow-md), var(--shadow-glow-gold);
    border-color: var(--accent-light);
}

.showcase-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.showcase-info span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Fullscreen Subpage Viewport styling */
.subpage-viewport {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    z-index: 2000;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    box-sizing: border-box;
    animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.subpage-viewport.open {
    display: flex;
}

/* Subpage Navbar styling */
.subpage-navbar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.subpage-navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 30px;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
    background: transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.back-home-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateX(-3px);
}

/* Subpage Hero styling (Matching Screenshot) */
.subpage-hero {
    background: linear-gradient(180deg, #0b1528 0%, #060b13 100%);
    padding: 80px 0;
    color: var(--bg-white);
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.subpage-tag {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--accent-light);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.subpage-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--bg-white);
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.subpage-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-align: center;
}

/* Subpage Body Content styling */
.subpage-body {
    padding: 60px 0;
    background-color: var(--bg-light);
    flex: 1;
}

.subpage-desk-card {
    display: flex;
    gap: 40px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 50px;
    align-items: center;
}

.subpage-desk-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 4px solid var(--border-color);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.welcome-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px solid var(--accent-gold, #f59e0b);
    flex-shrink: 0;
}

.subpage-desk-content {
    flex: 1;
}

.subpage-desk-content h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.subpage-desk-content span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 16px;
}

.subpage-desk-content p {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.6;
    font-style: italic;
}

.subpage-divider {
    height: 1px;
    background: var(--border-color);
    margin: 50px 0;
}

.subpage-section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* Slide in animation */
@keyframes slideInUp {
    from {
        transform: translateY(100vh);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* Homepage Overview & Stats styling */
.home-overview-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.stat-box-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.stat-box-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md), var(--shadow-glow-blue);
    border-color: var(--primary-light);
}

.stat-box-card h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 12px 0 6px;
}

.stat-box-card span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-box-card .icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-md);
    background: rgba(30, 58, 138, 0.05);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto;
    transition: var(--transition-fast);
}

.stat-box-card:hover .icon-wrapper {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: scale(1.1) rotate(5deg);
}

/* Home Split Grid */
.home-split-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: flex-start;
}

@media (max-width: 991px) {
    .home-split-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.home-welcome-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 58, 138, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 45px;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
}

.home-welcome-card .welcome-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--accent-light);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.home-welcome-card h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--bg-white);
    margin-bottom: 24px;
}

.home-welcome-card .welcome-quote {
    font-size: 1.15rem;
    line-height: 1.6;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    border-left: 3px solid var(--accent-light);
    padding-left: 20px;
    margin-bottom: 30px;
}

.welcome-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.welcome-author .author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.welcome-author h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.welcome-author span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Portals Grid */
.home-portals-wrapper .section-header-left {
    margin-bottom: 30px;
}

.portals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.portal-card {
    display: flex;
    gap: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
    text-decoration: none;
    transition: var(--transition-bounce);
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.portal-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md), var(--shadow-glow-blue);
    border-color: var(--primary-light);
}

.portal-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.portal-icon.red { background: rgba(211, 47, 47, 0.08); color: #d32f2f; }
.portal-icon.blue { background: rgba(30, 58, 138, 0.08); color: #1e3a8a; }
.portal-icon.gold { background: rgba(245, 158, 11, 0.08); color: #f59e0b; }
.portal-icon.green { background: rgba(16, 185, 129, 0.08); color: #10b981; }

.portal-card h5 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
    transition: var(--transition-fast);
}

.portal-card:hover h5 {
    color: var(--primary-color);
}

.portal-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   Vibrant Aesthetic & Visual Polish Overrides
   ========================================================================== */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark) 20%, var(--primary-color) 65%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.25;
}

.section-tag {
    font-family: var(--font-heading);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: var(--border-radius-full);
    border: 1px solid rgba(37, 99, 235, 0.15);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.05);
    transition: var(--transition-fast);
}

.section-tag:hover {
    background: rgba(37, 99, 235, 0.12);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.15);
    transform: scale(1.05);
}

.portal-card {
    display: flex;
    gap: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 22px;
    text-decoration: none;
    transition: var(--transition-bounce);
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.portal-card:hover {
    transform: translateX(6px);
    background: linear-gradient(to right, #ffffff, #eff6ff);
    box-shadow: var(--shadow-md), 0 8px 24px rgba(37, 99, 235, 0.1);
    border-color: var(--primary-light);
}

.portal-icon.red { background: rgba(225, 29, 72, 0.1); color: var(--secondary-color); box-shadow: 0 0 15px rgba(225, 29, 72, 0.2); }
.portal-icon.blue { background: rgba(37, 99, 235, 0.1); color: var(--primary-color); box-shadow: 0 0 15px rgba(37, 99, 235, 0.2); }
.portal-icon.gold { background: rgba(245, 158, 11, 0.1); color: var(--accent-light); box-shadow: 0 0 15px rgba(245, 158, 11, 0.2); }
.portal-icon.green { background: rgba(16, 185, 129, 0.1); color: #10b981; box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); }

.message-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(243, 244, 246, 0.75) 100%) !important;
    border-left: 5px solid var(--secondary-color) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(37, 99, 235, 0.05);
}

.message-card:hover {
    box-shadow: var(--shadow-xl), 0 15px 40px rgba(37, 99, 235, 0.15) !important;
    border-left-color: var(--primary-color) !important;
}

.value-card {
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md), 0 8px 20px rgba(225, 29, 72, 0.08);
}

/* Add custom neon floating indicator dot in news bar */
.news-title {
    position: relative;
}

.news-title::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 0 10px var(--secondary-color);
    animation: beaconPulse 1.5s infinite;
}

@keyframes beaconPulse {
    0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7); }
    70% { transform: scale(1.1); opacity: 0.8; box-shadow: 0 0 0 8px rgba(225, 29, 72, 0); }
    100% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

/* Heritage Timeline styling */
.about-timeline-wrapper {
    position: relative;
    padding-top: 20px;
}

.timeline-container {
    position: relative;
    margin-top: 50px;
    padding-bottom: 20px;
}

.timeline-line {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: var(--border-radius-full);
    z-index: 1;
}

.timeline-steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
}

@media (max-width: 991px) {
    .timeline-line {
        left: 30px;
        top: 0;
        width: 4px;
        height: 100%;
    }
    .timeline-steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-left: 80px;
    }
}

.timeline-step {
    text-align: center;
    position: relative;
}

@media (max-width: 991px) {
    .timeline-step {
        text-align: left;
    }
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: var(--shadow-glow-blue);
    border: 4px solid var(--bg-white);
    margin-bottom: 24px;
    transition: var(--transition-bounce);
    position: relative;
    z-index: 3;
}

@media (max-width: 991px) {
    .step-badge {
        position: absolute;
        left: -80px;
        top: 0;
        margin-bottom: 0;
    }
}

.timeline-step:hover .step-badge {
    transform: scale(1.15) rotate(5deg);
    background: var(--gradient-gold);
    box-shadow: var(--shadow-glow-gold);
}

.step-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md), 0 8px 24px rgba(37, 99, 235, 0.08);
    border-color: var(--primary-light);
}

.step-card h5 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

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

/* Parallax Callout Banner styling */
.parallax-callout-banner {
    position: relative;
    background-image: linear-gradient(135deg, rgba(11, 15, 25, 0.9) 0%, rgba(15, 23, 42, 0.85) 100%), url('https://images.unsplash.com/photo-1427504494785-3a9ca7044f45?auto=format&fit=crop&q=80&w=1200');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    color: var(--bg-white);
    text-align: center;
    overflow: hidden;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 80%);
    pointer-events: none;
}

.callout-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.callout-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--accent-light);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.callout-container h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.callout-container p {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
}

/* ==========================================================================
   Admin Portal Custom Styles
   ========================================================================== */
.admin-body {
    background-color: #f1f5f9;
    min-height: 100vh;
    font-family: var(--font-body);
}

.admin-login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background-image: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

.login-card {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.admin-login-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 16px;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(37, 99, 235, 0.12);
    transition: var(--transition-normal);
}

.admin-login-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.15);
}

.login-header h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-dark);
}

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

.admin-dashboard-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    background-color: #f1f5f9;
}

.dashboard-sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    color: #94a3b8;
    padding: 35px 24px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.1);
    z-index: 10;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 30px;
}

.sidebar-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.03);
}

.sidebar-info h4 {
    font-family: var(--font-heading);
    color: var(--bg-white);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.sidebar-info span {
    font-size: 0.72rem;
    color: var(--accent-light);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-btn {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: #94a3b8;
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: var(--transition-normal);
    position: relative;
}

.nav-btn i {
    font-size: 1.15rem;
    width: 20px;
    transition: transform 0.2s ease;
}

.nav-btn:hover {
    color: var(--bg-white);
    background-color: rgba(255, 255, 255, 0.06);
}

.nav-btn:hover i {
    transform: scale(1.1);
}

.nav-btn.active {
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(30, 58, 138, 0.8) 100%);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.35);
}

.nav-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 4px;
    background-color: var(--accent-light);
    border-radius: var(--border-radius-full);
}

.nav-btn.active::after {
    display: none;
}

.nav-btn .badge {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--border-radius-full);
    margin-left: auto;
}

.sidebar-footer {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    font-size: 2.25rem;
    color: #94a3b8;
}

.admin-profile h5 {
    color: var(--bg-white);
    font-size: 0.9rem;
    font-weight: 700;
}

.admin-profile span {
    font-size: 0.72rem;
    color: #64748b;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    background-color: #f1f5f9;
}

.dashboard-navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 40px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.navbar-left h2 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.navbar-left p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.session-badge {
    background-color: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.dashboard-content-area {
    padding: 40px;
    flex-grow: 1;
    overflow-y: auto;
}

.view-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.view-panel.active {
    display: block;
}

/* Redesigned Overview Stats Row */
.dashboard-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 35px;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-overview-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-overview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.05), 0 5px 8px -3px rgba(0, 0, 0, 0.05);
}

.stat-overview-card .icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.02);
}

.stat-overview-card .icon-wrapper.blue {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.stat-overview-card .icon-wrapper.gold {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-overview-card .icon-wrapper.green {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-overview-card .stat-details {
    display: flex;
    flex-direction: column;
}

.stat-overview-card .stat-details .label {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
}

.stat-overview-card .stat-details h3 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.1;
}

/* Settings Cards UI */
.settings-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 35px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    margin-bottom: 30px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.settings-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.settings-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.section-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.settings-subsection-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1.5px solid rgba(226, 232, 240, 0.8);
    padding-bottom: 8px;
}

.fee-tier-box {
    background-color: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.fee-tier-box h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.col-4 {
    width: 33.33%;
}

/* Inquiries Table toolbar & view */
.table-container {
    background-color: var(--bg-white);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.table-header-toolbar {
    padding: 20px 28px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background-color: #f8fafc;
}

.table-header-toolbar input {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 10px 16px;
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    border-radius: 8px;
    width: 350px;
    transition: var(--transition-fast);
}

.table-header-toolbar input:focus {
    outline: none;
    border-color: var(--primary-light);
    width: 400px;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.refresh-indicator {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.refresh-indicator:hover {
    color: var(--secondary-color);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.dashboard-table th {
    background-color: #f8fafc;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 16px 28px;
    border-bottom: 1.5px solid rgba(226, 232, 240, 0.8);
}

.dashboard-table td {
    padding: 18px 28px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    color: var(--text-dark);
    vertical-align: middle;
}

.dashboard-table tbody tr:hover {
    background-color: rgba(30, 58, 138, 0.015);
}

.table-name {
    font-weight: 700;
    color: var(--primary-dark);
    display: block;
}

.table-message-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 0.85rem;
    line-height: 1.5;
}

.admin-panel-split-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 30px;
    align-items: flex-start;
}

/* 26. Announcements Scrolling Ticker & Innovation Badge */
.badge-slogan {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.badge-motto {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    padding: 8px 18px;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.badge-innovation {
    background-color: rgba(217, 119, 6, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: var(--accent-yellow);
    padding: 8px 18px;
    border-radius: var(--border-radius-full);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.badge-innovation i {
    color: var(--accent-light);
    animation: pulse 2s infinite ease-in-out;
}

.ticker-wrap {
    background: #0f172a; /* Dark Slate */
    color: #f8fafc;
    height: 46px;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--accent-light);
    font-family: var(--font-heading);
    position: relative;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.ticker-title {
    background: var(--secondary-color);
    color: #fff;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    z-index: 100;
    white-space: nowrap;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.35);
    position: relative;
}

.ticker-title i {
    margin-right: 8px;
    animation: bell-ring 1.5s infinite ease-in-out;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    align-items: center;
    height: 100%;
    animation: ticker-scroll 35s linear infinite;
}

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

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 40px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
}

.ticker-item::after {
    content: "•";
    color: var(--accent-light);
    margin-left: 80px;
    font-size: 1.2rem;
}

@keyframes ticker-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes bell-ring {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(15deg); }
    30% { transform: rotate(-15deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-10deg); }
    75% { transform: rotate(4deg); }
    85% { transform: rotate(-4deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* ==========================================================================
   20. Reusable Subpage Styling
   ========================================================================== */
.subpage-banner {
    position: relative;
    background: var(--gradient-dark);
    padding: 100px 0 60px 0;
    color: #fff;
    text-align: center;
    border-bottom: 4px solid var(--primary-light);
    overflow: hidden;
}

.subpage-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.subpage-banner h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 15px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 20px;
    border-radius: var(--border-radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--accent-light);
}

.breadcrumbs span.current {
    color: var(--accent-yellow);
}

.breadcrumbs i {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.subpage-content {
    padding: 50px 0;
    background-color: var(--bg-body);
}

.content-box {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    padding: 50px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.content-box h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.content-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-dark);
    margin: 30px 0 15px 0;
}

.content-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-box ul {
    list-style-type: none;
    margin-bottom: 25px;
}

.content-box ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

.content-box ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-light);
    font-weight: 900;
}

/* responsive refinements */
@media (max-width: 768px) {
    .subpage-banner h1 {
        font-size: 2.2rem;
    }
    
    .content-box {
        padding: 30px 20px;
    }
}

/* Premium University-Style Faculty Profile Cards */
.subpage-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 25px;
}

.faculty-profile-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.faculty-profile-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
    border-color: #9a5b28;
}

.fac-card-img-wrapper {
    height: 260px;
    width: 100%;
    overflow: hidden;
    background-color: #f1f5f9;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.fac-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
    transition: transform 0.4s ease;
}

.faculty-profile-card:hover .fac-card-img {
    transform: scale(1.04);
}

.fac-card-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fac-card-body h4 {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 700;
    color: #9a5b28; /* Warm golden brown from reference */
    margin: 0 0 4px 0;
    line-height: 1.35;
}

.fac-card-role {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.fac-card-msg {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.55;
    margin-top: 6px;
    margin-bottom: 0;
}

/* ==========================================================================
   Academic Spectrum, Testimonials Carousel, Facilities & Values Styles
   ========================================================================== */

/* Academic Spectrum Tabs & Panels */
.academics-tabs-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 40px;
}

.academics-tabs-container > .text-center {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.program-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prog-btn {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: var(--bg-white);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-bounce);
    text-align: left;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.prog-btn:hover {
    border-color: var(--primary-light);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.prog-btn.active {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow-blue), var(--shadow-md);
    transform: translateX(8px);
}

.prog-btn .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition-fast);
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.prog-btn.active .icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.prog-btn .title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
    line-height: 1.25;
}

.prog-btn .sub {
    font-size: 0.82rem;
    opacity: 0.85;
    display: block;
    margin-top: 3px;
}

.program-content-display {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 38px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
    min-height: 400px;
}

.program-panel {
    display: none;
}

.program-panel.active {
    display: block;
    animation: fadeInPanel 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.panel-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
}

@media (max-width: 992px) {
    .academics-tabs-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .program-buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        flex-direction: row;
    }
    .prog-btn.active {
        transform: translateY(-4px);
    }
    .prog-btn:hover {
        transform: translateY(-2px);
    }
    .panel-grid {
        grid-template-columns: 1fr;
    }
}

.panel-text h3 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.panel-text .lead {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 14px;
    line-height: 1.5;
}

.panel-text p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 24px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.f-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    background: rgba(37, 99, 235, 0.05);
    padding: 12px 14px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.f-list-item i {
    color: var(--primary-color);
    font-size: 0.82rem;
}

.panel-image {
    width: 100%;
    height: 360px;
    border-radius: var(--border-radius-md);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Testimonials Carousel */
.carousel-container {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 10px;
}

.carousel-track-wrapper {
    overflow: hidden;
    border-radius: var(--border-radius-md);
    width: 100%;
    min-height: 220px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    flex: 0 0 100%;
    padding: 8px;
    box-sizing: border-box;
}

.testimonial-card {
    background: #ffffff;
    padding: 38px 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.testimonial-card .rating {
    display: flex;
    gap: 6px;
    color: #f59e0b;
    font-size: 1.15rem;
}

.testimonial-card .quote {
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--text-dark);
    font-style: italic;
    max-width: 680px;
    margin: 0;
}

.testimonial-card .parent-info h5 {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.testimonial-card .parent-info span {
    font-size: 0.88rem;
    color: var(--primary-color);
    font-weight: 600;
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
}

.car-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--primary-dark);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
}

.car-arrow:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: scale(1.08);
    box-shadow: var(--shadow-glow-blue);
}

.carousel-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: var(--transition-normal);
}

.dot.active {
    width: 32px;
    border-radius: 6px;
    background: var(--primary-color);
}

/* Facilities Grid */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.facility-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
}

.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
}

.facility-card .fac-image {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.facility-card .fac-content {
    padding: 24px;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.facility-card .fac-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--gradient-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
    margin-top: -46px;
    position: relative;
    box-shadow: var(--shadow-md);
}

.facility-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.facility-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Core Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.value-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
    position: relative;
}

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

.value-card .val-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(37, 99, 235, 0.18);
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

.value-card h5 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

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

/* ==========================================================================
   27. Universal Zero-Horizontal-Overflow Responsive System
   Tested & optimized for: 320px, 360px, 375px, 390px, 430px, 768px, 1024px
   ========================================================================== */

/* Universal Reset to Guarantee No Horizontal Overflow */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
}

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

/* Mobile Admin Sidebar Toggle & Drawer */
.admin-mobile-toggle {
    display: none;
}

.admin-sidebar-close {
    display: none;
}

.admin-sidebar-overlay {
    display: none;
}

/* ==========================================================================
   TABLETS & LAPTOPS (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

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

    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
        color: var(--primary-dark);
        background: rgba(30, 58, 138, 0.05);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius-sm);
        cursor: pointer;
    }

    .hero-section, .parallax-callout-banner {
        background-attachment: scroll !important;
    }

    .hero-section::after {
        display: none !important;
    }

    .hero-container {
        grid-template-columns: 1fr !important;
        gap: 36px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-quick-card {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-section::before {
        display: none !important;
    }

    .stats-section {
        margin-top: 36px !important;
        margin-left: 16px !important;
        margin-right: 16px !important;
        padding: 30px 16px !important;
        border-radius: var(--border-radius-lg) !important;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px;
    }

    .stat-card {
        border-right: none !important;
        border-bottom: 1.5px dashed var(--border-color);
        padding-bottom: 16px;
    }

    .stat-card:nth-child(3), .stat-card:nth-child(4) {
        border-bottom: none !important;
    }

    .about-grid, .about-subgrid, .academics-tabs-container, .fees-grid, .contact-layout, .home-split-grid, .admin-panel-split-layout {
        grid-template-columns: 1fr !important;
        gap: 32px;
        width: 100%;
        box-sizing: border-box;
    }

    /* About image — mobile: contain within viewport */
    .about-image-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .about-accent-bg {
        right: -8px;
        bottom: -8px;
        left: 8px;
        top: 8px;
    }

    .about-main-image {
        width: 100%;
        max-width: 100%;
    }

    .about-teacher-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }


    .panel-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .facilities-grid, .gallery-grid, .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 32px;
    }

    /* Admin Tablet Drawer */
    .admin-dashboard-wrapper {
        grid-template-columns: 1fr !important;
        position: relative;
    }

    .admin-mobile-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--bg-white);
        border: 1.5px solid var(--border-color);
        border-radius: var(--border-radius-sm);
        color: var(--primary-dark);
        font-size: 1.15rem;
        cursor: pointer;
        margin-right: 12px;
    }

    .dashboard-sidebar {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: -320px !important;
        width: 300px !important;
        height: 100% !important;
        z-index: 2100 !important;
        background: #0f172a !important;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: var(--shadow-xl) !important;
        overflow-y: auto !important;
    }

    .dashboard-sidebar.open {
        left: 0 !important;
    }

    .admin-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.65);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 2050;
        display: none;
    }

    .admin-sidebar-overlay.open {
        display: block !important;
    }

    .admin-sidebar-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        width: 34px;
        height: 34px;
        color: #e2e8f0;
        font-size: 1.1rem;
        cursor: pointer;
        margin-left: auto;
    }

    .dashboard-navbar {
        padding: 14px 18px !important;
    }

    .dashboard-navbar .navbar-left {
        display: flex !important;
        align-items: center !important;
    }

    .dashboard-navbar .navbar-left h2 {
        font-size: 1.25rem !important;
    }

    .dashboard-navbar .navbar-left p {
        display: none !important;
    }

    .dashboard-content-area {
        padding: 20px 16px !important;
    }

    .dashboard-stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
        margin-bottom: 24px !important;
    }

    .table-header-toolbar {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
    }

    .table-header-toolbar input {
        width: 100% !important;
    }
}

/* ==========================================================================
   MOBILE PHONES & PORTRAIT TABLETS (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    /* Top Contact Bar */
    .top-bar {
        padding: 6px 0;
        width: 100%;
        overflow: hidden;
    }

    .top-bar-content {
        flex-direction: column !important;
        gap: 6px !important;
        width: 100%;
        padding: 0 6px;
        box-sizing: border-box;
    }

    .top-info {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px 14px !important;
        width: 100%;
    }

    .top-info span {
        font-size: 0.76rem !important;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }

    /* Hide long physical address on mobile */
    .top-info span:nth-child(3) {
        display: none !important;
    }

    .top-actions {
        width: 100%;
        justify-content: center !important;
        gap: 10px !important;
        flex-wrap: wrap;
        margin-top: 2px;
    }

    .top-actions .btn {
        font-size: 0.74rem !important;
        padding: 4px 12px !important;
    }

    .social-links {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .social-links a {
        font-size: 0.85rem;
        padding: 2px 4px;
    }

    /* Header & Branding */
    .main-header {
        padding: 4px 0 !important;
        width: 100%;
        background: var(--bg-white);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .header-container {
        padding: 0 12px !important;
        min-height: 48px !important;
        height: auto !important;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        box-sizing: border-box;
    }

    .logo-area {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        padding: 2px 0;
    }

    .school-logo-img {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
        object-fit: contain;
        flex-shrink: 0;
    }

    .logo-text {
        overflow: hidden;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 1px;
    }

    .school-title {
        font-family: var(--font-heading);
        font-size: clamp(1.22rem, 5.2vw, 1.48rem) !important;
        font-weight: 900;
        color: var(--secondary-color);
        line-height: 1.08;
        letter-spacing: 0.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
        padding: 0;
    }

    .school-subtitle {
        font-family: var(--font-body);
        font-size: clamp(0.62rem, 2.7vw, 0.74rem) !important;
        font-weight: 800;
        color: var(--primary-color);
        letter-spacing: 0.8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.15;
        margin: 0;
        padding: 0;
    }

    .motto-text {
        display: none !important;
    }

    .mobile-toggle {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        font-size: 1.25rem !important;
        border-radius: 8px;
        margin: 0;
        padding: 0;
        flex-shrink: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: rgba(30, 58, 138, 0.05);
        border: 1.5px solid var(--border-color);
        color: var(--primary-dark);
        cursor: pointer;
    }

    /* Announcements Ticker */
    .ticker-wrap {
        height: 36px !important;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .ticker-title {
        padding: 0 10px !important;
        font-size: 0.72rem !important;
        height: 100%;
        gap: 4px;
        white-space: nowrap;
    }

    .ticker-title i {
        margin-right: 4px;
        font-size: 0.75rem;
    }

    .ticker-item {
        padding: 0 16px !important;
        font-size: 0.78rem !important;
    }

    .ticker-item::after {
        margin-left: 32px !important;
    }

    /* Hero Section */
    .hero-section {
        padding: 34px 0 28px !important;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        background-attachment: scroll !important;
    }

    .hero-section::after {
        display: none !important;
    }

    .hero-container {
        gap: 22px !important;
        padding: 0 12px !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        box-sizing: border-box;
    }

    .badge-slogan {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 14px;
        width: 100%;
        max-width: 100%;
    }

    .badge-innovation, .badge-motto {
        font-size: 0.7rem !important;
        padding: 4px 12px !important;
        letter-spacing: 0.5px;
        max-width: 100%;
        text-align: center;
        white-space: normal;
        line-height: 1.3;
        box-sizing: border-box;
    }

    .hero-title {
        font-size: clamp(1.7rem, 6vw, 2.15rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
        text-align: center;
        width: 100%;
        word-break: break-word;
        letter-spacing: -0.5px;
    }

    .hero-desc {
        font-size: 0.9rem !important;
        line-height: 1.55 !important;
        max-width: 100% !important;
        margin-bottom: 18px !important;
        padding: 0 4px;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto 16px !important;
        gap: 10px !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 11px 18px !important;
        font-size: 0.92rem !important;
        border-radius: 25px;
        box-sizing: border-box;
    }

    .hero-quick-card {
        padding: 20px 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px;
        margin: 10px auto 0 !important;
        box-sizing: border-box;
    }

    /* Key Statistics */
    .stats-section {
        margin-top: 24px !important;
        margin-left: 12px !important;
        margin-right: 12px !important;
        padding: 20px 12px !important;
        border-radius: 16px !important;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 8px 4px;
        width: 100%;
        box-sizing: border-box;
    }

    .stat-card {
        border-right: none !important;
        border-bottom: none !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 12px;
        background: rgba(248, 250, 252, 0.7);
        padding: 12px 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        margin: 0 auto;
    }

    .stat-number {
        font-size: 1.75rem !important;
        font-weight: 800;
        line-height: 1.1;
    }

    .stat-label {
        font-size: 0.7rem !important;
        letter-spacing: 0.4px;
    }

    /* Grids Reflow */
    .facilities-grid, .gallery-grid, .news-grid, .timeline-steps, .footer-grid, .subpage-directory-grid, .values-grid {
        grid-template-columns: 1fr !important;
        width: 100%;
        box-sizing: border-box;
    }

    .form-row {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100%;
    }

    .col-6 {
        width: 100% !important;
    }

    input, select, textarea {
        font-size: 16px !important;
        width: 100%;
        box-sizing: border-box;
    }

    .bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        width: 100%;
    }

    .bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .section-title {
        font-size: 1.75rem !important;
        word-break: break-word;
    }

    .section-header {
        margin-bottom: 28px !important;
    }

    .home-welcome-card {
        padding: 24px 16px !important;
        width: 100%;
        box-sizing: border-box;
    }

    .home-welcome-card h2 {
        font-size: 1.35rem !important;
    }

    .tab-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        width: 100%;
    }

    .tab-trigger {
        padding: 9px 14px;
        font-size: 0.85rem;
    }

    .testimonial-card {
        padding: 24px 16px !important;
        width: 100%;
        box-sizing: border-box;
    }

    .subpage-banner {
        padding: 50px 12px 30px !important;
        width: 100%;
        box-sizing: border-box;
    }

    .subpage-banner h1 {
        font-size: 1.9rem !important;
        word-break: break-word;
    }

    .content-box {
        padding: 24px 14px !important;
        width: 100%;
        box-sizing: border-box;
    }

    .content-box h2 {
        font-size: 1.5rem !important;
    }

    .subpage-hero {
        padding: 40px 12px 24px !important;
        width: 100%;
        box-sizing: border-box;
    }

    .subpage-hero h1 {
        font-size: 1.85rem !important;
    }

    .subpage-desk-card {
        flex-direction: column !important;
        padding: 20px 14px !important;
        text-align: center;
        gap: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .subpage-desk-avatar {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }

    .inquiry-card, .fee-calculator-card {
        padding: 20px 14px !important;
        width: 100%;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   STANDARD MOBILE SCREENS (375px, 390px, 430px, max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
        box-sizing: border-box;
    }

    .header-container {
        padding: 0 10px !important;
    }

    .logo-area {
        gap: 8px;
    }

    .school-logo-img {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
    }

    .school-title {
        font-size: 1.25rem !important;
        letter-spacing: 0.3px;
    }

    .school-subtitle {
        font-size: 0.64rem !important;
        letter-spacing: 0.6px;
    }

    .motto-text {
        display: none !important;
    }

    .ticker-wrap {
        height: 34px !important;
    }

    .ticker-title {
        padding: 0 8px !important;
        font-size: 0.68rem !important;
    }

    .ticker-item {
        padding: 0 12px !important;
        font-size: 0.75rem !important;
    }

    .ticker-item::after {
        margin-left: 20px !important;
    }

    .hero-section {
        padding: 26px 0 22px !important;
    }

    .hero-title {
        font-size: 1.65rem !important;
    }

    .hero-badge {
        font-size: 0.68rem !important;
        padding: 4px 10px !important;
    }

    .stats-section {
        margin-top: 18px !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
        padding: 16px 8px !important;
        border-radius: 14px !important;
    }

    .stat-number {
        font-size: 1.9rem !important;
    }

    .program-buttons {
        grid-template-columns: 1fr !important;
        width: 100%;
    }

    .program-content-display {
        padding: 18px 12px !important;
        width: 100%;
        box-sizing: border-box;
    }

    .features-list {
        grid-template-columns: 1fr !important;
        width: 100%;
    }

    .panel-image {
        height: 190px !important;
        width: 100%;
    }

    .facility-card .fac-image {
        height: 160px !important;
        width: 100%;
    }

    .fac-card-img-wrapper {
        height: 210px !important;
        width: 100%;
    }

    .gallery-filters {
        gap: 5px;
        width: 100%;
    }

    .filter-btn {
        padding: 5px 10px !important;
        font-size: 0.74rem !important;
    }

    .modal-content {
        padding: 18px 12px !important;
    }

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

    .admin-login-wrapper {
        padding: 16px 10px !important;
    }

    .login-card {
        padding: 24px 14px !important;
        width: 100% !important;
        max-width: 350px !important;
    }
}

/* ==========================================================================
   EXTRA COMPACT SCREENS (320px, 360px, max-width: 360px)
   ========================================================================== */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
        box-sizing: border-box;
    }

    .header-container {
        padding: 0 8px !important;
    }

    .logo-area {
        gap: 6px;
    }

    .school-logo-img {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
    }

    .school-title {
        font-size: 1.12rem !important;
        letter-spacing: 0.2px;
    }

    .school-subtitle {
        font-size: 0.58rem !important;
        letter-spacing: 0.4px;
    }

    .mobile-toggle {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        font-size: 1.15rem !important;
    }

    .hero-title {
        font-size: 1.45rem !important;
    }

    .hero-actions {
        max-width: 100% !important;
    }

    .hero-quick-card {
        padding: 14px 10px !important;
    }

    .stats-section {
        margin-top: 14px !important;
        margin-left: 6px !important;
        margin-right: 6px !important;
        padding: 12px 6px !important;
        border-radius: 12px !important;
    }

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

    .btn {
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
    }
}

/* Lightbox & Gallery Viewer Mobile Support */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

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

.lightbox-content-wrapper {
    position: relative;
    max-width: 94vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.lightbox-content-wrapper img, .lightbox-content-wrapper video {
    max-width: 100%;
    max-height: 75vh;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-xl);
    object-fit: contain;
}

.lightbox-caption {
    color: #f8fafc;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 12px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    background: var(--secondary-color);
}

/* Custom Modal Overlay & Box */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease-out forwards;
}

.custom-modal-box {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: var(--border-radius-md, 12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    padding: 28px;
    position: relative;
    border: 1px solid var(--border-color, #e2e8f0);
}

.custom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.custom-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary-dark, #0f172a);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--secondary-color, #ef4444);
}