﻿:root {
    --bg: #f3f7ff;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --line: #dbe4f0;
    --primary: #1d4ed8;
    --primary-dark: #1e3a8a;
    --accent: #f97316;
    --chip: #eff6ff;
    --shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
}

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle at 10% -10%, #e0ebff 0%, #f4f8ff 40%, #f8fbff 100%);
    color: var(--text);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.brand img {
    height: 52px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-nav a {
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    transition: 0.2s ease;
}

.header-nav a:hover {
    color: var(--primary);
    background: #eef2ff;
}

main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 20px 44px;
}

.hero {
    border: 1px solid #cfddf5;
    border-radius: 22px;
    background: linear-gradient(135deg, #0b5ee6 0%, #2563eb 40%, #3b82f6 100%);
    color: #ffffff;
    box-shadow: var(--shadow);
    margin-top: 10px;
}

.hero-content {
    padding: 30px 28px;
}

.eyebrow {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c7dbff;
}

.hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1.15;
}

.hero-subtext {
    margin: 0;
    max-width: 740px;
    color: #e8f1ff;
    line-height: 1.5;
}

.filters-section {
    margin-top: 18px;
}

.filters-wrap {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.all-filter-btn {
    border: 0;
    background: linear-gradient(135deg, var(--accent) 0%, #fb923c 100%);
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    padding: 12px 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
    min-height: 48px;
}

.all-filter-btn:hover {
    transform: translateY(-1px);
}

.filter-item {
    min-width: 210px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-item span {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.filter-item select {
    border: 1px solid #cfd8e6;
    border-radius: 12px;
    min-height: 48px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 15px;
    background: #f8fbff;
    color: var(--text);
}

.summary-section {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.result-count-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    min-width: 180px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

.result-count-card .label {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.result-count-card .value {
    margin: 6px 0 0;
    color: var(--primary-dark);
    font-size: 28px;
    font-weight: 700;
}

.program-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.program-chip {
    background: var(--chip);
    border: 1px solid #ccdcff;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
}

.results-section {
    margin-top: 16px;
}

.table-shell {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: auto;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

thead th {
    text-align: left;
    background: #f2f7ff;
    padding: 12px 14px;
    color: #1e3a8a;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #e9eef8;
    vertical-align: top;
    font-size: 14px;
}

tbody tr:hover {
    background: #f9fbff;
}

.program-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 12px;
    font-weight: 600;
}

.type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.type-government {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.type-private {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.site-link {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

.site-link:hover {
    text-decoration: underline;
}

.cards-grid {
    display: none;
}

.college-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow);
}

.college-card h3 {
    margin: 8px 0;
    font-size: 17px;
}

.college-meta {
    margin: 4px 0;
    color: var(--muted);
    font-size: 14px;
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.no-result {
    margin: 14px 0 0;
    padding: 14px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #be123c;
    font-weight: 500;
}

.hidden {
    display: none;
}

.site-footer {
    margin-top: 24px;
    padding: 22px 16px 28px;
    text-align: center;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
}

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

.copyright {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 900px) {
    .site-header {
        padding: 8px 10px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .brand {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .brand img {
        height: 40px;
        max-width: 92vw;
        object-fit: contain;
    }

    .header-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .header-nav a {
        padding: 5px 9px;
        font-size: 12px;
    }

    main {
        padding: 12px 12px 30px;
    }

    .hero {
        border-radius: 16px;
        margin-top: 6px;
    }

    .hero-content {
        padding: 20px 16px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-subtext {
        font-size: 15px;
    }

    .filters-wrap {
        padding: 12px;
        gap: 10px;
    }

    .filter-item {
        min-width: 100%;
    }

    .all-filter-btn {
        width: 100%;
    }

    .table-shell {
        display: none;
    }

    .cards-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .result-count-card {
        width: 100%;
        min-width: 0;
    }

    .program-chip {
        font-size: 12px;
        padding: 7px 10px;
    }

    .card-row {
        flex-wrap: wrap;
    }
}
