/**
 * Course Page Hero
 *
 * Desktop-first: base styles match the large-desktop (1440px+) layout.
 * Stacks vertically below 768px. Video swaps to mobile image below 768px.
 */

 .course_page_hero-section {
	--cph-brand: var(--faculty-color, #cf451f);
	--cph-heading: #0F24DC; 
	--cph-text: #202020;
	--cph-icon-band: #0c0668;
	--cph-content-bg: #ffffff;
	--cph-media-width: 40.5%;
	--cph-media-min: 22.5rem;
	--cph-gutter: 4rem;

	overflow: hidden;
	color: var(--cph-text);
}

.course_page_hero-section--bg-gray {
	--cph-content-bg: #f1f2f2;
}

/* ------------------------------------------------------ Notification */

.course_page_hero-notification {
	background-color: var(--cph-brand);
	color: #ffffff;
	text-align: center;
	padding: 8px 48px;
}

.course_page_hero-notification-text {
	margin: 0;
	font-family: 'Founders Grotesk Regular', 'Founders Grotesk Regular Fallback', sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
}

.course_page_hero-notification-link {
	color: inherit;
	font-family: 'Founders Grotesk Medium', 'Founders Grotesk Medium Fallback', sans-serif;
	font-weight: 500;
	text-decoration: none;
	margin-left: 0.25em;
}

.course_page_hero-notification-link:hover {
	color: inherit;
	text-decoration: underline;
}

/* ---------------------------------------------------------- Container */

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

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

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

.course_page_hero-media {
	position: relative;
	flex: 0 0 auto;
	width: 50%;
	min-width: var(--cph-media-min);
	height: 560px;
	min-height: 560px;
	max-height: 560px;
	background-color: var(--cph-content-bg);
	overflow: hidden;
}

.course_page_hero-media-asset {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	max-height: none;
}

.course_page_hero-section--media-image .course_page_hero-media-asset--desktop {
	display: none;
}

.course_page_hero-section--media-image .course_page_hero-media-asset--mobile {
	display: block;
}

@media (min-width: 768px) {
	.course_page_hero-section--media-image .course_page_hero-media-asset--desktop {
		display: block;
	}

	.course_page_hero-section--media-image .course_page_hero-media-asset--mobile {
		display: none;
	}
}

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

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

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

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

/* --------------------------------------------------------- Breadcrumbs */

.course_page_hero-breadcrumbs--media {
	display: none;
}

.course_page_hero-breadcrumbs--content {
	display: block;
	margin-bottom: 1.5rem;
}

.course_page_hero-breadcrumbs .h-container-breadcrumbs {
	padding-left: 0;
	padding-right: 0;
	max-width: none;
}

.course_page_hero-breadcrumbs .breadcrumbs {
	margin: 0;
	padding-top: 0;
}

.course_page_hero-breadcrumbs .breadcrumbs::after {
	display: none;
}

.course_page_hero-breadcrumbs .breadcrumbs ul {
	margin-bottom: 0;
	padding-bottom: 0;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.course_page_hero-breadcrumbs .breadcrumbs ul::-webkit-scrollbar {
	display: none;
}

.course_page_hero-breadcrumbs .breadcrumbs ul li:last-child {
	opacity: 1;
}

.course_page_hero-breadcrumbs .text-breadcrumb--link {
	font-family: 'Founders Grotesk Regular', 'Founders Grotesk Regular Fallback', sans-serif;
	font-weight: 400;
	line-height: 18px;
}

.course_page_hero-breadcrumbs .text-breadcrumb--text,
.course_page_hero-breadcrumbs li:last-child .text-breadcrumb {
	font-family: 'Founders Grotesk Medium', 'Founders Grotesk Medium Fallback', sans-serif;
	font-weight: 500;
}

.course_page_hero-breadcrumbs .breadcrumbs-divider svg {
	fill: currentColor;
}

/* Desktop/tablet: inline flow so wrap lines start at breadcrumb left edge */
.course_page_hero-breadcrumbs--content .breadcrumbs ul {
	display: block;
	flex-wrap: unset;
	overflow: visible;
	white-space: normal;
}

.course_page_hero-breadcrumbs--content .breadcrumbs ul li {
	display: inline;
	flex: none;
	min-width: 0;
	white-space: normal;
	vertical-align: baseline;
}

.course_page_hero-breadcrumbs--content .breadcrumbs-divider {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	margin-bottom: 0; /* overrides base mb-1 from _breadcrumbs.scss */
	white-space: nowrap;
}

.course_page_hero-breadcrumbs--content .breadcrumbs-divider svg {
	display: block; /* fine inside inline-flex; no line-break */
	flex: 0 0 auto;
}

.course_page_hero-breadcrumbs--content .breadcrumbs ul li:last-child {
	overflow-wrap: break-word;
	word-break: normal;
}

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

.course_page_hero-content {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 560px;
	display: flex;
	align-items: flex-start;
	background-color: var(--cph-content-bg);
	color: var(--cph-text);
}

.course_page_hero-content-inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	height: 100%;
	box-sizing: border-box;
	padding: 40px 60px;
}

.course_page_hero-copy {
	margin-top: 40px;
	margin-bottom: 1.5rem;
}

.course_page_hero-subheading {
	margin: 0 0 8px;
	color: var(--cph-brand);
	font-family: 'Founders Grotesk Medium', 'Founders Grotesk Medium Fallback', sans-serif;
	font-size: 16px;
	font-weight: 500;
	/* letter-spacing: 0.06em; */
	line-height: 1;
	text-transform: uppercase;
}

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

.course_page_hero-description {
	margin-top: 1rem;
	font-family: 'Founders Grotesk Regular', 'Founders Grotesk Regular Fallback', sans-serif;
	font-size: 24px;
	line-height: 1;
	font-weight: 600;
	color: #202020;
}

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

.course_page_hero-ctas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-top: 1.5rem;
}

.course_page_hero-cta {
	display: flex;
	align-items: center;
}

.course_page_hero-icon-image {
	margin-top: auto;
	padding-top: 0;
}

.course_page_hero-icon-image-asset {
	display: block;
	width: auto;
	max-width: 200px;
	height: auto;
	max-height: 48px;
	object-fit: contain;
}

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

.course_page_hero-icon-list {
	background-color: #0A0A96;
	color: #ffffff;
}

.course_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;
}

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

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

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

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

/* ============================================================
   Desktop / Laptop (1080px - 1439px)
   ============================================================ */
@media (min-width: 1080px) and (max-width: 1439px) {
	.course_page_hero-media {
		width: 50%;
	}

	.course_page_hero-heading {
		font-size: 54px;
	}

	.course_page_hero-icon-list-items {
		gap: 36px;
		padding: 1.75rem 24px;
	}

	.course_page_hero-icon-list-item {
		gap: 8px;
	}

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

	.course_page_hero-icon-list-text {
		font-size: 18px;
	}
}

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

	.course_page_hero-content-inner {
		padding: 48px 36px;
	}

	.course_page_hero-heading {
		font-size: 48px;
	}

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

	.course_page_hero-icon-list-text {
		text-align: left;
	}
}

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

	.course_page_hero-content-inner {
		padding: 40px 28px;
	}

	.course_page_hero-heading {
		font-size: 40px;
	}

	.course_page_hero-description {
		font-size: 18px;
	}

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

	.course_page_hero-icon-list-text {
		text-align: left;
	}
}

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

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

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

	.course_page_hero-media {
		flex: none;
		width: 100%;
		min-width: 0;
		height: 360px;
		min-height: 360px;
		max-height: 360px;
		aspect-ratio: unset;
	}

	.course_page_hero-media::before {
		content: '';
		position: absolute;
		inset: 0 0 auto;
		height: 7.5rem;
		background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent);
		z-index: 1;
		pointer-events: none;
	}

	.course_page_hero-section--media-video .course_page_hero-media-asset--mobile {
		display: block;
		height: 100%;
	}

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

	.course_page_hero-breadcrumbs--media {
		display: block;
		position: absolute;
		z-index: 2;
		top: 0;
		left: 0;
		right: 0;
		padding: 16px 24px;
		overflow: visible;
	}

	/* Mobile: horizontal scroll with visible thin scrollbar */
	.course_page_hero-breadcrumbs--media .breadcrumbs-wrapper {
		overflow: hidden;
		width: 100%;
		direction: ltr;
	}

	.course_page_hero-breadcrumbs--media .breadcrumbs ul {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		max-width: 100%;
		white-space: nowrap;
		scrollbar-width: thin;
		-ms-overflow-style: auto;
		padding-bottom: 0.35rem;
	}

	.course_page_hero-breadcrumbs--media .breadcrumbs ul::-webkit-scrollbar {
		display: block;
		height: 2px;
	}

	.course_page_hero-breadcrumbs--media .breadcrumbs ul::-webkit-scrollbar-track {
		background: rgba(255, 255, 255, 0.3);
	}

	.course_page_hero-breadcrumbs--media .breadcrumbs ul::-webkit-scrollbar-thumb {
		background: #ffffff;
	}

	.course_page_hero-breadcrumbs--media .breadcrumbs ul li,
	.course_page_hero-breadcrumbs--media .breadcrumbs-divider {
		flex-shrink: 0;
		white-space: nowrap;
	}

	.course_page_hero-breadcrumbs--content {
		display: none;
	}

	.course_page_hero-content {
		flex: none;
		display: block;
		min-height: 0;
	}

	.course_page_hero-content-inner {
		display: block;
		height: auto;
		padding: 24px;
	}

	.course_page_hero-icon-image {
		margin-top: 4rem;
		padding-top: 0;
	}

	.course_page_hero-heading {
		font-size: 48px;
	}

	.course_page_hero-description {
		font-size: 20px;
	}

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

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

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

	.course_page_hero-icon-list-text {
		font-size: 20px;
		text-align: left;
	}
	
	.course_page_hero-breadcrumbs .text-breadcrumb--link { 
		font-size: 16px;
		line-height: 18px;
	}
	
	.course_page_hero-notification-text {
		font-size: 16px;
		line-height: 1;
	}
}
