/* News Post Carousel (ported from SAE carousel_content_display) */

.news_post_carousel-section--pt-none { padding-top: 0; }
.news_post_carousel-section--pt-small { padding-top: 2.5rem; }
.news_post_carousel-section--pt-large { padding-top: 5rem; }
.news_post_carousel-section--pb-none { padding-bottom: 0; }
.news_post_carousel-section--pb-small { padding-bottom: 2.5rem; }
.news_post_carousel-section--pb-large { padding-bottom: 5rem; }
.news_post_carousel-section--bg-white { background: #fff; }
.news_post_carousel-section--bg-grey { background: #F1F2F2; }

.news_post_carousel-section {
	--ccd-page: #ffffff;
	--ccd-heading: #000000;
	--ccd-see-all-bg: transparent;
	--ccd-see-all-text: #000000;
	--ccd-see-all-border: #000000;
	--ccd-overlay: #ffffff;
	--ccd-overlay-title: #000000;
	--ccd-overlay-text: #555555;
	--ccd-dot: #8a8a8a;
	--ccd-dot-active: #333333;
	--ccd-gap: 1.5rem;
	--ccd-radius: 0;
	--faculty-color: #09009c;
	--faculty-color-light: #0f24dc;
	padding: 6rem 0;
	overflow: hidden;
}

.news_post_carousel-section *,
.news_post_carousel-section *::before,
.news_post_carousel-section *::after {
	box-sizing: border-box;
}

/* =========================
   THEMES
========================== */

.news_post_carousel-section--bg-grey {
	--ccd-see-all-bg: #ffffff;
	--ccd-see-all-text: #000000;
	--ccd-see-all-border: #000000;
}

/* =========================
   HEADER
========================== */

.news_post_carousel-section .news_post_carousel-header {
	display: block;
	margin-bottom: 2.5rem;
}

.news_post_carousel-section .news_post_carousel-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.news_post_carousel-section .news_post_carousel-header-copy {
	flex: 1;
	min-width: 0;
}

.news_post_carousel-section .news_post_carousel-tagline {
	margin: 0 0 1rem;
	font-family: 'Founders Grotesk Regular', 'Founders Grotesk Regular Fallback', sans-serif;
	font-size: 0.875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.news_post_carousel-section .news_post_carousel-heading {
	margin: 0;
	color: var(--ccd-heading);
	font-family: 'New Grotesk Square', 'New Grotesk Square Fallback', sans-serif;
	font-weight: 400;
	text-transform: uppercase;
}

.news_post_carousel-section .news_post_carousel-see-all {
	flex-shrink: 0;
	position: relative;
	z-index: 2;
}

.news_post_carousel-section .news_post_carousel-see-all-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 10px 20px 5px 20px;
	background: var(--ccd-see-all-bg);
	color: var(--ccd-see-all-text);
	border: 1px solid var(--ccd-see-all-border);
	border-radius: 0;
	font-family: 'Founders Grotesk Regular', 'Founders Grotesk Regular Fallback', sans-serif;
	font-size: 1rem;
	line-height: 1.25;
	text-decoration: none;
	white-space: nowrap;
	transition:
		background-color 200ms ease,
		color 200ms ease,
		border-color 200ms ease;
}

.news_post_carousel-section .news_post_carousel-see-all-link:hover,
.news_post_carousel-section .news_post_carousel-see-all-link:focus {
	background: var(--ccd-see-all-text);
	color: var(--ccd-page);
	border-color: var(--ccd-see-all-text);
	outline: none;
}

.news_post_carousel-section .news_post_carousel-see-all-arrow {
	display: inline-block;
	line-height: 1;
}

/* =========================
   TRACK / SLIDE
========================== */

.news_post_carousel-section .news_post_carousel-track {
	width: 100%;
}

.news_post_carousel-section .owl-item {
	overflow: hidden;
}

.news_post_carousel-section .news_post_carousel-slide,
.news_post_carousel-section .news_post_carousel-card {
	width: 100%;
	max-width: 100%;
}

.news_post_carousel-section .news_post_carousel-slide {
	height: 100%;
}

/* =========================
   CARD
========================== */

.news_post_carousel-section .news_post_carousel-card {
	position: relative;
	display: block;
	height: 100%;
	min-height: 22rem;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--ccd-radius);
	color: inherit;
	text-decoration: none;
	background: #d9d9d9;
}

.news_post_carousel-section .news_post_carousel-card-hit {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.news_post_carousel-section .news_post_carousel-overlay,
.news_post_carousel-section .news_post_carousel-card-cta {
	position: relative;
	z-index: 2;
}

/* =========================
   IMAGE
========================== */

.news_post_carousel-section .news_post_carousel-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

/* =========================
   OVERLAY
========================== */

.news_post_carousel-section .news_post_carousel-overlay {
	position: absolute;
	left: 1.25rem;
	bottom: 1.25rem;
	width: 348px;
	max-width: calc(100% - 2.5rem);
	height: auto;
	padding: 20px;
	color: var(--ccd-overlay-title);
	background: var(--ccd-overlay);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 0.75rem;
	overflow: visible;
}

/* =========================
   CARD TITLE
========================== */

.news_post_carousel-section .news_post_carousel-card-title {
	margin: 0;
	color: #000;
	font-family: 'New Grotesk Square', 'New Grotesk Square Fallback', sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 20px !important;
	text-transform: uppercase;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	text-overflow: ellipsis;
}

.news_post_carousel-section .news_post_carousel-card-cta {
	margin-top: 0.25rem;
}

.news_post_carousel-section .news_post_carousel-card-cta-arrow {
	display: inline-block;
	color: #000;
	font-size: 1.125rem;
	line-height: 1;
}

/* =========================
   OWL DOTS
========================== */

.news_post_carousel-section .owl-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.35rem;
	margin-top: 1.75rem;
}

.news_post_carousel-section .owl-dots .owl-dot span {
	width: 8px;
	height: 8px;
	margin: 0;
	background: transparent;
	border: 1.5px solid var(--ccd-dot);
	border-radius: 50%;
	display: block;
	transition:
		background-color 200ms ease,
		border-color 200ms ease;
}

.news_post_carousel-section .owl-dots .owl-dot.active span {
	background: var(--ccd-dot-active);
	border-color: var(--ccd-dot-active);
}

.news_post_carousel-section .owl-dots .owl-dot:focus {
	outline: none;
}

.news_post_carousel-section .owl-dots .owl-dot:focus-visible span {
	outline: 2px solid var(--ccd-dot-active);
	outline-offset: 3px;
}

/* =========================
   TABLET + MOBILE CARD LAYOUT (below 1280px)
========================== */

@media screen and (max-width: 1279px) {

	.news_post_carousel-section .news_post_carousel-track,
	.news_post_carousel-section .news_post_carousel-slide,
	.news_post_carousel-section .owl-stage-outer,
	.news_post_carousel-section .owl-item {
		overflow: visible;
	}

	.news_post_carousel-section .news_post_carousel-card {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		height: auto;
		min-height: 0;
		aspect-ratio: auto;
		overflow: visible;
		background: transparent;
	}

	.news_post_carousel-section .news_post_carousel-image {
		width: 100%;
		height: 240px;
		min-height: 240px;
		object-fit: cover;
		object-position: top;
		display: block;
		flex-shrink: 0;
		background: #d9d9d9;
	}

	.news_post_carousel-section .news_post_carousel-overlay {
		position: relative;
		left: auto;
		bottom: auto;
		z-index: 2;
		width: calc(100% - 3rem);
		max-width: none;
		height: auto;
		margin: -4.5rem 1.5rem 0;
		padding: 1.15rem 1.15rem 1rem;
		background: var(--ccd-overlay);
		border: 1px solid #D0D0D0;
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
	}

	.news_post_carousel-section .owl-dots {
		margin-top: 1.5rem;
	}
}

/* =========================
   MOBILE 600px AND BELOW (header / padding only)
========================== */

@media screen and (max-width: 600px) {

	.news_post_carousel-section {
		padding: 4rem 0;
	}

	.news_post_carousel-section .news_post_carousel-inner {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.news_post_carousel-section .news_post_carousel-header {
		margin-bottom: 1.75rem;
	}

	.news_post_carousel-section .news_post_carousel-header-row {
		flex-direction: column;
		align-items: flex-start;
	}
}
