/* ============================================================
   UniCompass Egypt — Styles
   Dark theme · Glassmorphism · Vibrant gradients · Micro-animations
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
    --primary: #F97316;
    --primary-light: #FDBA74;
    --primary-dark: #C2410C;
    --secondary: #F59E0B;
    --accent-cyan: #06B6D4;
    --accent-emerald: #10B981;
    --accent-amber: #F59E0B;
    --accent-coral: #F43F5E;
    --accent-orange: #F97316;
    --accent-sand: #FEF3C7;
    --accent-terracotta: #EA580C;
    --accent-sage: #84CC16;
    --accent-warm-rose: #E11D48;
    --accent-steel-blue: #3B82F6;
    --accent-sienna-red: #BE123C;

    --bg-body: #09090b;
    --bg-surface: #18181b;
    --bg-card: rgba(24, 24, 27, 0.45);
    --bg-card-hover: rgba(39, 39, 42, 0.55);
    --bg-glass: rgba(24, 24, 27, 0.4);
    --bg-glass-strong: rgba(24, 24, 27, 0.85);

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(249, 115, 22, 0.4);

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 999px;

    --shadow-glow: 0 0 80px rgba(249, 115, 22, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 20px 60px rgba(249, 115, 22, 0.2);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; cursor: pointer; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }
input { border: none; outline: none; font-family: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

::selection {
    background: rgba(249, 115, 22, 0.4);
    color: #fff;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: rgba(249, 115, 22, 0.3); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(249, 115, 22, 0.5); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(24, 17, 11, 0.6);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
    background: rgba(24, 17, 11, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 26px;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(249, 115, 22, 0.3)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.6)); transform: scale(1.05); }
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: color var(--transition-fast), background var(--transition-fast);
    position: relative;
    z-index: 1;
}

.nav-link:hover { color: var(--text-primary); }

.nav-link.active {
    color: #fff;
}

.nav-indicator {
    position: absolute;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-full);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 16px;
}
.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
}
.lang-toggle .lang-text {
    font-size: 13px;
    font-weight: 700;
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.nav-mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    will-change: transform;
}

.orb-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -250px; left: -150px;
    animation: float-1 25s ease-in-out infinite;
}

.orb-2 {
    width: 550px; height: 550px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    top: 10%; right: -200px;
    animation: float-2 20s ease-in-out infinite;
}

.orb-3 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: -100px; left: 30%;
    animation: float-3 22s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(80px, -40px) scale(1.08); }
    50% { transform: translate(-30px, 60px) scale(0.95); }
    75% { transform: translate(50px, 30px) scale(1.04); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-60px, 50px) scale(1.1); }
    66% { transform: translate(40px, -30px) scale(0.92); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    30% { transform: translate(70px, -50px) scale(1.06); }
    60% { transform: translate(-40px, 30px) scale(0.96); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(249, 115, 22, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 115, 22, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

.particles {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 3px; height: 3px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 4s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0) translateY(0); }
    50% { opacity: 0.6; transform: scale(1) translateY(-30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.badge-flag { font-size: 18px; }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan), var(--secondary), var(--accent-amber));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* ── Search ────────────────────────────────────────────────── */
.search-container {
    position: relative;
    max-width: 560px;
    margin: 0 auto 24px;
}

.search-container input {
    width: 100%;
    padding: 16px 130px 16px 48px;
    border-radius: var(--radius-full);
    background: var(--bg-glass-strong);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 15px;
    backdrop-filter: blur(10px);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-container input::placeholder { color: var(--text-muted); }

.search-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15), 0 0 30px rgba(249, 115, 22, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    display: flex;
    z-index: 2;
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.search-btn.ripple-container {
    position: absolute;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.search-sm { max-width: 480px; margin: 0 auto; }
.search-sm input { padding: 14px 20px 14px 44px; }

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: rgba(33, 15, 4, 0.98);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    max-height: 320px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.search-results.show { display: block; }

.search-result-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-glass-strong); }

.search-result-emoji { font-size: 20px; }
.search-result-name { font-weight: 500; font-size: 14px; }
.search-result-meta { font-size: 12px; color: var(--text-muted); }

/* ── Hero Links ────────────────────────────────────────────── */
.hero-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-link {
    color: var(--primary-light);
    font-weight: 500;
    font-size: 14px;
    transition: color var(--transition-fast);
    cursor: pointer;
}

.hero-link:hover { color: var(--accent-cyan); }
.dot-separator { color: var(--text-muted); }

/* ── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px 24px;
    flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-number {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.stat-plus {
    font-size: 28px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ── Sections ──────────────────────────────────────────────── */
.section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header-left { display: flex; flex-direction: column; gap: 8px; }

.section-header-center {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 500px;
    margin: 12px auto 0;
}

.see-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.see-all-link:hover { color: var(--accent-cyan); gap: 10px; }

/* ── University Cards ──────────────────────────────────────── */
.uni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
}

.uni-grid-full { padding-bottom: 60px; }

.uni-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(16px);
    transition: all var(--transition-smooth);
    overflow: hidden;
    cursor: pointer;
}

.uni-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--card-accent, linear-gradient(90deg, var(--primary), var(--accent-cyan)));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.uni-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.uni-card:hover::before { opacity: 1; }

.uni-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.uni-card-model {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border);
}

.uni-card-emoji {
    font-size: 28px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

.uni-card-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.uni-card-location {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.uni-card-location::before {
    content: '📍';
    font-size: 12px;
}

.uni-card-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.uni-card-strengths-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.uni-card-strengths {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.strength-tag {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.uni-card:hover .strength-tag {
    border-color: rgba(249, 115, 22, 0.2);
    background: rgba(249, 115, 22, 0.08);
    color: var(--primary-light);
}

.uni-card-faculties {
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.uni-card-faculties strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.uni-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.view-details-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.view-details-btn:hover { color: var(--accent-cyan); gap: 10px; }

.uni-card-type {
    font-size: 11px;
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
}

/* ── Major Chips ───────────────────────────────────────────── */
.major-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.major-chip {
    padding: 12px 22px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.major-chip:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.15);
}

.major-chip .chip-icon { font-size: 16px; }

.major-chip-arrow {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.major-chip-arrow:hover { color: var(--accent-cyan); }

/* ── Feature Cards (Why UniCompass) ────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: all var(--transition-smooth);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 10px rgba(249, 115, 22, 0.2));
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── CTA Section ───────────────────────────────────────────── */
.cta-section {
    position: relative;
    padding: 100px 24px;
    text-align: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.orb-cta-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -150px; left: -100px;
    animation: float-1 18s ease-in-out infinite;
    opacity: 0.2;
}

.orb-cta-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    bottom: -100px; right: -100px;
    animation: float-2 15s ease-in-out infinite;
    opacity: 0.15;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    transition: all var(--transition-base);
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.35);
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.45);
}

/* ── Page Hero Mini ────────────────────────────────────────── */
.page-hero-mini {
    position: relative;
    padding: 120px 24px 50px;
    text-align: center;
    overflow: hidden;
}

.orb-mini-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -150px; right: -100px;
    animation: float-1 20s ease-in-out infinite;
    opacity: 0.15;
}

.orb-mini-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    bottom: -100px; left: -50px;
    animation: float-2 16s ease-in-out infinite;
    opacity: 0.12;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 28px;
}

/* ── Filter Panel ──────────────────────────────────────────── */
.filter-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin-bottom: 32px;
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.filter-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan), var(--secondary));
    opacity: 0.6;
}

/* Search Row */
.filter-search-row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.search-filter {
    flex: 1;
    max-width: none;
    margin: 0;
}

.search-filter input {
    padding: 13px 20px 13px 44px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    font-size: 14px;
}

/* Sort */
.filter-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sort-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    cursor: default;
}

.sort-select {
    padding: 10px 32px 10px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239898B0' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.sort-select:hover { border-color: var(--primary); }

.sort-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.sort-select option {
    background: var(--bg-surface);
    color: var(--text-primary);
}

/* Filter Groups */
.filter-groups {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.filter-group-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-group-divider {
    width: 1px;
    height: 56px;
    background: var(--border);
    align-self: center;
    margin-top: 8px;
}

.filter-chip {
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    user-select: none;
    position: relative;
}

.fc-emoji { font-size: 14px; }

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(249, 115, 22, 0.06);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 12px rgba(249, 115, 22, 0.3);
}

.filter-chip.active .fc-emoji {
    filter: brightness(1.2);
}

/* Status Bar */
.filter-status-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    min-height: 28px;
}

.filter-results-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.results-number {
    font-weight: 800;
    color: var(--primary-light);
    font-size: 15px;
    display: inline-block;
    min-width: 14px;
    transition: transform 0.3s ease;
}

.results-number.bounce {
    animation: countBounce 0.4s ease;
}

@keyframes countBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-light);
    animation: tagIn 0.3s ease;
}

@keyframes tagIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.active-filter-tag .remove-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background var(--transition-fast);
    font-size: 10px;
    line-height: 1;
}

.active-filter-tag .remove-filter:hover {
    background: rgba(249, 115, 22, 0.3);
    color: var(--accent-coral);
}

.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: var(--accent-coral);
    font-size: 12px;
    font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.clear-filters-btn:hover {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.35);
    transform: translateY(-1px);
}

/* No Results Reset Button */
.no-results-reset {
    margin-top: 20px;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.no-results-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* Card exit/enter animation for filter transitions */
.uni-card.card-exit {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
    transition: all 0.25s ease;
}



/* ── Scroll Progress Bar ──────────────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan), var(--secondary), var(--accent-amber));
    background-size: 300% 100%;
    animation: gradient-shift 4s ease infinite;
    z-index: 1100;
    width: 0%;
    transition: width 0.1s linear;
}

/* ── Back To Top ──────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    cursor: pointer;
    border: none;
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.35);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 10px 35px rgba(249, 115, 22, 0.5);
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

/* ── News Section ─────────────────────────────────────────── */
.news-section {
    padding: 80px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.news-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.12);
}

.news-card-image {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.news-card-gradient {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
}

.news-card-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-body) 0%, transparent 60%);
}

/* Shimmer effect on news card image hover */
.news-card:hover .news-card-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: shimmer-sweep 0.8s ease forwards;
    z-index: 2;
}

@keyframes shimmer-sweep {
    to { left: 150%; }
}

.news-card-category {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    backdrop-filter: blur(8px);
}

.news-card-body {
    padding: 22px 24px;
}

.news-card-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-card-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
    transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
    color: var(--primary-light);
}

.news-card-excerpt {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

.news-card-uni {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border);
}

/* ── Price Range Slider ───────────────────────────────────── */
.price-range-container {
    padding: 4px 0;
}

.price-range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.price-range-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-light);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    min-width: 60px;
    text-align: center;
}

.price-range-slider {
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
}

.price-range-track {
    position: absolute;
    height: 6px;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    pointer-events: none;
}

.price-range-track-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
    border-radius: 3px;
    transition: left 0.1s, right 0.1s;
}

.price-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 36px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    outline: none;
    margin: 0;
    padding: 0;
}

.price-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
    border: 3px solid var(--bg-surface);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 2;
}

.price-range-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.6);
}

.price-range-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
    border: 3px solid var(--bg-surface);
}

.price-range-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
}

.price-range-slider input[type="range"]::-moz-range-track {
    height: 6px;
    background: transparent;
    border: none;
}

.price-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ── 3D Card Tilt ─────────────────────────────────────────── */
.uni-card {
    transform-style: preserve-3d;
    perspective: 800px;
}

.uni-card.tilt-active {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ── Card Shimmer Effect ──────────────────────────────────── */
.uni-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    pointer-events: none;
    transition: none;
    z-index: 1;
}

.uni-card:hover::after {
    animation: shimmer-sweep 0.7s ease forwards;
}

/* ── Bookmark Button ──────────────────────────────────────── */
.bookmark-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}

.bookmark-btn:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
    color: var(--accent-coral);
    transform: scale(1.15);
}

.bookmark-btn.bookmarked {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.3);
    color: #FF4D6A;
}

.bookmark-btn.bookmarked svg {
    fill: #FF4D6A;
}

.bookmark-btn.just-bookmarked {
    animation: heartPop 0.5s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

@keyframes heartPop {
    0% { transform: scale(1); }
    30% { transform: scale(1.4); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* ── Bookmarks Counter Badge ──────────────────────────────── */
.bookmarks-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-coral);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

.bookmarks-badge.visible {
    opacity: 1;
    transform: scale(1);
}

/* ── Ripple Effect ────────────────────────────────────────── */
.ripple-container {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0);
    animation: ripple-expand 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes ripple-expand {
    to { transform: scale(4); opacity: 0; }
}

/* ── Text Reveal Animation ────────────────────────────────── */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-reveal.revealed span {
    transform: translateY(0);
}

/* ── Floating Animation ───────────────────────────────────── */
.float-animation {
    animation: gentle-float 6s ease-in-out infinite;
}

@keyframes gentle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ── Glow Pulse ───────────────────────────────────────────── */
.glow-pulse {
    animation: glow-breathe 3s ease-in-out infinite;
}

@keyframes glow-breathe {
    0%, 100% { box-shadow: 0 0 20px rgba(249, 115, 22, 0.1); }
    50% { box-shadow: 0 0 40px rgba(249, 115, 22, 0.25); }
}

/* ── Enhanced Stats Bar ───────────────────────────────────── */
.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.08);
}

/* ── Animated Border Gradient ─────────────────────────────── */
.feature-card {
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius-lg) + 1px);
    padding: 1px;
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan), var(--secondary));
    background-size: 300% 300%;
    animation: gradient-shift 6s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 1;
}

/* ── Enhanced Hover on About Cards ────────────────────────── */
.about-card {
    position: relative;
    overflow: hidden;
}

.about-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.about-card:hover::after {
    opacity: 1;
}

/* ── Typewriter cursor ────────────────────────────────────── */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--primary-light);
    margin-left: 4px;
    animation: cursor-blink 0.8s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


/* ── Compare ───────────────────────────────────────────────── */
.compare-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}

.compare-uni-btn {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 2px solid var(--border);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.compare-uni-btn:hover {
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.05);
}

.compare-uni-btn.selected {
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.1);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.compare-uni-btn .check-indicator {
    width: 20px; height: 20px;
    border-radius: 6px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.compare-uni-btn.selected .check-indicator {
    background: var(--primary);
    border-color: var(--primary);
}

.compare-uni-btn.selected .check-indicator::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.compare-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.compare-empty-icon { font-size: 48px; margin-bottom: 16px; }
.compare-empty h3 { font-size: 20px; color: var(--text-secondary); margin-bottom: 8px; }

.compare-table-wrapper {
    overflow-x: auto;
    margin-bottom: 60px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    animation: fadeInUp 0.5s ease;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.compare-table th,
.compare-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: top;
}

.compare-table th {
    background: rgba(249, 115, 22, 0.06);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 15px;
    position: sticky;
    top: 0;
}

.compare-table th:first-child {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 160px;
}

.compare-table td:first-child {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compare-table tr:last-child td { border-bottom: none; }

.compare-table .compare-uni-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.compare-table .compare-uni-header .emoji { font-size: 22px; }

.compare-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.compare-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

/* ── Majors Grid ───────────────────────────────────────────── */
.majors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    padding-bottom: 60px;
}

.major-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.major-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.major-card-header {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.major-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.major-card-icon { font-size: 24px; }

.major-card-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
}

.major-card-count {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary-light);
    font-weight: 600;
}

.major-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.major-card.expanded .major-card-body { max-height: 600px; }

.major-card-body-inner {
    padding: 0 24px 22px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.major-uni-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.major-uni-item:last-child { border-bottom: none; }

.major-uni-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.major-uni-emoji { font-size: 18px; }
.major-uni-name { font-size: 14px; font-weight: 500; }
.major-uni-meta { font-size: 12px; color: var(--text-muted); }

.major-card-toggle {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    font-size: 14px;
    color: var(--text-muted);
}

.major-card.expanded .major-card-toggle {
    transform: rotate(180deg);
    background: rgba(249, 115, 22, 0.15);
    color: var(--primary-light);
}

/* ── About ─────────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(12px);
    transition: all var(--transition-smooth);
}

.about-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.about-card-icon { font-size: 36px; margin-bottom: 18px; }

.about-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-mission {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.06), rgba(255, 183, 77, 0.04));
}

.about-disclaimer {
    background: rgba(251, 191, 36, 0.04);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.disclaimer-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }

.about-disclaimer h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-amber);
    margin-bottom: 6px;
}

.about-disclaimer p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
    background: rgba(10, 4, 1, 0.95);
    border-top: 1px solid var(--border);
    padding-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand { max-width: 360px; }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-links-group h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-links-group a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    padding: 6px 0;
    transition: color var(--transition-fast);
    cursor: pointer;
}

.footer-links-group a:hover { color: var(--primary-light); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: var(--bg-glass-strong);
    color: var(--text-primary);
}

.modal-content { padding: 40px; }

.modal-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.modal-emoji { font-size: 40px; margin-bottom: 12px; }

.modal-name {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.modal-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border);
}

.modal-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.modal-strengths {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-strength-tag {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 500;
}

.modal-faculties-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-faculty-item {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-faculty-item::before {
    content: '📚';
    font-size: 14px;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.modal-info-item {
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    text-align: center;
}

.modal-info-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 4px;
}

.modal-info-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── No Results ────────────────────────────────────────────── */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon { font-size: 48px; margin-bottom: 16px; }
.no-results h3 { font-size: 20px; color: var(--text-secondary); margin-bottom: 8px; }
.no-results p { color: var(--text-muted); }

/* ── Tab Panels ────────────────────────────────────────────── */
.tab-panel {
    display: none;
    min-height: 100vh;
}

.tab-panel.active {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Animations ─────────────────────────────────────── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.uni-card, .major-card, .about-card, .feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.uni-card.animate-in, .major-card.animate-in, .about-card.animate-in, .feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ── Match Finder Quiz ─────────────────────────────────────── */
.match-finder-section {
    padding: 60px 0;
}

.match-finder-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.match-finder-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--primary), var(--accent-coral));
}

.match-finder-header {
    text-align: center;
    margin-bottom: 32px;
}

.match-finder-header h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    margin: 12px 0 8px;
    letter-spacing: -0.5px;
}

.match-finder-body {
    min-height: 240px;
    position: relative;
}

.match-step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.match-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.step-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

.match-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.match-option-btn {
    padding: 18px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}

.match-option-btn:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.15);
}

.match-option-btn.selected {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.match-back-btn, .match-reset-btn {
    padding: 10px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.match-back-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.match-reset-btn {
    display: block;
    margin: 24px auto 0;
    background: var(--bg-glass);
    border-color: var(--primary-dark);
    color: var(--primary-light);
}

.match-reset-btn:hover {
    background: rgba(249, 115, 22, 0.1);
    transform: scale(1.05);
}

.match-results-list {
    display: grid;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.match-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border);
    padding: 18px 24px;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    cursor: pointer;
}

.match-result-item:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.match-result-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.match-result-emoji {
    font-size: 28px;
}

.match-result-details h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
}

.match-result-details p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.match-score-badge {
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #34D399;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Floating Compare Drawer ───────────────────────────────── */
.compare-drawer {
    position: fixed;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 680px;
    background: rgba(33, 15, 4, 0.9);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--radius-xl);
    padding: 16px 24px;
    z-index: 1000;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(249, 115, 22, 0.1);
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.compare-drawer.show {
    bottom: 24px;
}

.compare-drawer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.compare-drawer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.compare-drawer-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-light);
    white-space: nowrap;
}

.compare-drawer-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.compare-drawer-icon-bubble {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    position: relative;
    animation: bubblePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bubblePop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.compare-drawer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.compare-drawer-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.compare-drawer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45);
}

.compare-drawer-clear {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.compare-drawer-clear:hover {
    color: var(--accent-coral);
}

/* ── Card Compare Button ──────────────────────────────────── */
.card-compare-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}

.card-compare-btn:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
    color: var(--primary-light);
    transform: scale(1.15);
}

.card-compare-btn.selected {
    background: rgba(249, 115, 22, 0.15);
    border-color: var(--primary);
    color: var(--primary-light);
}

/* ── Visual City Explorer ───────────────────────────────────── */
.city-explorer-section {
    padding: 60px 0;
}

.city-explorer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.city-card {
    position: relative;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.city-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.2);
}

.city-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.city-card:hover .city-card-bg {
    transform: scale(1.08);
}

.city-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 4, 1, 0.95) 0%, rgba(10, 4, 1, 0.4) 50%, transparent 100%);
    transition: opacity 0.4s ease;
}

.city-card:hover .city-card-overlay {
    background: linear-gradient(to top, rgba(10, 4, 1, 0.98) 0%, rgba(249, 115, 22, 0.4) 50%, transparent 100%);
}

.city-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.city-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.city-card:hover .city-card-icon {
    transform: translateY(-8px) scale(1.1);
}

.city-card h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.city-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 85%;
}

.city-card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    transform: translateY(10px);
    opacity: 0;
}

.city-card:hover .city-card-action {
    transform: translateY(0);
    opacity: 1;
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Shimmer on City Explorer */
.city-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    z-index: 3;
    pointer-events: none;
}

.city-card:hover::before {
    animation: shimmer-sweep 0.8s ease forwards;
}

/* ── Interactive Tuition Calculator ───────────────────────── */
.calc-cost-btn {
    background: rgba(255, 183, 77, 0.1);
    border: 1px solid rgba(255, 183, 77, 0.3);
    color: var(--accent-cyan);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-cost-btn:hover {
    background: var(--accent-cyan);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 183, 77, 0.3);
}

.calc-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.calc-header h2 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--primary-light);
    margin-bottom: 6px;
}

.calc-section {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
}

.calc-sliders {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.calc-slider-group label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

.calc-slider-group span {
    color: var(--primary-light);
}

.calc-slider-group input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
}

.calc-slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
    border: 3px solid var(--bg-surface);
    transition: transform 0.2s ease;
}

.calc-slider-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-total-box {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(255, 183, 77, 0.1));
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.calc-total-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer-sweep 3s ease-in-out infinite;
}

.calc-total-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calc-total-value {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-light);
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.kanban-column {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    min-height: 500px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.kanban-column.drag-over {
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.05);
}

.kanban-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.kanban-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-count {
    background: var(--bg-glass);
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

.kanban-cards-container {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

/* Kanban Card */
.kanban-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: grab;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Glassy shine effect on hover */
.kanban-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    z-index: 1;
    pointer-events: none;
}

.kanban-card:hover::after {
    animation: shimmer-sweep 0.7s ease forwards;
}

.kanban-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kanban-card-emoji {
    font-size: 24px;
    width: 40px;
    height: 40px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.kanban-card-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.kanban-card-city {
    font-size: 12px;
    color: var(--text-muted);
}

.kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.kanban-card-tuition {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-cyan);
}

.kanban-card-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kanban-card-btn:hover {
    color: var(--accent-coral);
    background: rgba(249, 115, 22, 0.1);
}

.kanban-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    margin-top: 10px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .news-grid { grid-template-columns: 1fr; }
    .city-explorer-grid { grid-template-columns: 1fr; }
    .kanban-board { grid-template-columns: 1fr; }
    .price-range-container { margin-top: 8px; }
    .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
    .navbar { padding: 0 20px; }

    .nav-links {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(10, 4, 1, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        z-index: 999;
        display: none;
    }

    .nav-links.open { display: flex; }

    .nav-link { font-size: 20px; padding: 12px 24px; }

    .nav-indicator { display: none; }

    .nav-mobile-toggle { display: flex; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .uni-grid { grid-template-columns: 1fr; }
    .majors-grid { grid-template-columns: 1fr; }

    .modal-info-grid { grid-template-columns: 1fr; }

    .stats-bar { gap: 20px; }
    .stat-divider { display: none; }
    .stat-number { font-size: 32px; }

    .compare-selector { grid-template-columns: repeat(2, 1fr); }

    .filter-search-row { flex-direction: column; }
    .filter-sort { width: 100%; justify-content: flex-end; }
    .filter-groups { gap: 16px; }
    .filter-group-divider { display: none; }
    .filter-panel { padding: 20px; border-radius: var(--radius-lg); }
    .filter-status-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 600px) {
    .news-card-image { height: 140px; }
    .hero-title { letter-spacing: -1px; }
    .search-container input { padding-right: 110px; }
    .search-btn { padding: 8px 16px; font-size: 13px; }
    .compare-selector { grid-template-columns: 1fr; }
    .hero { padding: 100px 16px 40px; }
    .section { padding: 50px 0; }
    .page-hero-mini { padding: 100px 16px 30px; }
    .modal-content { padding: 28px 20px; }
    .filter-panel { padding: 16px; }
    .filter-group-chips { gap: 4px; }
    .filter-chip { padding: 6px 10px; font-size: 12px; }
    .sort-select { width: 100%; }
}
/* ── RTL (Right-to-Left) Support ───────────────────────────── */
[dir="rtl"] {
    font-family: 'Tajawal', 'Inter', system-ui, sans-serif;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] .logo-text, [dir="rtl"] .nav-link {
    font-family: 'Tajawal', 'Outfit', sans-serif;
}

[dir="rtl"] .lang-toggle {
    margin-left: 0;
    margin-right: 16px;
}

[dir="rtl"] .hero-tags {
    margin-right: auto;
    margin-left: unset;
}

[dir="rtl"] .hero-tags span {
    transform-origin: right center;
}

[dir="rtl"] .search-icon {
    left: auto;
    right: 18px;
}

[dir="rtl"] .search-bar input {
    padding-left: 20px;
    padding-right: 50px;
}

[dir="rtl"] .search-shortcut {
    right: auto;
    left: 12px;
}

[dir="rtl"] .uni-card-location svg {
    margin-right: 0;
    margin-left: 6px;
}

[dir="rtl"] .uni-card-stats {
    flex-direction: row;
}

[dir="rtl"] .stat-item {
    border-right: none;
    border-left: 1px solid var(--border);
}
[dir="rtl"] .stat-item:last-child {
    border-left: none;
}

[dir="rtl"] .modal-close {
    right: auto;
    left: 16px;
}

[dir="rtl"] .accordion-btn svg {
    transform: rotate(180deg);
}

[dir="rtl"] .accordion-item.active .accordion-btn svg {
    transform: rotate(90deg);
}

[dir="rtl"] .kanban-card-emoji {
    margin-right: 0;
    margin-left: 12px;
}

[dir="rtl"] .nav-indicator {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="rtl"] .compare-drawer-left {
    margin-right: 0;
    margin-left: auto;
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: 32px;
}
@media (max-width: 900px) {
    [dir="rtl"] .back-to-top {
        right: auto;
        left: 20px;
    }
}

/* -- Typographic Logo --------------------------------------- */
.logo-1 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}
.logo-1 .uni {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
    position: relative;
}
.logo-1 .svg-i {
    z-index: 2;
    position: relative;
    margin: 0 4px;
    transform: translateY(-1px);
}
.logo-1 .compass-container {
    display: flex;
    align-items: center;
    margin-left: -12px;
    z-index: 1;
    position: relative;
}
.logo-1 .compass {
    color: var(--text-primary);
    font-size: 21px;
}
.logo-1 .svg-o {
    margin: 0 1px;
}

/* Footer specific overrides */
.footer-logo .logo-1 {
    font-size: 32px;
}
.footer-logo .logo-1 .compass {
    font-size: 24px;
}
.footer-logo .logo-1 .compass-container {
    margin-left: -14px;
}


/* -- RTL Search Bar Fix ------------------------------------- */
[dir="rtl"] .search-container input {
    padding: 16px 48px 16px 130px;
    text-align: right;
}

[dir="rtl"] .search-container .search-icon {
    left: auto;
    right: 16px;
}

[dir="rtl"] .search-container .search-btn {
    right: auto;
    left: 6px;
}

[dir="rtl"] .search-filter input {
    padding: 13px 44px 13px 20px;
    text-align: right;
}

[dir="rtl"] .search-filter .search-icon {
    left: auto;
    right: 16px;
}

/* -- Relaxing Animations ------------------------------------ */
@keyframes gentle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes soft-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes warm-breathe {
    0%, 100% { box-shadow: 0 0 20px rgba(249, 115, 22, 0.08); }
    50% { box-shadow: 0 0 40px rgba(249, 115, 22, 0.18); }
}

@keyframes ember-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

@keyframes slow-drift {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(6px) translateY(-4px); }
    50% { transform: translateX(0) translateY(-8px); }
    75% { transform: translateX(-6px) translateY(-4px); }
    100% { transform: translateX(0) translateY(0); }
}

/* Apply relaxing animations to key elements */
.feature-card:hover {
    animation: warm-breathe 3s ease-in-out infinite;
}

.hero-section .hero-badge {
    animation: gentle-float 4s ease-in-out infinite;
}

.logo-image img {
    animation: ember-glow 4s ease-in-out infinite;
    transition: transform 0.4s ease;
}

.logo-image img:hover {
    transform: scale(1.08);
}

.uni-card:hover {
    animation: warm-breathe 3s ease-in-out infinite;
}

.news-card:hover .news-emoji {
    animation: gentle-float 2.5s ease-in-out infinite;
}

.back-to-top {
    animation: soft-pulse 3s ease-in-out infinite;
}

/* Smooth section title underlines */
.section-label::after {
    animation: ember-glow 3s ease-in-out infinite;
}


/* -- Roadmaps Tab -------------------------------------------- */
.roadmap-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.roadmap-select-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.roadmap-select-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.roadmap-select-card:hover::before { opacity: 1; }

.roadmap-select-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.15);
    background: var(--bg-card-hover);
}

.roadmap-select-icon {
    font-size: 48px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 10px rgba(249, 115, 22, 0.3));
}

.roadmap-select-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.roadmap-canvas-wrapper {
    margin-top: 20px;
}

.back-to-roadmaps-btn {
    margin-bottom: 40px;
    padding: 10px 20px;
    font-size: 14px;
}

.roadmap-header {
    text-align: center;
    margin-bottom: 60px;
}

.roadmap-tree-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px 0;
}

.roadmap-spine {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-50%);
    border-radius: 4px;
    overflow: hidden;
}

.roadmap-spine-glow {
    position: absolute;
    top: -150px;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    animation: spine-flow 3s infinite linear;
}

@keyframes spine-flow {
    0% { top: -150px; }
    100% { top: 100%; }
}

.roadmap-level {
    position: relative;
    width: 100%;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.roadmap-level.visible {
    opacity: 1;
    transform: translateY(0);
}

.roadmap-nodes-group {
    width: calc(50% - 40px);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
}

/* Left alignment puts group on left */
.roadmap-level.align-left .roadmap-nodes-group {
    margin-right: auto;
    justify-content: flex-end;
}

/* Right alignment puts group on right */
.roadmap-level.align-right .roadmap-nodes-group {
    margin-left: auto;
    justify-content: flex-start;
}

.roadmap-node {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all var(--transition-base);
    min-width: 180px;
    text-align: center;
    position: relative;
    flex: 1;
}

.roadmap-node:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.15);
    transform: translateY(-4px);
}

.roadmap-node-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Node Status Indicators */
.roadmap-node.status-done {
    border-color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.05);
}
.roadmap-node.status-done::before {
    content: "✓";
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-emerald);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.roadmap-node.status-in-progress {
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.05);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.15);
}
.roadmap-node.status-in-progress::before {
    content: "";
    position: absolute;
    top: -6px;
    right: -6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    animation: ember-pulse 2s infinite;
}

.roadmap-node.status-skipped {
    opacity: 0.6;
    border-style: dashed;
}

.roadmap-node.status-pending {
    opacity: 0.8;
}

@keyframes ember-pulse {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(249, 115, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

/* Connector line from central spine */
.roadmap-level::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: var(--border);
    z-index: 1;
}
.roadmap-level.align-left::after {
    left: 50%;
    transform: translateX(-40px);
}
.roadmap-level.align-right::after {
    left: 50%;
}

.roadmap-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--bg-surface);
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
}

/* ── Roadmap Drawer ───────────────────────────────────────── */
.roadmap-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 450px;
    max-width: 100vw;
    height: 100vh;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    overflow-y: auto;
}

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

.roadmap-drawer-content {
    padding: 30px;
}

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

.drawer-header h3 {
    font-size: 24px;
    color: var(--primary-light);
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-base);
}

.drawer-close:hover {
    color: var(--accent-coral);
}

.drawer-status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.status-select {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
    flex: 1;
}

.drawer-body {
    color: var(--text-secondary);
    line-height: 1.7;
}

.drawer-body h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    margin-top: 24px;
}

.drawer-body a {
    color: var(--accent-cyan);
    text-decoration: none;
}
.drawer-body a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .roadmap-spine { left: 30px; }
    .roadmap-level.align-left .roadmap-nodes-group,
    .roadmap-level.align-right .roadmap-nodes-group {
        width: calc(100% - 70px);
        margin-left: 70px;
        justify-content: flex-start;
    }
    .roadmap-level::after {
        width: 30px !important;
        left: 40px !important;
        transform: none !important;
    }
    .roadmap-marker {
        left: 30px;
    }
}

