/* ===== Shared homepage section styles ===== */
.rci-home-section {
	padding: clamp(3.5rem, 6vw, 6.25rem) 0 clamp(4rem, 7vw, 6.25rem);
}

.rci-home-section__inner {
	text-align: center;
}

.rci-home-section__title {
	margin: 0 0 1.75rem;
	font-family: "Rubik", var(--rci-font-body);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 600;
	line-height: 1.2;
	color: var(--rci-navy);
}

.rci-home-section__title--left {
	text-align: left;
	margin-bottom: 0;
}

.rci-home-divider {
	width: min(100%, 18.75rem);
	height: 3px;
	margin: 0 auto 3rem;
	background: var(--rci-gold);
}

.rci-home-divider--left {
	margin: 1.15rem 0 1.35rem;
}

.rci-home-section__actions {
	margin-top: 2rem;
}

.rci-home-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1.35rem 3.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--rci-navy);
	color: var(--rci-white);
	font-family: "Rubik", var(--rci-font-body);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.125em;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(13, 59, 102, 0.18);
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rci-home-btn:hover,
.rci-home-btn:focus-visible {
	background: var(--rci-gold);
	color: var(--rci-navy);
}

.rci-home-btn--sm {
	padding: 1.15rem 2.75rem;
	font-size: 0.8125rem;
}

/* ===== Hero banner ===== */
.rci-hero-banner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(18rem, 42vw, 32rem);
	padding: clamp(9rem, 18vw, 15.625rem) var(--rci-gutter);
	background-image: var(--rci-banner-image);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	overflow: hidden;
}

.rci-hero-banner__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.66);
	pointer-events: none;
}

.rci-hero-banner__inner {
	position: relative;
	z-index: 1;
	width: min(100%, var(--rci-container));
	text-align: center;
}

.rci-hero-banner__title {
	margin: 0 0 0.35rem;
	font-family: "Rubik", var(--rci-font-body);
	font-size: clamp(2.5rem, 6.2vw, 5rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: 0.125em;
	color: var(--rci-white);
	text-transform: uppercase;
}

.rci-hero-banner__subtitle {
	margin: 0;
	font-family: "Rubik", var(--rci-font-body);
	font-size: clamp(1rem, 1.8vw, 1.5rem);
	font-weight: 400;
	font-style: italic;
	line-height: 1.45;
	letter-spacing: 0.125em;
	color: #dddddd;
}

/* ===== Our Mission ===== */
.rci-home-mission__text {
	max-width: 58rem;
	margin: 0 auto;
	font-family: "Rubik", var(--rci-font-body);
	font-size: clamp(1rem, 2vw, 1.875rem);
	font-weight: 300;
	line-height: 1.45;
	letter-spacing: 0.04em;
	color: #222222;
}

/* ===== Explore Our Programs ===== */
.rci-home-programs {
	background: #f2f2f2;
}

.rci-home-programs__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.75rem);
}

.rci-program-card {
	display: flex;
	flex-direction: column;
	background: var(--rci-white);
	border-radius: 10px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rci-program-card:hover,
.rci-program-card:focus-within {
	transform: translateY(-10px);
	box-shadow: 0 16px 28px rgba(8, 40, 68, 0.12);
}

.rci-program-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-bottom: 5px solid var(--rci-navy);
}

.rci-program-card__body {
	padding: 1.75rem 1.5rem 2rem;
	text-align: left;
}

.rci-program-card__title {
	margin: 0 0 0.65rem;
	font-family: "Rubik", var(--rci-font-body);
	font-size: 1.35rem;
	font-weight: 500;
	color: var(--rci-navy);
}

.rci-program-card__text {
	margin: 0 0 1.75rem;
	font-family: "Rubik", var(--rci-font-body);
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.55;
	color: #4d4d4d;
}

.rci-program-card__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.75rem;
	border-radius: 999px;
	background: var(--rci-navy);
	color: var(--rci-white);
	font-family: "Rubik", var(--rci-font-body);
	font-size: 0.875rem;
	font-weight: 300;
	letter-spacing: 0.125em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.rci-program-card__link:hover,
.rci-program-card__link:focus-visible {
	background: var(--rci-gold);
	color: var(--rci-navy);
}

/* ===== Why Riverside College ===== */
.rci-home-why {
	padding: 0 0 clamp(4rem, 7vw, 6.25rem);
	background: #f2f2f2;
}

.rci-home-why__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 0;
}

.rci-home-why__content {
	display: flex;
	align-items: center;
	min-height: 100%;
	padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 6vw, 7rem) clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 5rem);
}

.rci-home-why__content-inner {
	max-width: 34rem;
}

.rci-home-why__text {
	margin: 0 0 2rem;
	font-family: "Rubik", var(--rci-font-body);
	font-size: clamp(0.95rem, 1.4vw, 1.125rem);
	font-weight: 300;
	line-height: 1.65;
	color: #222222;
}

.rci-home-why__media img {
	display: block;
	width: 100%;
	height: clamp(18rem, 42vw, 31.25rem);
	object-fit: cover;
	object-position: center center;
}

/* ===== Featured video ===== */
.rci-home-video {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(18rem, 34vw, 24rem);
	padding: clamp(5rem, 10vw, 9.375rem) var(--rci-gutter);
	overflow: hidden;
	background: #242020;
}

.rci-home-video__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.rci-home-video__bg iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: max(100vw, 177.78vh);
	height: max(100vh, 56.25vw);
	min-width: 100%;
	min-height: 100%;
	border: 0;
	transform: translate(-50%, -50%);
}

.rci-home-video__bg--desktop {
	display: block;
}

.rci-home-video__overlay {
	position: absolute;
	inset: 0;
	background: rgba(36, 32, 32, 0.81);
}

.rci-home-video__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	max-width: 50rem;
	text-align: center;
}

.rci-home-video__play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 5rem;
	height: 5rem;
	border: 2px solid var(--rci-white);
	border-radius: 999px;
	background: transparent;
	color: var(--rci-white);
	font-size: 1.35rem;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rci-home-video__play:hover,
.rci-home-video__play:focus-visible {
	background: var(--rci-gold);
	border-color: var(--rci-gold);
	color: var(--rci-navy);
}

.rci-home-video__title {
	margin: 0;
	font-family: "Rubik", var(--rci-font-body);
	font-size: clamp(1.25rem, 2.4vw, 2.25rem);
	font-weight: 400;
	line-height: 1.35;
	color: var(--rci-white);
}

.rci-home-video-modal[hidden] {
	display: none;
}

.rci-home-video-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
}

.rci-home-video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
}

.rci-home-video-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(92vw, 960px);
	margin: 8vh auto 0;
}

.rci-home-video-modal__close {
	position: absolute;
	top: -2.75rem;
	right: 0;
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--rci-white);
	color: var(--rci-navy);
	font-size: 1rem;
	cursor: pointer;
}

.rci-home-video-modal__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.rci-home-video-modal__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

body.rci-video-open {
	overflow: hidden;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
	.rci-home-programs__grid {
		grid-template-columns: 1fr;
		max-width: 34rem;
		margin-inline: auto;
	}

	.rci-home-why__grid {
		grid-template-columns: 1fr;
	}

	.rci-home-why__content {
		order: 1;
		padding: clamp(2rem, 5vw, 3rem) var(--rci-gutter);
	}

	.rci-home-why__media {
		order: 2;
	}

	.rci-home-why__content-inner {
		max-width: none;
	}
}

@media (max-width: 880px) {
	.rci-hero-banner {
		min-height: clamp(16rem, 52vw, 22rem);
		padding-block: clamp(7.5rem, 24vw, 9.375rem);
	}

	.rci-home-video__bg--desktop {
		display: none;
	}
}

@media (max-width: 767px) {
	.rci-hero-banner__title {
		line-height: 1.15;
	}

	.rci-hero-banner__inner {
		padding-inline: 0.25rem;
	}

	.rci-home-btn,
	.rci-home-btn--sm {
		width: 100%;
		max-width: 22rem;
		padding-inline: 1rem;
	}

	.rci-home-why__media img {
		height: 14.375rem;
		object-fit: contain;
		background: #f2f2f2;
	}
}
