/*
 * NEMRA Education Hero — Education page hero (Figma 278:781).
 * Two columns: heading + body + CTA on the left, "Latest from Nemra
 * Lighting" sidebar card with 3 link rows on the right.
 */

.nemra-education-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 60px;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 80px 50px 0;
	align-items: end;
	font-family: var(--nemra-font-body, 'Poppins', system-ui, sans-serif);
	color: var(--nemra-text, #3f3f3f);
	box-sizing: border-box;
}

.nemra-education-hero *,
.nemra-education-hero *::before,
.nemra-education-hero *::after { box-sizing: border-box; }

/* Eyebrow (optional — used by Networking hero) */
.nemra-education-hero__eyebrow {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #6b6b6b;
	line-height: 1;
	margin-bottom: 5px;
}

/* Breadcrumbs (optional — used by Certification hero) */
.nemra-education-hero__breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	line-height: 1.2;
	margin-bottom: 5px;
}

.nemra-education-hero__crumb {
	color: #6b6b6b;
	text-decoration: none;
	font-weight: 400;
	transition: color 0.2s ease;
}

a.nemra-education-hero__crumb:hover,
a.nemra-education-hero__crumb:focus {
	color: var(--nemra-text, #3f3f3f);
}

.nemra-education-hero__crumb.is-current {
	color: var(--nemra-text, #3f3f3f);
	font-weight: 500;
}

.nemra-education-hero__crumb-sep {
	color: var(--nemra-text, #3f3f3f);
	font-size: 11px;
	font-weight: 500;
}

.nemra-education-hero__content {
	display: flex;
	flex-direction: column;
	gap: 25px;
	align-self: start;
	max-width: 780px;
}

.nemra-education-hero__heading {
	margin: 0;
	font-size: 61px;
	font-weight: 500;
	line-height: 1.0;
	letter-spacing: -0.61px;
	color: var(--nemra-text, #3f3f3f);
	width: 780px;
	max-width: 100%;
}

.nemra-education-hero__body {
	margin: 0;
	font-size: 18px;
	line-height: 1.375; /* ~24.75px */
	font-weight: 400;
	color: var(--nemra-muted, #6b6b6b);
	max-width: 556px;
}

.nemra-education-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	padding: 15px 25px;
	background-color: #6b6b6b;
	color: #ffffff;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	border-radius: 5px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.nemra-education-hero__cta > span[aria-hidden="true"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	font-size: 18px;
	line-height: 1;
}

/* Scoped to the block root so it outranks the two-class resting rule further
 * down (same specificity, later in file — it would win the tie otherwise). */
.nemra-education-hero .nemra-education-hero__cta:hover,
.nemra-education-hero .nemra-education-hero__cta:focus {
	background-color: var(--neutral-dark-88, rgba(23, 23, 26, 0.88));
	color: #ffffff;
}

/* ---------- Sidebar ---------- */
.nemra-education-hero__sidebar {
	background-color: #ffffff;
	border-radius: 5px 5px 0 0;
	padding: 25px;
	width: 100%;
	max-width: 400px;
	min-height: 425px;
	align-self: end;
	justify-self: end;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.nemra-education-hero__sidebar-heading {
	font-size: 16px;
	line-height: 1.55;
	font-weight: 400;
	color: var(--nemra-muted, #6b6b6b);
	margin: 0;
}

.nemra-education-hero__rows {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.nemra-education-hero__row {
	padding: 0;
}

.nemra-education-hero__row-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 0 20px;
	border-bottom: 1px solid #e2e2e2;
	text-decoration: none;
	color: inherit;
	transition: color 0.2s ease;
}

.nemra-education-hero__row:last-child .nemra-education-hero__row-link {
	border-bottom: 1px solid #e2e2e2; /* Figma keeps border on last row too */
}

.nemra-education-hero__row-label {
	font-size: 20px;
	font-weight: 400;
	color: var(--nemra-muted, #6b6b6b);
	line-height: 1.24; /* ~24.75 / 20 */
}

a.nemra-education-hero__row-link:hover .nemra-education-hero__row-label,
a.nemra-education-hero__row-link:focus .nemra-education-hero__row-label {
	color: var(--nemra-text, #3f3f3f);
}

.nemra-education-hero__row-arrow {
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #6b6b6b;
	flex-shrink: 0;
}

.nemra-education-hero__row-arrow::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	border-right: 1.6px solid currentColor;
	border-top: 1.6px solid currentColor;
	transform: rotate(45deg);
	margin-left: -3px;
}

@media ( max-width: 991px ) {
	.nemra-education-hero {
		grid-template-columns: 1fr;
		gap: 40px;
		padding: 80px 30px 40px;
		align-items: stretch;
	}
	.nemra-education-hero__heading { font-size: 42px; }
	.nemra-education-hero__sidebar {
		justify-self: stretch;
		max-width: none;
		min-height: 0;
	}
}

@media ( max-width: 599px ) {
	.nemra-education-hero__heading { font-size: 32px; }
	.nemra-education-hero__body { font-size: 16px; }
}

/* ----------------------------------------------------------------------
 * Advocacy variant (no sidebar — content-only hero, e.g. /advocacy/).
 * Adds bottom padding under the CTA so the gray panel breathes below
 * the button instead of hugging it.
 * -------------------------------------------------------------------- */
.nemra-education-hero:not(:has(.nemra-education-hero__sidebar)) {
	padding-bottom: 144px;
}

/* ----------------------------------------------------------------------
 * V2 Certification variant (used when breadcrumbs are present, e.g. on
 * the /certification/ page — Figma V2 node 571:24507). 650px vertical
 * blue-gradient band (the transparent absolute site header overlays the
 * top ~160px); content bottom-anchored left, blue "Certificates" sidebar
 * card anchored flush to the band bottom on the right (same pattern as
 * .nemra-news-hero__sidebar). Education page hero (node 278:781) does NOT
 * use breadcrumbs so it keeps the default styles above.
 * -------------------------------------------------------------------- */
.nemra-education-hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 60px;
	min-height: 650px;
	/* Full-bleed band, same trick as .nemra-page-hero--has-bg and
	 * .nemra-events-featured: the gradient spans the whole viewport while the
	 * content stays in a 1440-wide centred column. The base rule's
	 * max-width:1440 capped the gradient instead, leaving 240px of page ground
	 * each side at 1920 (Nate, 2026-09-08, card 86e35r7ze). Gutters are
	 * asymmetric here — 80px left for content, 64px right for the sidebar card
	 * — so each side is (100vw - 1440)/2 + its own gutter, clamped to that
	 * gutter below 1440. On the root rule rather than a --has-bg style
	 * modifier because this rule paints the gradient on every instance, and
	 * all three consumers (repconnect, news, certification) take it. */
	max-width: none;
	width: 100%;
	padding: 160px max(64px, calc(50vw - 656px)) 0 max(80px, calc(50vw - 640px));
	background: linear-gradient(180deg, var(--nemra-blue, #2173b3) 0%, var(--nemra-blue-dark, #042a48) 100%);
	color: var(--nemra-light, #fcfdfd);
}

.nemra-education-hero .nemra-education-hero__content {
	gap: 16px;
	max-width: 647px;
	align-self: flex-end;
	padding-bottom: 64px;
}

.nemra-education-hero .nemra-education-hero__breadcrumbs {
	margin-bottom: 0;
	font-size: 13px;
}

.nemra-education-hero .nemra-education-hero__crumb {
	color: rgba(252, 253, 253, 0.48);
}

.nemra-education-hero a.nemra-education-hero__crumb:hover,
.nemra-education-hero a.nemra-education-hero__crumb:focus {
	color: var(--nemra-light, #fcfdfd);
}

.nemra-education-hero .nemra-education-hero__crumb.is-current {
	color: var(--nemra-light, #fcfdfd);
	font-weight: 500;
}

.nemra-education-hero .nemra-education-hero__crumb-sep {
	color: rgba(252, 253, 253, 0.48);
	font-size: 11px;
}

.nemra-education-hero .nemra-education-hero__heading {
	font-family: var(--nemra-font-body, 'Poppins', system-ui, sans-serif);
	font-size: 60px;
	line-height: 1.2;
	letter-spacing: -1.5px;
	font-weight: 500;
	color: var(--nemra-light, #fcfdfd);
	width: auto;
	max-width: 647px;
}

.nemra-education-hero .nemra-education-hero__body {
	font-size: 14px;
	line-height: 1.6;
	color: #ffffff;
	max-width: 552px;
}

.nemra-education-hero .nemra-education-hero__cta {
	background-color: var(--nemra-blue, #2173b3);
	border: 1px solid rgba(252, 253, 253, 0.08);
	font-size: 14px;
	padding: 12px 16px;
	margin-top: 16px;
}

/* Sidebar: blue card flush with the bottom of the gradient band. */
.nemra-education-hero .nemra-education-hero__sidebar {
	flex: 0 0 350px;
	max-width: 350px;
	min-height: 0;
	margin-bottom: 0;
	align-self: flex-end;
	justify-self: auto;
	gap: 34px;
	padding: 30px 23px;
	background-color: var(--nemra-blue, #2173b3);
	border-radius: 5px 5px 0 0;
}

.nemra-education-hero .nemra-education-hero__sidebar-heading {
	font-family: var(--nemra-font-heading, 'Libre Baskerville', Georgia, serif);
	font-size: 12px;
	font-weight: 500;
	line-height: normal;
	color: #ffffff;
}

.nemra-education-hero .nemra-education-hero__rows {
	gap: 20px;
}

.nemra-education-hero .nemra-education-hero__row-link {
	padding: 0 0 20px;
	border-bottom: 0.5px solid rgba(226, 226, 226, 0.2);
}

.nemra-education-hero .nemra-education-hero__row:last-child .nemra-education-hero__row-link {
	border-bottom: 0.5px solid rgba(226, 226, 226, 0.2);
}

.nemra-education-hero .nemra-education-hero__row-label {
	font-size: 20px;
	line-height: 1.5;
	color: #ffffff;
}

.nemra-education-hero a.nemra-education-hero__row-link:hover .nemra-education-hero__row-label,
.nemra-education-hero a.nemra-education-hero__row-link:focus .nemra-education-hero__row-label {
	color: rgba(255, 255, 255, 0.8);
}

.nemra-education-hero .nemra-education-hero__row-arrow {
	width: 17px;
	height: 17px;
	color: #ffffff;
}

.nemra-education-hero .nemra-education-hero__row-arrow::before {
	width: 7px;
	height: 7px;
	border-right-width: 1.5px;
	border-top-width: 1.5px;
	margin-left: -3px;
}

@media ( max-width: 991px ) {
	.nemra-education-hero {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-end;
		gap: 40px;
		min-height: 0;
		padding: 140px 24px 0;
	}
	.nemra-education-hero .nemra-education-hero__content {
		padding-bottom: 0;
	}
	.nemra-education-hero .nemra-education-hero__heading {
		font-size: 40px;
		letter-spacing: -1px;
	}
	.nemra-education-hero .nemra-education-hero__sidebar {
		flex: 0 0 auto;
		width: 100%;
		max-width: none;
	}
}

/* ----------------------------------------------------------------------
 * Compact variant (RepConnect hero — Figma V2 node 571:26084). Shorter
 * gradient band, sans-serif display heading, eyebrow with a blue dot, and
 * the CTA pulled to the right edge in line with the body copy.
 * -------------------------------------------------------------------- */
.nemra-education-hero--compact {
	min-height: 515px;
}

.nemra-education-hero--compact .nemra-education-hero__content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 64px;
	row-gap: 16px;
	max-width: none;
	width: 100%;
	padding-bottom: 56px;
}

.nemra-education-hero--compact .nemra-education-hero__eyebrow {
	grid-column: 1 / -1;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 1.5px;
	color: rgba(252, 253, 253, 0.88);
}

.nemra-education-hero--compact .nemra-education-hero__eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--nemra-blue-vibrant, #0074cf);
}

.nemra-education-hero--compact .nemra-education-hero__heading {
	grid-column: 1 / -1;
	font-family: var(--nemra-font-body, 'Poppins', system-ui, sans-serif);
	font-size: 62px;
	line-height: 1.2;
	letter-spacing: -1px;
	max-width: 920px;
}

.nemra-education-hero--compact .nemra-education-hero__body {
	grid-column: 1;
	align-self: end;
	max-width: 640px;
}

.nemra-education-hero--compact .nemra-education-hero__cta {
	grid-column: 2;
	align-self: end;
	justify-self: end;
	margin-top: 0;
}

/* Compact hero has no sidebar; keep the band's own bottom padding modest. */
.nemra-education-hero--compact:not(:has(.nemra-education-hero__sidebar)) {
	padding-bottom: 0;
}

@media ( max-width: 991px ) {
	.nemra-education-hero--compact .nemra-education-hero__content {
		display: flex;
		flex-direction: column;
		padding-bottom: 48px;
	}
	.nemra-education-hero--compact .nemra-education-hero__heading {
		font-size: 38px;
		letter-spacing: -0.5px;
	}
	.nemra-education-hero--compact .nemra-education-hero__cta {
		align-self: flex-start;
	}
}

/* Mobile mode type - appended at the END of the file so it outranks the
 * rules above at equal specificity (same pattern as events-featured).
 * Certification 797:24598 and AgentConnect 797:26083 mobile comps both draw
 * this hero heading at 2-3 lines x 38 = 32/1.2, hand-stepped from the
 * desktop size (old hardcodes were 40/38). Hero CTA is UI/Button-1 12/20
 * (797:26085). */
@media (max-width: 991px) {
	.nemra-education-hero .nemra-education-hero__heading {
		font-size: 32px;
		line-height: 1.2;
		letter-spacing: -1px;
	}

	.nemra-education-hero .nemra-education-hero__cta {
		font-size: var(--nemra-t-btn-size, 14px);
		line-height: var(--nemra-t-btn-lh, 20px);
	}

}

/* ----------------------------------------------------------------------
 * Mobile bottom drawer (≤768) — same pattern as page-hero: the sidebar
 * collapses to a full-width bar flush with the hero's bottom edge; tapping
 * it expands the link list upward as a sheet. The mobile comps (news
 * 797:22675, certification 797:24595) draw no in-hero sidebar card at all
 * and keep the band 600px tall with the text bottom-anchored; the drawer
 * bar is the sitewide-approved mobile treatment for hero sidebars.
 * -------------------------------------------------------------------- */
.nemra-education-hero__sidebar-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
	font: inherit;
	color: inherit;
	cursor: default;
}

.nemra-education-hero__sidebar-caret { display: none; }

.nemra-education-hero__drawer-head { display: none; }

@media (max-width: 768px) {
	.nemra-education-hero:has(.nemra-education-hero__sidebar) {
		position: relative;
		min-height: 600px;
	}

	/* Clears the 52px drawer bar pinned to the band's bottom edge; the comp
	 * leaves 120px between the text block and the band bottom (797:22676). */
	.nemra-education-hero:has(.nemra-education-hero__sidebar) .nemra-education-hero__content {
		padding-bottom: 120px;
	}

	.nemra-education-hero .nemra-education-hero__sidebar {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		max-width: none;
		z-index: 2;
		flex: none;
		margin: 0;
		padding: 0;
		border-radius: 0;
		gap: 0;
		display: flex;
		flex-direction: column;
	}

	.nemra-education-hero .nemra-education-hero__sidebar.is-open {
		border-radius: 32px 32px 0 0;
	}

	.nemra-education-hero .nemra-education-hero__sidebar-toggle {
		box-sizing: border-box;
		height: 52px;
		padding: 0 24px;
		cursor: pointer;
		/* the caret strokes currentColor; without this it inherits the page's
		   dark text color instead of the sheet's white */
		color: var(--nemra-light, #fcfdfd);
	}

	.nemra-education-hero .nemra-education-hero__sidebar-heading {
		font-family: var(--nemra-font-body, 'Poppins', system-ui, sans-serif);
		font-size: 14px;
		font-weight: 400;
		line-height: 1.6;
		color: var(--nemra-light, #fcfdfd);
	}

	.nemra-education-hero__sidebar-caret {
		display: block;
		flex-shrink: 0;
		width: 20px;
		height: 12px;
		transition: transform 0.2s ease;
	}

	.nemra-education-hero__sidebar.is-open .nemra-education-hero__sidebar-caret {
		transform: rotate(180deg);
	}

	.nemra-education-hero__sidebar.is-open .nemra-education-hero__drawer-head {
		display: flex;
		flex-direction: column;
		order: -2;
		padding: 12px 24px 0;
	}

	.nemra-education-hero__drawer-handle {
		display: block;
		width: 40px;
		height: 4px;
		margin: 0 auto 36px; /* 12px under the pill + the sheet's 24px gap */
		border-radius: 2px;
		background: rgba(255, 255, 255, 0.3);
	}

	.nemra-education-hero__drawer-title {
		font-family: var(--nemra-font-heading, 'Libre Baskerville', Georgia, serif);
		font-size: 16px;
		color: var(--nemra-light, #fcfdfd);
	}

	.nemra-education-hero .nemra-education-hero__rows {
		display: none;
		order: -1; /* links expand upward, above the trigger bar */
		margin: 0;
		padding: 24px 24px 22px;
	}

	.nemra-education-hero .nemra-education-hero__sidebar.is-open .nemra-education-hero__rows {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	/* Sheet rows use the comp's Body Medium, not the desktop card's 20px. */
	.nemra-education-hero .nemra-education-hero__row-label {
		font-size: 14px;
		line-height: 1.6;
	}

	.nemra-education-hero .nemra-education-hero__row-link {
		padding-bottom: 12px;
	}
}
