/* College directory — all colleges listing */
.college-listing-page .site-main {
    padding: 0;
    min-height: 0;
    overflow: visible;
}

.college-listing-page .portal-nav-landing a[href*="colleges.php"] {
    font-weight: 800;
}

.cl-page {
    background: var(--lp-bg, #f4f6fa);
    max-width: 100%;
}

.cl-hero {
    position: relative;
    background: linear-gradient(145deg, var(--lp-blue, #1c3269) 0%, var(--lp-navy, #122347) 55%, var(--lp-dark, #0a152e) 100%);
    color: #fff;
    padding: 24px 0 28px;
    overflow: hidden;
}

.cl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 50% at 12% 25%, rgba(58, 158, 74, 0.14), transparent),
        radial-gradient(ellipse 50% 40% at 88% 75%, rgba(184, 34, 42, 0.1), transparent);
    pointer-events: none;
}

.cl-hero > .lp-container {
    position: relative;
    z-index: 1;
}

.cl-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
}

.cl-back-link:hover {
    color: #fff;
}

.cl-hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 800;
}

.cl-hero-lead {
    max-width: 640px;
    margin: 0 0 14px;
    line-height: 1.55;
    opacity: 0.93;
    font-size: 15px;
}

.cl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cl-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--lp-yellow, #b8222a);
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.cl-hero-btn-ghost {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.cl-toolbar-wrap {
    padding: 18px 0 0;
    position: sticky;
    top: 0;
    z-index: 40;
    background: linear-gradient(var(--lp-bg, #f4f6fa) 85%, transparent);
}

@media (max-width: 768px) {
    .college-listing-page .cl-toolbar-wrap {
        position: static;
        top: auto;
        z-index: auto;
        background: var(--lp-bg, #f4f6fa);
        padding-top: 12px;
    }
}

.cl-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 12px;
}

.cl-search-wrap {
    flex: 1 1 240px;
    position: relative;
}

.cl-search-wrap .bi-search {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lp-muted, #64748b);
    pointer-events: none;
}

.cl-search {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px 10px 42px;
    border: 1px solid var(--lp-border, #e2e8f0);
    border-radius: 12px;
    font-size: 15px;
    background: #fff;
    box-sizing: border-box;
}

.cl-search:focus {
    outline: none;
    border-color: var(--lp-blue, #1c3269);
    box-shadow: 0 0 0 3px rgba(28, 50, 105, 0.12);
}

.cl-state-form {
    flex: 0 0 auto;
}

.cl-state-select {
    min-height: 48px;
    min-width: 160px;
    padding: 10px 14px;
    border: 1px solid var(--lp-border, #e2e8f0);
    border-radius: 12px;
    font-size: 14px;
    background: #fff;
    color: var(--lp-dark, #0a152e);
}

.cl-stream-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.cl-stream-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 2px solid var(--lp-border, #e2e8f0);
    background: #fff;
    color: var(--lp-dark, #0a152e);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: border-color 0.15s, background 0.15s;
}

.cl-stream-chip .bi {
    color: var(--lp-blue, #1c3269);
}

.cl-stream-chip em {
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    background: #eef2fa;
    color: var(--lp-blue, #1c3269);
    padding: 2px 7px;
    border-radius: 999px;
}

.cl-stream-chip.is-active {
    border-color: var(--lp-blue, #1c3269);
    background: #eef2fa;
}

.cl-stream-chip.is-empty {
    opacity: 0.45;
    pointer-events: none;
}

.cl-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.cl-active-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--lp-border, #e2e8f0);
    font-size: 12px;
    font-weight: 700;
    color: var(--lp-blue, #1c3269);
}

.cl-clear-filters {
    font-size: 13px;
    font-weight: 600;
    color: var(--lp-muted, #64748b);
    text-decoration: none;
}

.cl-result-count {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--lp-muted, #64748b);
}

.cl-result-count strong {
    color: var(--lp-blue, #1c3269);
    font-size: 18px;
}

/* Homepage browse colleges — same cards as colleges.php */
#colleges .lp-home-college-search {
    margin: 0 0 12px;
    max-width: 100%;
}

#colleges .cl-result-count {
    margin: 0 0 16px;
}

#colleges .cl-result-count a {
    color: var(--lp-blue, #1c3269);
    font-weight: 700;
    text-decoration: none;
}

#colleges .cl-result-count a:hover {
    text-decoration: underline;
}

#colleges .cl-grid {
    margin-top: 0;
}

.cl-main {
    padding: 16px 0 40px;
}

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

.cl-card {
    background: #fff;
    border: 1px solid var(--lp-border, #e2e8f0);
    border-radius: var(--lp-radius, 14px);
    padding: 16px;
    box-shadow: 0 4px 18px rgba(18, 35, 71, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.cl-card:hover {
    border-color: #c5cee0;
    box-shadow: 0 10px 28px rgba(18, 35, 71, 0.08);
    transform: translateY(-1px);
}

.cl-card.is-hidden {
    display: none;
}

.cl-card-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.cl-card-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: contain;
    border: 1px solid var(--lp-border, #e2e8f0);
    flex-shrink: 0;
    background: #fff;
}

.cl-card-logo-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2fa;
    color: var(--lp-blue, #1c3269);
    font-size: 24px;
}

.cl-card-head h2 {
    margin: 0 0 4px;
    font-size: 1.02rem;
    line-height: 1.35;
    font-weight: 800;
}

.cl-card-loc {
    margin: 0;
    font-size: 13px;
    color: var(--lp-muted, #64748b);
    line-height: 1.4;
}

.cl-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cl-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

.cl-badge-type {
    background: #eef2fa;
    color: var(--lp-blue, #1c3269);
}

.cl-badge-open {
    background: var(--lp-green-light, #e8f5ea);
    color: #1f5d2d;
}

.cl-badge-closed {
    background: #f3f4f6;
    color: #64748b;
}

.cl-badge-warn {
    background: #fff7ed;
    color: #9a3412;
}

.cl-badge-info {
    background: #eef2fa;
    color: var(--lp-blue, #1c3269);
}

.cl-card-streams {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cl-stream-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--lp-border, #e2e8f0);
    color: var(--lp-blue, #1c3269);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.cl-stream-tag:hover {
    background: #eef2fa;
}

.cl-card-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--lp-muted, #64748b);
}

.cl-card-fee,
.cl-card-eligibility {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.4;
}

.cl-card-fee {
    color: var(--lp-dark, #0a152e);
    font-weight: 600;
}

.cl-card-eligibility {
    color: var(--lp-muted, #64748b);
}

.cl-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.cl-btn-primary,
.cl-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    flex: 1 1 calc(50% - 4px);
    box-sizing: border-box;
}

.cl-btn-primary {
    background: var(--lp-yellow, #b8222a);
    color: #fff !important;
}

.cl-btn-secondary {
    background: #fff;
    border: 1px solid var(--lp-border, #e2e8f0);
    color: var(--lp-blue, #1c3269) !important;
}

.cl-card-slug {
    margin: 0;
    font-size: 11px;
    color: var(--lp-muted, #64748b);
}

.cl-card-slug code {
    background: #f8fafc;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.cl-empty {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border: 1px dashed var(--lp-border, #e2e8f0);
    border-radius: var(--lp-radius, 14px);
    color: var(--lp-muted, #64748b);
}

.cl-empty .bi {
    font-size: 40px;
    color: var(--lp-blue, #1c3269);
    display: block;
    margin-bottom: 12px;
}

.cl-empty h2 {
    margin: 0 0 8px;
    color: var(--lp-dark, #0a152e);
}

.cl-empty-inline {
    margin-top: 16px;
    padding: 20px;
}

.cl-share {
    padding: 0 0 48px;
}

.cl-share-inner {
    background: #fff;
    border: 1px solid var(--lp-border, #e2e8f0);
    border-radius: var(--lp-radius, 14px);
    padding: 20px;
    box-shadow: 0 6px 24px rgba(18, 35, 71, 0.06);
}

.cl-share-inner h2 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 800;
}

.cl-share-inner > div > p {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--lp-muted, #64748b);
}

.cl-share-links {
    display: grid;
    gap: 8px;
}

.cl-share-row {
    display: grid;
    grid-template-columns: minmax(100px, 140px) 1fr auto;
    gap: 8px;
    align-items: center;
}

.cl-share-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--lp-dark, #0a152e);
}

.cl-share-input {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--lp-border, #e2e8f0);
    border-radius: 8px;
    font-size: 12px;
    background: #f8fafc;
    color: var(--lp-muted, #64748b);
}

.cl-share-copy {
    width: 40px;
    height: 38px;
    border: 1px solid var(--lp-border, #e2e8f0);
    border-radius: 8px;
    background: #fff;
    color: var(--lp-blue, #1c3269);
    cursor: pointer;
}

.cl-share-copy.is-copied {
    background: var(--lp-green-light, #e8f5ea);
    color: #1f5d2d;
}

.cl-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 640px) {
    .cl-share-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cl-main {
        padding: 16px 0 24px;
    }

    .cl-grid {
        grid-template-columns: 1fr;
    }

    .cl-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-bottom: 8px;
    }

    .cl-search-wrap,
    .cl-state-form {
        flex: 0 0 auto;
        width: 100%;
    }

    .cl-state-select {
        width: 100%;
    }

    .cl-stream-bar {
        margin-top: 4px;
    }

    .cl-card-actions {
        flex-direction: row;
        align-items: stretch;
    }

    .cl-btn-primary,
    .cl-btn-secondary {
        flex: 1 1 0;
        width: auto;
        min-height: 40px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .cl-card-slug {
        display: none;
    }

    /* Homepage browse colleges — same card grid as colleges.php */
    body.landing-page #colleges .cl-grid {
        grid-template-columns: 1fr;
    }

    body.landing-page #colleges .cl-card-actions {
        flex-direction: row;
        align-items: stretch;
    }

    body.landing-page #colleges .cl-btn-primary,
    body.landing-page #colleges .cl-btn-secondary {
        flex: 1 1 0;
        width: auto;
        min-height: 40px;
        padding: 8px 10px;
        font-size: 12px;
    }

    body.landing-page #colleges .lp-home-college-search {
        width: 100%;
        box-sizing: border-box;
    }

    body.landing-page #colleges .cl-result-count {
        font-size: 14px;
        line-height: 1.45;
    }

    .cl-hero-actions {
        flex-direction: row;
        align-items: stretch;
    }

    .cl-search,
    .cl-state-select {
        font-size: 16px;
    }

    .cl-hero-btn {
        flex: 1 1 0;
        width: auto;
        min-height: 40px;
        justify-content: center;
        padding: 8px 10px;
        font-size: 13px;
    }
}
