﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   UNIVERSITY PROFILE PAGE  (.up-*)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* Hero */
.up-hero {
    position: relative;
    min-height: 380px;
    background: var(--green-900, #14532d);
    background-image: var(--up-hero-bg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.up-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 44, 28, .92) 0%, rgba(16,44,28,.5) 50%, rgba(16,44,28,.25) 100%);
}
.up-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    padding-bottom: 3rem;
    padding-top: 2rem;
    width: min(1200px, 92vw);
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}
.up-hero-logo-wrap {
    flex-shrink: 0;
    background: #fff;
    border-radius: .75rem;
    padding: .75rem 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.18);
    width: 150px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.up-hero-logo {
    max-width: 120px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.up-hero-logo.is-broken {
    display: none;
}
.up-hero-logo-fallback {
    display: none;
    color: var(--green-600, #16a34a);
}
.up-hero-logo.is-broken + .up-hero-logo-fallback,
.up-hero-logo-wrap--fallback .up-hero-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}
.up-hero-logo-fallback-icon {
    width: 60px;
    height: 60px;
    display: block;
}
.up-hero-info {
    flex: 1;
    min-width: 0;
    color: #fff;
}
.up-badge {
    display: inline-block;
    padding: .2rem .65rem;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}
.up-badge--platinum { background: linear-gradient(90deg, #e2c97e, #c9a84c); color: #3d2a04; }
.up-badge--gold     { background: #f59e0b; color: #3d2a04; }
.up-badge--silver   { background: #94a3b8; color: #1e293b; }
.up-hero-title {
    font-size: clamp(1.4rem, 3.5vw, 2.4rem);
    font-weight: 800;
    margin: 0 0 .5rem;
    color: #fff;
    max-width: 760px;
    overflow-wrap: anywhere;
}
.up-hero-address {
    font-size: .85rem;
    color: rgba(255,255,255,.75);
    display: flex;
    align-items: flex-start;
    gap: .35rem;
    margin: 0 0 1rem;
    max-width: 680px;
    overflow-wrap: anywhere;
}
.up-hero-address svg { flex-shrink: 0; margin-top: .1rem; }
.up-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.up-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.1rem;
    border-radius: .5rem;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s, transform .2s;
}
.up-btn:hover { opacity: .9; transform: translateY(-1px); }
.up-btn--primary { background: #fff; color: #14532d; font-weight: 700; }
.up-social-icons { display: flex; gap: .5rem; }
.up-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: .5rem;
    background: rgba(255,255,255,.15);
    color: #fff;
    text-decoration: none;
    transition: background .2s;
}
.up-social:hover { background: rgba(255,255,255,.3); }

/* Stats strip */
.up-stats-strip {
    background: var(--green-700);
    color: #fff;
    padding: 1.25rem 0;
}
.up-stats-inner {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 2.5rem;
    justify-content: center;
}
.up-stat {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.up-stat-icon { opacity: .7; flex-shrink: 0; }
.up-stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.1;
}
.up-stat-label {
    display: block;
    font-size: .65rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .7;
}
.up-star--full, .up-star--half { color: #fbbf24; font-size: .95rem; }
.up-star--empty { color: rgba(255,255,255,.3); font-size: .95rem; }
.up-stars-sm .up-star--full,
.up-stars-sm .up-star--half { color: #f59e0b; }
.up-stars-sm .up-star--empty { color: #d1d5db; }

/* Body layout */
.up-body { padding: 3rem 0 4rem; }
.up-body-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3rem;
    align-items: start;
}
.up-main,
.up-sidebar {
    min-width: 0;
}

/* Sections */
.up-section { margin-bottom: 2.5rem; }
.up-section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--green-800, #166534);
    margin: 0 0 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--green-100, #dcfce7);
}
.up-about-text {
    font-size: .95rem;
    line-height: 1.8;
    color: var(--gray-700, #374151);
}

/* Video */
.up-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: .75rem;
    overflow: hidden;
    background: #000;
}
.up-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Rankings grid */
.up-rankings-block { margin-bottom: 1.5rem; }
.up-rankings-subtitle {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin: 0 0 .75rem;
}
.up-rankings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .6rem;
}
.up-rank-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .6rem;
    padding: .75rem .5rem;
    text-align: center;
    transition: box-shadow .2s, transform .2s;
}
.up-rank-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.up-rank-card--featured {
    background: var(--green-700);
    border-color: var(--green-700);
    color: #fff;
    grid-column: span 2;
}
.up-rank-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--green-700);
    line-height: 1;
    margin-bottom: .25rem;
}
.up-rank-card--featured .up-rank-num { color: #fff; font-size: 2rem; }
.up-rank-label {
    display: block;
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--gray-500);
}
.up-rank-card--featured .up-rank-label { color: rgba(255,255,255,.75); }

/* Sidebar */
.up-sidebar { position: sticky; top: 5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.up-widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .9rem;
    padding: 1.1rem;
}
.up-widget--back { background: transparent; border: none; padding: .25rem 0; }
.up-widget-title {
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green-700);
    margin: 0 0 .85rem;
}
/* Info list */
.up-info-list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .55rem; }
.up-info-item { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-size: .82rem; }
.up-info-key { color: var(--gray-400, #9ca3af); font-weight: 600; white-space: nowrap; }
.up-info-val { font-weight: 700; color: var(--green-900); text-align: right; }
.up-widget-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--green-700);
    text-decoration: none;
    padding: .5rem .85rem;
    border: 1.5px solid var(--green-300, #86efac);
    border-radius: .45rem;
    transition: background .2s, color .2s;
    width: 100%;
    justify-content: center;
}
.up-widget-btn:hover { background: var(--green-700); color: #fff; border-color: var(--green-700); }
/* Social list */
.up-social-list { display: flex; flex-direction: column; gap: .4rem; }
.up-social-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .45rem .6rem;
    border-radius: .4rem;
    background: #f8fafc;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    color: var(--green-800);
    transition: background .2s;
}
.up-social-row:hover { background: var(--green-50, #f0faf4); }
/* Visits */
.up-visit-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.up-visit-item { display: flex; align-items: center; gap: .5rem; font-size: .82rem; }
.up-visit-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--green-700);
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    flex-shrink: 0;
}
.up-visit-date { color: var(--gray-700); font-weight: 500; }
/* Back link */
.up-back-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .82rem;
    font-weight: 700;
    color: var(--green-700);
    text-decoration: none;
}
.up-back-link:hover { text-decoration: underline; }

/* Fallback ranking profile (non-sponsor universities) */
.up-profile-id {
    color: rgba(255,255,255,.85);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .03em;
}

.up-fallback-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .8rem;
}

.up-fallback-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: .85rem .9rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .04);
}

.up-fallback-card--rank {
    background: linear-gradient(135deg, #14532d 0%, #1f7a52 100%);
    border-color: #14532d;
}

.up-fallback-label {
    display: block;
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #6b7280;
}

.up-fallback-card--rank .up-fallback-label {
    color: rgba(255,255,255,.78);
}

.up-fallback-value {
    display: block;
    margin-top: .35rem;
    font-size: 1.35rem;
    line-height: 1.1;
    font-weight: 800;
    color: #14532d;
}

.up-fallback-card--rank .up-fallback-value {
    color: #fff;
    font-size: 1.6rem;
}

.up-map-canvas {
    width: 100%;
    min-height: 380px;
    border: 1px solid #d1d5db;
    border-radius: .85rem;
    overflow: hidden;
    background: #f8fafc;
}

.up-map-canvas iframe,
.up-map-embed-wrap iframe {
    width: 100%;
    min-height: 380px;
    border: 0;
    display: block;
}

.up-map-embed-wrap {
    border: 1px solid #d1d5db;
    border-radius: .85rem;
    overflow: hidden;
    background: #f8fafc;
}

.up-map-caption {
    margin-top: .65rem;
    font-size: .82rem;
    color: #6b7280;
}

.up-map-fallback-note {
    display: grid;
    place-items: center;
    padding: .85rem;
    font-size: .85rem;
    color: #4b5563;
    background: #f1f5f9;
    border-bottom: 1px solid #d1d5db;
}

/* Responsive university profile */
@media (max-width: 960px) { .up-body-row { grid-template-columns: 1fr; } .up-sidebar { position: static; } }
@media (max-width: 700px) {
    .up-hero-inner { flex-direction: column; align-items: flex-start; gap: 1rem; padding-bottom: 2rem; }
    .up-hero-logo-wrap { width: 120px; height: 92px; padding: .5rem .75rem; }
    .up-hero-logo { max-width: 90px; }
    .up-rankings-grid { grid-template-columns: repeat(2, 1fr); }
    .up-rank-card--featured { grid-column: span 1; }
    .up-stats-inner { gap: .75rem 1.5rem; }
    .up-fallback-cards { grid-template-columns: repeat(2, 1fr); }
    .up-map-canvas,
    .up-map-canvas iframe,
    .up-map-embed-wrap iframe {
        min-height: 300px;
    }
}
/* â”€â”€ End University Profile Page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

