/* 
 * BOSS AI WEB BUILDER - Premium Global Stylesheet
 * Modern, Production-Ready UI with Elegant Typography
 * Version 2.0 - Production Ready
 */

/* ====================================================
   CSS CUSTOM PROPERTIES - Design Tokens
   ==================================================== */
:root {
    /* Primary Palette - Vibrant Rose */
    --primary-color: #e11d48;
    --primary-rgb: 225, 29, 72;
    --primary-light: #fda4af;
    --primary-dark: #be123c;
    
    /* Secondary Palette - Deep Navy */
    --secondary-color: #0f172a;
    --secondary-rgb: 15, 23, 42;
    --secondary-light: #1e293b;
    
    /* Accent Colors */
    --accent-gold: #f59e0b;
    --accent-emerald: #10b981;
    --accent-violet: #8b5cf6;
    --accent-sky: #0ea5e9;
    
    /* Semantic Colors */
    --success-color: #22c55e;
    --warning-color: #eab308;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Neutrals */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gray-950: #020617;
    
    /* Contrast Colors for Accessibility */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-light: var(--gray-500);
    
    /* Typography */
    --font-heading: 'Sora', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-accent: 'Instrument Serif', serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;
    
    /* Shadows - Elevated */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-glow: 0 0 40px rgba(var(--primary-rgb), 0.3);
    
    /* Border Radius - Consistent System */
    --radius-xs: 0.25rem;   /* 4px */
    --radius-sm: 0.375rem;  /* 6px */
    --radius-md: 0.5rem;    /* 8px */
    --radius-lg: 0.75rem;   /* 12px */
    --radius-xl: 1rem;      /* 16px */
    --radius-2xl: 1.5rem;   /* 24px */
    --radius-3xl: 2rem;     /* 32px */
    --radius-full: 9999px;
    
    /* Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --top-bar-height: 44px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ====================================================
   RESET & BASE STYLES
   ==================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--gray-700);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--gray-900);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5em; /* Add consistency */
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
    line-height: 1.7; /* Ensure readability */
}

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

ul, ol {
    list-style: none;
}

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

/* Selection */
::selection {
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--primary-dark);
}

/* ====================================================
   LAYOUT & UTILITIES
   ==================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-lg {
    max-width: 1400px;
}

.container-sm {
    max-width: 960px;
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }

/* Spacing Utilities */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

/* Consistency Spacing */
.section {
    padding: 6rem 0; /* Increased for better breathing room */
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    z-index: 9999;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

/* ====================================================
   BUTTONS - Premium Style
   ==================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    text-transform: none;
    letter-spacing: 0;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.5);
}

.btn-secondary {
    background: var(--gray-900);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-secondary:hover {
    background: var(--gray-800);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-white {
    background: var(--white);
    color: var(--gray-900);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: var(--text-base);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--text-xs);
}

/* ====================================================
   TOP BAR
   ==================================================== */
.top-bar {
    height: var(--top-bar-height);
    background: linear-gradient(90deg, var(--gray-950) 0%, var(--gray-900) 100%);
    color: var(--white);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.top-bar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

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

.top-contact {
    display: flex;
    gap: 2rem;
}

.top-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-300);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.top-contact a:hover {
    color: var(--white);
}

.top-contact i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.top-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-social > a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.top-social > a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.staff-access {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.staff-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-light) !important;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.staff-link:hover {
    background: var(--primary-color);
    color: var(--white) !important;
}

/* ====================================================
   MAIN HEADER & NAVIGATION
   ==================================================== */
.site-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all var(--transition-base);
}

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

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #f43f5e 50%, var(--accent-gold) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

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

.school-name {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.school-tagline {
    font-family: var(--font-accent);
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-style: italic;
    margin-top: 2px;
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-links > li {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--gray-600);
    font-size: var(--text-sm);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
}

.nav-link i {
    font-size: 0.625rem;
    transition: transform var(--transition-fast);
}

.has-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    min-width: 220px;
    padding: 0.75rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--gray-100);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all var(--transition-base);
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--white);
    border-left: 1px solid var(--gray-100);
    border-top: 1px solid var(--gray-100);
}

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

.dropdown li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--gray-600);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown li a:hover {
    background: var(--gray-50);
    color: var(--primary-color);
    padding-left: 1.25rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-portal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-weight: 600;
    font-size: var(--text-sm);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.btn-portal:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
}

.btn-apply {
    padding: 0.75rem 1.5rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

/* ====================================================
   HERO SECTION - Stunning Design
   ==================================================== */
.hero-section {
    position: relative;
    padding: 80px 0 100px;
    background: linear-gradient(135deg, var(--gray-950) 0%, #1a1a2e 50%, #16213e 100%);
    color: var(--white);
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

/* Animated Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(var(--primary-rgb), 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* OPTION B: Animated gradient blend zone */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    pointer-events: none;
    z-index: 2;
}

/* ====================================================
   SECTION TRANSITIONS - Elegant Dividers & Flow
   ==================================================== */

/* Scroll Indicator - Animated Arrow */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity var(--transition-base);
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator-text {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-indicator-arrow {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
}

.scroll-indicator-arrow::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(12px);
        opacity: 0.5;
    }
}

/* Wave Shape Divider - For Hero to Content Transition */
.section-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: -1px;
}

.section-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.section-divider.divider-hero {
    margin-top: -80px;
    z-index: 3;
}

.section-divider.divider-wave svg {
    height: 60px;
}

.section-divider.divider-curve svg {
    height: 70px;
}

.section-divider.divider-tilt svg {
    height: 50px;
}

/* Divider Color Variants */
.section-divider .fill-white { fill: var(--white); }
.section-divider .fill-gray-50 { fill: var(--gray-50); }
.section-divider .fill-primary { fill: var(--primary-color); }
.section-divider .fill-dark { fill: var(--gray-950); }

/* Section Reveal Animations on Scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Staggered Grid Reveal */
.stagger-reveal > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-reveal.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-reveal.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-reveal.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-reveal.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-reveal.revealed > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-reveal.revealed > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-reveal.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* Section Overlap Effect - Creates Depth */
.section-overlap {
    position: relative;
    margin-top: -4rem;
    z-index: 5;
}

.section-overlap-lg {
    margin-top: -6rem;
}

/* Gradient Blend Between Sections */
.section-blend-top {
    position: relative;
}

.section-blend-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--white) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Decorative Floating Elements */
.section-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.section-decoration.floating-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, var(--primary-light) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.section-decoration.floating-circle {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
}

/* Floating Shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-shapes span {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), transparent);
    animation: float 20s infinite;
}

.hero-bg-shapes span:nth-child(1) {
    width: 600px;
    height: 600px;
    top: -300px;
    right: -200px;
    animation-delay: 0s;
}

.hero-bg-shapes span:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: -100px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), transparent);
    animation-delay: -5s;
}

.hero-bg-shapes span:nth-child(3) {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), transparent);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-content .badge {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--primary-rgb), 0.1));
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary-light);
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: var(--text-6xl);
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: var(--text-xl);
    color: var(--gray-300);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-btn-outline {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.hero-btn-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

/* Hero Image */
.hero-image-container {
    position: relative;
}

.hero-img {
    width: 100%;
    max-width: 550px;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-2xl);
    border: 4px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-violet));
    border-radius: var(--radius-3xl);
    opacity: 0.3;
    z-index: 1;
}

.hero-image-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, transparent 60%);
    z-index: 0;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

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

.hero-stat-value {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--white);
    display: block;
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: var(--gray-400);
}

/* ====================================================
   SECTION STYLING
   ==================================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: var(--text-4xl);
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.section-subtitle {
    color: var(--gray-500);
    font-size: var(--text-lg);
    line-height: 1.7;
}

/* ====================================================
   CARDS - Premium Style
   ==================================================== */
.card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-violet));
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.card:hover::before {
    opacity: 1;
}

/* Program Cards */
.program-card {
    padding: 0;
    overflow: hidden;
}

.program-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.program-card:hover img {
    transform: scale(1.05);
}

.program-card-content {
    padding: 1.75rem;
}

.program-card h3 {
    font-size: var(--text-xl);
    margin-bottom: 0.5rem;
}

.program-card p {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: gap var(--transition-fast);
}

.card-link:hover {
    gap: 0.75rem;
}

.card-link i {
    font-size: 0.75rem;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    border: none;
    background: var(--white);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.05));
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 2rem;
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: var(--text-xl);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

/* ====================================================
   CTA SECTION
   ==================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: var(--text-4xl);
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ====================================================
   FOOTER - Premium Style
   ==================================================== */
.site-footer {
    background: linear-gradient(180deg, var(--gray-950) 0%, var(--gray-900) 100%);
    color: var(--white);
    padding-top: 5rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about {
    max-width: 320px;
}

.footer-about .logo {
    margin-bottom: 1.5rem;
}

.footer-about .logo-icon {
    background: var(--white);
    color: var(--primary-color);
}

.footer-about .school-name {
    color: var(--white);
}

.footer-about p {
    color: var(--gray-400);
    font-size: var(--text-sm);
    line-height: 1.8;
}

.footer-social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.footer-social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-heading {
    color: var(--white);
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

.footer-links li {
    margin-bottom: 0.875rem;
}

.footer-links a {
    color: var(--gray-400);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

.footer-links a:hover::before {
    width: 10px;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    color: var(--gray-400);
    font-size: var(--text-sm);
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.footer-contact li i {
    color: var(--primary-color);
    width: 20px;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: var(--text-sm);
    margin: 0;
}

.footer-bottom i.fa-heart {
    color: var(--primary-color);
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ====================================================
   DASHBOARD STYLES
   ==================================================== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: var(--gray-50);
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--gray-950) 0%, var(--gray-900) 100%);
    color: var(--white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-header .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
}

.sidebar-header .school-name {
    font-size: 1rem;
    color: var(--white);
}

.sidebar-menu {
    padding: 1rem;
}

.menu-label {
    color: var(--gray-500);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem 0.75rem;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    color: var(--gray-400);
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: var(--text-sm);
    margin-bottom: 0.25rem;
    transition: all var(--transition-fast);
}

.menu-link:hover {
    background: rgba(255,255,255,0.05);
    color: var(--white);
}

.menu-link.active {
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--white);
}

.menu-link.active i {
    color: var(--primary-color);
}

.menu-link i {
    width: 20px;
    font-size: 1rem;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
}

.top-nav {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.top-nav h1 {
    font-size: var(--text-xl);
    font-weight: 700;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-violet));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
}

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

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.primary {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.stat-icon.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.stat-icon.warning {
    background: rgba(234, 179, 8, 0.1);
    color: var(--warning-color);
}

.stat-icon.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.stat-info h3 {
    font-size: var(--text-sm);
    color: var(--gray-500);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--gray-900);
}

/* Tables */
.table-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.table-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h2 {
    font-size: var(--text-lg);
    font-weight: 700;
}

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

th {
    background: var(--gray-50);
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-100);
}

td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-50);
    font-size: var(--text-sm);
    color: var(--gray-700);
}

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

tr:hover td {
    background: var(--gray-50);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.status-badge.pending {
    background: rgba(234, 179, 8, 0.1);
    color: var(--warning-color);
}

.status-badge.inactive {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* ====================================================
   FORMS
   ==================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--gray-900);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.form-input::placeholder {
    color: var(--gray-400);
}

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

/* ====================================================
   RESPONSIVE DESIGN
   ==================================================== */
@media (max-width: 1280px) {
    .hero-content h1 {
        font-size: var(--text-5xl);
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    
    .footer-contact-col {
        grid-column: span 3;
        margin-top: 1rem;
    }
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: var(--text-4xl);
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image-container {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .top-bar {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        padding: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 1rem;
        font-size: var(--text-base);
    }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        display: none;
    }
    
    .has-dropdown.active .dropdown {
        display: block;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .btn-portal {
        display: none;
    }
    
    .hero-section {
        padding: 60px 0 80px;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: var(--text-3xl);
    }
    
    .hero-content p {
        font-size: var(--text-base);
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    .stat-value {
        font-size: 2rem !important;
    }
    
    .stat-icon-wrapper {
        width: 50px !important;
        height: 50px !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr !important;
    }
    
    .programs-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile Enhancements */
@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem; /* Better side padding */
    }
    
    .hero-content h1 {
        font-size: var(--text-3xl) !important; /* Proper mobile sizing */
        line-height: 1.2;
    }
    
    .section-title {
        font-size: var(--text-2xl) !important;
        margin-bottom: 0.75rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-btns .btn {
        width: 100%; /* Full width buttons for touch */
        justify-content: center;
        padding: 1rem;
    }
    
    .card {
        padding: 1.5rem; /* Reduce padding on mobile cards */
    }
    
    /* Touch targets */
    .nav-link, .btn, .footer-links a {
        min-height: 44px; /* Minimum touch target size */
    }
}

/* ====================================================
   ANIMATIONS & TRANSITIONS
   ==================================================== */
@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 fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.6s ease forwards;
}

/* Stagger animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Additional Modern Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

.animate-slideInLeft {
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Icon hover glow effect */
.feature-card:hover .fa-solid,
.feature-card:hover .fas {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Card image zoom on hover */
.facility-card img,
.program-card img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.facility-card:hover img,
.program-card:hover img {
    transform: scale(1.1);
}

/* Button hover animations */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Smooth section transitions */
section {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ====================================================
   UTILITY CLASSES
   ==================================================== */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-950) 100%);
}

.text-primary { color: var(--primary-color); }
.text-white { color: var(--white); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }

.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ====================================================
   PAGE HEADER - Inner Pages
   ==================================================== */
.page-header {
    background: linear-gradient(135deg, var(--gray-950) 0%, #1a1a2e 50%, #16213e 100%);
    color: var(--white);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(var(--primary-rgb), 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: var(--text-5xl);
    color: var(--white);
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.page-header p {
    font-size: var(--text-lg);
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: var(--gray-400);
}

.breadcrumb a {
    color: var(--primary-light);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: var(--gray-500);
}

/* ====================================================
   SECTION STYLES
   ==================================================== */
.section {
    padding: 5rem 0;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* ====================================================
   ACTIVITIES GRID - Student Life
   ==================================================== */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.activity-card {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--white);
}

.activity-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.activity-card:hover .activity-image img {
    transform: scale(1.1);
}

.activity-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--primary-rgb), 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.activity-overlay i {
    color: var(--white);
    font-size: 2rem;
}

.activity-card:hover .activity-overlay {
    opacity: 1;
}

.activity-content {
    padding: 1.5rem;
}

.activity-content h4 {
    font-size: var(--text-xl);
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.activity-content p {
    color: var(--gray-600);
    font-size: var(--text-sm);
    margin: 0;
}

/* ====================================================
   EVENTS GRID
   ==================================================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.event-card {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--white);
}

.event-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-content {
    padding: 1.5rem;
}

.event-content h4 {
    font-size: var(--text-lg);
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.event-content p {
    color: var(--gray-600);
    font-size: var(--text-sm);
    margin: 0;
}

.event-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.event-featured {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f97316 100%);
    color: var(--white);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.event-featured i {
    font-size: 0.625rem;
}

/* ====================================================
   GALLERY GRID
   ==================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 220px;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--primary-rgb), 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

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

/* ====================================================
   LEADERSHIP & FACULTY CARDS
   ==================================================== */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.leader-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-2xl);
    background: var(--white);
}

.leader-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--primary-light);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.2);
}

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

.leader-card h3 {
    font-size: var(--text-xl);
    margin-bottom: 0.5rem;
}

.leader-role {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--text-sm);
    background: rgba(var(--primary-rgb), 0.1);
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.leader-card p {
    color: var(--gray-500);
    font-size: var(--text-sm);
    margin: 0;
}

/* Faculty Grid */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.faculty-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-2xl);
    background: var(--white);
}

.faculty-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-light);
}

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

.faculty-card h4 {
    font-size: var(--text-lg);
    margin-bottom: 0.25rem;
}

.faculty-subject {
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--text-sm);
    display: block;
    margin-bottom: 1rem;
}

.faculty-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: var(--text-xs);
    color: var(--gray-500);
    flex-wrap: wrap;
}

.faculty-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.faculty-meta i {
    color: var(--primary-color);
}

/* ====================================================
   ABOUT PAGE STYLES
   ==================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content .section-title {
    text-align: left;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

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

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
}

.about-image-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: var(--text-sm);
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
}

.about-image-badge i {
    font-size: 1.25rem;
}

/* ====================================================
   ADMISSION STEPS
   ==================================================== */
.admission-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    position: relative;
}

.admission-step {
    text-align: center;
    padding: 2.5rem 1.5rem 1.5rem;
    margin-top: 1.25rem;
    border-radius: var(--radius-2xl);
    background: var(--white);
    position: relative;
    overflow: visible;
}

.step-number {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
    margin: 0 auto 1rem;
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    border: 3px solid var(--white);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto 1.25rem;
}

.step-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.admission-step h4 {
    font-size: var(--text-lg);
    margin-bottom: 0.5rem;
}

.admission-step p {
    color: var(--gray-600);
    font-size: var(--text-sm);
    margin: 0;
}

/* ====================================================
   CONTACT GRID
   ==================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: var(--text-base);
    margin-bottom: 0.25rem;
}

.contact-info-item p {
    color: var(--gray-600);
    margin: 0;
    font-size: var(--text-sm);
}

.contact-info-item a {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

.contact-form h3 {
    font-size: var(--text-xl);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--gray-900);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

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

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ====================================================
   FACILITIES GRID
   ==================================================== */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.facility-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 220px;
}

.facility-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.facility-card:hover img {
    transform: scale(1.1);
}

.facility-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.facility-card .overlay h4 {
    color: var(--white);
    font-size: var(--text-lg);
    margin: 0;
}

/* ====================================================
   FEATURES GRID
   ==================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-content h4 {
    font-size: var(--text-lg);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--gray-600);
    font-size: var(--text-sm);
    margin: 0;
}

/* ====================================================
   PROGRAMS GRID
   ==================================================== */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.program-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}

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

.program-icon {
    width: 80px;
    height: 80px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.program-card h3 {
    font-size: var(--text-xl);
    margin-bottom: 0.75rem;
}

.program-card p {
    color: var(--gray-600);
    font-size: var(--text-sm);
}

/* ====================================================
   CTA CARD
   ==================================================== */
.cta-card {
    background: linear-gradient(135deg, var(--gray-950) 0%, #1a1a2e 100%);
    color: var(--white);
    padding: 4rem;
    border-radius: var(--radius-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(var(--primary-rgb), 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.cta-card > * {
    position: relative;
    z-index: 1;
}

.cta-card h2 {
    font-size: var(--text-3xl);
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-card p {
    font-size: var(--text-lg);
    color: var(--gray-300);
    margin-bottom: 2rem;
}

/* ====================================================
   FAQ SECTION
   ==================================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-xl);
    margin-bottom: 1rem;
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-900);
    text-align: left;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question svg {
    color: var(--gray-400);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    color: var(--gray-600);
    font-size: var(--text-sm);
    line-height: 1.7;
    margin: 0;
}

/* ====================================================
   RESPONSIVE - Inner Pages
   ==================================================== */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image-badge {
        position: static;
        transform: none;
        margin-top: 1.5rem;
        display: inline-flex;
    }
    
    .about-image {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: var(--text-3xl);
    }
    
    .about-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .about-stat {
        flex: 1 1 calc(50% - 0.75rem);
    }
    
    .admission-steps {
        grid-template-columns: 1fr;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 3rem 0 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .cta-card {
        padding: 2.5rem 1.5rem;
    }
}

/* ====================================================
   MISSING UTILITY CLASSES
   ==================================================== */
.section-desc {
    color: var(--gray-500);
    font-size: var(--text-base);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ====================================================
   BADGE VARIANTS
   ==================================================== */
.badge-primary {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.badge-secondary {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* ====================================================
   EMPTY STATE - For Dashboard & Lists
   ==================================================== */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-400);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    display: block;
}

.empty-state p {
    margin: 0;
    font-size: var(--text-base);
    color: var(--gray-500);
}

.empty-state .btn {
    margin-top: 1.5rem;
}

/* ====================================================
   CONTENT LIST - For Dashboard Cards
   ==================================================== */
.content-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
    gap: 1rem;
}

.content-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.content-item:first-child {
    padding-top: 0;
}

.content-item h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.25rem;
}

.content-item p {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin: 0;
}

/* ====================================================
   DASHBOARD CARD IMPROVEMENTS
   ==================================================== */
.dashboard-card,
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

/* ====================================================
   MOBILE NAV TOGGLE ANIMATION
   ==================================================== */
.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ====================================================
   IMPROVED MOBILE RESPONSIVE STYLES
   ==================================================== */
@media (max-width: 1024px) {
    .sidebar,
    .admin-sidebar,
    .student-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }
    
    .sidebar.active,
    .admin-sidebar.active,
    .student-sidebar.active {
        transform: translateX(0);
    }
    
    .main-content,
    .admin-main,
    .student-main {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    /* Improved Footer */
    .footer-links a::before {
        display: none;
    }
    
    .footer-links a {
        padding-left: 0;
    }
    
    /* Better Nav Menu Mobile */
    .nav-menu {
        flex-direction: column;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-apply {
        display: none;
    }
    
    /* Dashboard Grid Improvements */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    /* Content Cards */
    .content-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Table Responsive */
    .table-container {
        overflow-x: auto;
    }
    
    table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    /* Footer Social Links */
    .footer-social-links {
        justify-content: center;
    }
    
    /* Stat Card Mobile */
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin: 0 auto 0.75rem;
    }
    
    /* Form Controls */
    .form-control,
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Button Full Width */
    .btn-lg {
        width: 100%;
        justify-content: center;
    }
}

/* ====================================================
   STEP CONNECTOR FOR ADMISSION STEPS
   ==================================================== */
.step-connector {
    display: none;
}

@media (min-width: 769px) {
    .admission-step {
        position: relative;
    }
    
    .step-connector {
        display: block;
        position: absolute;
        top: 0px;
        left: calc(50% + 28px);
        width: calc(100% - 56px);
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color) 0%, var(--gray-200) 100%);
        z-index: 0;
    }
    
    .admission-step:last-child .step-connector {
        display: none;
    }
}

/* ====================================================
   CTA BUTTON FIX FOR DARK BACKGROUNDS
   ==================================================== */
.cta-section .btn-outline,
.cta-card .btn-outline {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.cta-section .btn-outline:hover,
.cta-card .btn-outline:hover {
    background: var(--white);
    color: var(--gray-900);
}

/* ====================================================
   ICON CONSISTENCY - Unified Icon Styles
   ==================================================== */
.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    flex-shrink: 0;
}

.icon-circle.sm {
    width: 36px;
    height: 36px;
}

.icon-circle.lg {
    width: 64px;
    height: 64px;
}

/* ====================================================
   SMOOTH SCROLL OFFSET FOR STICKY HEADER
   ==================================================== */
html {
    scroll-padding-top: calc(var(--header-height) + 2rem);
}

/* ====================================================
   FOCUS STATES FOR ACCESSIBILITY
   ==================================================== */
.btn:focus,
.nav-link:focus,
.form-control:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:focus:not(:focus-visible),
.nav-link:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* ====================================================
   LOADING STATES
   ==================================================== */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ====================================================
   PRINT STYLES
   ==================================================== */
@media print {
    .top-bar,
    .site-header,
    .site-footer,
    .mobile-toggle,
    #back-to-top,
    .hero-bg-shapes,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    .hero-section,
    .page-header {
        background: #f5f5f5 !important;
        color: #000 !important;
        padding: 2rem 0;
    }
    
    .hero-section::before,
    .hero-section::after {
        display: none;
    }
}
