/* College details hero (agd-hero-), compact: a short dark banner strip (banner photo under a gentle shade,
   or the brand gradient) carrying the breadcrumb, then one identity panel that overlaps it slightly and
   follows the page theme: logo tile, h1, location + chips, actions, and one slim stats row. */

.agd-hero { position: relative; isolation: isolate; overflow-x: clip; font-family: var(--ag-font); padding-bottom: 12px; max-width: 100%; }

/* ---------- Banner strip ---------- */
.agd-hero-banner {
  position: relative; z-index: 0; overflow: hidden; color: #fff;
  height: clamp(84px, 8vw, 112px);
  background: var(--ag-grad, linear-gradient(120deg, #034D3B 0%, #05664F 45%, #12A37A 100%));
}
.agd-hero-backdrop { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.agd-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  transform-origin: 55% 50%;
  animation: agd-hero-zoom 26s ease-in-out infinite alternate;
}
.agd-hero-glow {
  position: absolute; width: 46%; height: 220%; right: -8%; top: -60%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(110, 231, 183, .35), rgba(110, 231, 183, 0));
}
.agd-hero-shade { position: absolute; inset: 0; }
.agd-hero--img .agd-hero-shade { background: linear-gradient(90deg, rgba(2, 26, 20, .82) 0%, rgba(2, 30, 24, .55) 45%, rgba(2, 30, 24, .3) 100%); }
.agd-hero--grad .agd-hero-shade { background: linear-gradient(0deg, rgba(2, 24, 19, .3) 0%, rgba(2, 24, 19, 0) 70%); }

.agd-hero-inner { position: relative; z-index: 1; padding-top: 12px; }

/* ---------- Breadcrumb ---------- */
.agd-hero-crumbs ol { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; margin: 0; padding: 0; list-style: none; min-width: 0; font-size: .78rem; font-weight: 600; }
.agd-hero-crumbs li { display: inline-flex; align-items: center; gap: 6px; flex: none; min-width: 0; color: rgba(255, 255, 255, .82); }
.agd-hero-crumbs li:last-child { flex: 1 1 auto; overflow: hidden; }
.agd-hero-crumbs a { display: inline-flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, .86); text-decoration: none; transition: color .2s ease; }
.agd-hero-crumbs a:hover, .agd-hero-crumbs a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.agd-hero-sep { font-size: .62rem; opacity: .7; }
.agd-hero-crumb-now { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; min-width: 0; }

/* ---------- Identity panel ---------- */
.agd-hero-body { position: relative; z-index: 2; margin-top: -40px; }
.agd-hero-panel {
  position: relative; min-width: 0;
  padding: 14px 16px 12px; border-radius: 16px;
  background: rgba(255, 255, 255, .94); border: 1px solid rgba(5, 102, 79, .12);
  box-shadow: 0 14px 36px rgba(2, 44, 34, .12), inset 0 1px 0 rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.agd-hero-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; }

.agd-hero-logo {
  position: relative; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  background: #fff; border: 1px solid rgba(5, 102, 79, .14); box-shadow: 0 6px 16px rgba(2, 44, 34, .12);
}
.agd-hero-logo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.agd-hero-initials { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; color: #fff; background: linear-gradient(135deg, #12A37A 0%, #05664F 60%, #034D3B 100%); }
.agd-hero-logo:not(.is-noimg) .agd-hero-initials { opacity: 0; }

.agd-hero-id { min-width: 0; }
.agd-hero-title {
  margin: 0 0 6px; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.18; font-weight: 800; letter-spacing: -.015em;
  color: var(--ag-ink, #0B1F1A); overflow-wrap: anywhere;
  overflow-wrap: anywhere; /* the full college name is always readable (no clamp on the page title) */
}
.agd-hero-short { font-weight: 700; color: var(--ag-muted, #4B6159); font-size: .7em; letter-spacing: 0; }

.agd-hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.agd-hero-loc { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; margin-right: 4px; font-size: .84rem; font-weight: 600; color: var(--ag-muted, #4B6159); }
.agd-hero-loc i { color: #12A37A; }
.agd-hero-loc span, .agd-hero-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agd-hero-chip {
  display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%;
  padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; line-height: 1.4;
  color: #05664F; background: rgba(18, 163, 122, .08); border: 1px solid rgba(18, 163, 122, .2);
  transition: background-color .2s ease, border-color .2s ease;
}
.agd-hero-chip:hover { background: rgba(18, 163, 122, .14); border-color: rgba(18, 163, 122, .36); }
.agd-hero-chip i { font-size: .78rem; flex: none; }
.agd-hero-chip--wide { max-width: min(100%, 320px); }
.agd-hero-chip--ok { color: #7A5A00; background: rgba(212, 160, 23, .1); border-color: rgba(212, 160, 23, .3); }
.agd-hero-chip--ok i { color: #B8860B; }

.agd-hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.agd-hero-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px !important; font-size: .82rem !important; line-height: 1.3; border-radius: 10px !important; white-space: nowrap; min-height: 0 !important; }
.agd-hero-btn--ghost { color: #05664F !important; background: transparent !important; border: 1px solid rgba(5, 102, 79, .3) !important; }
.agd-hero-btn--ghost:hover { background: rgba(18, 163, 122, .08) !important; }

/* ---------- Slim stats row (separators are thin vertical rules) ---------- */
.agd-hero-facts {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 12px 0 0; padding: 9px 0 0; list-style: none; min-width: 0;
  border-top: 1px solid rgba(5, 102, 79, .1);
}
.agd-hero-fact { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 0 14px; font-size: .82rem; color: var(--ag-muted, #4B6159); }
.agd-hero-fact:first-child { padding-left: 0; }
.agd-hero-fact + .agd-hero-fact { border-left: 1px solid rgba(5, 102, 79, .18); }
.agd-hero-fact i { color: #12A37A; font-size: .9rem; flex: none; }
.agd-hero-fact-val { font-weight: 800; color: var(--ag-ink, #0B1F1A); font-variant-numeric: tabular-nums; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agd-hero-fact-lbl { font-weight: 600; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; flex: none; }

/* ---------- Dark theme (banner stays dark; panel follows the theme) ---------- */
html[data-theme="dark"] .agd-hero-panel { background: rgba(14, 30, 26, .9); border-color: rgba(110, 231, 183, .14); box-shadow: 0 14px 36px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04); }
html[data-theme="dark"] .agd-hero-logo { background: #F4FBF8; border-color: rgba(110, 231, 183, .2); }
html[data-theme="dark"] .agd-hero-title, html[data-theme="dark"] .agd-hero-fact-val { color: #ECF7F3; }
html[data-theme="dark"] .agd-hero-short, html[data-theme="dark"] .agd-hero-loc, html[data-theme="dark"] .agd-hero-fact { color: #A7BFB7; }
html[data-theme="dark"] .agd-hero-loc i, html[data-theme="dark"] .agd-hero-fact i { color: #34D399; }
html[data-theme="dark"] .agd-hero-chip { color: #6EE7B7; background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .24); }
html[data-theme="dark"] .agd-hero-chip:hover { background: rgba(52, 211, 153, .16); }
html[data-theme="dark"] .agd-hero-chip--ok { color: #F3D27A; background: rgba(212, 160, 23, .12); border-color: rgba(212, 160, 23, .32); }
html[data-theme="dark"] .agd-hero-chip--ok i { color: #F3C04A; }
html[data-theme="dark"] .agd-hero-btn--ghost { color: #6EE7B7 !important; border-color: rgba(110, 231, 183, .34) !important; }
html[data-theme="dark"] .agd-hero-btn--ghost:hover { background: rgba(52, 211, 153, .1) !important; }
html[data-theme="dark"] .agd-hero-facts { border-top-color: rgba(110, 231, 183, .12); }
html[data-theme="dark"] .agd-hero-fact + .agd-hero-fact { border-left-color: rgba(110, 231, 183, .2); }

@keyframes agd-hero-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
  .agd-hero-body { margin-top: -30px; }
  .agd-hero-panel { padding: 12px; border-radius: 14px; }
  .agd-hero-head { grid-template-columns: 52px minmax(0, 1fr); gap: 10px 12px; align-items: start; }
  .agd-hero-logo { width: 52px; height: 52px; border-radius: 12px; }
  .agd-hero-initials { font-size: 1.05rem; }
  .agd-hero-actions { grid-column: 1 / -1; flex-direction: row; }
  .agd-hero-actions .agd-hero-btn { flex: 1 1 0; min-width: 0; }
  .agd-hero-fact { padding: 0 10px; font-size: .78rem; }
  .agd-hero-chip--wide { max-width: 100%; }
}
@media (max-width: 389.98px) {
  .agd-hero-crumbs li:first-child span { display: none; }
  .agd-hero-fact-lbl { display: none; }
  .agd-hero-fact:first-child .agd-hero-fact-lbl { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .agd-hero-bg { animation: none; }
  .agd-hero-chip, .agd-hero-crumbs a { transition: none; }
}
