/* ===== ROOT VARIABLES - GOLD, WHITE & BLUE THEME ===== */
:root {
    /* Primary Gold/Yellow Shades */
    --gold-900: #78350f;
    --gold-800: #92400e;
    --gold-700: #b45309;
    --gold-600: #d97706;
    --gold-500: #f59e0b;
    --gold-400: #fbbf24;
    --gold-300: #fcd34d;
    --gold-200: #fde68a;
    --gold-100: #fef3c7;
    --gold-50: #fffbeb;
    
    /* Primary Blue Shades (now Black/Gray) */
    --blue-900: #000000;
    --blue-800: #0a0a0a;
    --blue-700: #1a1a1a;
    --blue-600: #262626;
    --blue-500: #404040;
    --blue-400: #525252;
    --blue-300: #737373;
    --blue-200: #a3a3a3;
    --blue-100: #d4d4d4;
    --blue-50: #e5e5e5;
    
    /* Accent Colors */
    --gold: #ffd700;
    --gold-light: #ffed4e;
    --gold-dark: #c9a000;
    --amber: #f59e0b;
    --navy: #000000;
    --sky-blue: #ffd700;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    /* Status Colors */
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #ffd700;
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #fbbf24 100%);
    --gradient-blue: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #262626 100%);
    --gradient-white: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    --gradient-gold-blue: linear-gradient(135deg, #ffd700 0%, #000000 100%);
    --gradient-hero: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #262626 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 10px 40px rgba(255, 215, 0, 0.4);
    --shadow-gold-sm: 0 4px 15px rgba(255, 215, 0, 0.3);
    --shadow-blue: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-blue-sm: 0 4px 15px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--gradient-hero);
    padding: 100px 20px 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 237, 78, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

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

.header-decoration {
    position: absolute;
    top: 20px;
    right: 5%;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 215, 0, 0.15);
    border-radius: 50%;
    animation: pulse-ring 4s ease-in-out infinite;
}

.header-decoration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
}

.header-decoration::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

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

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: var(--shadow-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.header-badge i {
    font-size: 16px;
}

.page-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.page-header h1 span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.page-header p {
    font-size: 18px;
    color: var(--blue-200);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--blue-300);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.breadcrumb span {
    color: var(--gold-300);
    font-weight: 600;
}

.breadcrumb i.fa-chevron-right {
    color: var(--blue-400);
    font-size: 10px;
}

/* Stats Row */
.header-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: rgba(59, 130, 246, 0.3);
}

.stat-item:last-child::after {
    display: none;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 215, 0, 0.15);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.stat-icon i {
    font-size: 20px;
    color: var(--gold-300);
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.stat-label {
    font-size: 14px;
    color: var(--blue-200);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== MAIN SECTION ===== */
.universities-section {
    padding: 60px 20px 80px;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.universities-container {
    max-width: 1400px;
    margin: 0 auto;
}

.universities-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px;
    align-items: start;
}

/* ===== SIDEBAR ===== */
.filters-sidebar {
    position: sticky;
    top: 100px;
}

.filter-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.filter-header {
    background: var(--gradient-hero);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
}

.filter-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 100% 0%, rgba(255, 215, 0, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.filter-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.filter-header h3 .icon-box {
    width: 44px;
    height: 44px;
    background: var(--gradient-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold-sm);
}

.filter-header h3 .icon-box i {
    font-size: 18px;
    color: var(--navy);
}

.filter-body {
    padding: 28px 24px;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group:last-of-type {
    margin-bottom: 0;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.filter-group label i {
    width: 32px;
    height: 32px;
    background: var(--gold-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-600);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 16px 18px;
    font-size: 15px;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition);
}

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

.form-control:focus {
    background: var(--white);
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 48px;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 2px dashed var(--gray-200);
}

.btn-apply {
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: var(--navy);
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-gold-sm);
}

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

.btn-clear {
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: var(--blue-600);
    background: var(--blue-50);
    border: 2px solid var(--blue-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-clear:hover {
    background: var(--blue-600);
    border-color: var(--blue-600);
    color: var(--white);
    box-shadow: var(--shadow-blue-sm);
}

/* Quick Filters */
.quick-filters {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 2px dashed var(--gray-200);
}

.quick-filters h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-filters h4 i {
    color: var(--gold-500);
    font-size: 16px;
}

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-tag {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition);
}

.quick-tag:hover,
.quick-tag.active {
    background: var(--blue-600);
    color: var(--gold-300);
    border-color: var(--blue-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue-sm);
}

/* Help Card */
.help-card {
    margin-top: 24px;
    background: linear-gradient(135deg, var(--gold-50) 0%, var(--gold-100) 100%);
    border: 2px solid var(--gold-200);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.help-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-card h4 i {
    color: var(--gold-600);
}

.help-card p {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.6;
}

.help-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-600);
    text-decoration: none;
    transition: var(--transition);
}

.help-link:hover {
    color: var(--blue-700);
}

.help-link:hover i {
    transform: translateX(4px);
}

.help-link i {
    transition: var(--transition);
}

/* ===== MAIN CONTENT ===== */
.universities-main {
    min-height: 500px;
}

/* Results Header */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 24px 28px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-200);
}

.results-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.results-count {
    display: flex;
    align-items: center;
    gap: 12px;
}

.results-count h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
}

.results-badge {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 800;
    color: var(--navy);
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-gold-sm);
}

.results-showing {
    font-size: 14px;
    color: var(--gray-500);
    padding-left: 20px;
    border-left: 2px solid var(--gray-200);
}

.results-showing strong {
    color: var(--gray-800);
}

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

.results-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.results-sort label {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

.sort-select {
    padding: 12px 40px 12px 16px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: var(--transition);
}

.sort-select:focus {
    border-color: var(--blue-500);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.view-toggle {
    display: flex;
    gap: 8px;
    padding-left: 20px;
    border-left: 2px solid var(--gray-200);
}

.view-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.view-btn.active,
.view-btn:hover {
    background: var(--blue-600);
    border-color: var(--blue-600);
    color: var(--gold-300);
    box-shadow: var(--shadow-blue-sm);
}

/* ===== UNIVERSITY CARDS GRID ===== */
.universities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.universities-grid.list-view {
    grid-template-columns: 1fr;
}

/* University Card */
.university-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid var(--gray-200);
    position: relative;
}

.university-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.university-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(59, 130, 246, 0.15);
    border-color: var(--blue-400);
}

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

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy);
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-gold-sm);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-badge i {
    font-size: 10px;
}

/* Card Header */
.card-header {
    background: var(--gradient-hero);
    padding: 36px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 100%, rgba(255, 215, 0, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.university-logo {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 1;
    border: 4px solid var(--gold-400);
    overflow: hidden;
}

.university-logo img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.university-logo i {
    font-size: 40px;
    color: var(--blue-600);
}

/* Card Body */
.card-body {
    padding: 28px;
}

.university-name {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.university-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 14px;
    padding: 8px 14px;
    background: var(--blue-50);
    border-radius: var(--radius-full);
    border: 1px solid var(--blue-100);
}

.university-location i {
    color: var(--blue-600);
    font-size: 14px;
}

/* Rating */
.university-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    color: var(--gold-400);
    font-size: 14px;
}

.rating-stars i.empty {
    color: var(--gray-300);
}

.rating-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
}

.rating-count {
    font-size: 13px;
    color: var(--gray-400);
}

.university-description {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* University Stats */
.university-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 0;
    margin-bottom: 20px;
    border-top: 2px dashed var(--gray-200);
    border-bottom: 2px dashed var(--gray-200);
}

.uni-stat {
    text-align: center;
    position: relative;
}

.uni-stat::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: var(--gray-200);
}

.uni-stat:last-child::after {
    display: none;
}

.uni-stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 800;
    background: var(--gradient-gold-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.uni-stat-label {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    font-weight: 600;
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 12px;
}

.btn-view {
    flex: 1;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    color: var(--navy);
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-gold-sm);
}

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

.btn-view i {
    transition: var(--transition);
}

.btn-view:hover i {
    transform: translateX(5px);
}

.btn-bookmark {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-50);
    border: 2px solid var(--blue-200);
    border-radius: var(--radius-md);
    color: var(--blue-400);
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}

.btn-bookmark:hover,
.btn-bookmark.active {
    background: var(--blue-600);
    border-color: var(--blue-600);
    color: var(--gold-300);
    box-shadow: var(--shadow-blue-sm);
}

/* ===== NO RESULTS ===== */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 40px;
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    border: 2px dashed var(--gray-300);
}

.no-results-icon {
    width: 140px;
    height: 140px;
    background: var(--gradient-hero);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    position: relative;
}

.no-results-icon::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 3px dashed var(--gold-400);
    border-radius: 50%;
    animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
    to { transform: rotate(360deg); }
}

.no-results-icon i {
    font-size: 56px;
    color: var(--gold-300);
}

.no-results h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.no-results p {
    font-size: 16px;
    color: var(--gray-500);
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.no-results .btn-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    background: var(--gradient-gold);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-gold-sm);
}

.no-results .btn-clear-filters:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

/* ===== PAGINATION ===== */
.pagination-wrapper {
    margin-top: 50px;
}

.pagination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-200);
    flex-wrap: wrap;
    gap: 20px;
}

.pagination-info {
    font-size: 14px;
    color: var(--gray-500);
}

.pagination-info strong {
    color: var(--gray-800);
    font-weight: 700;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    min-width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.page-btn:hover:not(.disabled):not(.active) {
    background: var(--blue-600);
    border-color: var(--blue-600);
    color: var(--gold-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue-sm);
}

.page-btn.active {
    background: var(--gradient-gold);
    border-color: var(--gold-400);
    color: var(--navy);
    font-weight: 800;
    box-shadow: var(--shadow-gold-sm);
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.page-btn.nav-btn {
    padding: 0 16px;
    gap: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-btn.nav-btn i {
    font-size: 12px;
}

.page-dots {
    padding: 0 8px;
    color: var(--gray-400);
    font-weight: 600;
    font-size: 16px;
}

/* Per Page Selector */
.per-page-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.per-page-selector label {
    font-size: 14px;
    color: var(--gray-500);
}

.per-page-selector select {
    padding: 10px 36px 10px 14px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: var(--transition);
}

.per-page-selector select:focus {
    border-color: var(--blue-500);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ===== MOBILE FILTER TOGGLE ===== */
.mobile-filter-toggle {
    display: none;
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: var(--navy);
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    z-index: 100;
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-filter-toggle i {
    margin-right: 10px;
}

.mobile-filter-toggle:hover {
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
}

/* Mobile Filter Overlay */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    transition: var(--transition);
}

.filter-overlay.active {
    display: block;
    opacity: 1;
}

/* Close Button for Mobile */
.filter-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    color: var(--gold-300);
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.filter-close:hover {
    background: var(--gold-400);
    color: var(--navy);
    box-shadow: var(--shadow-gold-sm);
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 1200px) {
    .universities-layout {
        grid-template-columns: 300px 1fr;
        gap: 32px;
    }

    .universities-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
    }

    .header-stats {
        gap: 40px;
    }

    .stat-number {
        font-size: 30px;
    }

    .page-header h1 {
        font-size: 46px;
    }

    .header-decoration {
        width: 250px;
        height: 250px;
    }

    .results-showing {
        display: none;
    }
}

@media screen and (max-width: 992px) {
    .universities-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 380px;
        height: 100%;
        z-index: 1000;
        transform: translateX(-100%);
        transition: var(--transition);
        overflow-y: auto;
    }

    .filters-sidebar.active {
        transform: translateX(0);
    }

    .filter-card {
        border-radius: 0;
        min-height: 100vh;
    }

    .filter-close {
        display: flex;
    }

    .mobile-filter-toggle {
        display: flex;
        align-items: center;
    }

    .page-header {
        padding: 80px 20px 60px;
    }

    .page-header h1 {
        font-size: 38px;
    }

    .header-decoration {
        display: none;
    }

    .header-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .stat-item {
        flex: 0 0 calc(50% - 12px);
    }

    .stat-item::after {
        display: none;
    }

    .stat-number {
        font-size: 28px;
    }

    .results-header {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .results-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .results-actions {
        justify-content: space-between;
    }

    .pagination-container {
        flex-direction: column;
        gap: 16px;
    }

    .pagination-info {
        order: 2;
    }

    .per-page-selector {
        order: 3;
    }
}

@media screen and (max-width: 768px) {
    .page-header {
        padding: 70px 16px 50px;
    }

    .header-badge {
        padding: 10px 18px;
        font-size: 12px;
    }

    .page-header h1 {
        font-size: 30px;
    }

    .page-header p {
        font-size: 15px;
    }

    .header-stats {
        margin-top: 36px;
        padding-top: 30px;
        gap: 20px;
    }

    .stat-icon {
        width: 42px;
        height: 42px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    .universities-section {
        padding: 40px 16px 100px;
    }

    .universities-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .results-header {
        padding: 20px;
    }

    .results-count h2 {
        font-size: 18px;
    }

    .results-actions {
        flex-wrap: wrap;
        gap: 12px;
    }

    .results-sort {
        flex: 1;
    }

    .sort-select {
        width: 100%;
    }

    .view-toggle {
        padding-left: 0;
        border-left: none;
    }

    .university-card {
        border-radius: var(--radius-xl);
    }

    .card-header {
        padding: 30px 24px;
    }

    .university-logo {
        width: 85px;
        height: 85px;
    }

    .university-logo i {
        font-size: 34px;
    }

    .card-body {
        padding: 24px;
    }

    .university-name {
        font-size: 18px;
    }

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

    .btn-bookmark {
        width: 100%;
        height: 48px;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-btn.nav-btn span {
        display: none;
    }

    .page-btn.nav-btn {
        min-width: 46px;
        padding: 0;
    }
}

@media screen and (max-width: 480px) {
    .page-header {
        padding: 60px 12px 40px;
    }

    .header-badge {
        padding: 8px 14px;
        font-size: 11px;
    }

    .page-header h1 {
        font-size: 26px;
    }

    .page-header p {
        font-size: 14px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .stat-item {
        flex: 0 0 100%;
    }

    .universities-section {
        padding: 30px 12px 90px;
    }

    .results-header {
        padding: 16px;
    }

    .card-header {
        padding: 24px 20px;
    }

    .card-body {
        padding: 20px;
    }

    .university-name {
        font-size: 17px;
    }

    .university-stats {
        gap: 8px;
    }

    .uni-stat-value {
        font-size: 16px;
    }

    .btn-view {
        padding: 12px 16px;
        font-size: 13px;
    }

    .mobile-filter-toggle {
        padding: 14px 26px;
        font-size: 13px;
        bottom: 20px;
    }

    .pagination-container {
        padding: 16px;
    }

    .page-btn {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .no-results {
        padding: 60px 20px;
    }

    .no-results-icon {
        width: 110px;
        height: 110px;
    }

    .no-results-icon i {
        font-size: 44px;
    }

    .no-results h3 {
        font-size: 22px;
    }

    .no-results p {
        font-size: 14px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.university-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.university-card:nth-child(1) { animation-delay: 0.05s; }
.university-card:nth-child(2) { animation-delay: 0.1s; }
.university-card:nth-child(3) { animation-delay: 0.15s; }
.university-card:nth-child(4) { animation-delay: 0.2s; }
.university-card:nth-child(5) { animation-delay: 0.25s; }
.university-card:nth-child(6) { animation-delay: 0.3s; }

.university-card:hover .university-logo {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), 0 0 50px rgba(59, 130, 246, 0.2);
}

html {
    scroll-behavior: smooth;
}