     :root {
            --primary: darkcyan;
            --primary-dark: #140342;
            --secondary: green;
            --dark: #140342;
            --light: #f8fafc;
            --gray: #64748b;
            --success: #10b981;
            --danger: #ef4444;
            --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
            --card-hover-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        }

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

        body {
            font-family: 'Inter', sans-serif;
            color: var(--dark);
            background-color: #f8fafc;
            line-height: 1.6;
        }

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

        /* Header */
        header {
            background-color: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            position: sticky;
            top: 0;
            z-index: 100;
            padding: 0 20px;
        }
        
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
        }
        
        .logo {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary);
            display: flex;
            align-items: center;
        }
        
        .logo span {
            color: var(--secondary);
        }
        
        .nav-links {
            display: flex;
            gap: 25px;
        }
        
        .nav-links a {
            text-decoration: none;
            color: var(--dark);
            font-weight: 500;
            transition: color 0.3s;
            font-size: 15px;
            padding: 5px 0;
        }
        
        .nav-links a:hover {
            color: var(--primary);
        }
        
        .auth-buttons {
            display: flex;
            gap: 15px;
        }
        
        .btn {
            padding: 10px 20px;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
            font-size: 14px;
        }
        
        .btn-outline {
            background: transparent;
            border: 1px solid var(--primary);
            color: var(--primary);
        }
        
        .btn-outline:hover {
            background: var(--primary);
            color: white;
        }
        
        .btn-primary {
            background: var(--primary);
            color: var(--light);
        }
        
        .btn-primary:hover {
            background: teal;
        }
        
        .btn-secondary {
            background: white;
            color: var(--dark);
            border:1px solid lightgrey;
        }
        
        .btn-secondary:hover {
            background:var(--primary);
            color: white;
        }
        
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--dark);
            padding: 5px;
        }

        /* University Listing Page */
        .university-listing {
            padding: 40px 0;
        }

        .listing-container {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        @media (min-width: 992px) {
            .listing-container {
                flex-direction: row;
            }
        }

        .filters-section {
            width: 100%;
        }

        @media (min-width: 992px) {
            .filters-section {
                width: 300px;
                flex-shrink: 0;
            }
        }

        .results-section {
            flex-grow: 1;
        }

        .filter-card {
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            padding: 20px;
            margin-bottom: 20px;
        }

        .filter-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 20px;
            color: var(--primary-dark);
            padding-bottom: 10px;
            border-bottom: 1px solid #f1f5f9;
        }

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

        .filter-group-title {
            font-weight: 600;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            cursor: pointer;
            padding: 5px 0;
        }

        .filter-options {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .filter-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 5px 0;
        }

        .filter-option input {
            accent-color: var(--primary);
        }

        .filter-option label {
            font-size: 14px;
            cursor: pointer;
        }

        .filter-count {
            color: var(--gray);
            font-size: 12px;
        }

        .filter-actions {
            display: flex;
            gap: 12px;
            margin-top: 20px;
        }

        .filter-actions .btn {
            flex: 1;
        }

        .results-header {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-bottom: 25px;
        }

        @media (min-width: 576px) {
            .results-header {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }
        }

        .results-title {
            font-size: 24px;
            font-weight: 700;
            margin: 0;
        }

        @media (min-width: 768px) {
            .results-title {
                font-size: 28px;
            }
        }

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

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

        .sort-select {
            padding: 10px 15px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 14px;
            min-width: 180px;
        }

        /* University Cards */
        .universities-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 25px;
            margin-top: 25px;
        }

        .university-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: transform 0.3s, box-shadow 0.3s;
            display: flex;
            flex-direction: column;
        }

        @media (min-width: 992px) {
            .university-card {
                flex-direction: row;
                height: auto;
            }
        }

        .university-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--card-hover-shadow);
        }

        .university-img-container {
            position: relative;
            flex-shrink: 0;
        }

        @media (min-width: 992px) {
            .university-img-container {
                width: 280px;
                height: 100%;
            }
        }

        .university-img {
            height: 180px;
            width: 100%;
            max-width: 300px;
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            position: relative;
            padding: 25px;
            overflow: hidden;
            margin: auto;
        }
        

        @media (min-width: 992px) {
            .university-img {
                height: 100%;
            }
        }

        .university-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            background: var(--primary);
            color: white;
            padding: 5px 12px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
        }

        .university-info {
            padding: 25px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .university-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 15px;
        }

        .university-info h3 {
            font-size: 20px;
            margin-bottom: 10px;
            color: var(--primary-dark);
            font-weight: 700;
            line-height: 1.3;
        }

        .university-location {
            display: flex;
            align-items: center;
            color: var(--gray);
            font-size: 14px;
            margin-bottom: 18px;
            gap: 8px;
        }

        .university-highlights {
            display: flex;
            gap: 7px;
            flex-wrap: wrap;
        }

        .highlight-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 12px 12px;
            background: #f8fafc;
            border-radius: 8px;
            min-width: 90px;
        }

        .highlight-value {
            font-weight: 700;
            font-size: 16px;
            color: var(--primary);
            margin-bottom: 5px;
        }

        .highlight-label {
            font-size: 12px;
            color: var(--gray);
        }

        .university-stats {
            display: flex;
            justify-content: space-between;
            margin-top: auto;
            padding-top: 12px;
            border-top: 1px solid #f1f5f9;
        }

        .university-rank {
            display: flex;
            align-items: center;
            color: var(--success);
            font-weight: 600;
            gap: 6px;
            font-size: 14px;
        }

        .university-fees {
            font-weight: 700;
            color: var(--dark);
            font-size: 16px;
        }

        .university-actions {
            display: flex;
            gap: 12px;
            margin-top: 12px;
        }

        .brochure-btn {
            background: white;
            color: var(--dark);
            padding: 10px 18px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            border: 1px solid #e2e8f0;
            transition: all 0.3s;
        }

        .brochure-btn:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .apply-btn {
            background: var(--primary);
            color: white;
            padding: 10px 22px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            border: 1px solid var(--primary);
            transition: all 0.3s;
        }

        .apply-btn:hover {
            background: teal;
        }

        .rating {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--gray);
            font-size: 14px;
        }

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

        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 50px;
            gap: 10px;
            flex-wrap: wrap;
        }

        .page-btn {
            width: 42px;
            height: 42px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            background: white;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
        }

        .page-btn:hover {
            border-color: var(--primary);
        }

        .page-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .dots {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 42px;
            height: 42px;
            color: var(--gray);
        }

        /* Quick Filters */
        .quick-filters {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            margin-top: 20px;
        }

        .filter-select {
            flex: 1 1 0;
            min-width: 160px;
            padding: 12px 15px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 14px;
            color: #333;
            background-color: #fff;
            background-image: url('data:image/svg+xml;utf8,<svg fill="%23666" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
            background-repeat: no-repeat;
            background-position: right 15px center;
            background-size: 12px;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            cursor: pointer;
            box-sizing: border-box;
        }

        .filter-select option {
            background: #fff;
            color: #333;
            padding: 10px;
        }

        /* No Results */
        .no-results {
            text-align: center;
            padding: 60px 20px;
            color: var(--gray);
            font-size: 18px;
        }

        /* Mobile Filter Drawer */
        .mobile-filter-btn {
            display: none;
            position: fixed;
            bottom: 25px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--primary);
            color: white;
            padding: 15px 30px;
            border-radius: 30px;
            font-weight: 600;
            border: none;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            z-index: 90;
            cursor: pointer;
        }

        .mobile-filter-btn i {
            margin-right: 8px;
        }

        .filter-drawer {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-top-left-radius: 16px;
            border-top-right-radius: 16px;
            box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
            padding: 25px;
            z-index: 100;
            max-height: 80vh;
            overflow-y: auto;
            transform: translateY(100%);
            transition: transform 0.3s ease-out;
        }

        .filter-drawer.active {
            transform: translateY(0);
        }

        .filter-drawer-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 1px solid #e2e8f0;
        }

        .filter-drawer-title {
            font-size: 20px;
            font-weight: 700;
        }

        .filter-drawer-close {
            background: none;
            border: none;
            font-size: 22px;
            cursor: pointer;
            padding: 5px;
        }

        .filter-drawer-actions {
            display: flex;
            gap: 12px;
            margin-top: 25px;
        }

        .filter-drawer-actions .btn {
            flex: 1;
            padding: 14px;
        }

        @media (max-width: 991px) {
            .mobile-filter-btn {
                display: flex;
                align-items: center;
            }

            .filters-section {
                display: none;
            }

            .filter-drawer {
                display: block;
            }
        }

        .filter-drawer-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 99;
            display: none;
        }

        .filter-drawer.active+.filter-drawer-overlay {
            display: block;
        }

        /* Responsive adjustments */
        @media (max-width: 991px) {
            .nav-links,
            .auth-buttons {
                display: none;
            }

            .mobile-menu-btn {
                display: block;
            }

            .navbar {
                padding: 10px 0;
            }
        }

        @media (max-width: 575px) {
            .sort-options {
                width: 100%;
            }

            .sort-select {
                flex-grow: 1;
            }
            
            .university-highlights {
                justify-content: space-between;
            }
            
            .highlight-item {
                flex: 1;
                min-width: auto;
                padding: 10px;
            }

            .university-actions {
                flex-direction: column;
                gap: 10px;
            }

            .brochure-btn, .apply-btn {
                width: 100%;
                text-align: center;
            }
        }
/* Additional Custom UI for new JS elements */
.placement-highlights-box {
    margin-top: 14px;
    background: #f0f7ff;
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid #dbeafe;
    width: 100%;
}

.placement-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.placement-header i {
    color: #0284c7;
    font-size: 0.92rem;
}

.placement-rows {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.placement-row {
    font-size: 0.83rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.placement-row i {
    font-size: 0.82rem;
}

.placement-row-label {
    color: #64748b;
    font-weight: 500;
}

.placement-row-val {
    font-weight: 800;
    color: #0f172a;
}

.available-courses-box {
    margin-top: 12px;
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    width: 100%;
}

.courses-header {
    font-size: 0.83rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.courses-header i {
    color: #6366f1;
    font-size: 0.9rem;
}

.courses-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.course-chip {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #334155;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.2s ease;
}

.course-chip:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.course-chip.more-chip {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #0284c7;
    font-weight: 700;
}

.university-highlights {
    flex-direction: column;
    gap: 0;
}

/* ============================================================
   PREMIUM UNIVERSITY CARD V2 (MATCHING REFERENCE DESIGN)
   ============================================================ */
.uni-card-v2 {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px 18px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-sizing: border-box;
    height: 100%;
}

.uni-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(2, 132, 199, 0.12), 0 8px 12px -4px rgba(0, 0, 0, 0.04);
    border-color: #bae6fd;
}

.uni-card-v2__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    margin-bottom: 2px;
    padding: 2px 0;
}

.uni-card-v2__logo {
    max-height: 48px;
    max-width: 190px;
    object-fit: contain;
}

.uni-card-v2__type-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    align-self: flex-start;
    letter-spacing: 0.2px;
}

.uni-card-v2__title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: #1e3a8a !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.uni-card-v2__location-badge {
    background: #f97316;
    color: #ffffff !important;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.25);
    text-decoration: none;
}

.uni-card-v2__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.uni-card-v2__tag {
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    border: 1px solid #bae6fd;
}

/* Placement Highlights */
.uni-card-v2__placement {
    background: #f0f7ff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.uni-card-v2__placement-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e3a8a;
}

.uni-card-v2__placement-head i {
    color: #0284c7;
    font-size: 0.95rem;
}

.uni-card-v2__placement-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.uni-card-v2__stat-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
}

.uni-card-v2__stat-row i {
    font-size: 0.85rem;
}

.uni-card-v2__stat-row .stat-label {
    color: #64748b;
    font-weight: 600;
}

.uni-card-v2__stat-row .stat-val {
    color: #0f172a;
    font-weight: 800;
}

.uni-card-v2__placement-desc {
    font-size: 0.76rem;
    color: #64748b;
    line-height: 1.4;
    padding-top: 6px;
    border-top: 1px dashed #cbd5e1;
    margin: 0;
}

/* Available Courses */
.uni-card-v2__courses {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.uni-card-v2__courses-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
}

.uni-card-v2__courses-head i {
    color: #0284c7;
    font-size: 0.95rem;
}

.uni-card-v2__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.uni-card-v2__chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s;
}

.uni-card-v2__chip:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.uni-card-v2__chip--more {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #0284c7;
    font-weight: 800;
}

/* Action row */
.uni-card-v2__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.uni-card-v2__btn-apply {
    flex: 1;
    background: #0284c7 !important;
    color: #ffffff !important;
    text-align: center;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
    transition: all 0.2s ease;
}

.uni-card-v2__btn-apply:hover {
    background: #0369a1 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.38);
}

.uni-card-v2__btn-share {
    width: 46px;
    height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #64748b !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.uni-card-v2__btn-share:hover {
    border-color: #0284c7;
    color: #0284c7 !important;
    background: #f0f9ff;
}


/* ===== Listing card: logo image, action row, small screens (mobile fixes) ===== */
img.university-img {
    display: block;
    object-fit: contain;
    box-sizing: border-box;
    background: #fff;
}
.university-img-container { display: flex; align-items: center; justify-content: center; min-width: 0; }
.university-info { min-width: 0; }
.university-info h3 { overflow-wrap: anywhere; }

.university-actions { flex-wrap: wrap; align-items: stretch; }
.university-actions .apply-btn {
    flex: 1 1 170px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    background: #053cae;
    border-color: #053cae;
    box-sizing: border-box;
}
.university-actions .apply-btn:hover { background: #042c85; }
.university-actions .select-btn,
.university-actions .details-btn {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    color: #053cae;
    font: 600 14px/1 inherit;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    width: auto;
    flex: 0 0 auto;
}
.university-actions .select-btn.is-on { background: #053cae; border-color: #053cae; color: #fff; }
.university-actions .select-btn:hover, .university-actions .details-btn:hover { background: #e8efff; }
.university-actions .select-btn.is-on:hover { background: #042c85; }

@media (max-width: 575px) {
    .university-actions { flex-direction: row; gap: 10px; }
    .university-actions .apply-btn { flex: 1 1 100%; width: 100%; }
    .university-actions .select-btn, .university-actions .details-btn { flex: 1 1 0; }
    .university-info { padding: 18px; }
    .university-img { height: 150px; padding: 18px; }
    .results-header .quick-filters { gap: 10px; }
    .filter-select { min-width: 0; flex: 1 1 100%; }
}
