:root {
    --primary-blue: #0A66F9;
    --primary-hover: #0852CC;
    --primary-glow: rgba(10, 102, 249, 0.15);
    --accent-cyan: #06B6D4;
    --accent-violet: #7C3AED;
    --text-dark: #111827;
    --text-muted: #6B7280;
    --bg-light: #F9FAFB;
    --border-color: #E5E7EB;
    --pure-white: #FFFFFF;
    --pure-white-transparent: rgba(255, 255, 255, 0);
    --gradient-main: linear-gradient(135deg, #0A66F9, #06B6D4);
    --gradient-warm: linear-gradient(135deg, #7C3AED, #0A66F9);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .logo-icon, .logo-text, .stat-number, .stat-suffix, .course-popular-tag, .hero-badge, .primary-btn, .secondary-btn, .submit-btn, .nav-cta-btn, .nav-links a {
    font-family: var(--font-heading);
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
    will-change: opacity, transform;
}

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

/* Staggered children animations */
.reveal.active .course-card,
.reveal.active .testimonial-card,
.reveal.active .why-card {
    animation: staggerFadeIn 0.7s var(--ease-out-expo) both;
}

.reveal.active .course-card:nth-child(1),
.reveal.active .testimonial-card:nth-child(1),
.reveal.active .why-card:nth-child(1) { animation-delay: 0.05s; }
.reveal.active .course-card:nth-child(2),
.reveal.active .testimonial-card:nth-child(2),
.reveal.active .why-card:nth-child(2) { animation-delay: 0.12s; }
.reveal.active .course-card:nth-child(3),
.reveal.active .testimonial-card:nth-child(3),
.reveal.active .why-card:nth-child(3) { animation-delay: 0.19s; }
.reveal.active .why-card:nth-child(4) { animation-delay: 0.26s; }
.reveal.active .why-card:nth-child(5) { animation-delay: 0.33s; }
.reveal.active .why-card:nth-child(6) { animation-delay: 0.4s; }

@keyframes staggerFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body {
    background-color: var(--pure-white);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    animation: pageLoad 0.6s var(--ease-out-expo) both;
    overflow-x: hidden;
}

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

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 3%;
    transition: all 0.4s var(--ease-out-quart);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1320px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 16px;
    padding: 0.65rem 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.4s var(--ease-out-quart);
}

.navbar.scrolled .nav-inner {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(229, 231, 235, 0.7);
    background: rgba(255, 255, 255, 0.92);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    background: var(--gradient-main);
    color: var(--pure-white);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(10, 102, 249, 0.3);
    transition: transform 0.3s var(--ease-out-expo);
}

.logo:hover .logo-icon {
    transform: rotate(-8deg) scale(1.05);
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(243, 244, 246, 0.7);
    border-radius: 12px;
    padding: 0.3rem;
    flex-wrap: nowrap;
    overflow: visible;
    flex-shrink: 1;
    min-width: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.82rem;
    padding: 0.4rem 0.7rem;
    border-radius: 9px;
    transition: all 0.3s var(--ease-out-quart);
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
    background: rgba(10, 102, 249, 0.08);
}

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

/* --- Theme Toggle Switch --- */
.theme-toggle {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.toggle-track {
    width: 56px;
    height: 30px;
    background: linear-gradient(135deg, #E0E7FF, #C7D2FE);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    position: relative;
    transition: background 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.toggle-thumb {
    position: absolute;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s var(--ease-out-expo),
                background 0.3s ease;
    z-index: 2;
}

.toggle-icon {
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.sun-icon {
    color: #F59E0B;
    opacity: 1;
}

.moon-icon {
    color: #94A3B8;
    opacity: 0.4;
}

/* Dark mode toggle state */
body.dark-mode .toggle-track {
    background: linear-gradient(135deg, #1E293B, #334155);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .toggle-thumb {
    transform: translateX(26px);
    background: #1E293B;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

body.dark-mode .sun-icon {
    opacity: 0.4;
    color: #94A3B8;
}

body.dark-mode .moon-icon {
    opacity: 1;
    color: #E2E8F0;
}

/* --- Nav CTA Button --- */
.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gradient-main);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.55rem 1.25rem;
    border-radius: 10px;
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: 0 3px 12px rgba(10, 102, 249, 0.25);
    white-space: nowrap;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 102, 249, 0.35);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== DARK MODE OVERRIDES ===== */
body.dark-mode {
    --text-dark: #E2E8F0;
    --text-muted: #94A3B8;
    --bg-light: #0F172A;
    --border-color: #1E293B;
    --pure-white: #0B1120;
    --pure-white-transparent: rgba(11, 17, 32, 0);
    background-color: #0B1120;
    color: #E2E8F0;
}

body.dark-mode .nav-inner {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .navbar.scrolled .nav-inner {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.dark-mode .logo-text {
    color: #F1F5F9;
}

body.dark-mode .nav-links {
    background: rgba(30, 41, 59, 0.7);
}

body.dark-mode .nav-links a {
    color: #94A3B8;
}

body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a.active {
    color: #60A5FA;
    background: rgba(96, 165, 250, 0.1);
}

body.dark-mode .mobile-menu-btn span {
    background: #E2E8F0;
}

body.dark-mode .hero {
    background-image: 
        linear-gradient(90deg, 
            rgba(11, 17, 32, 1) 0%, 
            rgba(11, 17, 32, 0.95) 30%, 
            rgba(11, 17, 32, 0.8) 60%, 
            rgba(11, 17, 32, 0.3) 100%),
        url('./bg.png');
}

body.dark-mode .hero-content h1 { color: #F1F5F9; }
body.dark-mode .hero-content p { color: #94A3B8; }

body.dark-mode .hero-badge {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(6, 182, 212, 0.1));
    border-color: rgba(96, 165, 250, 0.2);
    color: #60A5FA;
}

body.dark-mode .secondary-btn {
    color: #E2E8F0;
    border-color: #334155;
}

body.dark-mode .secondary-btn:hover {
    border-color: #60A5FA;
    color: #60A5FA;
    background: rgba(96, 165, 250, 0.06);
}

body.dark-mode .why-card,
body.dark-mode .course-card,
body.dark-mode .testimonial-card,
body.dark-mode .form-card {
    background: #111827;
    border-color: #1E293B;
}

body.dark-mode .why-card:hover,
body.dark-mode .course-card:hover,
body.dark-mode .testimonial-card:hover {
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body.dark-mode .course-card h3,
body.dark-mode .why-card h3,
body.dark-mode .section-header h2,
body.dark-mode .card-header h3 { color: #F1F5F9; }

body.dark-mode .faculty-card {
    background: #111827;
    border-color: #1E293B;
}

body.dark-mode .faculty-card h4 { color: #F1F5F9; }

body.dark-mode .faculty-slider-container::before {
    background: linear-gradient(to right, var(--pure-white), var(--pure-white-transparent));
}
body.dark-mode .faculty-slider-container::after {
    background: linear-gradient(to left, var(--pure-white), var(--pure-white-transparent));
}

body.dark-mode .student-info strong { color: #F1F5F9; }

body.dark-mode .form-group input,
body.dark-mode .form-group select {
    background: #1E293B;
    border-color: #334155;
    color: #E2E8F0;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus {
    border-color: #60A5FA;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

body.dark-mode .form-group input::placeholder {
    color: #64748B;
}

body.dark-mode .course-badge {
    background: rgba(96, 165, 250, 0.1);
    color: #60A5FA;
}

body.dark-mode .course-cta {
    color: #60A5FA;
    border-top-color: #1E293B;
}

body.dark-mode .testimonial-card .student-info {
    border-top-color: #1E293B;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    padding: 8rem 5% 10rem;
    min-height: 650px;
    display: flex;
    align-items: center;
    background-image: 
        linear-gradient(90deg, 
            rgba(255, 255, 255, 1) 0%, 
            rgba(255, 255, 255, 0.92) 30%, 
            rgba(255, 255, 255, 0.7) 60%, 
            rgba(255, 255, 255, 0.15) 100%),
        url('./bg.png');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Floating particles */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.particle-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-blue);
    top: -80px;
    right: 10%;
    animation: floatParticle 18s ease-in-out infinite;
}

.particle-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-cyan);
    bottom: -50px;
    right: 25%;
    animation: floatParticle 14s ease-in-out infinite reverse;
}

.particle-3 {
    width: 120px;
    height: 120px;
    background: var(--accent-violet);
    top: 40%;
    right: 5%;
    animation: floatParticle 20s ease-in-out infinite 2s;
}

.particle-4 {
    width: 80px;
    height: 80px;
    background: var(--primary-blue);
    bottom: 20%;
    left: 60%;
    animation: floatParticle 16s ease-in-out infinite 4s;
}

.particle-5 {
    width: 160px;
    height: 160px;
    background: var(--accent-cyan);
    top: 10%;
    left: 40%;
    animation: floatParticle 22s ease-in-out infinite 1s;
}

.particle-6 {
    width: 60px;
    height: 60px;
    background: var(--accent-violet);
    top: 60%;
    left: 70%;
    animation: floatParticle 12s ease-in-out infinite 3s;
}

@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 30px) scale(1.02); }
}

.hero-content {
    max-width: 680px;
    animation: heroFadeIn 1s var(--ease-out-expo) 0.15s both;
    position: relative;
    z-index: 2;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(10, 102, 249, 0.08), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(10, 102, 249, 0.15);
    color: var(--primary-blue);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(10, 102, 249, 0.1); }
    50% { box-shadow: 0 0 0 8px rgba(10, 102, 249, 0); }
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: #000;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #4B5563;
    margin-bottom: 2.25rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-main);
    color: var(--pure-white);
    border: none;
    padding: 0.95rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.35s var(--ease-out-expo),
                box-shadow 0.35s var(--ease-out-expo);
    box-shadow: 0 4px 16px -2px rgba(10, 102, 249, 0.3);
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.primary-btn:hover::before {
    opacity: 1;
}

.primary-btn svg {
    transition: transform 0.35s var(--ease-out-expo);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -4px rgba(10, 102, 249, 0.4);
}

.primary-btn:hover svg {
    transform: translateX(4px);
}

.primary-btn:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
}

.secondary-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(10, 102, 249, 0.04);
    transform: translateY(-2px);
}

.secondary-btn svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.secondary-btn:hover svg {
    transform: translateY(3px);
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: linear-gradient(135deg, #0A1628 0%, #132044 50%, #0A1628 100%);
    padding: 3.5rem 5%;
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(10, 102, 249, 0.15), transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(6, 182, 212, 0.1), transparent 60%);
    pointer-events: none;
}

.stats-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    position: relative;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 140px;
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    letter-spacing: -0.02em;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.stat-label {
    color: #94A3B8;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.15), transparent);
}

/* ===== WHY CHOOSE US ===== */
.why-section {
    padding: 7rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, var(--pure-white) 0%, var(--bg-light) 100%);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    width: 100%;
    max-width: 1200px;
}

.why-card {
    background: var(--pure-white);
    padding: 2.25rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-out-expo);
    transform-origin: left;
}

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

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(10, 102, 249, 0.2);
}

.why-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(10, 102, 249, 0.08), rgba(6, 182, 212, 0.08));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary-blue);
    transition: all 0.4s var(--ease-out-expo);
}

.why-card:hover .why-icon {
    background: var(--gradient-main);
    color: white;
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(10, 102, 249, 0.25);
}

.why-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #000;
}

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

/* ===== SECTION COMMON ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header span {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #000;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===== COURSES SECTION ===== */
.courses-section {
    padding: 7rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-light);
    position: relative;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.course-card {
    background: var(--pure-white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.45s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.course-card.featured {
    border-color: rgba(10, 102, 249, 0.3);
    box-shadow: 0 8px 30px rgba(10, 102, 249, 0.1);
}

.course-popular-tag {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--gradient-main);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(10, 102, 249, 0.3);
    z-index: 10;
}

.course-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.course-icon-wrap {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(10, 102, 249, 0.08), rgba(6, 182, 212, 0.08));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    margin-bottom: 1.25rem;
    transition: all 0.35s var(--ease-out-expo);
}

.course-card:hover .course-icon-wrap {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 6px 16px rgba(10, 102, 249, 0.25);
}

.course-badge {
    background: rgba(10, 102, 249, 0.08);
    color: var(--primary-blue);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    align-self: flex-start;
    margin-bottom: 1.25rem;
}

.course-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #000;
    font-weight: 700;
}

.course-card > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-features {
    list-style: none;
    margin-top: auto;
    margin-bottom: 1.5rem;
}

.course-features li {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.course-features li::before {
    content: "✓";
    color: var(--primary-blue);
    font-weight: 800;
    flex-shrink: 0;
}

.course-cta {
    display: inline-block;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.course-cta:hover {
    letter-spacing: 0.02em;
}

/* ===== FACULTY SECTION ===== */
.faculty-section {
    padding: 7rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--pure-white);
    overflow: hidden;
}

.faculty-section .section-header {
    padding: 0 5%;
}

.faculty-slider-container {
    width: 100%;
    max-width: 100vw;
    display: flex;
    gap: 2rem;
    position: relative;
    padding: 1rem 0 3rem;
}

.faculty-slider-container::before,
.faculty-slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15vw;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.faculty-slider-container::before {
    left: 0;
    background: linear-gradient(to right, var(--pure-white), var(--pure-white-transparent));
}

.faculty-slider-container::after {
    right: 0;
    background: linear-gradient(to left, var(--pure-white), var(--pure-white-transparent));
}

.faculty-slider-track {
    display: flex;
    gap: 2rem;
    animation: slide 55s linear infinite;
    min-width: max-content;
    will-change: transform;
}

.faculty-slider-container:hover .faculty-slider-track {
    animation-play-state: paused;
}

@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 2rem)); }
}

.faculty-card {
    width: 280px;
    flex-shrink: 0;
    background: var(--bg-light);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.4s var(--ease-out-expo),
                box-shadow 0.4s var(--ease-out-expo);
}

.faculty-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.07);
}

.faculty-img {
    width: 90px;
    height: 90px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 20px rgba(10, 102, 249, 0.2);
    transition: transform 0.4s var(--ease-out-expo),
                box-shadow 0.4s var(--ease-out-expo);
}

.faculty-card:hover .faculty-img {
    transform: scale(1.1);
    box-shadow: 0 12px 28px rgba(10, 102, 249, 0.3);
}

.faculty-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: #000;
    font-weight: 700;
}

.faculty-card span {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.88rem;
    display: block;
    margin-bottom: 1rem;
}

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

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 7rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--pure-white) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.testimonial-card {
    background: var(--pure-white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.4s var(--ease-out-expo),
                box-shadow 0.4s var(--ease-out-expo);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.quote-icon {
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: -0.5rem;
    opacity: 0.3;
}

.rating {
    color: #FBBF24;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 1.75rem;
}

.student-info {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.student-info strong {
    font-size: 1.05rem;
    color: #000;
    margin-bottom: 0.2rem;
}

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

/* ===== CTA BANNER ===== */
.cta-banner {
    padding: 5rem 5%;
    background: linear-gradient(135deg, #0A1628 0%, #132044 50%, #0A1628 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(10, 102, 249, 0.2), transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ctaPulse 4s ease-in-out infinite;
    pointer-events: none;
}

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

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-content p {
    color: #94A3B8;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    background: var(--gradient-main) !important;
    padding: 1rem 2.25rem !important;
    font-size: 1.05rem !important;
}

.phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: all 0.3s var(--ease-out-expo);
}

.phone-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* ===== FORM SECTION ===== */
.form-section {
    background-color: var(--bg-light);
    padding: 6rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-card {
    background-color: var(--pure-white);
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(229, 231, 235, 0.6);
}

.card-header {
    margin-bottom: 2rem;
}

.card-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #000;
}

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

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: border-color 0.3s var(--ease-out-quart),
                box-shadow 0.3s var(--ease-out-quart),
                transform 0.2s var(--ease-out-quart);
    background-color: var(--pure-white);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-group input:focus, 
.form-group select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(10, 102, 249, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: #9CA3AF;
    transition: color 0.3s ease;
}

.form-group input:focus::placeholder {
    color: #C9CDD5;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    cursor: pointer;
    padding-right: 2.5rem;
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}

.submit-btn {
    margin-top: 0.75rem;
    background: var(--gradient-main);
    color: var(--pure-white);
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.35s var(--ease-out-expo),
                box-shadow 0.35s var(--ease-out-expo);
    will-change: transform;
    box-shadow: 0 4px 16px -2px rgba(10, 102, 249, 0.25);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -2px rgba(10, 102, 249, 0.35);
}

.submit-btn:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ===== FOOTER ===== */
.main-footer {
    background: linear-gradient(180deg, #0F172A, #111827);
    color: #9CA3AF;
    padding: 5rem 5% 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-brand .logo {
    margin-bottom: 1.25rem;
}

.footer-brand .logo-text {
    color: #fff;
}

.footer-brand > p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
}

.social-link:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(10, 102, 249, 0.08);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.3s var(--ease-out-expo);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-blue);
    transform: translateX(3px);
}

.footer-contact h5 {
    color: #D1D5DB;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    margin-top: 1rem;
}

.footer-contact h5:first-of-type {
    margin-top: 0;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #6B7280;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s var(--ease-out-expo);
    animation: whatsappBounce 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
    animation: none;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-inner {
        padding: 0.55rem 1rem;
        position: relative;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
        border-radius: 16px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(229, 231, 235, 0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
    }

    body.dark-mode .nav-links {
        background: rgba(15, 23, 42, 0.98);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }

    .nav-cta-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 10;
    }

    /* Fixed overlapping issue in navbar */
    .logo {
        flex-shrink: 1;
        margin-right: 0.5rem;
    }

    .logo-text {
        font-size: 0.9rem;
        line-height: 1.2;
        white-space: normal;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .toggle-track {
        width: 46px;
        height: 26px;
    }

    .toggle-thumb {
        width: 20px;
        height: 20px;
    }

    body.dark-mode .toggle-thumb {
        transform: translateX(20px);
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

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

    /* Remove gradient fade overlays on mobile - they render as dark lines */
    .faculty-slider-container::before,
    .faculty-slider-container::after {
        display: none;
    }
}

@media (max-width: 768px) {

    .hero {
        padding: 6rem 5% 7rem;
        min-height: auto;
        background-image: 
            linear-gradient(to right, 
                rgba(255, 255, 255, 0.97) 0%, 
                rgba(255, 255, 255, 0.85) 100%),
            url('./bg.png');
    }

    body.dark-mode .hero {
        background-image: 
            linear-gradient(to right, 
                rgba(11, 17, 32, 0.97) 0%, 
                rgba(11, 17, 32, 0.85) 100%),
            url('./bg.png');
    }

    .hero-content h1 {
        font-size: 2.35rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    .stats-grid {
        gap: 1.5rem;
    }

    .stat-divider {
        display: none;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-item {
        min-width: 120px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

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

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

    .why-section,
    .courses-section,
    .faculty-section,
    .sports-section,
    .locations-section,
    .results-section,
    .testimonials-section,
    .form-section {
        padding: 4rem 5%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .faculty-card {
        width: 250px;
        padding: 1.75rem 1.25rem;
    }

    .faculty-img {
        width: 75px;
        height: 75px;
        margin-bottom: 1rem;
    }

    .faculty-card h4 {
        font-size: 1.15rem;
    }

    .faculty-slider-container::before,
    .faculty-slider-container::after {
        display: none;
    }

    .cta-content h2 {
        font-size: 1.85rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-actions {
        flex-direction: column;
    }

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

    /* === COMPACT HORIZONTAL RESULT CARDS ON MOBILE === */
    .mht-cet-grid,
    .jee-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .result-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.85rem;
        padding: 0.75rem 1rem;
        border-radius: 12px;
        text-align: left;
    }

    .student-avatar {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        margin: 0;
        font-size: 1rem;
    }

    .student-info-res h4 {
        font-size: 0.9rem;
        margin-bottom: 0.15rem;
    }

    .result-card .score {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .result-card .sub-score {
        font-size: 0.75rem;
    }

    .result-card .medal {
        position: static;
        font-size: 1.2rem;
        margin-left: auto;
        flex-shrink: 0;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .result-category {
        padding: 1.5rem 1rem;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.85rem;
    }

    .logo-text {
        font-size: 0.75rem;
    }

    .stat-item {
        min-width: 45%;
    }

    .stats-grid {
        justify-content: space-between;
    }
}

/* ===== SPORTS SECTION ===== */
.sports-section {
    padding: 6rem 5%;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--pure-white) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    width: 100%;
    max-width: 1200px;
}

.sports-card {
    background: var(--pure-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s var(--ease-out-expo);
}

.sports-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 102, 249, 0.12);
    border-color: rgba(10, 102, 249, 0.2);
}

.sports-img {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s var(--ease-out-quart);
}

.sports-card:hover .sports-img {
    transform: scale(1.06);
}

.sports-info {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--pure-white);
    position: relative;
    z-index: 2;
}

.sports-info h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 0;
}

body.dark-mode .sports-section {
    background: linear-gradient(180deg, #111827 0%, var(--pure-white) 100%);
}

body.dark-mode .sports-card,
body.dark-mode .sports-info {
    background: #111827;
    border-color: #1E293B;
}

body.dark-mode .sports-info h3 {
    color: #F1F5F9;
}

/* ===== LOCATIONS SECTION ===== */
.locations-section {
    padding: 6rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--pure-white);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.location-card {
    background: var(--pure-white);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s var(--ease-out-expo);
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(10, 102, 249, 0.1);
    border-color: rgba(10, 102, 249, 0.2);
}

.location-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.location-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.map-container {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background-color: var(--bg-light);
}

body.dark-mode .locations-section {
    background-color: #0B1120;
}

body.dark-mode .location-card {
    background: #111827;
    border-color: #1E293B;
}

body.dark-mode .location-card h3 {
    color: #F1F5F9;
}

body.dark-mode .location-card p {
    color: #94A3B8;
}

/* ===== RESULTS SECTION ===== */
.results-section {
    padding: 7rem 5%;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--pure-white) 100%);
}

.results-container {
    max-width: 1200px;
    margin: 0 auto;
}

.result-category {
    background: var(--pure-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.result-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gradient-main);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    padding-left: 1rem;
}

.category-title {
    font-size: 1.8rem;
    color: var(--text-dark);
}

.category-badge {
    background: rgba(10, 102, 249, 0.1);
    color: var(--primary-blue);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.results-grid {
    display: grid;
    gap: 1.5rem;
}

.mht-cet-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.jee-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-content: center;
}

.result-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: rgba(10, 102, 249, 0.3);
}

.student-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.student-info-res h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.result-card .score {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.result-card .sub-score {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.result-card .medal {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

body.dark-mode .result-category {
    background: #111827;
    border-color: #1E293B;
}

body.dark-mode .result-category::before {
    background: var(--gradient-main);
}

body.dark-mode .result-category {
    background: #111827;
}

body.dark-mode .result-card {
    background: #1E293B;
    border-color: #334155;
}

body.dark-mode .result-card:hover {
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

body.dark-mode .category-title,
body.dark-mode .student-info-res h4 {
    color: #F1F5F9;
}

body.dark-mode .result-card .score {
    color: #60A5FA;
}

body.dark-mode .category-badge {
    background: rgba(96, 165, 250, 0.15);
    color: #60A5FA;
}
