/* Homepage course selection, repaired technology bento, and motion targets. */

/* Posters are documents: keep dates and faculty inside the visible crop. */
body.home .mg-hero__slide--official .mg-hero__backdrop {
	background-image: none !important;
	background-color: #0b1a26;
}
body.home .mg-hero__slide--official .mg-hero__feature { background: #112331; border-radius: 16px; overflow: hidden; }
body.home .mg-hero__slide--official .mg-hero__image { object-fit: contain !important; object-position: center; }
/* Bound both columns to one canvas, rather than independent viewport offsets. */
body.home .mg-hero--tabs { height: clamp(640px, 82svh, 780px); min-height: 0; }
body.home .mg-hero--tabs .mg-hero__slide {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	align-items: center;
	gap: clamp(32px, 4vw, 72px);
	padding: 110px max(32px, calc((100% - 1280px) / 2)) 144px;
}
body.home .mg-hero--tabs .mg-hero__body {
	position: relative;
	inset: auto;
	grid-column: 1;
	grid-row: 1;
	width: 100%;
	max-width: 580px;
	min-width: 0;
	transform: none;
	justify-self: start;
}
body.home .mg-hero--tabs .mg-hero__feature {
	position: relative;
	inset: auto;
	grid-column: 2;
	grid-row: 1;
	width: 100%;
	max-width: 520px;
	height: 360px;
	transform: none;
	justify-self: end;
	box-shadow: none;
}
body.home .mg-hero--tabs .mg-hero__slide--official .mg-hero__feature { background: #fff; border: 0; border-radius: 20px; padding: 20px; }
body.home .mg-hero--tabs .mg-hero__feature::after { display: none; }
body.home .mg-hero--tabs .mg-hero__slide--official .mg-hero__image { max-height: 320px; width: 100%; }
body.home .mg-hero--tabs .mg-hero__title { max-width: none; font-size: clamp(36px, 3.1vw, 56px); line-height: 1.4; letter-spacing: -.025em; text-wrap: balance; }
body.home .mg-hero--tabs .mg-hero__addr { max-width: 42ch; font-size: 16px; line-height: 1.9; text-wrap: pretty; }
body.home .mg-hero--tabs .mg-hero__explore { white-space: normal; }
body.home .mg-hero--tabs .mg-hero__selectors,
body.home .mg-hero--tabs[style*="--mg-hero-count:6"] .mg-hero__selectors {
	inset: auto max(32px, calc((100% - 1280px) / 2)) 28px;
	width: auto;
	display: flex;
	flex-direction: row;
	gap: 8px;
	padding-inline-end: 156px;
	transform: none;
}
body.home .mg-hero--tabs .mg-hero__selector { flex: 1 1 0; min-height: 64px; border-radius: 9px; padding: 8px 10px; gap: 8px; }
body.home .mg-hero--tabs .mg-hero__selector-num { flex-basis: 24px; font-size: 16px; }
body.home .mg-hero--tabs .mg-hero__selector-copy { display: block; opacity: 1; transform: none; }
body.home .mg-hero--tabs .mg-hero__selector { color: #c8dce9; }
body.home .mg-hero--tabs .mg-hero__selector.is-active { color: #fff; }
body.home .mg-hero--tabs .mg-hero__selector-copy b { font-size: 12px; }
body.home .mg-hero--tabs .mg-hero__selector-copy small { display: none; }
body.home .mg-hero--tabs .mg-hero__side { inset: auto auto 38px max(32px, calc((100% - 1280px) / 2)); transform: none; }
body.home :is(.page-header, header.entry-header) { display: none; }
/* This optional Elementor heading precedes the hero on the live saved page.
   Hide its wrapper, not other headings or the saved content. */
body.home .elementor-section:has(.elementor-element-20ff97b) { display: none; }
body.home .elementor-section:has(#mg-hero) { padding-block: 0 !important; }
@media (max-width: 900px) {
	body.home .mg-hero--tabs { height: auto; min-height: 780px; }
	body.home .mg-hero--tabs .mg-hero__slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: 240px auto; align-content: start; gap: 22px; padding: 88px 22px 160px; }
	body.home .mg-hero--tabs .mg-hero__feature { grid-column: 1; grid-row: 1; width: 100%; height: 240px; max-width: 520px; justify-self: center; }
	body.home .mg-hero--tabs .mg-hero__slide--official .mg-hero__image { max-height: 208px; }
	body.home .mg-hero--tabs .mg-hero__body { grid-column: 1; grid-row: 2; max-width: 580px; justify-self: center; }
	body.home .mg-hero--tabs .mg-hero__title { font-size: clamp(28px, 5.8vw, 38px); line-height: 1.45; margin-bottom: 12px; }
	body.home .mg-hero--tabs .mg-hero__addr { font-size: 14px; margin-bottom: 18px; }
	body.home .mg-hero--tabs .mg-hero__selectors,
	body.home .mg-hero--tabs[style*="--mg-hero-count:6"] .mg-hero__selectors { inset: auto 22px 70px; padding: 0; overflow-x: auto; }
	body.home .mg-hero--tabs .mg-hero__selector { flex: 0 0 auto; width: auto; min-width: 102px; min-height: 48px; }
	body.home .mg-hero--tabs .mg-hero__selector-num { display: none; }
	body.home .mg-hero--tabs .mg-hero__side { inset: auto auto 20px 22px; }
}
body.home .mg-hero__slide--course .mg-hero__backdrop {
	background-image: radial-gradient(ellipse at 25% 45%, #18354a, #07131e 72%) !important;
}
body.home .mg-hero__slide--course .mg-hero__image {
	object-fit: contain !important;
	max-height: min(66vh, 560px);
	width: 100%;
}
body.home .mg-hero__slide--course .mg-hero__feature {
	background: rgba(4, 17, 30, .35);
	border-radius: 16px;
	overflow: hidden;
}
body.home .mg-home-course__media img { object-fit: contain; }
.mg-home-courses__grid:has(> .mg-home-course:only-child) {
	grid-template-columns: minmax(0, 1fr);
	max-width: 920px;
	margin-inline: auto;
}
.mg-home-courses__grid > .mg-home-course:only-child {
	display: grid;
	grid-template-columns: minmax(240px, .75fr) minmax(0, 1fr);
}
.mg-home-courses__grid > .mg-home-course:only-child .mg-home-course__media {
	aspect-ratio: 4 / 5;
}
@media (max-width: 600px) {
	.mg-home-courses__grid > .mg-home-course:only-child { grid-template-columns: 1fr; }
	body.home .mg-hero__slide--course .mg-hero__image { max-height: 280px; }
}

body.home #showcase {
	scroll-margin-top: 96px;
}

body.home #showcase .elementor-widget-wrap,
body.home #showcase .elementor-widget-html,
body.home #showcase .elementor-widget-container {
	overflow: visible;
}

body.home #showcase .mg-bento {
	align-items: stretch;
	width: 100%;
}

@media (min-width: 901px) {
	body.home #showcase .mg-bento {
		grid-template-rows: 172px 172px minmax(196px, auto);
	}
}

body.home #showcase .mg-bento__card {
	min-width: 0;
	isolation: isolate;
}

body.home #showcase .b-tools {
	min-height: 172px;
	justify-content: flex-start;
}

body.home #showcase .b-tools .mg-bento__title {
	font-size: 19px !important;
	line-height: 1.45;
}

body.home #showcase .b-tools .mg-bento__tools {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
	margin-top: 15px;
}

body.home #showcase .b-tools .mg-bento__tools span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 34px;
	padding: 6px 8px;
	line-height: 1.35;
	text-align: center;
	white-space: normal;
}

.mg-home-courses,
.mg-home-courses * {
	box-sizing: border-box;
}

.mg-home-courses {
	position: relative;
	padding: clamp(78px, 8vw, 118px) 0;
	background: var(--mg-bg, #fff);
	color: var(--mg-text, #0b1320);
	border-block: 1px solid var(--mg-border, #dce5ed);
}

.mg-home-courses__shell {
	width: min(1180px, calc(100% - 48px));
	margin-inline: auto;
}

.mg-home-courses__head {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(300px, .7fr);
	gap: clamp(32px, 6vw, 82px);
	align-items: end;
	margin-bottom: clamp(40px, 5vw, 64px);
}

.mg-home-courses__head p {
	margin: 0;
	color: var(--mg-muted, #526779);
	font-size: 16px;
	line-height: 1.95;
	text-wrap: pretty;
}

.mg-home-courses__head > div:first-child > p {
	margin-bottom: 10px;
	color: var(--mg-accent, #0067b1);
	font-size: 14px;
	font-weight: 800;
}

.mg-home-courses__head h2 {
	max-width: 16ch;
	margin: 0;
	color: var(--mg-text, #0b1320);
	font-size: clamp(34px, 4.2vw, 58px);
	font-weight: 850;
	line-height: 1.28;
	letter-spacing: -.035em;
	text-wrap: balance;
}

.mg-home-courses__head a {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 20px;
	padding-bottom: 7px;
	border-bottom: 1px solid currentColor;
	color: var(--mg-accent, #0067b1);
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
	transition: gap .22s cubic-bezier(.22, 1, .36, 1), color .2s ease;
}

.mg-home-courses__head a:hover,
.mg-home-courses__head a:focus-visible {
	gap: 14px;
	color: #004c85;
}

.mg-home-courses__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 2.2vw, 30px);
}

.mg-home-course {
	display: flex;
	min-width: 0;
	flex-direction: column;
	background: var(--mg-surface, #f3f6fb);
	border: 1px solid var(--mg-border, #dce5ed);
	border-radius: 14px;
	overflow: hidden;
	transition: transform .34s cubic-bezier(.22, 1, .36, 1), border-color .24s ease;
}

@media (hover: hover) and (pointer: fine) {
	.mg-home-course:hover {
		transform: translateY(-7px);
		border-color: color-mix(in srgb, var(--mg-accent, #0067b1) 55%, transparent);
	}
}

.mg-home-course__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #09283e;
	color: #fff;
}

.mg-home-course__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.mg-home-course:hover .mg-home-course__media img {
	transform: scale(1.035);
}

.mg-home-course__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-content: center;
	text-align: center;
	background: radial-gradient(circle at 28% 20%, #0b72b8, #09283e 62%);
}

.mg-home-course__placeholder b {
	font-size: 46px;
	letter-spacing: -.04em;
}

.mg-home-course__placeholder small {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .16em;
}

.mg-home-course__number {
	position: absolute;
	inset: 15px 15px auto auto;
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	background: #fff;
	border-radius: 50%;
	color: #09283e;
	font: 800 12px/1 var(--mg-font, sans-serif);
}

.mg-home-course__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

.mg-home-course__meta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	color: var(--mg-muted, #526779);
	font-size: 12px;
	font-weight: 700;
}

.mg-home-course__meta span {
	color: var(--mg-accent, #0067b1);
}

.mg-home-course h3 {
	margin: 18px 0 10px;
	font-size: clamp(21px, 2vw, 26px);
	line-height: 1.45;
	text-wrap: balance;
}

.mg-home-course h3 a {
	color: inherit;
	text-decoration: none;
}

.mg-home-course__body > p {
	margin: 0;
	color: var(--mg-muted, #526779);
	font-size: 14px;
	line-height: 1.9;
	text-wrap: pretty;
}

.mg-home-course__foot {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-top: auto;
	padding-top: 25px;
}

.mg-home-course__foot > span {
	max-width: 52%;
	color: var(--mg-muted, #526779);
	font-size: 11px;
	line-height: 1.7;
}

.mg-home-course__foot > a {
	display: inline-flex;
	gap: 7px;
	color: var(--mg-accent, #0067b1);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

.mg-home-course :focus-visible,
.mg-home-courses__head a:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--mg-accent, #0067b1) 40%, transparent);
	outline-offset: 4px;
}

[data-theme="dark"] .mg-home-courses {
	background: #091723;
}

[data-theme="dark"] .mg-home-course {
	background: #102433;
	border-color: rgba(255, 255, 255, .13);
}

[data-theme="dark"] .mg-home-courses__head a,
[data-theme="dark"] .mg-home-course__meta span,
[data-theme="dark"] .mg-home-course__foot > a {
	color: #68c5f4;
}

@media (max-width: 900px) {
	.mg-home-courses__head {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.mg-home-courses__head h2 {
		max-width: 20ch;
	}

	.mg-home-courses__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	body.home #showcase {
		padding-inline: 18px !important;
	}

	body.home #showcase .elementor-container,
	body.home #showcase .elementor-column,
	body.home #showcase .elementor-widget-wrap,
	body.home #showcase .elementor-widget-container,
	body.home #showcase .mg-bento {
		width: 100% !important;
		max-width: none !important;
		margin-inline: 0 !important;
	}

	body.home #showcase .b-tools {
		min-height: 190px;
		overflow: visible;
	}

	body.home #showcase .b-tools .mg-bento__tools span {
		font-size: 12px;
	}

	.mg-home-courses {
		padding: 68px 0 82px;
	}

	.mg-home-courses__shell {
		width: calc(100% - 32px);
	}

	.mg-home-courses__head h2 {
		font-size: clamp(31px, 9.8vw, 42px);
	}

	.mg-home-courses__head p {
		font-size: 14px;
	}

	.mg-home-courses__grid {
		grid-template-columns: 1fr;
	}

	.mg-home-course__body {
		padding: 21px;
	}

	.mg-home-course__foot {
		align-items: start;
		flex-direction: column;
	}

	.mg-home-course__foot > span {
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mg-home-course,
	.mg-home-course__media img,
	.mg-home-courses__head a {
		transition: none !important;
	}
}
