/**
 * Student Life — Figma UI
 */

:root {
	--sl-navy: #0a1f57;
	--sl-blue: #0b39a1;
	--sl-red: #e30d11;
	--sl-text-muted: #64748b;
	--sl-text-body: #475569;
	--sl-border: #e2e8f0;
	--sl-font-heading: 'Hanken Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--sl-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sl-page {
	position: relative;
	background-color: #ffffff;
	background-image: url('../img/page-bg.png');
	background-repeat: no-repeat;
	background-position: right top;
	background-size: 50% auto;
	overflow-x: clip;
	padding-top: 64px;
	padding-bottom: 0;
	min-height: calc(100vh - 400px);
}

@media (max-width: 1024px) {
	.sl-page {
		background-size: cover;
		padding-top: 48px;
	}
}

@media (max-width: 768px) {
	.sl-page {
		padding-top: 32px;
	}
}

.sl-container {
	width: 100%;
	max-width: var(--ssdc-page-max, none);
	margin: 0 auto;
	padding: 0 var(--ssdc-gutter, 112px);
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}

/* Breadcrumbs */
.sl-crumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-family: var(--sl-font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	margin-bottom: 24px;
}

.sl-crumbs__home,
.sl-crumbs__link {
	color: #64748B;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	transition: color 0.15s ease;
}

.sl-crumbs__home:hover,
.sl-crumbs__link:hover {
	color: #03287C;
}

.sl-crumbs__sep {
	color: #CBD5E1;
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.sl-crumbs__current {
	color: #03287C;
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
}

/* Header — left aligned */
.sl-header {
	text-align: left;
	margin-bottom: 32px;
	max-width: 820px;
}

.sl-title {
	font-family: var(--sl-font-heading);
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 800;
	color: var(--sl-navy);
	margin: 0 0 14px;
	letter-spacing: -0.025em;
	line-height: 1.12;
	text-transform: uppercase;
}

.sl-lead {
	margin: 0;
	font-family: var(--sl-font-body);
	font-size: 16.5px;
	line-height: 1.6;
	color: var(--sl-text-body);
}

/* Featured hero slider */
.sl-featured {
	position: relative;
	margin-bottom: 64px;
}

.sl-featured__viewport {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	height: 720px;
	background: #0a1f57;
}

.sl-featured__slide {
	position: relative;
	height: 720px;
	background-size: cover;
	background-position: center;
}

.sl-featured__slide::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 31, 87, 0.05) 20%, rgba(10, 31, 87, 0.72) 100%);
	pointer-events: none;
}

.sl-featured__slide[hidden] {
	display: none;
}

.sl-featured__link {
	display: block;
	position: relative;
	height: 720px;
	text-decoration: none !important;
	color: inherit;
}

.sl-featured__card {
	position: absolute;
	left: 28px;
	bottom: 48px;
	right: 28px;
	max-width: 520px;
	padding: 22px 24px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 12px 32px rgba(10, 31, 87, 0.18);
	z-index: 1;
}

.sl-featured__tag {
	display: inline-flex;
	align-items: center;
	margin-bottom: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #fee2e2;
	color: var(--sl-red);
	font-family: var(--sl-font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sl-featured__heading {
	margin: 0 0 12px;
	font-family: var(--sl-font-heading);
	font-size: clamp(18px, 2.2vw, 24px);
	font-weight: 700;
	line-height: 1.3;
	color: var(--sl-navy);
}

.sl-featured__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	font-family: var(--sl-font-body);
	font-size: 13px;
	color: var(--sl-text-muted);
}

.sl-featured__foot {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

.sl-featured__nav {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.sl-featured__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.92);
	color: var(--sl-navy);
	cursor: pointer;
	pointer-events: auto;
	box-shadow: 0 6px 18px rgba(10, 31, 87, 0.18);
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sl-featured__btn:hover {
	background: #ffffff;
}

.sl-featured__btn--prev {
	left: 16px;
}

.sl-featured__btn--next {
	right: 16px;
}

.sl-featured__dots {
	position: absolute;
	left: 28px;
	bottom: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	z-index: 3;
	pointer-events: auto;
}

.sl-featured__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.sl-featured__dot.is-active {
	background: #ffffff;
	transform: scale(1.2);
}

/* Section shared */
.sl-section {
	margin-bottom: 64px;
	text-align: left;
}

.sl-eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	margin: 0 0 12px;
	font-family: var(--sl-font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sl-red);
}

.sl-eyebrow__rule {
	display: inline-block;
	width: 22px;
	height: 2px;
	background: var(--sl-red);
	border-radius: 2px;
}

.sl-section-title {
	margin: 0 0 28px;
	font-family: var(--sl-font-heading);
	font-size: clamp(26px, 3.2vw, 36px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--sl-navy);
	text-align: left;
}

/* Reels — bleed cards to viewport right edge (match Home Real Stories) */
.sl-reels-section {
	overflow: visible;
}

.sl-reels__viewport {
	width: calc(100% + (100vw - 100%) / 2);
	max-width: none;
	min-width: 0;
	margin-right: 0;
}

.sl-reels {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 0;
	margin: 0;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.sl-reels::-webkit-scrollbar {
	display: none;
}

.sl-reels__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 48px;
	/* Match slider bleed, keep arrows inset from viewport edge */
	width: calc(100% + (100vw - 100%) / 2);
	max-width: none;
	padding-left: 0;
	padding-right: var(--ssdc-gutter, 112px);
	box-sizing: border-box;
}

.sl-reels__foot[hidden] {
	display: none !important;
}

/* Ensure nav stays in normal document flow under cards */
.sl-reels-section .sl-reels__foot:not([hidden]) {
	display: flex !important;
}

@media (max-width: 1280px) {
	.sl-reels__viewport {
		width: 100%;
	}

	.sl-reels__foot {
		width: 100%;
		padding-right: 0;
	}
}

.sl-reels__dots {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sl-reels__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #cbd5e1;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.sl-reels__dot.is-active {
	background: var(--sl-navy);
	transform: scale(1.15);
}

.sl-reels__nav {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* Match Home “Real students. Real stories.” arrow buttons */
.sl-reels__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 12px;
	border-radius: 999px;
	border: 1px solid rgba(203, 213, 225, 1);
	background: #fff;
	color: #94a3b8;
	cursor: pointer;
	box-shadow: none;
	transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.sl-reels__btn svg {
	width: 14px;
	height: 14px;
	display: block;
	flex-shrink: 0;
}

.sl-reels__btn:hover {
	background: #fff;
	border-color: rgba(203, 213, 225, 1);
}

.sl-reels__btn:disabled,
.sl-reels__btn[aria-disabled="true"] {
	opacity: 0.4;
	cursor: default;
	pointer-events: none;
}

.sl-reel {
	position: relative;
	flex: 0 0 320px;
	width: 320px;
	height: 720px;
	aspect-ratio: auto;
	border-radius: 16px;
	overflow: hidden;
	background-color: #0a1f57;
	background-size: cover;
	background-position: center;
	scroll-snap-align: start;
	text-decoration: none !important;
	color: #ffffff;
	box-shadow: 0 10px 28px rgba(10, 31, 87, 0.12);
}

.sl-reel::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 31, 87, 0.08) 40%, rgba(10, 31, 87, 0.78) 100%);
}

.sl-reel__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--sl-navy);
	font-family: var(--sl-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.01em;
	box-shadow: 0 4px 12px rgba(10, 31, 87, 0.12);
}

.sl-reel__play {
	position: absolute;
	top: 14px;
	right: 14px;
	left: auto;
	transform: none;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: var(--sl-navy);
	box-shadow: 0 6px 16px rgba(10, 31, 87, 0.16);
}

.sl-reel__copy {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 20px;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sl-reel__copy strong {
	font-family: var(--sl-font-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: #ffffff;
}

.sl-reel__copy small {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--sl-font-body);
	font-size: 13px;
	color: rgba(255, 255, 255, 0.9);
}

/* Gallery */
.sl-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.sl-gallery__item {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: 16px;
	aspect-ratio: 4 / 3;
	background: #e8eef8;
}

.sl-gallery__item.is-hidden {
	display: none;
}

/* Collapse extras beyond initial visible (default 9) when Gutenberg renders all items */
.sl-gallery--collapse > .sl-gallery__item:nth-child(n + 10),
.sl-gallery--collapse > [data-sl-gallery-item]:nth-child(n + 10) {
	display: none;
}

.sl-gallery.is-expanded > .sl-gallery__item,
.sl-gallery.is-expanded > [data-sl-gallery-item],
.sl-gallery.is-expanded > .sl-gallery__item.is-hidden {
	display: block;
}

.sl-gallery__item img,
.sl-gallery__item .ssdc-media-thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sl-gallery__item .ssdc-media-thumb {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}

.sl-viewmore-wrap {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

.sl-viewmore-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 26px;
	border-radius: 999px;
	border: 1.5px solid #cbd5e1;
	background: #ffffff;
	color: var(--sl-navy);
	font-family: var(--sl-font-body);
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.sl-viewmore-btn:hover {
	border-color: var(--sl-navy);
	background: #f8fafc;
}

/* CTA — desktop inset; only margin-bottom to footer (match Staff / Competitions / HV) */
.sl-cta {
	margin-top: 8px;
	margin-bottom: 0;
	width: 100%;
	box-sizing: border-box;
}

.sl-cta .ssdc-cta-banner,
.sl-cta .ssdc-faq-banner {
	margin-top: 0;
	margin-bottom: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.sl-cta .ssdc-cta-banner__copy,
.sl-cta .ssdc-faq-banner__copy {
	max-width: none;
}

.sl-cta .ssdc-cta-banner__title,
.sl-cta .ssdc-faq-banner__title {
	text-transform: uppercase;
	white-space: nowrap;
}

@media (min-width: 768px) {
	.sl-cta {
		max-width: var(--ssdc-page-max, none);
		margin-left: auto;
		margin-right: auto;
		padding-left: var(--ssdc-gutter, 112px);
		padding-right: var(--ssdc-gutter, 112px);
		margin-bottom: 48px;
		box-sizing: border-box;
	}

	.sl-cta .ssdc-cta-banner,
	.sl-cta .ssdc-faq-banner {
		border-radius: 20px;
	}
}

@media (max-width: 767px) {
	.sl-cta .ssdc-cta-banner__title,
	.sl-cta .ssdc-faq-banner__title {
		white-space: normal;
	}
}

@media (max-width: 991px) {
	.sl-featured__viewport,
	.sl-featured__slide,
	.sl-featured__link {
		height: 520px;
	}

	.sl-featured__card {
		bottom: 20px;
	}

	/* Dots left + Prev/Next right below the slide (mobile UI) */
	.sl-featured__foot {
		position: static;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		margin-top: 20px;
		pointer-events: auto;
	}

	.sl-featured__nav {
		position: static;
		display: flex;
		align-items: center;
		gap: 10px;
		pointer-events: auto;
	}

	.sl-featured__btn {
		position: static;
		top: auto;
		transform: none;
		width: 40px;
		height: 40px;
		border: 1px solid rgba(226, 232, 240, 1);
		background: #ffffff;
		color: #64748b;
		box-shadow: none;
	}

	.sl-featured__btn:hover {
		border-color: #94a3b8;
		color: var(--sl-navy);
		background: #f8fafc;
	}

	.sl-featured__btn--prev,
	.sl-featured__btn--next {
		left: auto;
		right: auto;
	}

	.sl-featured__dots {
		position: static;
		left: auto;
		bottom: auto;
	}

	.sl-featured__dot {
		background: #cbd5e1;
	}

	.sl-featured__dot.is-active {
		background: var(--sl-navy);
		transform: none;
	}

	.sl-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sl-reel {
		flex-basis: 280px;
		width: 280px;
		height: 630px;
	}
}

@media (max-width: 767px) {
	.sl-page {
		padding-top: 28px;
		padding-bottom: 0;
	}

	.sl-container {
		padding: 0 var(--ssdc-gutter, 20px);
	}

	.sl-header {
		margin-bottom: 24px;
	}

	.sl-featured {
		margin-bottom: 48px;
	}

	.sl-featured__viewport,
	.sl-featured__slide,
	.sl-featured__link {
		height: 420px;
	}

	.sl-featured__card {
		left: 16px;
		right: 16px;
		bottom: 16px;
		max-width: none;
		padding: 16px 18px;
	}

	.sl-featured__foot {
		margin-top: 16px;
	}

	.sl-section {
		margin-bottom: 40px;
	}

	.sl-gallery {
		grid-template-columns: 1fr;
	}

	.sl-reel {
		flex-basis: 240px;
		width: 240px;
		height: 540px;
	}
}

@media (max-width: 480px) {
	.sl-featured__viewport,
	.sl-featured__slide,
	.sl-featured__link {
		height: 360px;
	}

	.sl-featured__card {
		bottom: 14px;
		padding: 14px 16px;
	}

	.sl-reel {
		flex-basis: min(260px, 78vw);
		width: min(260px, 78vw);
		height: min(520px, 140vw);
	}
}
