/**
 * Home Page Hero
 *
 * Desktop-first: base styles match the large-desktop (1440px+) layout.
 * Lower exclusive bands only override what changes. Stacks vertically below
 * 768px, at which point the video is swapped for the mobile image.
 */

 .home_page_hero-section {
	--hph-brand: var(--faculty-color, #0a0a96);
	--hph-content-border-color: var(--faculty-color-light, var(--faculty-color, #0a0a96));
	--hph-content-border-w: 1.5rem;
	--hph-icon-band: #202020;
	--hph-text: #ffffff;
	--hph-field: #ffffff;
	--hph-field-text: #202020;

	/*
	 * Media sizing measured off the design frames: the media column is 40.5% of
	 * the section until it would drop below 360px (which happens at 900px, after
	 * which only the content column shrinks), and widens to 47.5% at 1440.
	 */
	--hph-media-width: 40.5%;
	--hph-media-min: 22.5rem;
	--hph-gutter: 4rem;

	overflow: hidden;
}

.home_page_hero-container {
	display: flex;
	flex-direction: row;
	align-items: stretch;
}

.home_page_hero-section--image-right .home_page_hero-container {
	flex-direction: row-reverse;
}

/* ---------------------------------------------------------------- Media */

.home_page_hero-media {
	position: relative;
	flex: 0 0 auto;
	width: 47.5%;
	min-width: var(--hph-media-min);
	aspect-ratio: auto;
	background-color: var(--hph-brand);
	overflow: hidden;
}

.home_page_hero-media-asset {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.home_page_hero-media-video {
	display: none;
	position: absolute;
	inset: 0;
}

.home_page_hero-section--media-video .home_page_hero-media-asset--mobile {
	display: none;
}

.home_page_hero-section--media-video .home_page_hero-media-video {
	display: block;
}

.home_page_hero-media-video video,
.home_page_hero-media-video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

/* ------------------------------------------------------------- Content */

.home_page_hero-content {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	background-color: var(--hph-brand);
	border-top: 0;
	border-left: var(--hph-content-border-w) solid var(--hph-content-border-color);
	color: var(--hph-text);
}

.home_page_hero-content-inner {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 60px;
}

.home_page_hero-heading {
	margin: 0;
	color: var(--hph-text);
	font-family: 'New Grotesk Square', 'New Grotesk Square Fallback', sans-serif;
	font-size: 80px;
	font-weight: 500;
	line-height: 90%;
	text-transform: uppercase;
}

.home_page_hero-description {
	margin-top: 1rem;
	font-family: 'Founders Grotesk Medium', 'Founders Grotesk Medium Fallback', sans-serif;
	font-size: 24px;
	line-height: 100%;
	font-weight: 500;
}

.home_page_hero-description :last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------- Search field */

.home_page_hero-search {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin-top: 1.5rem;
	box-sizing: border-box;
}

.home_page_hero-search-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/*
 * Placeholder sits in normal flow so short text stays 1 line and long text
 * wraps up to 2 lines, growing the pill without JS. The input overlays it.
 */
.home_page_hero-search-field {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	max-width: min(593px, 100%);
	min-height: 52px;
	height: auto;
	background-color: var(--hph-field);
	padding-top: 8px;
	padding-right: 16px;
	padding-bottom: 8px;
	padding-left: 24px;
	gap: 16px;
	border-radius: 50px;
}

.home_page_hero-search-input-wrap {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	/* Keeps one-line height when the placeholder is hidden (typed value). */
	min-height: 1.4em;
	font-size: 16px;
	line-height: 1.4;
}

.home_page_hero-search-input {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--hph-field-text);
	font-family: 'Founders Grotesk Regular', 'Founders Grotesk Regular Fallback', sans-serif;
	font-size: 16px;
	line-height: 1.4;
}

.home_page_hero-search-placeholder {
	position: static;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	white-space: normal;
	word-break: break-word;
	overflow-wrap: anywhere;
	color: #484848;
	font-family: 'Founders Grotesk Regular', 'Founders Grotesk Regular Fallback', sans-serif;
	font-size: 16px;
	line-height: 1;
	font-weight: 300;
	pointer-events: none;
}

.home_page_hero-search-placeholder[hidden] {
	display: none;
}

.home_page_hero-search-input::placeholder {
	color: transparent;
	opacity: 0;
}

.home_page_hero-search-input:focus {
	outline: none;
}

.home_page_hero-search-field:focus-within {
	outline: 2px solid var(--hph-text);
	outline-offset: 2px;
}

/* Hide the browser's native search affordances so the custom button is the only control. */
.home_page_hero-search-input::-webkit-search-decoration,
.home_page_hero-search-input::-webkit-search-cancel-button {
	appearance: none;
}

.home_page_hero-search-submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	background: transparent;
	color: #000;
	cursor: pointer;
}

.home_page_hero-search-icon {
	width: 24px;
	height: 24px;
	/* fill: currentColor; */
}

.home_page_hero-search-status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	font-size: 16px;
	line-height: 100%;
}

/* ---------------------------------------------------- Search dropdown */

.home_page_hero-search-results {
	position: absolute;
	z-index: 20;
	top: calc(100% + 0.5rem);
	left: 0;
	right: 0;
	max-height: 22rem;
	overflow-y: auto;
	padding: 0.5rem 0;
	background-color: #ffffff;
	border-radius: 0.75rem;
	box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25);
	color: var(--hph-field-text);
	text-align: left;
}

.home_page_hero-search-results[hidden] {
	display: none;
}

.home_page_hero-search-group-label {
	display: block;
	padding: 0.5rem 1.25rem 0.25rem;
	color: #6b6b6b;
	font-family: 'Founders Grotesk Medium', 'Founders Grotesk Medium Fallback', sans-serif;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.home_page_hero-search-option {
	display: block;
	padding: 0.5rem 1.25rem;
	font-family: 'Founders Grotesk Regular', 'Founders Grotesk Regular Fallback', sans-serif;
	font-size: 0.9375rem;
	line-height: 1.4;
	cursor: pointer;
}

.home_page_hero-search-option mark {
	background: transparent;
	color: inherit;
	font-weight: 700;
}

.home_page_hero-search-option:hover,
.home_page_hero-search-option[aria-selected='true'] {
	background-color: #f1f2f2;
}

.home_page_hero-search-empty {
	padding: 0.75rem 1.25rem;
	color: #6b6b6b;
	font-family: 'Founders Grotesk Regular', 'Founders Grotesk Regular Fallback', sans-serif;
	font-size: 0.9375rem;
}

/* --------------------------------------------------- Browse link + CTAs */

.home_page_hero-browse {
	margin: 24px 0 0;
	font-family: 'Founders Grotesk Medium', 'Founders Grotesk Medium Fallback', sans-serif;
	font-size: 20px;
	line-height: 121%;
	font-weight: 500;
}

.home_page_hero-browse-link {
	color: inherit;
	/* text-decoration: underline; */
	text-decoration: none;
}
.home_page_hero-browse-link:hover {
	color: inherit;
	/* text-decoration: underline; */
	text-decoration: underline;
}

.home_page_hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.5rem;
}

/* ----------------------------------------------------------- Icon list */

.home_page_hero-icon-list {
	background-color: #414042;
	color: var(--hph-text);
}

.home_page_hero-icon-list-items {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 60px;
	justify-items: center;
	margin: 0;
	padding: 2rem 48px;
	list-style: none;
	text-align: left;
}

.home_page_hero-icon-list-item {
	display: flex;
	align-items: center;
	gap: 16px;
	justify-content: center;
	margin: 0;
}

.home_page_hero-icon-list-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 33px;
	height: 33px;
}

.home_page_hero-icon-list-icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.home_page_hero-icon-list-text {
	font-family: 'Founders Grotesk Regular', 'Founders Grotesk Regular Fallback', sans-serif;
	font-size: 24px;
	line-height: 100%;
	font-weight: 500;
	text-align: center;
}

/* ============================================================
   Large Desktop (1440px and above)
   ============================================================ */
@media (min-width: 1440px) {
	/* Base styles already match the large-desktop design. */
}

/* ============================================================
   Desktop / Laptop (1080px - 1439px)
   ============================================================ */
@media (min-width: 1080px) and (max-width: 1439px) {
	.home_page_hero-media {
		width: var(--hph-media-width);
	}

	.home_page_hero-heading {
		font-size: 64px;
		line-height: 90%;
	}

	.home_page_hero-description {
		font-size: 24px;
		line-height: 100%;
		font-weight: 500;
	}

	.home_page_hero-search-field {
		max-width: min(520px, 100%);
		min-height: 48px;
	}

	.home_page_hero-icon-list-items {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 36px;
		justify-items: center;
		padding: 1.75rem 24px;
	}
	
	.home_page_hero-icon-list-item { 
		gap: 8px;
		justify-content: center;
		margin: 0;
	}

	.home_page_hero-icon-list-icon {
		width: 28px;
		height: 28px;
	}

	.home_page_hero-icon-list-text {
		font-size: 20px;
		font-weight: 500;
		text-align: center;
	}
}

/* ============================================================
   Tablet Landscape (900px - 1079px)
   ============================================================ */
@media (min-width: 900px) and (max-width: 1079px) {
	.home_page_hero-media {
		width: var(--hph-media-width);
	}

	.home_page_hero-heading {
		font-size: 54px;
		line-height: 90%;
	}

	.home_page_hero-description {
		font-size: 24px;
		line-height: 100%;
		font-weight: 500;
	}

	.home_page_hero-search-field {
		max-width: min(420px, 100%);
	}

	.home_page_hero-icon-list-items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
		justify-items: stretch;
		padding: 2rem 24px;
	}

	.home_page_hero-icon-list-icon {
		width: 33px;
		height: 33px;
	}

	.home_page_hero-icon-list-text {
		font-size: 24px;
		font-weight: 500;
		text-align: left;
	}
}

/* ============================================================
   Tablet Portrait (768px - 899px)
   ============================================================ */
@media (min-width: 768px) and (max-width: 899px) {
	.home_page_hero-media {
		width: var(--hph-media-width);
	}

	.home_page_hero-heading {
		font-size: 48px;
		line-height: 90%;
	}

	.home_page_hero-description {
		font-size: 20px;
		line-height: 100%;
		font-weight: 500;
	}

	.home_page_hero-search-field {
		max-width: 100%;
	}

	.home_page_hero-icon-list-items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
		justify-items: stretch;
		padding: 2rem 24px;
	}

	.home_page_hero-icon-list-icon {
		width: 33px;
		height: 33px;
	}

	.home_page_hero-icon-list-text {
		font-size: 24px;
		font-weight: 500;
		text-align: left;
	}
}

/* ============================================================
   Mobile (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {
	.home_page_hero-section {
		--hph-gutter: clamp(1.5rem, 8vw, 2.5rem);
	}

	.home_page_hero-container {
		flex-direction: column;
		align-items: stretch;
	}

	.home_page_hero-section--image-right .home_page_hero-container {
		flex-direction: column;
	}

	.home_page_hero-media {
		flex: none;
		width: 100%;
		min-width: 0;
		aspect-ratio: 8 / 7;
	}

	.home_page_hero-section--media-video .home_page_hero-media-asset--mobile {
		display: block;
	}

	.home_page_hero-section--media-video .home_page_hero-media-video {
		display: none;
	}

	.home_page_hero-content {
		flex: none;
		display: block;
		border-top: var(--hph-content-border-w) solid var(--hph-content-border-color);
		border-left: 0;
	}

	.home_page_hero-content-inner {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		padding: 24px 36px;
	}

	.home_page_hero-heading {
		font-size: 48px;
		line-height: 1;
	}

	.home_page_hero-description {
		font-size: 20px;
		line-height: 100%;
		font-weight: 500;
	}

	.home_page_hero-search-field {
		width: 100%;
		max-width: 100%;
		height: auto;
	}

	.home_page_hero-icon-list-items {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		justify-items: stretch;
		padding: 1.5rem 36px;
	}

	.home_page_hero-icon-list-item {
		justify-content: flex-start;
	}

	.home_page_hero-icon-list-icon {
		width: 24px;
		height: 24px;
	}

	.home_page_hero-icon-list-text {
		font-size: 24px;
		font-weight: 500;
		text-align: left;
	}
	.home_page_hero-search-field{
		padding: 8px 16px;
	}
}
