:root {
    --bg: #fdf2f8; /* Pink 50 */
    --card: #ffffff;
    --surface: #ffffff;
    --border: rgba(0, 0, 0, 0.05);
    --text: #0f172a;
    --text-muted: #64748b;
    --accent: #db2777; /* Pink 600 */
    --accent-glow: rgba(219, 39, 119, 0.1);
    --font: 'Red Hat Display', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    padding-bottom: 2rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.back-btn, .icon-btn {
    width: 44px;
    height: 44px;
    background: var(--card);
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border-radius: 12px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover, .icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.header h1 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Hero */
.hero {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent), #ff4d9e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Search */
.search-container {
    padding: 0 1rem 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card);
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.03);
    border-radius: 16px;
    padding: 0 1rem;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.search-box i {
    color: var(--text-muted);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    padding: 1rem 0;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* Colleges Grid */
.colleges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* College Card */
.college-card {
    background: var(--card);
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.03);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeUp 0.5s ease forwards;
    opacity: 0;
}

.college-card:nth-child(1) { animation-delay: 0.05s; }
.college-card:nth-child(2) { animation-delay: 0.1s; }
.college-card:nth-child(3) { animation-delay: 0.15s; }
.college-card:nth-child(4) { animation-delay: 0.2s; }
.college-card:nth-child(5) { animation-delay: 0.25s; }
.college-card:nth-child(6) { animation-delay: 0.3s; }
.college-card:nth-child(7) { animation-delay: 0.35s; }
.college-card:nth-child(8) { animation-delay: 0.4s; }
.college-card:nth-child(9) { animation-delay: 0.45s; }
.college-card:nth-child(10) { animation-delay: 0.5s; }
.college-card:nth-child(11) { animation-delay: 0.55s; }
.college-card:nth-child(12) { animation-delay: 0.6s; }
.college-card:nth-child(13) { animation-delay: 0.65s; }
.college-card:nth-child(14) { animation-delay: 0.7s; }
.college-card:nth-child(15) { animation-delay: 0.75s; }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.college-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.college-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.college-info {
    padding: 0.875rem;
}

.college-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.college-location {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.college-location i {
    font-size: 0.7rem;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Responsive */
@media (min-width: 640px) {
    .colleges-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .college-image {
        height: 140px;
    }
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .colleges-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
}