.s5-section {
	--s5-ink: #132238;
	--s5-muted: #5c6c83;
	--s5-blue: #1e63c5;
	--s5-border: #dbe2ee;
	--s5-soft: #f6f8fc;

	position: relative;
	padding: 3.5rem 0 4rem;
	/* background-color: #F2F2F2; */
	overflow: hidden;
}

.s5-section::before {
	content: '';
	position: absolute;
	top: -160px;
	left: -120px;
	width: 320px;
	height: 320px;
	/* background: radial-gradient(circle, rgba(30, 99, 197, 0.12) 0%, rgba(30, 99, 197, 0) 70%); */
	z-index: 0;
}

.s5-section::after {
	content: '';
	position: absolute;
	bottom: -180px;
	right: -140px;
	width: 340px;
	height: 340px;
	/* background: radial-gradient(circle, rgba(247, 213, 88, 0.2) 0%, rgba(247, 213, 88, 0) 70%); */
	z-index: 0;
}

.s5-container {
	position: relative;
	z-index: 1;
	max-width: 85rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.s5-head {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.s5-head-text {
	flex: 1;
}

.s5-kicker {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--s5-blue);
}

.s5-title {
	margin: 0;
	font-size: 2rem;
	font-weight: 800;
	color: var(--s5-ink);
	line-height: 1.2;
}

.s5-subtitle {
	margin: 0.6rem auto 0;
	font-size: 0.96rem;
	color: var(--s5-muted);
	line-height: 1.6;
	max-width: 580px;
}

.s5-controls {
	display: inline-flex;
	gap: 0.6rem;
	position: absolute;
	right: 0;
	bottom: 0;
}

.s5-nav {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid var(--s5-border);
	background: #ffffff;
	color: var(--s5-blue);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.s5-nav:hover {
	transform: translateY(-2px);
	border-color: rgba(30, 99, 197, 0.5);
	background: #f1f6ff;
}

.s5-slider {
	position: relative;
}

.s5-track {
	display: flex;
	gap: 1.4rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 0.5rem;
	scrollbar-width: none;
}

.s5-track::-webkit-scrollbar {
	display: none;
}

.s5-card {
	scroll-snap-align: start;
	flex: 0 0 280px;
	border: 1px solid var(--s5-border);
	border-radius: 18px;
	background: #ffffff;
	padding: 0;
	cursor: pointer;
	text-align: left;
	transition: transform 0.2s ease, border-color 0.2s ease;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.s5-card:hover {
	transform: translateY(-4px);
	border-color: rgba(30, 99, 197, 0.35);
}

.s5-card:focus-visible {
	outline: 2px solid rgba(30, 99, 197, 0.6);
	outline-offset: 2px;
}

.s5-card-image {
	position: relative;
	background: var(--s5-soft);
	padding: 1rem;
}

.s5-card-image img {
	width: 100%;
	height: 170px;
	object-fit: fill;
	border-radius: 12px;
	border: 1px solid rgba(19, 34, 56, 0.08);
}

.s5-card-body {
	padding: 1rem 1.2rem 1.2rem;
}

.s5-card-kicker {
	margin: 0 0 0.4rem;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--s5-blue);
	font-weight: 600;
}

.s5-card-title {
	margin: 0 0 0.6rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--s5-ink);
	line-height: 1.35;
}

.s5-card-meta {
	margin: 0 0 1rem;
	font-size: 0.86rem;
	color: var(--s5-muted);
}

.s5-card-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--s5-blue);
}

.s5-card-cta .material-icons-round {
	font-size: 1rem;
}

.s5-modal {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: rgba(12, 24, 40, 0.6);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	z-index: 10050;
}

.s5-modal.is-open {
	opacity: 1;
	pointer-events: auto;
}

.s5-modal[hidden] {
	display: none;
}

.s5-modal-panel {
	width: min(920px, 100%);
	background: #ffffff;
	border-radius: 20px;
	border: 1px solid rgba(19, 34, 56, 0.1);
	padding: 1.5rem;
	position: relative;
}

.s5-modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	border: 1px solid var(--s5-border);
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #ffffff;
	color: var(--s5-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.s5-modal-body {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 1.5rem;
	align-items: center;
}

.s5-modal-image {
	background: var(--s5-soft);
	padding: 1rem;
	border-radius: 16px;
}

.s5-modal-image img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	border: 1px solid rgba(19, 34, 56, 0.08);
}

.s5-modal-kicker {
	margin: 0 0 0.4rem;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.25em;
	color: var(--s5-blue);
	font-weight: 600;
}

.s5-modal-title {
	margin: 0 0 0.6rem;
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--s5-ink);
}

.s5-modal-meta {
	margin: 0;
	font-size: 0.95rem;
	color: var(--s5-muted);
}

@media (max-width: 900px) {
	.s5-head {
		flex-direction: column;
		align-items: center;
	}

	.s5-controls {
		position: static;
		margin-top: 1rem;
	}

	.s5-title {
		font-size: 1.7rem;
	}

	.s5-modal-body {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.s5-section {
		padding: 3rem 0 3.5rem;
	}

	.s5-track {
		gap: 1rem;
	}

	.s5-card {
		flex-basis: 240px;
	}

	.s5-card-title { font-size: 0.95rem; }
	.s5-card-meta { font-size: 0.75rem; }
	.s5-title { font-size: 1.5rem; }

	.s5-modal-panel {
		padding: 1.2rem;
	}
}