/*
 * HBCU Directory – Public Stylesheet
 *
 * Provides baseline styles for:
 *  - A-Z Directory (.hbcu-directory-wrap)
 *  - School Cards (.hbcu-card)
 *  - Single Profile (.hbcu-profile)
 *  - Interactive Map (.hbcu-map-container)
 *
 * @package HBCU_Directory
 */

/* ── Custom Properties ───────────────────────────────────────────── */
:root {
	--hbcu-primary:     #1b3a6b;   /* deep navy */
	--hbcu-accent:      #c8a43a;   /* gold      */
	--hbcu-bg:          #f9f7f2;
	--hbcu-card-bg:     #ffffff;
	--hbcu-text:        #1a1a1a;
	--hbcu-muted:       #666666;
	--hbcu-border:      #e0ddd5;
	--hbcu-radius:      8px;
	--hbcu-shadow:      0 2px 8px rgba(0, 0, 0, 0.08);
	--hbcu-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.14);
	--hbcu-transition:  0.22s ease;
}

/* ── Base Wrapper ────────────────────────────────────────────────── */
.hbcu-directory-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1.25rem;
	font-family: inherit;
	color: var(--hbcu-text);
}

/* ── Directory Header ────────────────────────────────────────────── */
.hbcu-directory-header {
	text-align: center;
	margin-bottom: 2.5rem;
}

.hbcu-directory-title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	color: var(--hbcu-primary);
	margin: 0 0 0.5rem;
}

.hbcu-directory-subtitle {
	color: var(--hbcu-muted);
	font-size: 1.05rem;
	margin: 0;
}

/* ── Filter Bar ──────────────────────────────────────────────────── */
.hbcu-filter-bar {
	background: var(--hbcu-card-bg);
	border: 1px solid var(--hbcu-border);
	border-radius: var(--hbcu-radius);
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.75rem;
	box-shadow: var(--hbcu-shadow);
}

.hbcu-filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-end;
}

.hbcu-filter-group {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 1 1 180px;
}

.hbcu-filter-group label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--hbcu-primary);
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.hbcu-filter-group select,
.hbcu-search-input {
	padding: 0.55rem 0.85rem;
	border: 1px solid var(--hbcu-border);
	border-radius: var(--hbcu-radius);
	font-size: 0.95rem;
	background: #fff;
	color: var(--hbcu-text);
	appearance: none;
	-webkit-appearance: none;
	/* Inline SVG arrow — colour (#1b3a6b) matches --hbcu-primary.
	   Update the %23 hex value here if you change --hbcu-primary. */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231b3a6b' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	padding-right: 2rem;
	transition: border-color var(--hbcu-transition);
}

.hbcu-filter-group select:focus,
.hbcu-search-input:focus {
	outline: 2px solid var(--hbcu-accent);
	border-color: var(--hbcu-accent);
}

.hbcu-search-input {
	background-image: none;
	padding-right: 0.85rem;
	width: 100%;
}

.hbcu-search-group {
	flex: 2 1 220px;
}

.hbcu-filter-actions {
	display: flex;
	gap: 0.5rem;
	align-items: flex-end;
	flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.hbcu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.25rem;
	border: 2px solid transparent;
	border-radius: var(--hbcu-radius);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background var(--hbcu-transition), color var(--hbcu-transition), border-color var(--hbcu-transition);
	line-height: 1.4;
}

.hbcu-btn--primary {
	background: var(--hbcu-primary);
	color: #fff;
	border-color: var(--hbcu-primary);
}

.hbcu-btn--primary:hover,
.hbcu-btn--primary:focus {
	background: #14305a;
	border-color: #14305a;
}

.hbcu-btn--secondary {
	background: transparent;
	color: var(--hbcu-primary);
	border-color: var(--hbcu-primary);
}

.hbcu-btn--secondary:hover,
.hbcu-btn--secondary:focus {
	background: var(--hbcu-primary);
	color: #fff;
}

.hbcu-btn--accent {
	background: var(--hbcu-accent);
	color: #fff;
	border-color: var(--hbcu-accent);
}

.hbcu-btn--accent:hover,
.hbcu-btn--accent:focus {
	background: #b08a28;
	border-color: #b08a28;
}

.hbcu-btn--sm {
	padding: 0.35rem 0.85rem;
	font-size: 0.82rem;
	background: var(--hbcu-primary);
	color: #fff;
}

.hbcu-btn--sm:hover,
.hbcu-btn--sm:focus {
	background: #14305a;
	color: #fff;
}

/* ── Alphabet Nav ────────────────────────────────────────────────── */
.hbcu-alphabet-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin-bottom: 1.5rem;
}

.hbcu-letter {
	padding: 0.35rem 0.65rem;
	border: 1px solid var(--hbcu-border);
	border-radius: 4px;
	background: var(--hbcu-card-bg);
	color: var(--hbcu-primary);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background var(--hbcu-transition), color var(--hbcu-transition);
}

.hbcu-letter:hover,
.hbcu-letter--active {
	background: var(--hbcu-primary);
	color: #fff;
	border-color: var(--hbcu-primary);
}

/* ── Results Meta ────────────────────────────────────────────────── */
.hbcu-results-meta {
	color: var(--hbcu-muted);
	font-size: 0.9rem;
	margin-bottom: 1rem;
	min-height: 1.4em;
}

/* ── School Cards Grid ───────────────────────────────────────────── */
.hbcu-schools-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax(260px, 1fr) );
	gap: 1.5rem;
	margin-bottom: 2rem;
}

/* ── School Card ─────────────────────────────────────────────────── */
.hbcu-card {
	background: var(--hbcu-card-bg);
	border: 1px solid var(--hbcu-border);
	border-radius: var(--hbcu-radius);
	box-shadow: var(--hbcu-shadow);
	transition: box-shadow var(--hbcu-transition), transform var(--hbcu-transition);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.hbcu-card:hover {
	box-shadow: var(--hbcu-shadow-hover);
	transform: translateY(-2px);
}

.hbcu-card__link {
	display: block;
	text-decoration: none;
}

.hbcu-card__logo-wrap {
	display: block;
	text-decoration: none;
}

.hbcu-card__logo {
	height: 120px;
	background: var(--hbcu-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-bottom: 1px solid var(--hbcu-border);
}

.hbcu-card__logo-img {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	padding: 0.75rem;
}

.hbcu-card__logo-placeholder {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--hbcu-primary);
	opacity: 0.25;
	line-height: 1;
}

.hbcu-card__body {
	padding: 1rem 1.1rem 0.75rem;
	flex: 1;
}

.hbcu-card__title {
	font-size: 1rem;
	margin: 0 0 0.35rem;
	line-height: 1.35;
}

.hbcu-card__title a {
	color: var(--hbcu-primary);
	text-decoration: none;
}

.hbcu-card__title a:hover {
	text-decoration: underline;
}

.hbcu-card__location {
	font-size: 0.85rem;
	color: var(--hbcu-muted);
	margin: 0 0 0.5rem;
}

.hbcu-card__degrees {
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
}

.hbcu-card__degrees li {
	font-size: 0.78rem;
	background: var(--hbcu-bg);
	color: var(--hbcu-primary);
	padding: 0.15rem 0.5rem;
	border-radius: 20px;
	border: 1px solid var(--hbcu-border);
}

.hbcu-card__footer {
	padding: 0.75rem 1.1rem;
	border-top: 1px solid var(--hbcu-border);
}

/* ── Badges ──────────────────────────────────────────────────────── */
.hbcu-badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.2rem 0.6rem;
	border-radius: 20px;
	letter-spacing: 0.02em;
	background: var(--hbcu-accent);
	color: #fff;
}

.hbcu-badge--type {
	background: var(--hbcu-primary);
}

/* ── Pagination ──────────────────────────────────────────────────── */
.hbcu-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-top: 1rem;
}

.hbcu-page-btn {
	padding: 0.4rem 0.85rem;
	border: 1px solid var(--hbcu-border);
	border-radius: 4px;
	background: var(--hbcu-card-bg);
	color: var(--hbcu-primary);
	cursor: pointer;
	font-size: 0.88rem;
	transition: background var(--hbcu-transition);
}

.hbcu-page-btn:hover,
.hbcu-page-btn--active {
	background: var(--hbcu-primary);
	color: #fff;
	border-color: var(--hbcu-primary);
}

/* ── No Results ──────────────────────────────────────────────────── */
.hbcu-no-results {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--hbcu-muted);
	padding: 3rem 1rem;
	font-size: 1.05rem;
}

/* ── Single Profile ────────────────────────────────────────────────── */
.hbcu-profile {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 1.25rem 4rem;
}

/* ── Identity bar (below gallery; replaces old hero overlay) ──────────────
 *
 * Light-background strip: logo card on the left, school name + meta on the
 * right. All text colours are dark (inverted from the old dark-overlay hero).
 * ─────────────────────────────────────────────────────────────────────────── */

.hbcu-profile__identity {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 1.5rem 0 1.75rem;
	margin-bottom: 2rem;
	border-bottom: 1.5px solid var(--hbcu-border);
}

/* Logo card ─ white, bordered, light shadow */
.hbcu-profile__logo-card {
	width: 84px;
	height: 84px;
	border-radius: 14px;
	flex-shrink: 0;
	background: #fff;
	border: 1.5px solid var(--hbcu-border);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10), 0 1px 3px rgba(0, 0, 0, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.hbcu-profile__logo-card img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 8px;
}

/* Monogram fallback: solid navy */
.hbcu-profile__logo-card--monogram {
	background: var(--hbcu-primary);
	border-color: var(--hbcu-primary);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* Identity text block */
.hbcu-profile__identity-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

/* Eyebrow label */
.hbcu-profile__eyebrow {
	font-size: 0.67rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.13em;
	color: var(--hbcu-accent);
	margin: 0;
	line-height: 1;
}

/* School name — dark on white background */
.hbcu-profile__name {
	margin: 0;
	color: var(--hbcu-primary);
	font-size: clamp(1.4rem, 3.2vw, 2.2rem);
	font-weight: 800;
	line-height: 1.15;
}

/* Location + badge row */
.hbcu-profile__hero-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 0.1rem;
}

.hbcu-profile__location {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
	color: var(--hbcu-muted);
	font-size: 0.87rem;
	margin: 0;
}

.hbcu-profile__location svg {
	flex-shrink: 0;
	opacity: 0.65;
}

/* Type badge in identity bar: muted gold tint on white */
.hbcu-profile__identity .hbcu-badge {
	font-size: 0.72rem;
	padding: 0.22rem 0.72rem;
	background: rgba(200, 164, 58, 0.12);
	color: #7a5c00;
	border: 1px solid rgba(200, 164, 58, 0.38);
}

/* ── Campus Gallery ─────────────────────────────────── */

.hbcu-gallery {
	margin-bottom: 2.5rem;
}

/* ─ Single-image layout ─ */
.hbcu-gallery--single .hbcu-gallery__single {
	width: 100%;
	aspect-ratio: 16 / 6;
	border-radius: 14px;
	overflow: hidden;
	/* Button-element resets — element changed from div to button for a11y */
	appearance: none;
	-webkit-appearance: none;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: block;
	text-align: left;
}

.hbcu-gallery--single .hbcu-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.hbcu-gallery--single:hover .hbcu-gallery__img {
	transform: scale(1.02);
}

/* ─ Multi-image editorial grid ─ */
.hbcu-gallery--multi .hbcu-gallery__grid {
	display: grid;
	grid-template-columns: 1fr 220px;
	height: 388px;
	gap: 8px;
	border-radius: 14px;
	overflow: hidden;
}

/* Main image — left panel */
.hbcu-gallery__main {
	display: block;
	overflow: hidden;
	position: relative;
	min-height: 0;
	text-decoration: none;
}

.hbcu-gallery__main .hbcu-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.hbcu-gallery__main:hover .hbcu-gallery__img {
	transform: scale(1.03);
}

/* Side rail — right panel */
.hbcu-gallery__rail {
	display: grid;
	grid-template-rows: repeat(4, 1fr);
	gap: 8px;
	min-height: 0;
}

.hbcu-gallery__thumb {
	display: block;
	overflow: hidden;
	position: relative;
	min-height: 0;
	text-decoration: none;
}

.hbcu-gallery__thumb .hbcu-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.hbcu-gallery__thumb:hover .hbcu-gallery__img {
	transform: scale(1.08);
}

/* Peek overlay on last thumb when more images exist */
.hbcu-gallery__thumb--peek {
	position: relative;
}

.hbcu-gallery__thumb-overlay {
	position: absolute;
	inset: 0;
	background: rgba(8, 20, 50, 0.62);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	letter-spacing: 0.02em;
	pointer-events: none;
}

/* "View all" footer */
.hbcu-gallery__footer {
	display: flex;
	justify-content: flex-end;
	padding: 0.75rem 0 0;
}

.hbcu-gallery__view-all {
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--hbcu-primary);
	background: var(--hbcu-card-bg);
	border: 1.5px solid var(--hbcu-border);
	border-radius: 8px;
	padding: 0.5rem 1.1rem;
	text-decoration: none;
	transition: var(--hbcu-transition);
}

.hbcu-gallery__view-all svg {
	flex-shrink: 0;
}

.hbcu-gallery__view-all:hover {
	background: var(--hbcu-primary);
	color: #fff;
	border-color: var(--hbcu-primary);
}

/* ─ Gallery responsive ─ */
@media (max-width: 760px) {
	.hbcu-gallery--multi .hbcu-gallery__grid {
		grid-template-columns: 1fr;
		height: auto;
		gap: 6px;
	}

	.hbcu-gallery__main {
		height: 260px;
	}

	.hbcu-gallery__rail {
		grid-template-rows: none;
		grid-template-columns: repeat(2, 1fr);
		height: 120px;
	}
}

@media (max-width: 480px) {
	.hbcu-gallery--multi .hbcu-gallery__grid {
		gap: 4px;
	}

	.hbcu-gallery__main {
		height: 200px;
	}

	.hbcu-gallery__rail {
		height: 88px;
	}

	.hbcu-gallery--single .hbcu-gallery__single {
		aspect-ratio: 4 / 3;
	}
}

/* ── Two-column body layout ────────────────────────────────────── */
.hbcu-profile__body {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 2.5rem;
	align-items: start;
}

@media (max-width: 860px) {
	.hbcu-profile__body {
		grid-template-columns: 1fr;
	}
}

/* ── Left main content column ─────────────────────────────────── */
.hbcu-profile__main {
	min-width: 0;
}

.hbcu-profile__section {
	margin-bottom: 2.75rem;
}

.hbcu-profile__section:last-child {
	margin-bottom: 0;
}

.hbcu-profile__section-heading {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--hbcu-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 1rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid var(--hbcu-border);
}

.hbcu-profile__content {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--hbcu-text);
}

.hbcu-profile__empty-notice {
	font-size: 0.9rem;
	color: var(--hbcu-muted);
	font-style: italic;
	margin: 0;
}

.hbcu-profile__empty-notice--sm {
	font-size: 0.8rem;
}

.hbcu-profile__map-address {
	font-size: 0.9rem;
	color: var(--hbcu-muted);
	margin: 0 0 0.85rem;
}

.hbcu-profile__map-card {
	border-radius: var(--hbcu-radius);
	overflow: hidden;
	border: 1px solid var(--hbcu-border);
	box-shadow: var(--hbcu-shadow);
}

/* ── Right sticky sidebar ────────────────────────────────────────── */
.hbcu-profile__sidebar {
	position: sticky;
	top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.hbcu-sidebar-links a {
	font-size: 0.9rem;
	color: var(--hbcu-primary);
	text-decoration: none;
	transition: color var(--hbcu-transition);
}
@media (max-width: 860px) {
	.hbcu-profile__sidebar {
		position: static;
	}
}

/* Identity bar responsive behaviour */
@media (max-width: 760px) {
	.hbcu-profile__identity {
		gap: 1rem;
		padding: 1.25rem 0 1.5rem;
	}
	.hbcu-profile__logo-card {
		width: 68px;
		height: 68px;
		border-radius: 11px;
	}
	.hbcu-profile__monogram {
		font-size: 1.75rem;
	}
}

@media (max-width: 480px) {
	.hbcu-profile__identity {
		gap: 0.85rem;
		padding: 1rem 0 1.25rem;
	}
	.hbcu-profile__logo-card {
		width: 56px;
		height: 56px;
		border-radius: 9px;
	}
	.hbcu-profile__name {
		font-size: clamp(1.15rem, 5vw, 1.55rem);
	}
	.hbcu-profile__monogram {
		font-size: 1.4rem;
	}
}

/* Unified sidebar card */
.hbcu-sidebar-card {
	background: var(--hbcu-card-bg);
	border: 1px solid var(--hbcu-border);
	border-radius: var(--hbcu-radius);
	padding: 1rem 1.1rem;
	box-shadow: var(--hbcu-shadow);
}

.hbcu-sidebar-card__heading {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--hbcu-muted);
	margin: 0 0 0.65rem;
}

/* Stats card: borderless split tiles */
.hbcu-sidebar-card--stats {
	display: flex;
	padding: 0;
	overflow: hidden;
}

.hbcu-stat {
	flex: 1;
	padding: 1.1rem 0.85rem;
	text-align: center;
	border-right: 1px solid var(--hbcu-border);
}

.hbcu-stat:last-child {
	border-right: none;
}

.hbcu-stat__value {
	display: block;
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--hbcu-primary);
	line-height: 1.15;
}

.hbcu-stat__label {
	display: block;
	font-size: 0.68rem;
	color: var(--hbcu-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-top: 0.25rem;
}

/* CTA buttons */
.hbcu-sidebar-actions {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.hbcu-sidebar-actions .hbcu-btn {
	width: 100%;
	text-align: center;
}

/* Tag pill groups */
.hbcu-tag-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.hbcu-tag {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 500;
	background: var(--hbcu-bg);
	color: var(--hbcu-primary);
	padding: 0.25rem 0.7rem;
	border-radius: 20px;
	border: 1px solid var(--hbcu-border);
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease;
}

.hbcu-tag:hover {
	background: var(--hbcu-primary);
	color: #fff;
}

/* Address block */
.hbcu-sidebar-address {
	font-style: normal;
	font-size: 0.88rem;
	color: var(--hbcu-text);
	line-height: 1.6;
}

/* ── Map Container ───────────────────────────────────────────────── */
.hbcu-map-container {
	width: 100%;
	min-height: 350px;
	border-radius: var(--hbcu-radius);
	border: 1px solid var(--hbcu-border);
	overflow: hidden;
	box-shadow: var(--hbcu-shadow);
}

/* Inside .hbcu-profile__map-card — card provides border/shadow/radius */
.hbcu-profile__map {
	width: 100%;
	height: 420px;
	display: block;
}

/*
 * .hbcu-map-section: minimal wrapper — visual chrome lives on .hbcu-map-layout.
 * The small margin-top gives breathing room when Elementor / Gutenberg
 * content (headings, copy) appears above the shortcode.
 */
.hbcu-map-section {
	margin-top: 1rem;
	margin-bottom: 2rem;
}

/* Generic .hbcu-map-filters: fallback for non-panel contexts.
   Inside .hbcu-map-panel these are fully overridden by the
   more-specific selectors in the two-column layout section below. */
.hbcu-map-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: flex-end;
}

.hbcu-map-filters label {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--hbcu-primary);
	display: block;
	margin-bottom: 0.2rem;
}

.hbcu-map-filters select {
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--hbcu-border);
	border-radius: var(--hbcu-radius);
	font-size: 0.9rem;
	background: #fff;
}

/* ── Loading Spinner ─────────────────────────────────────────────── */
.hbcu-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2.5rem;
	grid-column: 1 / -1;
}

.hbcu-loading::after {
	content: '';
	width: 36px;
	height: 36px;
	border: 3px solid var(--hbcu-border);
	border-top-color: var(--hbcu-primary);
	border-radius: 50%;
	animation: hbcu-spin 0.8s linear infinite;
}

@keyframes hbcu-spin {
	to { transform: rotate(360deg); }
}

/* ── Back Link (top-left, above gallery) ────────────────────────── */
.hbcu-back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 1.25rem;
	color: var(--hbcu-muted);
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 500;
	transition: color 0.18s;
}

.hbcu-back-link:hover {
	color: var(--hbcu-primary);
	text-decoration: none;
}

/* ── Map Popup ───────────────────────────────────────────────────── */
.hbcu-map-popup .leaflet-popup-content-wrapper {
	border-radius: var(--hbcu-radius);
	box-shadow: var(--hbcu-shadow-hover);
	padding: 0;
	overflow: hidden;
}

/* Remove Leaflet's default content padding so we control all spacing */
.hbcu-map-popup .leaflet-popup-content {
	margin: 0;
	width: auto !important;
}

.hbcu-popup {
	min-width: 220px;
	max-width: 290px;
	padding: 0.9rem 1rem 1rem;
}

/* Header row: name (flex 1) + type badge (flex-shrink: 0) */
.hbcu-popup__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.25rem;
}

.hbcu-popup__name {
	flex: 1;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--hbcu-primary);
	margin: 0;
	line-height: 1.35;
}

.hbcu-popup__type-badge {
	flex-shrink: 0;
	display: inline-block;
	font-size: 0.64rem;
	font-weight: 700;
	padding: 0.15rem 0.45rem;
	border-radius: 20px;
	background: var(--hbcu-primary);
	color: #fff;
	white-space: nowrap;
	margin-top: 0.15rem;
	letter-spacing: 0.02em;
}

.hbcu-popup__location {
	font-size: 0.82rem;
	color: var(--hbcu-muted);
	margin: 0 0 0.55rem;
}

/* Degree-type pill badges */
.hbcu-popup__degrees {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-bottom: 0.75rem;
}

.hbcu-popup__degree-tag {
	font-size: 0.66rem;
	background: var(--hbcu-bg);
	color: var(--hbcu-primary);
	padding: 0.1rem 0.45rem;
	border-radius: 20px;
	border: 1px solid var(--hbcu-border);
	white-space: nowrap;
}

/* Profile link — styled as a small filled button */
.hbcu-popup__link {
	display: inline-flex;
	align-items: center;
	font-size: 0.82rem;
	font-weight: 600;
	color: #fff;
	background: var(--hbcu-primary);
	border-radius: var(--hbcu-radius);
	padding: 0.35rem 0.8rem;
	text-decoration: none;
	transition: background var(--hbcu-transition);
}

.leaflet-container a.hbcu-popup__link {
    color: #fff;
}
.hbcu-popup__link:hover {
	background: #14305a;
	text-decoration: none;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.hbcu-filter-form {
		flex-direction: column;
	}
	.hbcu-filter-group {
		flex: 1 1 100%;
	}
	.hbcu-alphabet-nav {
		justify-content: center;
	}
}

/* ── Monogram (single profile) ───────────────────────────────── */
/* Visual rules for .hbcu-profile__logo-card--monogram are in the hero block above. */
.hbcu-profile__monogram {
	font-size: 2.1rem;
	font-weight: 900;
	color: #fff;
	line-height: 1;
	user-select: none;
	letter-spacing: -0.02em;
}

/* ── "No Map" / "No Link" Notices ────────────────────────────────── */
.hbcu-profile__no-map,
.hbcu-profile__no-link {
	font-size: 0.9rem;
	color: var(--hbcu-muted);
	background: var(--hbcu-bg);
	border: 1px dashed var(--hbcu-border);
	border-radius: var(--hbcu-radius);
	padding: 0.75rem 1rem;
	margin: 0;
}



/* ── Optional Map Intro Block ────────────────────────────────────── */
/*
 * Rendered when [hbcu_map title="…" description="…"] attrs are used.
 * Sits above the two-column layout; keeps Elementor / Gutenberg content
 * placed above the shortcode visually separate.
 */
.hbcu-map-intro {
	margin-bottom: 1.25rem;
}

.hbcu-map-intro__title {
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	color: var(--hbcu-primary);
	margin: 0 0 0.5rem;
	line-height: 1.25;
}

.hbcu-map-intro__desc {
	font-size: 1rem;
	color: var(--hbcu-muted);
	margin: 0;
	line-height: 1.65;
}

/* ── Map page tagline ────────────────────────────────────────────── */
.hbcu-map-tagline {
	font-size: 0.95rem;
	color: var(--hbcu-muted);
	margin: 0 0 1.25rem;
	line-height: 1.6;
}

/* ── Map Two-Column Layout ───────────────────────────────────────── */
/*
 * Panel (left, 360px) and map (right) sit flush against each other:
 *   - gap: 0 so there is no gutter between the columns
 *   - the visual card border/shadow/radius lives on .hbcu-map-layout
 *   - .hbcu-map-panel has a border-right that divides the two columns
 *   - overflow: hidden clips panel/map corners inside the radius
 *
 * Heights:
 *   - Map: explicit height via PHP inline style (default 600px)
 *   - Panel: align-items: stretch makes it fill the same grid row height
 */
.hbcu-map-layout {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 0;
	align-items: stretch;
	border: 1px solid #eceae5;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.03);
	margin-top: 0.875rem;
}

/* ── Left Panel (scrollable results list) ───────────────────────── */
.hbcu-map-panel {
	display: flex;
	flex-direction: column;
	height: 100%; /* must be explicit for flex children to fill/scroll correctly */
	background: var(--hbcu-card-bg);
	border-right: 1px solid #eceae5;
	overflow: hidden;
}

/* ── Inline filter bar (above the map module) ───────────────────── */
/*
 * Horizontal flex row that matches the Scholarship Hub filter bar language:
 * white card, soft border/shadow, consistent 42px control height.
 * Wraps at tablet, stacks at mobile (see responsive section).
 */
.hbcu-map-filter-bar {
	background: var(--hbcu-card-bg);
	border: 1px solid #eceae5;
	border-radius: 12px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.02);
	padding: 1.1rem 1.35rem;
	margin-bottom: 0;
}

.hbcu-map-filter-bar__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.75rem;
	align-items: flex-end;
}

/*
 * Each filter group: label stacked above its select.
 * max-width: 240px prevents stretching on wide viewports.
 */
.hbcu-map-filter-group {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	flex: 1 1 150px;
	max-width: 220px;
}

/* Uppercase micro-label — lightweight, informational, muted */
.hbcu-map-filter-group label {
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--hbcu-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.hbcu-map-filter-group select {
	width: 100%;
	height: 42px;
	padding: 0 2.25rem 0 0.85rem;
	border: 1.5px solid #dbd8d2;
	border-radius: 8px;
	font-size: 0.875rem;
	font-family: inherit;
	background: var(--hbcu-card-bg);
	color: var(--hbcu-text);
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23999999' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	cursor: pointer;
	transition: border-color var(--hbcu-transition), box-shadow var(--hbcu-transition);
}

.hbcu-map-filter-group select:hover {
	border-color: #a8a49c;
}

.hbcu-map-filter-group select:focus {
	outline: none;
	border-color: var(--hbcu-accent);
	box-shadow: 0 0 0 3px rgba(200, 164, 58, 0.18);
}

/*
 * Actions container: aligns the Reset button baseline to the bottom
 * of the flex row so it sits flush with the select controls.
 */
.hbcu-map-filter-bar__actions {
	display: flex;
	align-items: flex-end;
	flex-shrink: 0;
}

/*
 * Reset button: fully self-contained — no .hbcu-btn dependency.
 * !important overrides beat hello-biz theme.css [type=button] rule.
 * Height matches adjacent selects (42px); width is auto in the bar.
 */
.hbcu-map-reset-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 42px !important;
	padding: 0 1.2rem !important;
	font-family: inherit !important;
	font-size: 0.8rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em;
	line-height: 1 !important;
	white-space: nowrap;
	cursor: pointer;
	color: var(--hbcu-muted) !important;
	background: var(--hbcu-card-bg) !important;
	background-color: var(--hbcu-card-bg) !important;
	border: 1.5px solid #dbd8d2 !important;
	border-radius: 8px !important;
	transition: background var(--hbcu-transition), border-color var(--hbcu-transition), color var(--hbcu-transition);
}

.hbcu-map-reset-btn:hover,
.hbcu-map-reset-btn:focus {
	background: var(--hbcu-bg) !important;
	background-color: var(--hbcu-bg) !important;
	border-color: var(--hbcu-primary) !important;
	color: var(--hbcu-primary) !important;
	outline: none;
}

/* ── Results meta: sidebar count header (populated by JS) ─────────── */
/*
 * JS writes "N HBCUs found" here after each filter change and adds
 * .is-populated. Without that class the element is invisible so it
 * takes up no space during the initial loading state.
 *
 * Once populated it becomes a sticky top-of-panel header, matching
 * the panel's background so it covers list items while scrolling.
 */
.hbcu-map-results-meta {
	display: block;
	background: var(--hbcu-card-bg);
}

.hbcu-map-results-meta.is-populated {
	position: sticky;
	top: 0;
	z-index: 1;
	padding: 0.7rem 1rem 0.65rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #3d3b38;
	letter-spacing: 0.02em;
	border-bottom: 1px solid #eceae5;
	background: var(--hbcu-card-bg);
}

/* ── School List (fills remaining panel height, scrolls) ─────────── */
.hbcu-map-school-list {
	flex: 1;
	min-height: 0; /* required: lets flex child scroll rather than grow */
	overflow-y: auto;
	/* Subtle custom scrollbar — WebKit + Firefox */
	scrollbar-width: thin;
	scrollbar-color: var(--hbcu-border) transparent;
}

.hbcu-map-school-list::-webkit-scrollbar {
	width: 4px;
}

.hbcu-map-school-list::-webkit-scrollbar-track {
	background: transparent;
}

.hbcu-map-school-list::-webkit-scrollbar-thumb {
	background: #dbd8d2;
	border-radius: 10px;
}

/* Loading / empty states */
.hbcu-map-school-list__loading,
.hbcu-map-school-list__empty {
	padding: 2.5rem 1.25rem;
	margin: 0;
	text-align: center;
	font-size: 0.875rem;
	color: var(--hbcu-muted);
	line-height: 1.6;
}

/*
 * Padding lets rounded items show their border-radius without
 * being clipped by the panel's overflow: hidden.
 */
.hbcu-map-school-list__items {
	list-style: none;
	margin: 0;
	padding: 0.5rem;
}

/* ── School List Item ────────────────────────────────────────────── */
/*
 * Rounded card-row: each item feels clickable and intentional.
 * border-left accent carries over for the active/focus states.
 * Margin-based vertical gap replaces bottom borders.
 */
.hbcu-map-school-item {
	padding: 0.8rem 0.9rem;
	border-radius: 8px;
	margin-bottom: 2px;
	cursor: pointer;
	border-left: 3px solid transparent;
	outline: none;
	transition:
		background var(--hbcu-transition),
		border-left-color var(--hbcu-transition);
}

.hbcu-map-school-item:last-child {
	margin-bottom: 0;
}

.hbcu-map-school-item:hover {
	background: #f5f3ef;
}

.hbcu-map-school-item:focus-visible {
	background: #f5f3ef;
	border-left-color: var(--hbcu-accent);
}

.hbcu-map-school-item--active {
	background: rgba(27, 58, 107, 0.06);
	border-left-color: var(--hbcu-primary);
}

/* School name */
.hbcu-map-school-item__name {
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--hbcu-primary);
	margin-bottom: 0.15rem;
	line-height: 1.35;
}

.hbcu-map-school-item__link {
	color: inherit;
	text-decoration: none;
}

.hbcu-map-school-item__link:hover {
	text-decoration: underline;
}

/* City, state */
.hbcu-map-school-item__location {
	display: block;
	font-size: 0.75rem;
	color: var(--hbcu-muted);
	margin-bottom: 0.25rem;
}

/* Degree-type pill tags */
.hbcu-map-school-item__degrees {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem;
	margin-top: 0.15rem;
}

.hbcu-map-school-item__degree-tag {
	font-size: 0.62rem;
	line-height: 1.5;
	background: var(--hbcu-bg);
	color: #666;
	padding: 0.1rem 0.45rem;
	border-radius: 4px;
	border: 1px solid var(--hbcu-border);
	white-space: nowrap;
}

/* ── Right: Leaflet map container ────────────────────────────────── */
/*
 * Border/radius/shadow live on .hbcu-map-layout, not the map element.
 * height: 100% references the grid column height, which equals the
 * layout's explicit inline height — no blank gap below the canvas.
 */
.hbcu-map-layout .hbcu-map-container {
	height: 100%;
	border-radius: 0;
	border: none;
	box-shadow: none;
}

/* ── Leaflet Marker Hover Highlight ─────────────────────────────── */
/* Applied via JS: markerEl.classList.add('hbcu-marker--hover') */
.hbcu-marker--hover {
	filter: drop-shadow(0 0 5px var(--hbcu-accent)) brightness(1.12);
	transform: scale(1.3) translateY(-5px);
	z-index: 1000 !important;
	transition: filter 0.15s ease, transform 0.15s ease;
}

/* ── Responsive: Tablet ≤900px — narrow the school list column ───── */
@media (max-width: 900px) {
	.hbcu-map-layout {
		grid-template-columns: 260px 1fr;
	}
}

/* ── Responsive: Tablet ≤768px — filter bar wraps to two rows ─────── */
@media (max-width: 768px) {
	.hbcu-map-filter-group {
		flex: 1 1 calc(50% - 0.5rem);
		max-width: none;
	}

	.hbcu-map-filter-bar__actions {
		flex: 1 1 100%;
		gap: 0.5rem;
	}

	.hbcu-map-reset-btn {
		flex: 1 1 auto;
		width: 100% !important;
	}
}

/* ── Responsive: Mobile ≤600px — stack filter controls + module ───── */
@media (max-width: 600px) {
	.hbcu-map-filter-bar {
		padding: 0.85rem 1rem;
		border-radius: 10px;
	}

	.hbcu-map-filter-bar__inner {
		flex-direction: column;
		gap: 0.5rem;
	}

	.hbcu-map-filter-group,
	.hbcu-map-filter-bar__actions {
		flex: 1 1 100%;
		max-width: none;
	}

	.hbcu-map-layout {
		grid-template-columns: 1fr;
		height: auto !important;
		border-radius: 10px;
	}

	/* Map on top */
	.hbcu-map-layout .hbcu-map-container {
		order: -1;
		min-height: 300px;
		height: 300px !important;
	}

	/* School list panel below */
	.hbcu-map-panel {
		border-right: none;
		border-top: 1px solid #eceae5;
		height: auto !important;
		max-height: 340px;
	}
}

/* ══════════════════════════════════════════════════════════════════════════
   A–Z Directory  [hbcu_az_directory]
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Outer wrapper — constrained width ───────────────────────────── */
.hbcu-az-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
	font-family: inherit;
	color: var(--hbcu-text);
	scroll-behavior: smooth;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hbcu-az-hero {
	margin-bottom: 1.5rem;
}

.hbcu-az-hero__title {
	font-size: clamp(1.6rem, 3.5vw, 2.4rem);
	color: var(--hbcu-primary);
	margin: 0 0 0.4rem;
	line-height: 1.2;
}

.hbcu-az-hero__subtitle {
	font-size: 1rem;
	color: var(--hbcu-muted);
	margin: 0;
	line-height: 1.65;
	max-width: 620px;
}

/* ── Filter bar (extends .hbcu-map-filter-bar) ────────────────────── */
.hbcu-az-filter-bar {
	margin-bottom: 1rem;
}

/* Search input — matches the select geometry from the map filter bar */
.hbcu-az-search-input {
	width: 100%;
	height: 42px;
	padding: 0 0.85rem;
	border: 1.5px solid #dbd8d2;
	border-radius: 8px;
	font-size: 0.875rem;
	font-family: inherit;
	background: var(--hbcu-card-bg);
	color: var(--hbcu-text);
	transition: border-color var(--hbcu-transition), box-shadow var(--hbcu-transition);
}

.hbcu-az-search-input:hover {
	border-color: #a8a49c;
}

.hbcu-az-search-input:focus {
	outline: none;
	border-color: var(--hbcu-accent);
	box-shadow: 0 0 0 3px rgba(200, 164, 58, 0.18);
}

.hbcu-az-search-input::placeholder {
	color: #b0aba3;
}

/* Micro-interaction: accent ring on filter selects */
.hbcu-az-filter-bar select:focus {
	outline: none;
	border-color: var(--hbcu-accent);
	box-shadow: 0 0 0 2px rgba(200, 164, 58, 0.15);
}

/* ── Results count ────────────────────────────────────────────────── */
.hbcu-az-count {
	margin-left: auto;
	font-size: 13px;
	font-weight: 500;
	color: #6b7280;
	white-space: nowrap;
	align-self: flex-end;
	padding-bottom: 2px;
}

/* ── Range navigation — A–G · H–O · P–Z (sticky top bar) ─────────── */
.hbcu-az-range-nav {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 24px;
	padding: 14px 0;
	position: sticky;
	top: 80px;
	background: #fff;
	z-index: 20;
	border-bottom: 2px solid #e5e7eb;
}

.hbcu-az-range-nav__link {
	display: inline-flex;
	align-items: center;
	padding: 8px 22px;
	border-radius: 8px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	color: #374151;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: all 0.2s ease;
}

.hbcu-az-range-nav__link:hover,
.hbcu-az-range-nav__link:focus {
	background: var(--hbcu-accent);
	border-color: var(--hbcu-accent);
	color: #fff;
	text-decoration: none;
	outline: none;
}

/* ── Three-column listings layout — one column per range ───────── */
.hbcu-az-wrap .hbcu-az-listings {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0 48px;
	align-items: start;
	margin-top: 16px;
}

/* ── Range sections (A–G, H–O, P–Z) ─────────────────────────────── */
.hbcu-az-range {
	scroll-margin-top: 100px; /* clears sticky range nav on anchor jump */
}

/* ── Divider rendered between range sections (PHP skips after last) ─ */
.hbcu-range-divider {
	border: none;
	border-top: 1px solid #e5e7eb;
	margin: 20px 0;
}

/* ── Range section title + rule ──────────────────────────────────────── */
.hbcu-range-title {
	font-size: 18px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 12px;
	padding: 0;
	border: none;
}

.hbcu-range-title__rule {
	border: none;
	height: 2px;
	background: #e5e7eb;
	margin: 0 0 20px;
}

/* ── Letter groups within each range column ─────────────────────── */
.hbcu-az-group {
	margin-bottom: 24px;
}

/* ── Letter heading ─────────────────────────────────────────────── */
.hbcu-az-letter {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--hbcu-accent);
	margin: 0 0 6px;
	padding-bottom: 4px;
	border-bottom: 1px solid #e5e7eb;
}

/* ── Directory item ───────────────────────────────────────────── */
.hbcu-item {
	min-width: 0;
}

.hbcu-item a {
	display: block;
	font-weight: 500;
	font-size: 0.9rem;
	color: #111827;
	text-decoration: none;
	line-height: 1.4;
}

.hbcu-item a:hover {
	text-decoration: underline;
	color: var(--hbcu-primary);
}

/* Location / secondary label */
.hbcu-meta {
	font-size: 13px;
	color: #6b7280;
	line-height: 1.3;
	margin-bottom: 12px;
}

/* ── Empty state ──────────────────────────────────────────────────── */
.hbcu-az-empty {
	font-size: 1rem;
	color: var(--hbcu-muted);
	padding: 2.5rem 0;
	text-align: center;
}

/* ── Responsive: Tablet ≤768px ──────────────────────────────────────── */
@media (max-width: 768px) {
	.hbcu-az-search-group {
		flex: 1 1 100%;
		max-width: none;
	}

	.hbcu-az-wrap .hbcu-az-listings {
		grid-template-columns: repeat(2, 1fr);
		gap: 0 32px;
	}
}

/* ── Responsive: Mobile ≤600px ────────────────────────────────────── */
@media (max-width: 600px) {
	.hbcu-az-wrap {
		padding: 0 12px;
	}

	.hbcu-az-hero__title {
		font-size: 1.5rem;
	}

	.hbcu-az-range-nav {
		top: 0;
		gap: 8px;
		padding: 10px 0;
		margin-bottom: 16px;
	}

	.hbcu-az-range-nav__link {
		padding: 7px 14px;
		font-size: 0.82rem;
	}

	.hbcu-range-title {
		font-size: 16px;
	}

	.hbcu-az-wrap .hbcu-az-listings {
		grid-template-columns: 1fr;
	}
}

/* ── Profile Excerpt (intro paragraph below identity bar) ───────── */
.hbcu-profile__excerpt {
	font-size: 1.05rem;
	color: var(--hbcu-muted);
	line-height: 1.7;
	margin: 0 0 1.75rem;
	font-style: italic;
}

/* ── School name abbreviation span ─────────────────────────────── */
.hbcu-profile__abbreviation {
	font-size: 0.72em;
	font-weight: 600;
	color: var(--hbcu-muted);
	margin-left: 0.3rem;
}

/* ── Identity CTA button row ────────────────────────────────────── */
.hbcu-profile__identity-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 0.45rem;
}

/* ── Small tag modifier (degree tags in identity bar) ───────────── */
.hbcu-tag--sm {
	font-size: 0.72rem;
	padding: 0.18rem 0.55rem;
}

/* ── At-a-Glance Quick Facts Grid ────────────────────────────────── */
.hbcu-quick-facts {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 150px, 1fr ) );
	gap: 0.6rem;
	margin: 0;
	padding: 0;
}

.hbcu-quick-facts__item {
	background: var(--hbcu-bg);
	border: 1px solid var(--hbcu-border);
	border-radius: var(--hbcu-radius);
	padding: 0.6rem 0.85rem;
	margin: 0;
}

.hbcu-quick-facts__label {
	display: block;
	font-size: 0.66rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--hbcu-muted);
	margin-bottom: 0.18rem;
}

.hbcu-quick-facts__value {
	display: block;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--hbcu-text);
	margin: 0;
	line-height: 1.4;
}

/* ── Profile Subsection Heading ──────────────────────────────────── */
.hbcu-profile__subsection-heading {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--hbcu-primary);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 1.25rem 0 0.45rem;
	padding: 0;
	border: none;
}

.hbcu-profile__subsection-heading:first-child {
	margin-top: 0;
}

/* ── Profile Content Lists ───────────────────────────────────────── */
.hbcu-list {
	margin: 0.25rem 0 0;
	padding-left: 1.35rem;
	line-height: 1.9;
}

.hbcu-list li {
	color: var(--hbcu-text);
	font-size: 0.95rem;
}

/* ── Chip / Badge Groups (popular majors etc.) ───────────────────── */
.hbcu-chip-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.25rem;
}

.hbcu-chip {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 500;
	background: rgba(27, 58, 107, 0.07);
	color: var(--hbcu-primary);
	border: 1px solid rgba(27, 58, 107, 0.18);
	border-radius: 20px;
	padding: 0.25rem 0.75rem;
	line-height: 1.4;
}

/* Small chip modifier (card best-for, etc.) */
.hbcu-chip--sm {
	font-size: 0.72rem;
	padding: 0.18rem 0.55rem;
}

/* ── Best For — profile page ─────────────────────────────────────── */
.hbcu-best-for {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	flex-wrap: wrap;
	margin: 0 0 1.75rem;
}

.hbcu-best-for__label {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--hbcu-muted);
	white-space: nowrap;
	flex-shrink: 0;
}

/* ── Best For — card chips ───────────────────────────────────────── */
.hbcu-card__best-for {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin: 0.4rem 0 0;
}

/* ── Admissions / Aid Link List ──────────────────────────────────── */
.hbcu-link-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.hbcu-link-list li a {
	color: var(--hbcu-primary);
	font-weight: 500;
	font-size: 0.95rem;
	text-decoration: none;
	transition: color var(--hbcu-transition);
}

.hbcu-link-list li a:hover {
	color: var(--hbcu-accent);
	text-decoration: underline;
}

/* ── FAFSA code line ─────────────────────────────────────────────── */
.hbcu-profile__fafsa-code {
	font-size: 0.9rem;
	margin: 0.75rem 0 0;
}

/* ── Cost & Financial Aid — main section grid ────────────────────── */
.hbcu-cost-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 170px, 1fr ) );
	gap: 0.65rem;
	margin: 0;
	padding: 0;
}

.hbcu-cost-grid__item {
	background: var(--hbcu-bg);
	border: 1px solid var(--hbcu-border);
	border-radius: var(--hbcu-radius);
	padding: 0.75rem 1rem;
}

.hbcu-cost-grid__label {
	display: block;
	font-size: 0.66rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--hbcu-muted);
	margin-bottom: 0.2rem;
}

.hbcu-cost-grid__value {
	display: block;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--hbcu-primary);
	margin: 0;
	line-height: 1.25;
}

/* ── Cost sidebar card ───────────────────────────────────────────── */
.hbcu-cost-list {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.hbcu-cost-list__item {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 0.45rem 0;
	border-bottom: 1px solid var(--hbcu-border);
}

.hbcu-cost-list__item:last-child {
	border-bottom: none;
}

.hbcu-cost-list__item dt {
	font-size: 0.82rem;
	color: var(--hbcu-muted);
	font-weight: 500;
}

.hbcu-cost-list__item dd {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--hbcu-primary);
	margin: 0;
}

.hbcu-cost-aid-note {
	font-size: 0.78rem;
	color: var(--hbcu-muted);
	margin: 0.65rem 0 0;
	line-height: 1.5;
}

/* ── Card founded year + excerpt ─────────────────────────────────── */
.hbcu-card__founded {
	font-size: 0.78rem;
	color: var(--hbcu-muted);
	margin: 0 0 0.35rem;
}

.hbcu-card__excerpt {
	font-size: 0.85rem;
	color: var(--hbcu-muted);
	line-height: 1.55;
	margin: 0.35rem 0 0;
}

/* ── Lightbox ───────────────────────────────────────────────────── */

/* Prevent body scroll while open */
body.hbcu-lightbox-open {
	overflow: hidden;
}

/* Outer shell — covers viewport, hidden by default via [hidden] attr */
.hbcu-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

/* [hidden] is browser-native display:none — this selects the visible state */
.hbcu-lightbox:not([hidden]) {
	display: flex;
}

/* ─ Backdrop ─ */
.hbcu-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 10, 24, 0.88);
	opacity: 0;
	transition: opacity 0.26s ease;
	/*
	 * Never intercept pointer events — the lightbox container itself handles
	 * outside-shell clicks (see JS). Without this, the backdrop (position:absolute;
	 * inset:0) can swallow clicks on the prev/next buttons during the opacity
	 * transition because the transition creates a new stacking context in some
	 * browsers, allowing the backdrop to sit above the shell's z-index:1.
	 */
	pointer-events: none;
}

.hbcu-lightbox.is-open .hbcu-lightbox__backdrop {
	opacity: 1;
}

/* ─ Shell ─ */
.hbcu-lightbox__shell {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.9rem;
	width: 100%;
	max-width: 1080px;
	max-height: 100dvh;
	opacity: 0;
	transform: scale(0.96);
	transition: opacity 0.26s ease, transform 0.26s ease;
}

.hbcu-lightbox.is-open .hbcu-lightbox__shell {
	opacity: 1;
	transform: scale(1);
}

/* ─ Close button ─ */
.hbcu-lightbox__close {
	position: absolute;
	top: -3rem;
	right: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	border: 1.5px solid rgba(255, 255, 255, 0.28);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.18s ease;
	flex-shrink: 0;
}

.hbcu-lightbox__close:hover,
.hbcu-lightbox__close:focus-visible {
	background: rgba(255, 255, 255, 0.26);
	outline: 2px solid rgba(255, 255, 255, 0.55);
	outline-offset: 3px;
}

/* ─ Stage (figure with prev/next overlaid) ─ */
.hbcu-lightbox__stage {
	position: relative; /* anchors the absolutely-positioned prev/next buttons */
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 0;
}

/* ─ Figure + image ─ */
.hbcu-lightbox__figure {
	flex: 1;
	min-width: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.hbcu-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: 74vh;
	max-height: 74dvh;
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
	transition: opacity 0.2s ease;
	width: auto;
	height: auto;
}

.hbcu-lightbox__img.is-loading {
	opacity: 0.25;
}

/* ─ Caption ─ */
.hbcu-lightbox__caption {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.82rem;
	text-align: center;
	margin-top: 0.6rem;
	line-height: 1.45;
	max-width: 680px;
}

/* ─ Prev / Next buttons ─
 *
 * The hello-biz theme (loaded AFTER this file) sets:
 *   [type=button] { background-color:transparent; border:1px solid #c36;
 *                   color:#c36; display:inline-block; padding:.5rem 1rem }
 * Specificity of [type=button] = 0,1,0 — same as .hbcu-lightbox__prev.
 * Because the theme loads AFTER our CSS, it wins every same-specificity
 * property. The result: transparent background + pink border on a near-black
 * backdrop = completely invisible buttons.
 *
 * Fix: !important on every visual property the theme or Elementor overrides.
 * ─ */
.hbcu-lightbox__prev,
.hbcu-lightbox__next {
	/* Positioning — absolute over the image, anchored to the stage */
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	z-index: 2;

	/* Size */
	width: 48px !important;
	height: 48px !important;

	/* Shape — !important beats theme's border-radius:3px */
	border-radius: 50% !important;

	/* Fill — !important beats theme's background-color:transparent */
	background: rgba(0, 0, 0, 0.62) !important;
	background-color: rgba(0, 0, 0, 0.62) !important;

	/* Border — !important beats theme's border:1px solid #c36 (pink) */
	border: 2px solid rgba(255, 255, 255, 0.82) !important;

	/* Icon colour — !important beats theme's color:#c36 (pink) */
	color: #fff !important;

	/* Layout — !important beats both Elementor and hello-biz display:inline-block */
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;

	/* Spacing — !important beats Elementor padding:12px 24px and theme .5rem 1rem */
	padding: 0 !important;
	margin: 0 !important;

	/* Misc — prevent theme text-decoration / white-space from leaking in */
	text-decoration: none !important;
	white-space: normal !important;
	line-height: 1 !important;
	font-size: 0 !important; /* hides any text node the theme injects */

	cursor: pointer !important;
	transition: background 0.18s ease, transform 0.18s ease;
}

.hbcu-lightbox__prev {
	left: 14px;
}

.hbcu-lightbox__next {
	right: 14px;
}

/* !important beats theme's [type=button]:hover { background-color:#c36 } */
.hbcu-lightbox__prev:hover,
.hbcu-lightbox__prev:focus-visible,
.hbcu-lightbox__next:hover,
.hbcu-lightbox__next:focus-visible {
	background: rgba(0, 0, 0, 0.88) !important;
	background-color: rgba(0, 0, 0, 0.88) !important;
	border-color: rgba(255, 255, 255, 1) !important;
	color: #fff !important;
	transform: translateY(-50%) scale(1.08) !important;
	outline: 2px solid rgba(255, 255, 255, 0.6);
	outline-offset: 3px;
}

/* SVG inside button — restore normal size, undo font-size:0 trick */
.hbcu-lightbox__prev svg,
.hbcu-lightbox__next svg {
	width: 22px !important;
	height: 22px !important;
	flex-shrink: 0;
}

/* ─ Footer: counter + strip ─ */
.hbcu-lightbox__footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
	width: 100%;
}

.hbcu-lightbox__counter {
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.06em;
}

/* ─ Thumbnail strip ─ */
.hbcu-lightbox__strip {
	display: flex;
	gap: 6px;
	flex-wrap: nowrap;
	overflow-x: auto;
	max-width: 100%;
	padding-bottom: 2px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.hbcu-lightbox__strip::-webkit-scrollbar {
	height: 3px;
}

.hbcu-lightbox__strip::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.18);
	border-radius: 2px;
}

.hbcu-lightbox__strip-btn {
	width: 58px;
	height: 42px;
	flex-shrink: 0;
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid transparent;
	background: none;
	cursor: pointer;
	padding: 0;
	opacity: 0.5;
	transition: opacity 0.18s ease, border-color 0.18s ease;
}

.hbcu-lightbox__strip-btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hbcu-lightbox__strip-btn:hover,
.hbcu-lightbox__strip-btn:focus-visible {
	opacity: 0.85;
	outline: none;
}

.hbcu-lightbox__strip-btn.is-active {
	opacity: 1;
	border-color: var(--hbcu-accent);
}

/* ─ Responsive ─ */
@media (max-width: 640px) {
	.hbcu-lightbox {
		padding: 0.5rem 0.5rem 1rem;
		align-items: flex-start;
		padding-top: 3.5rem;
	}

	.hbcu-lightbox__img {
		max-height: 56dvh;
		border-radius: 8px;
	}

	.hbcu-lightbox__prev,
	.hbcu-lightbox__next {
		width: 36px !important;
		height: 36px !important;
	}

	.hbcu-lightbox__prev {
		left: 8px;
	}

	.hbcu-lightbox__next {
		right: 8px;
	}

	.hbcu-lightbox__strip-btn {
		width: 44px;
		height: 34px;
	}
}
