/* =========================================================
   SHARED INNER-PAGE HERO HEADER
   -------------------------------------------------------
   Applies the same hero-card treatment (gradient card, CMC
   building watermark, gold underline, bold navy title) used on
   the course detail pages to every other inner page that uses
   the eyebrow-pill + .endo-clinic-detail-title header pattern —
   clinics, awards, CME workshops, conferences, events/inaugurations,
   and international projects.

   Loaded site-wide (see functions.php PART H) since
   .endo-clinic-detail-title is reused, unscoped, across dozens of
   page-specific stylesheets — most of which set font-size only and
   never actually declare a color/weight for it (relying on a base
   that's only present in a couple of the older clinic CSS files,
   which are never enqueued together with the others). Wrapping the
   header in .endo-hero-card / .endo-hero-top here, plus a single
   title-color/weight rule, fixes that same "missing base" gap
   everywhere at once instead of duplicating it per category file.

   The wrapper markup itself — <div class="endo-hero-card"><div
   class="endo-hero-top"> ... </div></div> around the eyebrow pill +
   title + subtitle — is added directly in each /pages/*.php file;
   this stylesheet only supplies the shared look.
   ========================================================= */

.endo-hero-card {
	position: relative;
	overflow: hidden;
	background: linear-gradient(120deg, #DCEBFC 0%, #E9F2FD 30%, #F5F9FE 60%, #FFFFFF 100%);
	border: 1px solid var(--endo-border);
	border-radius: 18px;
	padding: 30px 32px;
	margin-bottom: 28px;
	box-shadow: 0 10px 28px rgba(10, 37, 89, .06);
}

.endo-hero-top {
	position: relative;
	overflow: hidden;
}

/* Real CMC building illustration, bottom-right of the header block —
   assets/images/cmc-building-watermark.png (transparent background).
   Swap the file to update the artwork; no CSS change needed. */
.endo-hero-top::before {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 42%;
	max-width: 380px;
	height: 130px;
	background-image: url("../images/cmc-building-watermark.png");
	background-repeat: no-repeat;
	background-position: bottom right;
	background-size: contain;
	opacity: .22;
	pointer-events: none;
}

.endo-hero-card > * {
	position: relative;
	z-index: 1;
}

/* Bold navy title, everywhere — see the file header comment above for
   why this needs to be declared here rather than assumed present. */
.endo-hero-top .endo-clinic-detail-title {
	color: var(--endo-navy);
	font-weight: 800;
	/* Cancel any bottom-border/::after gold rule a category's own CSS
	   may already add under the title (diabetes-clinic.css and its
	   siblings) — .endo-hero-underline below replaces it, and having
	   both would double the gold line. */
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 8px;
}
.endo-hero-top .endo-clinic-detail-title::after {
	display: none;
}

.endo-hero-underline {
	width: 56px;
	height: 3px;
	background: var(--endo-gold);
	border-radius: 2px;
	margin: 4px 0 14px;
}

/* Institution-name subtitle line with a leading icon — same pattern as
   the course pages' own .endo-course-hero-subtitle-row, generalised so
   it works on every page family (award/cme/conf/event/project/clinic),
   not only ones that enqueue course-pages.css. */
.endo-hero-subtitle-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 4px;
}
.endo-hero-subtitle-row i {
	color: var(--endo-blue-accent);
	font-size: 15px;
	margin-top: 3px;
	flex-shrink: 0;
}
.endo-hero-subtitle-row p {
	margin: 0;
	font-size: 15px;
	color: var(--endo-text);
	opacity: .8;
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
	.endo-hero-card {
		padding: 24px 22px;
		border-radius: 14px;
	}
	.endo-hero-top::before {
		opacity: .16;
		width: 55%;
		height: 95px;
	}
}
@media (max-width: 480px) {
	.endo-hero-card {
		padding: 20px 16px;
	}
}
