/* ─── DESIGN TOKENS ─────────────────────────────────────── */
        :root {
            --brand: #8327D2;
            --brand-dark: #6A1FB0;
            --brand-deep: #510F92;
            --brand-light: #9F45E8;
            --brand-pale: #F3EAFD;
            --brand-soft: #EAD8FA;
            --brand-mid: #C598F0;

            --surface: #FFFFFF;
            --canvas: #F9F7FD;
            --canvas-alt: #F2EEF9;
            --border: #E6DFF5;
            --border-soft: #EDE8F6;

            --ink-900: #0F0B1A;
            --ink-700: #2D2240;
            --ink-500: #5E4D78;
            --ink-400: #8474A0;
            --ink-300: #B0A2C8;
            --ink-200: #D7CEED;
            --ink-100: #EDE8F6;

            --success: #12B76A;
            --warning: #F79009;
            --danger: #F04438;

            --ff-heading: 'Sora', sans-serif;
            --ff-body: 'DM Sans', sans-serif;

            --r-sm: 8px;
            --r-md: 12px;
            --r-lg: 16px;
            --r-xl: 24px;
            --r-full: 999px;

            --shadow-xs: 0 1px 2px rgba(131, 39, 210, 0.06);
            --shadow-sm: 0 2px 8px rgba(131, 39, 210, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
            --shadow-md: 0 4px 20px rgba(131, 39, 210, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
            --shadow-lg: 0 12px 48px rgba(131, 39, 210, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06);
        }

        /* ─── RESET ─────────────────────────────────────────────── */
        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }

        body {
            font-family: var(--ff-body);
            background: var(--canvas);
            color: var(--ink-700);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        img {
            display: block;
            max-width: 100%;
        }

        ul {
            list-style: none;
        }

        button {
            font-family: inherit;
            cursor: pointer;
        }

        input {
            font-family: inherit;
        }

        ::-webkit-scrollbar {
            width: 5px;
            height: 5px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--ink-200);
            border-radius: 99px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--brand-mid);
        }

        /* ─── TYPOGRAPHY ─────────────────────────────────────────── */
        h1,
        h2,
        h3,
        h4 {
            font-family: var(--ff-heading);
            color: var(--ink-900);
            letter-spacing: -0.025em;
            line-height: 1.2;
        }

        p {
            color: var(--ink-500);
            font-size: 1rem;
            line-height: 1.7;
        }

        .label {
            font-family: var(--ff-heading);
            font-size: 0.6875rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--brand);
        }

        /* ─── LAYOUT ─────────────────────────────────────────────── */
        .container {
            /* max-width: 1200px;
      margin-inline: auto;
      padding-inline: clamp(1.25rem, 4vw, 4rem); */
            max-width: 1600px;
            margin-inline: auto;
            padding: 0 100px 0 100px;
        }

        @media (max-width: 560px) {
            .container {
                /* max-width: 1200px; */
                margin-inline: auto;
                /* padding-inline: clamp(1.25rem, 4vw, 5rem); */
                padding: 0 20px 0 20px;
            }
        }

        /* ══════════════════════════════════════════════════════════
       PAGE WRAPPER
    ══════════════════════════════════════════════════════════ */
        .dir-page {
            padding: 2.5rem 0 5rem;
            min-height: 100vh;
        }

        /* ── Page top bar (breadcrumb + title) ── */
        .dir-topbar {
            padding-top: 96px;
            padding-bottom: 1.75rem;
            margin-bottom: 0;
            border-bottom: 1.5px solid var(--border-soft);
        }

        .dir-breadcrumb {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            margin-bottom: 0.875rem;
            font-size: 0.8125rem;
            color: var(--ink-400);
            font-weight: 500;
        }

        .dir-breadcrumb a {
            color: var(--ink-400);
            transition: color 0.15s;
        }

        .dir-breadcrumb a:hover {
            color: var(--brand);
        }

        .dir-breadcrumb svg {
            color: var(--ink-300);
        }

        .dir-page-title {
            font-family: var(--ff-heading);
            font-size: clamp(1.5rem, 2.8vw, 2rem);
            font-weight: 800;
            color: var(--ink-900);
            letter-spacing: -0.025em;
            line-height: 1.2;
        }

        .dir-page-title em {
            font-style: normal;
            background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .dir-page-subtitle {
            font-size: 0.9375rem;
            color: var(--ink-400);
            margin-top: 0.3rem;
            font-weight: 400;
        }

        /* ══════════════════════════════════════════════════════════
       CATEGORY NAV
    ══════════════════════════════════════════════════════════ */
        .dir-cat-nav {
            padding: 1.5rem 0;
            border-bottom: 1.5px solid var(--border-soft);
            margin-bottom: 1.75rem;
        }

        .dir-cat-list {
            display: flex;
            align-items: center;
            gap: 0.375rem;
            flex-wrap: wrap;
        }

        .dir-cat-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.4375rem 1.0625rem;
            border-radius: var(--r-full);
            font-family: var(--ff-heading);
            font-size: 0.8rem;
            font-weight: 600;
            background: var(--surface);
            border: 1.5px solid var(--border);
            color: var(--ink-500);
            transition: all 0.18s ease;
            white-space: nowrap;
        }

        .dir-cat-btn:hover {
            border-color: var(--brand-mid);
            color: var(--brand);
            background: var(--brand-pale);
        }

        .dir-cat-btn.active {
            background: var(--brand);
            border-color: var(--brand);
            color: #fff;
            box-shadow: 0 3px 14px rgba(131, 39, 210, 0.28);
        }

        .dir-cat-btn .cat-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 18px;
            height: 18px;
            padding: 0 4px;
            border-radius: 99px;
            font-size: 0.625rem;
            font-weight: 700;
            background: rgba(255, 255, 255, 0.22);
            color: inherit;
        }

        .dir-cat-btn:not(.active) .cat-count {
            background: var(--brand-pale);
            color: var(--brand);
        }

        /* ══════════════════════════════════════════════════════════
       SEARCH ROW
    ══════════════════════════════════════════════════════════ */
        .dir-search-row {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.75rem;
            flex-wrap: wrap;
        }

        .dir-search-wrap {
            flex: 1;
            min-width: 240px;
            position: relative;
        }

        .dir-search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--ink-300);
            pointer-events: none;
            transition: color 0.18s;
        }

        .dir-search-input {
            width: 100%;
            padding: 0.7875rem 1rem 0.7875rem 2.75rem;
            border-radius: var(--r-md);
            border: 1.5px solid var(--border);
            background: var(--surface);
            font-size: 0.9375rem;
            color: var(--ink-700);
            outline: none;
            transition: border-color 0.18s, box-shadow 0.18s;
            box-shadow: var(--shadow-xs);
        }

        .dir-search-input::placeholder {
            color: var(--ink-300);
        }

        .dir-search-input:focus {
            border-color: var(--brand-mid);
            box-shadow: 0 0 0 3px rgba(131, 39, 210, 0.10);
        }

        .dir-search-input:focus+.dir-search-icon,
        .dir-search-wrap:focus-within .dir-search-icon {
            color: var(--brand);
        }

        .dir-search-btn {
            padding: 0.7875rem 1.375rem;
            background: var(--brand);
            color: #fff;
            border: none;
            border-radius: var(--r-md);
            font-family: var(--ff-heading);
            font-size: 0.875rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            box-shadow: 0 3px 14px rgba(131, 39, 210, 0.30);
            transition: all 0.18s ease;
            white-space: nowrap;
        }

        .dir-search-btn:hover {
            background: var(--brand-dark);
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(131, 39, 210, 0.38);
        }

        .dir-results-meta {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .dir-results-count {
            font-family: var(--ff-heading);
            font-size: 0.8125rem;
            font-weight: 600;
            color: var(--ink-400);
        }

        .dir-results-count strong {
            color: var(--ink-900);
            font-weight: 700;
        }

        .dir-sort-select {
            padding: 0.45rem 1.875rem 0.45rem 0.75rem;
            border-radius: var(--r-sm);
            border: 1.5px solid var(--border);
            background: var(--surface);
            font-family: var(--ff-heading);
            font-size: 0.7875rem;
            font-weight: 600;
            color: var(--ink-500);
            outline: none;
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238474A0' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.6rem center;
            transition: border-color 0.15s;
        }

        .dir-sort-select:focus {
            border-color: var(--brand-mid);
        }

        /* ══════════════════════════════════════════════════════════
       TWO-COLUMN BODY
    ══════════════════════════════════════════════════════════ */
        .dir-body {
            display: grid;
            grid-template-columns: 1fr 288px;
            gap: 1.75rem;
            align-items: start;
        }

        /* ══════════════════════════════════════════════════════════
       INSTITUTION CARDS
    ══════════════════════════════════════════════════════════ */
        .dir-list {
            display: flex;
            flex-direction: column;
            gap: 1.125rem;
        }

        .inst-card {
            background: var(--surface);
            border: 1.5px solid var(--border-soft);
            border-radius: 20px;
            padding: 1.5rem 1.625rem;
            display: grid;
            grid-template-columns: 88px 1fr auto;
            gap: 1.25rem;
            align-items: start;
            transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.26s ease, border-color 0.2s ease;
            position: relative;
            overflow: hidden;
        }

        .inst-card::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(180deg, var(--brand), var(--brand-light));
            border-radius: 0 2px 2px 0;
            transform: scaleY(0);
            transform-origin: center;
            transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
        }

        .inst-card:hover::before {
            transform: scaleY(1);
        }

        .inst-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
            border-color: var(--brand-soft);
        }

        /* Logo */
        .inst-logo-wrap {
            width: 140px;
            height: 140px;
            border-radius: var(--r-lg);
            border: 1.5px solid var(--border-soft);
            background: var(--canvas);
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: border-color 0.2s;
        }

        .inst-card:hover .inst-logo-wrap {
            border-color: var(--brand-soft);
        }

        .inst-logo-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .inst-logo-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--brand-pale), var(--canvas-alt));
            font-family: var(--ff-heading);
            font-size: 1.375rem;
            font-weight: 800;
            color: var(--brand);
            letter-spacing: -0.02em;
        }

        /* Info */
        .inst-info {
            min-width: 0;
            padding-left: 54px;
        }

        .inst-badges {
            display: flex;
            align-items: center;
            gap: 0.375rem;
            flex-wrap: wrap;
            margin-bottom: 0.5rem;
        }

        .inst-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            padding: 0.1875rem 0.5625rem;
            border-radius: var(--r-sm);
            font-family: var(--ff-heading);
            font-size: 0.625rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        .inst-badge.naac {
            background: rgba(18, 183, 106, 0.10);
            color: #0b8a50;
            border: 1px solid rgba(18, 183, 106, 0.22);
        }

        .inst-badge.ugc {
            background: rgba(131, 39, 210, 0.09);
            color: var(--brand-dark);
            border: 1px solid rgba(131, 39, 210, 0.18);
        }

        .inst-badge.aicte {
            background: rgba(247, 144, 9, 0.10);
            color: #b56a04;
            border: 1px solid rgba(247, 144, 9, 0.22);
        }

        .inst-badge.che {
            background: rgba(59, 130, 246, 0.09);
            color: #1d5db7;
            border: 1px solid rgba(59, 130, 246, 0.20);
        }

        .inst-badge.private {
            background: var(--canvas-alt);
            color: var(--ink-500);
            border: 1px solid var(--border);
        }

        .inst-badge.govt {
            background: rgba(18, 183, 106, 0.08);
            color: #0b8a50;
            border: 1px solid rgba(18, 183, 106, 0.18);
        }

        .inst-name {
            font-family: var(--ff-heading);
            font-size: 1.0625rem;
            font-weight: 700;
            color: var(--ink-900);
            letter-spacing: -0.02em;
            margin-bottom: 0.3rem;
            line-height: 1.3;
            transition: color 0.18s;
            cursor: pointer;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .inst-card:hover .inst-name {
            color: var(--brand);
        }

        .inst-desc {
            font-size: 0.8375rem;
            color: var(--ink-400);
            line-height: 1.58;
            margin-bottom: 0.625rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .inst-meta-row {
            display: flex;
            align-items: center;
            gap: 1.125rem;
            flex-wrap: wrap;
        }

        .inst-meta-item {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            font-size: 0.78125rem;
            font-weight: 500;
            color: var(--ink-400);
        }

        .inst-meta-item svg {
            color: var(--ink-300);
            flex-shrink: 0;
        }

        .inst-rating {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }

        .inst-stars {
            display: flex;
            align-items: center;
            gap: 1px;
        }

        .inst-star {
            width: 12px;
            height: 12px;
            fill: #F59E0B;
            color: #F59E0B;
        }

        .inst-star.empty {
            fill: var(--border);
            color: var(--border);
        }

        .inst-rating-num {
            font-family: var(--ff-heading);
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--ink-700);
        }

        /* Action column */
        .inst-actions {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 0.75rem;
            flex-shrink: 0;
        }

        .inst-fav-btn {
            width: 36px;
            height: 36px;
            border-radius: var(--r-md);
            border: 1.5px solid var(--border);
            background: var(--surface);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--ink-300);
            transition: all 0.2s ease;
        }

        .inst-fav-btn:hover {
            border-color: #F04438;
            color: #F04438;
            background: rgba(240, 68, 56, 0.06);
        }

        .inst-fav-btn.saved {
            border-color: #F04438;
            background: rgba(240, 68, 56, 0.08);
            color: #F04438;
        }

        .inst-fav-btn.saved svg {
            fill: #F04438;
        }

        .inst-view-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.5rem 1.0625rem;
            border-radius: var(--r-md);
            font-family: var(--ff-heading);
            font-size: 0.8125rem;
            font-weight: 600;
            background: var(--brand-pale);
            color: var(--brand-dark);
            border: 1.5px solid var(--brand-soft);
            transition: all 0.18s ease;
            white-space: nowrap;
        }

        .inst-view-btn:hover {
            background: var(--brand);
            color: #fff;
            border-color: var(--brand);
            box-shadow: 0 3px 14px rgba(131, 39, 210, 0.28);
            transform: translateY(-1px);
        }

        .inst-view-btn svg {
            transition: transform 0.18s;
        }

        .inst-view-btn:hover svg {
            transform: translateX(2px);
        }

        /* Empty state */
        .dir-empty {
            padding: 4rem 2rem;
            text-align: center;
            background: var(--surface);
            border-radius: 20px;
            border: 1.5px dashed var(--border);
            display: none;
        }

        .dir-empty.visible {
            display: block;
        }

        .dir-empty-icon {
            width: 56px;
            height: 56px;
            border-radius: 16px;
            background: var(--brand-pale);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            color: var(--brand);
        }

        .dir-empty h3 {
            font-size: 1rem;
            margin-bottom: 0.375rem;
        }

        .dir-empty p {
            font-size: 0.875rem;
            color: var(--ink-400);
        }

        /* ── Pagination ── */
        .dir-pagination {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1.5px solid var(--border-soft);
            flex-wrap: wrap;
            gap: 1rem;
        }

        .dir-page-info {
            font-size: 0.8125rem;
            color: var(--ink-400);
            font-weight: 500;
        }

        .dir-page-btns {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .dir-page-num {
            width: 34px;
            height: 34px;
            border-radius: var(--r-sm);
            border: 1.5px solid var(--border);
            background: var(--surface);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: var(--ff-heading);
            font-size: 0.8125rem;
            font-weight: 600;
            color: var(--ink-500);
            transition: all 0.15s;
        }

        .dir-page-num:hover {
            border-color: var(--brand-mid);
            color: var(--brand);
            background: var(--brand-pale);
        }

        .dir-page-num.active {
            background: var(--brand);
            border-color: var(--brand);
            color: #fff;
            box-shadow: 0 2px 10px rgba(131, 39, 210, 0.28);
        }

        .dir-page-arrow {
            width: 34px;
            height: 34px;
            border-radius: var(--r-sm);
            border: 1.5px solid var(--border);
            background: var(--surface);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--ink-400);
            transition: all 0.15s;
        }

        .dir-page-arrow:hover {
            border-color: var(--brand-mid);
            color: var(--brand);
        }

        .dir-page-arrow:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        /* ══════════════════════════════════════════════════════════
       FILTER SIDEBAR
    ══════════════════════════════════════════════════════════ */
        .dir-sidebar {
            position: sticky;
            top: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .filter-card {
            background: var(--surface);
            border: 1.5px solid var(--border-soft);
            border-radius: 20px;
            overflow: hidden;
        }

        .filter-card-head {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid var(--border-soft);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .filter-card-title {
            font-family: var(--ff-heading);
            font-size: 0.875rem;
            font-weight: 700;
            color: var(--ink-900);
            letter-spacing: -0.01em;
        }

        .filter-clear-btn {
            font-family: var(--ff-heading);
            font-size: 0.6875rem;
            font-weight: 600;
            color: var(--brand);
            background: none;
            border: none;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.15s;
        }

        .filter-card.has-active .filter-clear-btn {
            opacity: 1;
        }

        .filter-clear-btn:hover {
            color: var(--brand-dark);
        }

        .filter-card-body {
            padding: 0.875rem 1.25rem;
        }

        /* Scrollable body variant */
        .filter-card-body.scrollable {
            max-height: 268px;
            overflow-y: auto;
            padding-right: 0.75rem;
        }

        .filter-option {
            display: flex;
            align-items: center;
            gap: 0.625rem;
            padding: 0.4375rem 0;
            border-bottom: 1px solid transparent;
            transition: border-color 0.12s;
        }

        .filter-option:not(:last-child) {
            border-bottom-color: var(--border-soft);
        }

        /* Custom checkbox */
        .filter-checkbox-wrap {
            position: relative;
            flex-shrink: 0;
        }

        .filter-checkbox {
            appearance: none;
            width: 17px;
            height: 17px;
            border-radius: 5px;
            border: 1.5px solid var(--border);
            background: var(--surface);
            cursor: pointer;
            transition: all 0.16s ease;
            display: block;
        }

        .filter-checkbox:checked {
            background: var(--brand);
            border-color: var(--brand);
        }

        .filter-checkbox:checked::after {
            content: '';
            position: absolute;
            left: 4.5px;
            top: 2.5px;
            width: 5px;
            height: 8px;
            border: 2px solid #fff;
            border-top: none;
            border-left: none;
            transform: rotate(45deg);
        }

        .filter-checkbox:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(131, 39, 210, 0.14);
        }

        .filter-label {
            flex: 1;
            font-size: 0.84375rem;
            font-weight: 500;
            color: var(--ink-500);
            cursor: pointer;
            transition: color 0.15s;
            user-select: none;
        }

        .filter-checkbox:checked~.filter-label {
            color: var(--ink-900);
            font-weight: 600;
        }

        .filter-count {
            font-family: var(--ff-heading);
            font-size: 0.6875rem;
            font-weight: 600;
            color: var(--ink-300);
            background: var(--canvas);
            border: 1px solid var(--border-soft);
            padding: 0.125rem 0.45rem;
            border-radius: var(--r-full);
            transition: all 0.15s;
        }

        .filter-checkbox:checked~* .filter-count,
        .filter-option:has(.filter-checkbox:checked) .filter-count {
            background: var(--brand-pale);
            color: var(--brand-dark);
            border-color: var(--brand-soft);
        }

        /* Active filter chips */
        .active-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 0.375rem;
            margin-bottom: 1.25rem;
        }

        .active-filters:empty {
            display: none;
        }

        .active-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            padding: 0.25rem 0.625rem;
            border-radius: var(--r-full);
            background: var(--brand-pale);
            border: 1px solid var(--brand-soft);
            font-family: var(--ff-heading);
            font-size: 0.6875rem;
            font-weight: 700;
            color: var(--brand-dark);
        }

        .active-chip-remove {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: rgba(131, 39, 210, 0.15);
            color: var(--brand);
            cursor: pointer;
            border: none;
            font-size: 0;
            transition: background 0.15s;
        }

        .active-chip-remove:hover {
            background: var(--brand);
            color: #fff;
        }

        /* ── Applied filters summary card ── */
        .filter-summary-card {
            background: linear-gradient(135deg, var(--brand-pale), var(--canvas-alt));
            border: 1.5px solid var(--brand-soft);
            border-radius: 16px;
            padding: 1rem 1.25rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
        }

        .filter-summary-label {
            font-family: var(--ff-heading);
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--brand-dark);
        }

        .filter-summary-count {
            font-family: var(--ff-heading);
            font-size: 1.125rem;
            font-weight: 800;
            color: var(--brand);
        }

        .filter-reset-all {
            font-family: var(--ff-heading);
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--ink-400);
            background: none;
            border: none;
            cursor: pointer;
            transition: color 0.15s;
        }

        .filter-reset-all:hover {
            color: var(--danger);
        }

        /* ══════════════════════════════════════════════════════════
       MOBILE TOGGLE
    ══════════════════════════════════════════════════════════ */
        .mobile-filter-toggle {
            display: none;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5625rem 1.125rem;
            border-radius: var(--r-md);
            border: 1.5px solid var(--border);
            background: var(--surface);
            font-family: var(--ff-heading);
            font-size: 0.8125rem;
            font-weight: 600;
            color: var(--ink-500);
            white-space: nowrap;
        }

        /* ══════════════════════════════════════════════════════════
       ANIMATIONS
    ══════════════════════════════════════════════════════════ */
        @keyframes fadeSlideUp {
            from {
                opacity: 0;
                transform: translateY(14px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .inst-card {
            animation: fadeSlideUp 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        .inst-card:nth-child(1) {
            animation-delay: 0.04s;
        }

        .inst-card:nth-child(2) {
            animation-delay: 0.09s;
        }

        .inst-card:nth-child(3) {
            animation-delay: 0.14s;
        }

        .inst-card:nth-child(4) {
            animation-delay: 0.19s;
        }

        .inst-card:nth-child(5) {
            animation-delay: 0.24s;
        }

        .inst-card:nth-child(6) {
            animation-delay: 0.29s;
        }

        /* ══════════════════════════════════════════════════════════
       RESPONSIVE
    ══════════════════════════════════════════════════════════ */
        @media (max-width: 960px) {
            .dir-body {
                grid-template-columns: 1fr;
            }

            .dir-sidebar {
                position: static;
                display: none;
            }

            .dir-sidebar.mobile-open {
                display: flex;
            }

            .mobile-filter-toggle {
                display: inline-flex;
            }

            .dir-results-meta {
                margin-left: auto;
            }
        }

        @media (max-width: 640px) {
            .inst-card {
                grid-template-columns: 68px 1fr;
                grid-template-rows: auto auto;
            }

            .inst-actions {
                grid-column: 1 / -1;
                flex-direction: row;
                align-items: center;
                justify-content: flex-end;
                border-top: 1px solid var(--border-soft);
                padding-top: 0.875rem;
                margin-top: 0.25rem;
            }

            .inst-logo-wrap {
                width: 68px;
                height: 68px;
            }

            .dir-search-row {
                flex-wrap: wrap;
            }

            .dir-results-meta {
                order: -1;
                width: 100%;
                justify-content: space-between;
            }
        }

        @media (max-width: 480px) {
            .dir-cat-list {
                gap: 0.3rem;
            }

            .dir-cat-btn {
                padding: 0.375rem 0.75rem;
                font-size: 0.75rem;
            }
        }