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

/* ─── DESIGN TOKENS — Dark (default) & Light ─────────────────── */
:root {
    /* Core Colors */
    --bg-color: #0a0f1a;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --text-secondary: #cbd5e1;

    /* Surface Colors */
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-bg-hover: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(255, 255, 255, 0.15);

    /* Primary Colors */
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-active: #2563eb;
    --primary-glow: rgba(59, 130, 246, 0.4);
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);

    /* Input Colors */
    --input-bg: rgba(255, 255, 255, 0.04);
    --input-border: rgba(255, 255, 255, 0.12);
    --input-focus-border: rgba(59, 130, 246, 0.5);
    --input-color: #f8fafc;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--primary-glow);

    /* Semantic Colors */
    --accent-color: #6366f1;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;

    /* Navigation */
    --navbar-bg: rgba(10, 15, 26, 0.95);
    --navbar-border: rgba(59, 130, 246, 0.2);
    --navbar-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(59, 130, 246, 0.1);
    --nav-link-color: rgba(226, 232, 240, 0.9);
    --nav-link-hover: #93c5fd;
    --nav-mobile-bg: rgba(10, 15, 26, 0.98);

    /* Glass Panels */
    --glass-panel-bg: rgba(255, 255, 255, 0.02);
    --glass-panel-border: rgba(59, 130, 246, 0.1);
    --glass-panel-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);

    /* Dropdowns */
    --dropdown-bg: rgba(15, 23, 42, 0.98);
    --dropdown-border: rgba(59, 130, 246, 0.2);
    --dropdown-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    --dropdown-link: rgba(226, 232, 240, 0.9);

    /* Ambient Glows */
    --body-glow-center: rgba(59, 130, 246, 0.15);
    --body-glow-mid: rgba(99, 102, 241, 0.08);
    --body-glow-bottom: rgba(59, 130, 246, 0.12);
    --scrollbar-track: #0a0f1a;

    /* Auth */
    --auth-overlay: linear-gradient(135deg, rgba(10, 15, 26, 0.88) 0%, rgba(15, 23, 42, 0.94) 100%);
    --auth-text: #ffffff;

    /* Landing Page */
    --landing-bg: #0a0f1a;
    --landing-overlay: linear-gradient(135deg, rgba(10, 15, 26, 0.88) 0%, rgba(15, 23, 42, 0.92) 100%);
    --landing-text: #ffffff;
    --landing-desc: rgba(255, 255, 255, 0.8);
    --landing-btn-secondary-border: rgba(255, 255, 255, 0.25);
    --landing-btn-secondary-hover: rgba(255, 255, 255, 0.08);

    /* Footer */
    --footer-bg: linear-gradient(180deg, rgba(10, 15, 26, 0.98) 0%, rgba(15, 23, 42, 1) 100%);
    --footer-border: rgba(255, 255, 255, 0.05);
    --footer-title: #f8fafc;
    --footer-text: rgba(203, 213, 225, 0.8);
    --footer-brand: #f8fafc;

    /* Bento Card Colors */
    --bento-bg-1: rgba(59, 130, 246, 0.12);
    --bento-bg-2: rgba(16, 185, 129, 0.12);
    --bento-bg-3: rgba(245, 158, 11, 0.12);
    --bento-bg-4: rgba(139, 92, 246, 0.12);
}

[data-theme="light"] {
    /* Core Colors */
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --text-secondary: #475569;

    /* Surface Colors */
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-bg-hover: rgba(255, 255, 255, 1);
    --card-border: rgba(15, 23, 42, 0.08);
    --card-border-hover: rgba(15, 23, 42, 0.15);

    /* Primary Colors */
    --primary-color: #2563eb;
    --primary-hover: #3b82f6;
    --primary-active: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.25);
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);

    /* Input Colors */
    --input-bg: #ffffff;
    --input-border: rgba(15, 23, 42, 0.12);
    --input-focus-border: rgba(37, 99, 235, 0.4);
    --input-color: #0f172a;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
    --shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 0 40px var(--primary-glow);

    /* Semantic Colors */
    --accent-color: #4f46e5;
    --danger-color: #dc2626;
    --success-color: #059669;
    --warning-color: #d97706;
    --info-color: #0891b2;

    /* Navigation */
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-border: rgba(37, 99, 235, 0.1);
    --navbar-shadow: 0 4px 24px rgba(15, 23, 42, 0.08), 0 1px 0 rgba(37, 99, 235, 0.05);
    --nav-link-color: #475569;
    --nav-link-hover: #2563eb;
    --nav-mobile-bg: #ffffff;

    /* Glass Panels */
    --glass-panel-bg: rgba(255, 255, 255, 0.9);
    --glass-panel-border: rgba(37, 99, 235, 0.1);
    --glass-panel-shadow: 0 8px 32px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);

    /* Dropdowns */
    --dropdown-bg: #ffffff;
    --dropdown-border: rgba(15, 23, 42, 0.1);
    --dropdown-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    --dropdown-link: #475569;

    /* Ambient Glows */
    --body-glow-center: rgba(37, 99, 235, 0.06);
    --body-glow-mid: rgba(79, 70, 229, 0.03);
    --body-glow-bottom: rgba(37, 99, 235, 0.05);
    --scrollbar-track: #e2e8f0;

    /* Auth */
    --auth-overlay: linear-gradient(135deg, rgba(248, 250, 252, 0.92) 0%, rgba(241, 245, 249, 0.96) 100%);
    --auth-text: #0f172a;

    /* Landing Page */
    --landing-bg: #f8fafc;
    --landing-overlay: linear-gradient(135deg, rgba(248, 250, 252, 0.88) 0%, rgba(241, 245, 249, 0.92) 100%);
    --landing-text: #0f172a;
    --landing-desc: #475569;
    --landing-btn-secondary-border: rgba(15, 23, 42, 0.2);
    --landing-btn-secondary-hover: rgba(15, 23, 42, 0.06);

    /* Footer */
    --footer-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --footer-border: rgba(15, 23, 42, 0.08);
    --footer-title: #0f172a;
    --footer-text: #64748b;
    --footer-brand: #0f172a;

    /* Bento Card Colors */
    --bento-bg-1: rgba(59, 130, 246, 0.08);
    --bento-bg-2: rgba(16, 185, 129, 0.08);
    --bento-bg-3: rgba(245, 158, 11, 0.08);
    --bento-bg-4: rgba(139, 92, 246, 0.08);
}

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

/* Apply base font-family only to real elements (avoid overriding icon font pseudo-elements) */
html,
body,
input,
button,
textarea,
select {
    font-family: 'Outfit', sans-serif;
}

/* ─── BASE BODY ──────────────────────────────────────────────── */
body {
    background: var(--bg-color);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    /* Space for fixed navbar (student pages) */
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Centre radial glow */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 1200px;
    height: 1200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
            var(--body-glow-center) 0%,
            var(--body-glow-mid) 35%,
            transparent 65%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    transition: opacity 0.6s ease;
}

/* Bottom horizon reflection */
body::after {
    content: '';
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 1400px;
    height: 160px;
    background: radial-gradient(ellipse,
            var(--body-glow-bottom) 0%,
            rgba(59, 130, 246, 0.08) 45%,
            transparent 75%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    transition: opacity 0.6s ease;
}

[data-theme="light"] body::after {
    background: radial-gradient(ellipse,
            var(--body-glow-bottom) 0%,
            rgba(37, 99, 235, 0.04) 50%,
            transparent 80%);
}

body>* {
    position: relative;
    z-index: 1;
}

/* ─── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.4);
    border-radius: 4px;
    border: 2px solid var(--scrollbar-track);
    background-clip: padding-box;
    transition: background 0.3s ease, border-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
    border-color: var(--scrollbar-track);
}

/* ─── THEME TOGGLE ─────────────────────────────────────────────── */
.theme-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.12);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.theme-toggle-btn:active {
    transform: translateY(0) scale(0.98);
}

.theme-toggle-floating {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1100;
}

/* ─── GLASS UTILITIES ────────────────────────────────────────── */
.glass-panel {
    background: var(--glass-panel-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-panel-border);
    border-radius: 24px;
    box-shadow: var(--glass-panel-shadow);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.glass-panel:hover {
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-lg);
}

.glass-btn {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 16px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

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

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

.glass-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px var(--primary-glow);
}

.glass-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--primary-glow);
}

.glass-btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--card-border);
    padding: 12px 28px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.glass-btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.glass-btn-secondary:active {
    transform: translateY(-1px);
}

.glass-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--input-color);
    outline: none;
    font-size: 0.92rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.glass-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.glass-input:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 4px var(--primary-glow), var(--shadow);
    background: var(--card-bg-hover);
    transform: translateY(-1px);
}

.glass-input:hover:not(:focus) {
    border-color: var(--card-border-hover);
}

/* ─── STUDENT TOP NAVIGATION BAR ────────────────────────────── */
.glass-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--navbar-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    box-shadow: var(--navbar-shadow);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.35rem;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.2s;
    line-height: 1;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-hover);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo:hover {
    color: var(--primary-color);
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 6px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--nav-link-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.93rem;
    padding: 10px 16px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: var(--nav-link-hover);
    background: rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
}

.nav-links a.active {
    color: var(--primary-hover);
    background: rgba(59, 130, 246, 0.15);
    font-weight: 700;
}

.nav-links a.active::after {
    transform: translateX(-50%) scaleX(1);
}

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

/* ─── USER PROFILE DROPDOWN ──────────────────────────────────── */
.user-profile-menu {
    position: relative;
    cursor: pointer;
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--nav-link-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.user-profile-trigger:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.12);
    color: var(--nav-link-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.user-profile-trigger .avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.dropdown-menu-list {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    min-width: 220px;
    background: var(--dropdown-bg);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--dropdown-border);
    border-radius: 16px;
    box-shadow: var(--dropdown-shadow);
    padding: 10px 0;
    list-style: none;
    display: block;
    z-index: 1100;
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease;
}

.user-profile-menu.open .dropdown-menu-list {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
    animation: fadeIn 0.18s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.dropdown-menu-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--dropdown-link);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu-list a:hover {
    background: rgba(59, 130, 246, 0.12);
    color: var(--nav-link-hover);
    padding-left: 22px;
}

.dropdown-menu-list a.logout-link {
    color: var(--danger-color);
    border-top: 1px solid var(--card-border);
    margin-top: 6px;
    padding-top: 14px;
}

.dropdown-menu-list a.logout-link:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.dropdown-menu-list li {
    list-style: none;
}

/* ─── HERO BANNER (student dashboard) ───────────────────────── */
.hero-banner {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    height: 80vh;
    min-height: 80vh;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 44px;
    box-shadow: var(--shadow-lg);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 15, 26, 0.88) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(30, 41, 59, 0.65) 100%);
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    color: #fff;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    word-break: break-word;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    max-width: 620px;
    margin-bottom: 32px;
    opacity: 0.92;
    font-weight: 400;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-dots {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    justify-content: center;
    align-items: center;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    padding: 0;
}

.hero-dot.active {
    width: 28px;
    border-radius: 5px;
    background: var(--primary-color);
    box-shadow: 0 0 12px var(--primary-glow);
}

/* ─── BENTO STAT GRID ────────────────────────────────────────── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-bottom: 44px;
}

.bento-stat-card {
    padding: 28px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bento-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px var(--primary-glow);
}

.bento-stat-card:hover::before {
    opacity: 1;
}

.bento-stat-card.sem-1 {
    background: var(--bento-bg-1);
}

.bento-stat-card.sem-2 {
    background: var(--bento-bg-2);
}

.bento-stat-card.sem-3 {
    background: var(--bento-bg-3);
}

.bento-stat-card.sem-4 {
    background: var(--bento-bg-4);
}

.bento-stat-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.bento-stat-info h3 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}

.bento-stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.9;
    filter: drop-shadow(0 4px 12px var(--primary-glow));
}

/* ─── DASHBOARD GRID ─────────────────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    margin-bottom: 40px;
}

.dashboard-grid>* {
    min-width: 0;
}

.dashboard-panel {
    padding: 28px;
}

.dashboard-panel h3 {
    margin-bottom: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    flex-wrap: wrap;
}

/* ── Announcements & activity (dashboard) ── */
.ann-title {
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-bottom: 7px;
    font-weight: 600;
    word-break: break-word;
}

.ann-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.ann-body {
    line-height: 1.55;
    font-size: 0.93rem;
    opacity: 0.85;
    word-break: break-word;
}

.act-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.act-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.act-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.act-icon.green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

.act-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-color);
}

.act-label {
    margin: 0;
    font-weight: 600;
    font-size: 0.93rem;
    word-break: break-word;
}

.act-sub {
    margin: 3px 0 0;
    font-size: 0.83rem;
    color: var(--text-muted);
    word-break: break-word;
}

.act-time {
    font-size: 0.73rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

/* ─── ANNOUNCEMENTS ──────────────────────────────────────────── */
.announcement-item {
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

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

.announcement-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* ─── ASSIGNMENT BENTO CARD ──────────────────────────────────── */
.assignment-bento-card {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    background: var(--card-bg);
    margin-bottom: 24px;
}

.assignment-icon-side {
    width: 140px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3.5rem;
    flex-shrink: 0;
}

.assignment-info-side {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.assignment-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.assignment-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Badge row */
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.badge-red {
    background: #fee2e2;
    color: #ef4444;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-blue {
    background: #dbeafe;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ─── MODAL BENTO COLUMN LAYOUT ──────────────────────────────── */
.modal-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.modal-bento-col {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 20px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.bento-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 10px;
}

.bento-col-header h4 {
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-count-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.file-items-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    max-height: 300px;
}

.file-item-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease;
}

.file-item-card:hover {
    transform: translateY(-2px);
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-item-icon {
    font-size: 1.5rem;
    color: #ef4444;
}

.file-item-details h5 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.file-item-details p {
    font-size: 0.73rem;
    color: var(--text-muted);
}

.file-item-actions {
    display: flex;
    gap: 6px;
}

.file-btn-sm {
    padding: 6px 10px;
    font-size: 0.73rem;
    border-radius: 6px;
}

.empty-state-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.01);
    border: 1px dashed var(--card-border);
    border-radius: 12px;
    padding: 20px;
    color: var(--text-muted);
}

.empty-state-card i {
    font-size: 2.2rem;
    margin-bottom: 12px;
    opacity: 0.6;
}

/* ─── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* ─── AUTH PAGES ─────────────────────────────────────────────── */
.auth-container-fullscreen {
    position: fixed;
    inset: 0;
    background:
        var(--auth-overlay),
        url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1001;
    overflow-y: auto;
}

.auth-card-premium {
    width: 100%;
    max-width: 520px;
    padding: 40px;
    border-radius: 28px;
    text-align: center;
    color: var(--auth-text);
}

.auth-laptop-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

.form-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Back arrow on auth pages */
.auth-back-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s, transform 0.2s;
    text-decoration: none;
    z-index: 10;
}

.auth-back-btn:hover {
    opacity: 1;
    transform: translateX(-3px);
}

/* ─── FORM GROUP ─────────────────────────────────────────────── */
.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

/* ─── RESPONSIVE — STUDENT SIDE ─────────────────────────────── */

/* ≤ 1024 px */
@media (max-width: 1024px) {
    .glass-navbar {
        padding: 0 24px;
    }

    .nav-links {
        gap: 2px;
    }

    .nav-links a {
        padding: 8px 10px;
        font-size: 0.88rem;
    }

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

/* ≤ 768 px */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .glass-navbar {
        height: 70px;
        padding: 0 16px;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Nav links hidden by default on mobile — toggled by JS */
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--nav-mobile-bg);
        border-bottom: 1px solid var(--navbar-border);
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
        display: none;
        box-shadow: var(--navbar-shadow);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        animation: fadeIn 0.25s ease;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 13px 0;
        border-radius: 0;
        font-size: 1rem;
    }

    .nav-actions {
        gap: 8px;
    }

    /* Hero banner */
    .hero-banner {
        height: 100vh;
        min-height: 100vh;
        border-radius: 0;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        width: 100vw;
        margin-bottom: 25px;
    }

    .hero-content {
        min-height: 100vh;
        padding: 28px 16px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .hero-buttons a {
        width: 100%;
        justify-content: center;
    }

    /* Bento grid — 2 cols on tablet */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-bottom: 25px;
    }

    .bento-stat-card {
        padding: 18px 16px;
    }

    .bento-stat-info h3 {
        font-size: 1.8rem;
    }

    .bento-stat-icon {
        font-size: 2rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .dashboard-panel {
        padding: 20px 16px;
    }

    /* Modal bento */
    .modal-bento-grid {
        grid-template-columns: 1fr;
    }

    /* Assignment bento card */
    .assignment-bento-card {
        flex-direction: column;
    }

    .assignment-icon-side {
        width: 100%;
        height: 100px;
        font-size: 2.5rem;
    }

    /* User trigger — hide name on small screens */
    .user-profile-trigger span {
        display: none;
    }

    .user-profile-trigger {
        padding: 6px 8px;
    }

    .user-profile-trigger .fa-chevron-down {
        display: none;
    }
}

/* ≤ 480 px */
@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-stat-info h3 {
        font-size: 1.6rem;
    }

    .bento-stat-icon {
        font-size: 1.6rem;
    }

    .hero-banner {
        min-height: 100svh;
        height: 100svh;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        width: 100vw;
    }

    .hero-content {
        min-height: 100svh;
        padding: 24px 14px;
    }

    .hero-dots {
        margin-top: 18px;
    }

    .dashboard-panel {
        padding: 16px 14px;
    }

    .auth-card-premium {
        padding: 28px 20px;
    }

    /* Landing page buttons */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .hero-buttons a {
        width: 100%;
        justify-content: center;
    }
}

/* ≤ 360 px */
@media (max-width: 360px) {
    .glass-navbar {
        padding: 0 10px;
    }

    .nav-logo {
        font-size: 0.95rem;
        gap: 6px;
    }

    .nav-logo i {
        font-size: 1rem;
    }
}

/* ─── RESPONSIVE UTILITIES ──────────────────────────────────── */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 480px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

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

.page-heading h1 {
    font-size: clamp(1.4rem, 4vw, 2rem);
}

.page-heading p {
    padding-left: 0 !important;
}

@media (max-width: 768px) {
    .page-heading p {
        padding-left: 0;
    }

    .asgn-top {
        flex-direction: column;
    }

    .asgn-icon {
        width: 100%;
        height: 70px;
    }
}

/* ─── LANDING PAGE — FULL WEBSITE ───────────────────────────── */
body.landing-page {
    margin: 0;
    padding: 0;
    padding-top: 0;
    min-height: 100vh;
    display: block;
    overflow-x: hidden;
    /* Landing-specific darker overrides */
    --landing-bg: #070912;
    /* slightly lighter overlay so hero images are more visible */
    --landing-overlay: linear-gradient(135deg, rgba(4, 6, 12, 0.80) 0%, rgba(2, 3, 6, 0.70) 100%);
    --landing-text: #eef2ff;
    --landing-desc: rgba(255, 255, 255, 0.78);
    --body-glow-center: rgba(0, 80, 180, 0.12);
    --body-glow-mid: rgba(0, 32, 80, 0.06);
    --body-glow-bottom: rgba(0, 60, 120, 0.12);
    --navbar-bg: rgba(2, 4, 10, 0.92);
    --glass-panel-bg: rgba(255, 255, 255, 0.02);
    --glass-panel-border: rgba(0, 120, 255, 0.06);
    background-color: var(--landing-bg);
}

body.auth-page {
    padding-top: 0;
    display: block;
}

body.auth-page::before,
body.auth-page::after {
    display: none;
}

body.landing-page::before,
body.landing-page::after {
    display: none;
}

/* Public site navbar */
.public-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(16px, 4vw, 40px);
    background: rgba(8, 11, 22, 0.82);
    border-bottom: 1px solid var(--navbar-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease, top 0.35s cubic-bezier(0.4, 0, 0.2, 1), left 0.35s cubic-bezier(0.4, 0, 0.2, 1), right 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.92);
}

.public-navbar.scrolled {
    box-shadow: var(--navbar-shadow);
}

.public-nav-logo {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-hover);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.public-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    list-style: none;
    flex: 1;
}

.public-nav-links a {
    color: var(--nav-link-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.public-nav-links a:hover {
    color: var(--nav-link-hover);
    background: rgba(59, 130, 246, 0.1);
}

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

.public-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}

.public-nav-toggle:hover {
    background: var(--card-bg);
}

/* Hero section */
.landing-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slider-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.parallax-wrapper {
    position: absolute;
    top: -40px;
    left: -40px;
    width: calc(100% + 80px);
    height: calc(100% + 80px);
    will-change: transform;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08) translate3d(40px, 0, 0);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: scale(1.02) translate3d(0, 0, 0);
    z-index: 2;
}

.slide.prev {
    opacity: 0;
    transform: scale(0.96) translate3d(-40px, 0, 0);
    z-index: 1;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: var(--landing-overlay);
    z-index: 3;
}

.landing-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 720px;
    padding: 120px 24px 80px;
    text-align: center;
    animation: fadeInContent 1.2s ease-out forwards;
    color: var(--landing-text);
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.lms-laptop-icon {
    width: clamp(120px, 22vw, 180px);
    height: auto;
    aspect-ratio: 3 / 2;
    margin-bottom: 28px;
    filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.7));
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.5));
        transform: scale(1);
    }

    100% {
        filter: drop-shadow(0 0 30px rgba(96, 165, 250, 0.9));
        transform: scale(1.05);
    }
}

.lms-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #60a5fa;
    margin-bottom: 16px;
}

.lms-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    color: var(--landing-text);
    line-height: 1.15;
}

.lms-desc {
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    line-height: 1.7;
    margin-bottom: 36px;
    color: var(--landing-desc);
    max-width: 580px;
}

.lms-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 480px;
}

.lms-btn {
    flex: 1;
    min-width: 160px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lms-btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.lms-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.lms-btn-secondary {
    background: transparent;
    color: var(--landing-text);
    border: 1px solid var(--landing-btn-secondary-border);
    backdrop-filter: blur(8px);
}

.lms-btn-secondary:hover {
    background: var(--landing-btn-secondary-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Landing sections */
.landing-section {
    position: relative;
    z-index: 5;
    padding: clamp(48px, 8vw, 88px) clamp(16px, 4vw, 40px);
}

.landing-section.alt-bg {
    background: var(--glass-panel-bg);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(32px, 5vw, 56px);
}

.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 28px 24px;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px var(--primary-glow);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

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

/* About split */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 60px);
    align-items: center;
}

.about-image {
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.about-content h3 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-color);
}

.about-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.about-list {
    list-style: none;
    margin: 20px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--text-color);
}

.about-list li i {
    color: var(--success-color);
    font-size: 0.9rem;
}

/* Semester cards on landing */
.sem-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.sem-preview-card {
    padding: 24px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border-top: 3px solid var(--sem-color, var(--primary-color));
}

.sem-preview-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.sem-preview-card .sem-num {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sem-color, var(--primary-color));
    margin-bottom: 8px;
}

.sem-preview-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

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

/* Stats row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-block {
    text-align: center;
    padding: 28px 16px;
    border-radius: 18px;
}

.stat-block .stat-num {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-block .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* CTA banner */
.cta-banner {
    text-align: center;
    padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 48px);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.cta-banner h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--text-color);
}

.cta-banner p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.landing-page .site-footer {
    margin-top: 0;
}

/* Landing responsive */
@media (max-width: 900px) {
    .about-split {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        max-height: 320px;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .public-nav-toggle {
        display: block;
    }

    .public-nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex: unset;
        flex-direction: column;
        background: var(--nav-mobile-bg);
        border-bottom: 1px solid var(--navbar-border);
        padding: 12px 0;
        display: none;
        box-shadow: var(--navbar-shadow);
        gap: 0;
    }

    .public-nav-links.active {
        display: flex;
        animation: fadeIn 0.25s ease;
    }

    .public-nav-links li {
        width: 100%;
        text-align: center;
    }

    .public-nav-links a {
        display: block;
        padding: 13px 20px;
        border-radius: 0;
    }

    .public-nav-actions .lms-btn {
        display: none;
    }

    .public-nav-actions .lms-btn-mobile {
        display: inline-flex;
    }

    .landing-content {
        padding-top: 100px;
    }

    .lms-buttons {
        flex-direction: column;
    }

    .lms-btn {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-block {
        padding: 20px 12px;
    }

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

    .theme-toggle-floating {
        top: 14px;
        right: 14px;
    }
}

@media (min-width: 769px) {
    .public-nav-actions .lms-btn-mobile {
        display: none;
    }
}

/* ─── SITE FOOTER ────────────────────────────────────────────── */
.site-footer {
    position: relative;
    z-index: 0;
    width: 100%;
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    padding: 56px 0 0;
    margin-top: 60px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.4fr;
    gap: 50px;
}

.footer-brand .brand-logos {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.brand-logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.brand-shield-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e3a5f, #1e40af);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #93c5fd;
    flex-shrink: 0;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--footer-brand);
}

.brand-name span {
    color: var(--primary-hover);
}

.brand-tagline {
    font-size: 0.87rem;
    color: var(--footer-text);
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 270px;
}

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

.social-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--footer-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon-btn:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(96, 165, 250, 0.5);
    color: var(--primary-hover);
    transform: translateY(-3px);
}

.footer-col-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--footer-title);
    margin-bottom: 20px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-links-list li a {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.22s ease;
}

.footer-links-list li a::before {
    content: '›';
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    transition: transform 0.2s;
}

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

.footer-links-list li a:hover::before {
    transform: translateX(3px);
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    color: var(--footer-text);
    font-size: 0.87rem;
    line-height: 1.55;
}

.contact-icon-wrap {
    width: 33px;
    height: 33px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-hover);
    font-size: 0.82rem;
    margin-top: 2px;
}

.contact-text a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-text a:hover {
    color: var(--nav-link-hover);
}

.footer-bottom-wrapper {
    border-top: 1px solid var(--footer-border);
    margin-top: 48px;
}

.footer-bottom-bar {
    padding: 18px 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-copyright,
.footer-credit,
.footer-extra-links a {
    font-size: 0.8rem;
    color: var(--footer-text);
}

.footer-credit {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-credit .heart {
    color: #f87171;
    animation: heartbeat 1.8s ease-in-out infinite;
    display: inline-block;
}

.footer-credit-name {
    color: var(--primary-hover);
    font-weight: 600;
}

.footer-extra-links {
    display: flex;
    gap: 18px;
}

.footer-extra-links a {
    text-decoration: none;
    transition: color 0.2s;
}

.footer-extra-links a:hover {
    color: var(--nav-link-hover);
}

@keyframes heartbeat {

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

    14% {
        transform: scale(1.3);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.15);
    }
}

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .footer-brand {
        grid-column: auto;
    }

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

    .footer-extra-links {
        justify-content: center;
    }

    .site-footer {
        padding-top: 40px;
        margin-top: 40px;
    }
}

/* ─── UI ENHANCEMENTS ────────────────────────────────────────── */

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #818cf8 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #0284c7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), #818cf8);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px var(--primary-glow);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    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;
}

/* Scroll reveal — fancier blur/slide variant (originally from materials.php) */
.scroll-reveal {
    opacity: 0;
    filter: blur(6px);
    transition:
        opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
        filter 1.1s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform, filter;
}

/* Transform only applies while hidden. Once .is-visible is added we intentionally
   declare NO transform property here, so it never competes (same-specificity tie)
   with a component's own :hover lift effect (e.g. .sem-hero-card:hover, .feature-card:hover).
   This lets cards keep their hover animation working normally after they've revealed. */
.scroll-reveal[data-dir="left"]:not(.is-visible) {
    transform: translateX(-90px) scale(0.96);
}

.scroll-reveal[data-dir="right"]:not(.is-visible) {
    transform: translateX(90px) scale(0.96);
}

.scroll-reveal[data-dir="up"]:not(.is-visible) {
    transform: translateY(60px) scale(0.96);
}

.scroll-reveal.is-visible {
    opacity: 1;
    filter: blur(0);
}

@media (max-width: 860px) {

    .scroll-reveal[data-dir="left"]:not(.is-visible),
    .scroll-reveal[data-dir="right"]:not(.is-visible) {
        transform: translateY(40px) scale(0.97);
    }
}

/* Landing slider dots */
.landing-slider-dots {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 15;
}

.landing-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.35s ease;
}

.landing-dot.active {
    width: 32px;
    border-radius: 5px;
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 16px var(--primary-glow);
}

/* Scroll down hint */
.scroll-hint {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounceHint 2.2s ease-in-out infinite;
}

.scroll-hint i {
    font-size: 1rem;
    opacity: 0.8;
}

@keyframes bounceHint {

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

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

/* How it works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.25;
    z-index: 0;
}

.step-card {
    text-align: center;
    padding: 32px 20px 28px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px var(--primary-glow);
}

.step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #818cf8);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px var(--primary-glow);
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

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

/* Feature card gradient border on hover */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: background 0.4s ease;
    pointer-events: none;
}

.feature-card:hover::before {
    background: linear-gradient(135deg, var(--primary-color), #818cf8);
}

/* Nav active section */
.public-nav-links a.nav-active {
    color: var(--nav-link-hover);
    background: rgba(59, 130, 246, 0.12);
    font-weight: 600;
}

/* Auth split layout */
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 960px;
    min-height: 520px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    border: 1px solid var(--card-border);
}

.auth-brand-panel {
    background:
        linear-gradient(160deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 138, 0.85) 100%),
        url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    position: relative;
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.75), rgba(37, 99, 235, 0.35));
    pointer-events: none;
}

.auth-brand-panel>* {
    position: relative;
    z-index: 1;
}

[data-theme="light"] .auth-brand-panel {
    background:
        linear-gradient(160deg, rgba(37, 99, 235, 0.88) 0%, rgba(79, 70, 229, 0.82) 100%),
        url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
}

.auth-brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.auth-brand-logo i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.auth-brand-panel h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.auth-brand-panel>p {
    font-size: 0.95rem;
    line-height: 1.65;
    opacity: 0.88;
    margin-bottom: 28px;
    max-width: 320px;
}

.auth-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-feature-list li i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.auth-form-panel {
    background: var(--glass-panel-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-panel .auth-card-inner {
    width: 100%;
    text-align: left;
    color: var(--auth-text);
}

.auth-form-panel .form-card-title {
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 6px;
    text-align: left;
    letter-spacing: -0.3px;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* Auth alerts */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.45;
}

.auth-alert-error {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.22);
}

.auth-alert-success {
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.22);
}

.auth-alert i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Input with icon */
.input-icon-wrap {
    position: relative;
}

.input-icon-wrap>i.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
    transition: color 0.2s;
}

.input-icon-wrap .glass-input {
    padding-left: 42px;
}

.input-icon-wrap:focus-within>i.field-icon {
    color: var(--primary-color);
}

/* Password toggle */
.password-wrap {
    position: relative;
}

.password-wrap .glass-input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    transition: color 0.2s;
    line-height: 1;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.auth-footer-link {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 20px;
    color: var(--text-muted);
}

.auth-footer-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

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

.auth-links-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-links-row a {
    text-decoration: none;
    transition: color 0.2s;
}

.auth-links-row a.forgot-link {
    color: var(--text-muted);
}

.auth-links-row a.forgot-link:hover {
    color: var(--primary-hover);
}

.auth-links-row a.register-link {
    color: var(--primary-color);
    font-weight: 600;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 36px 20px;
    opacity: 0.6;
}

.empty-state i {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 0.93rem;
    color: var(--text-muted);
}

/* Hero on dark overlay buttons */
.hero-btn-light {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
}

.hero-btn-light:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Responsive — enhancements */
@media (max-width: 900px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .auth-container-fullscreen {
        align-items: flex-start;
        padding: 70px 16px 24px;
    }

    .auth-split {
        grid-template-columns: 1fr;
        max-width: 480px;
        min-height: unset;
    }

    .auth-brand-panel {
        padding: 32px 28px;
        min-height: 200px;
    }

    .auth-brand-panel h2 {
        font-size: 1.35rem;
    }

    .auth-feature-list {
        display: none;
    }

    .auth-form-panel {
        padding: 32px 28px;
    }

    .scroll-hint {
        display: none;
    }

    .landing-slider-dots {
        bottom: 24px;
    }
}

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

    .auth-form-panel {
        padding: 28px 22px;
    }

    .auth-brand-panel {
        padding: 28px 22px;
    }
}
/* ─── PUBLIC LANDING NAVBAR — FLOATING GLASS PILL OVER HERO ─────── */
/* A rounded, detached glass pill with its own light frosted background
   from the moment the page loads (not just after scrolling) — it always
   reads as a distinct floating bar over the hero image. */
.landing-page .public-navbar {
    top: 18px;
    left: 20px;
    right: 20px;
    width: auto;
    height: 68px;
    border-radius: 100px;
    padding: 0 22px 0 26px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

[data-theme="light"] .landing-page .public-navbar {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(15, 23, 42, 0.1);
}

.landing-page .public-navbar .public-nav-logo,
.landing-page .public-navbar .public-nav-links a,
.landing-page .public-navbar .public-nav-toggle {
    color: #fff;
}

[data-theme="light"] .landing-page .public-navbar .public-nav-logo {
    color: var(--primary-hover);
}

[data-theme="light"] .landing-page .public-navbar .public-nav-toggle {
    color: var(--text-color);
}

[data-theme="light"] .landing-page .public-navbar .public-nav-links a {
    color: var(--nav-link-color);
}

.landing-page .public-navbar .public-nav-links a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

[data-theme="light"] .landing-page .public-navbar .public-nav-links a:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--nav-link-hover);
}

.landing-page .public-navbar .public-nav-links a.nav-active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.landing-page .public-navbar .public-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* Once scrolled past the hero, the pill docks flush against the top edge
   (no more floating gap) and squares off into a normal full-width bar. */
.landing-page .public-navbar.scrolled {
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    border-top: none;
    background: var(--navbar-bg);
    border-color: var(--navbar-border);
    box-shadow: var(--navbar-shadow), 0 14px 34px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(28px) saturate(170%);
    -webkit-backdrop-filter: blur(28px) saturate(170%);
}

[data-theme="light"] .landing-page .public-navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
}

.landing-page .public-navbar.scrolled .public-nav-logo,
.landing-page .public-navbar.scrolled .public-nav-links a,
.landing-page .public-navbar.scrolled .public-nav-toggle {
    color: var(--nav-link-color);
}

.landing-page .public-navbar.scrolled .public-nav-logo {
    color: var(--primary-hover);
}

/* hero sits flush behind the pill — no body offset needed */
.landing-page {
    padding-top: 0;
}

@media (max-width: 768px) {
    .landing-page .public-navbar {
        top: 14px;
        left: 14px;
        right: 14px;
        height: 62px;
        padding: 0 18px;
        border-radius: 40px;
    }

    .landing-page .public-nav-actions {
        gap: 10px;
    }

    .landing-page .public-nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 14px;
        right: 14px;
        width: auto;
        border-radius: 24px;
        background: var(--nav-mobile-bg);
        border: 1px solid var(--navbar-border);
        box-shadow: var(--navbar-shadow), 0 14px 34px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(26px) saturate(160%);
        -webkit-backdrop-filter: blur(26px) saturate(160%);
        overflow: hidden;
    }

    .landing-page .public-navbar:not(.scrolled) .public-nav-links a {
        color: var(--nav-link-color);
    }

    .landing-page .public-nav-links a {
        border-radius: 0;
    }
}
.scholarship-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

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

.sch-card {
    background: var(--glass-panel-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-panel-border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--glass-panel-shadow);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.sch-card:hover {
    border-color: var(--card-border-hover);
}

.sch-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sch-card h3 i {
    color: var(--primary-color);
}

.sch-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 16px;
}

.eligibility-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 24px;
}

@media (max-width: 576px) {
    .eligibility-badges {
        grid-template-columns: 1fr;
    }
}

.elig-badge {
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.elig-badge:hover {
    transform: translateY(-4px);
    border-color: var(--primary-hover);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.elig-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 14px;
}

.elig-badge h4 {
    font-size: 0.98rem;
    font-weight: 750;
    color: var(--text-color);
    margin-bottom: 6px;
}

.elig-badge p {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Timeline */
.sch-timeline {
    position: relative;
    border-left: 2px solid var(--card-border);
    padding-left: 24px;
    margin: 20px 0 10px 8px;
}

.sch-timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.sch-timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--portal-bg, #090b15);
    box-shadow: 0 0 10px var(--primary-glow);
}

.sch-timeline-item h4 {
    font-size: 1rem;
    font-weight: 750;
    color: var(--text-color);
    margin-bottom: 6px;
}

.sch-timeline-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Downloads Table */
.sch-table {
    width: 100%;
    border-collapse: collapse;
}

.sch-table th, .sch-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

.sch-table th {
    font-weight: 700;
    color: var(--text-color);
    background: var(--input-bg);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sch-table td {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.sch-table tr:hover td {
    color: var(--text-color);
    background: rgba(255,255,255,0.01);
}

.file-icon {
    font-size: 1.2rem;
    margin-right: 8px;
    vertical-align: middle;
}

.file-icon.pdf {
    color: #ef4444;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.announcement-card {
    border-left: 4px solid var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.announcement-card:hover {
    background: rgba(59, 130, 246, 0.08);
}

.announcement-card.urgent {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.announcement-card.urgent:hover {
    background: rgba(239, 68, 68, 0.08);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.announcement-title {
    font-weight: 750;
    font-size: 0.98rem;
    color: var(--text-color);
}

.announcement-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.announcement-body {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.badge-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-tag-primary {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-color);
}

.badge-tag-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}