/* Driving Educators graduates slider. Mirrors "They passed before you" on drivingeducators.nl. */
.dep-grad {
	--g-ink: #242424;
	--g-green: #26594F;
	--g-mint: #0FFF9F;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--g-ink);
	width: 100%;
	box-sizing: border-box;
	container-type: inline-size;
	container-name: depgrad;
	-webkit-font-smoothing: antialiased;
	text-align: left;
}
.dep-grad *, .dep-grad *::before, .dep-grad *::after { box-sizing: border-box; }
.dep-grad p, .dep-grad h2, .dep-grad ul, .dep-grad li { margin: 0; padding: 0; }
.dep-grad-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.dep-grad-eyebrow { display: inline-block; background: #E4FDF3; color: #0BB874; font-size: 14px; font-weight: 600; line-height: 1; padding: 12px 24px; border-radius: 100px; margin-bottom: 18px; }
.dep-grad .dep-grad-title { font-family: inherit; font-size: 48px; font-weight: 700; line-height: 1.2; color: var(--g-ink); letter-spacing: -0.01em; text-transform: none; }
.dep-grad .dep-grad-title span { color: var(--g-mint); }
.dep-grad-sub { margin-top: 12px !important; font-size: 16px; line-height: 1.6; color: var(--g-green); }

.dep-grad-wrap { position: relative; }
.dep-grad-track {
	list-style: none !important;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3 * 20px) / 4);
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	outline: none;
}
.dep-grad-track::-webkit-scrollbar { display: none; }
.dep-grad-card {
	position: relative;
	list-style: none !important;
	aspect-ratio: 375 / 342;
	border-radius: 20px;
	overflow: hidden;
	background: #1d3a34;
	scroll-snap-align: start;
	isolation: isolate;
}
.dep-grad-card::before { content: none !important; }
.dep-grad-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; max-width: none; border-radius: 0; margin: 0; }
.dep-grad-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 35%, rgba(0,0,0,.72) 100%); }
.dep-grad-badge { position: absolute; top: 16px; right: 16px; background: var(--g-mint); color: var(--g-ink); font-size: 12px; font-weight: 600; line-height: 1; padding: 8px 12px; border-radius: 100px; }
.dep-grad-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 24px 22px; display: flex; flex-direction: column; gap: 2px; }
.dep-grad-stars { display: flex; gap: 2px; margin-bottom: 2px; }
.dep-grad-stars svg { width: 15px; height: 15px; fill: var(--g-mint); }
.dep-grad-name { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.25; }
.dep-grad-type { font-size: 13px; color: rgba(255,255,255,.82); line-height: 1.4; }
.dep-grad-quote { font-size: 14px; font-weight: 600; font-style: italic; color: var(--g-mint); line-height: 1.4; margin-top: 4px; }

.dep-grad-nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0;
	background: #fff; color: var(--g-ink); cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 20px rgba(0,0,0,.15);
	transition: background .15s ease, opacity .15s ease;
}
.dep-grad-nav:hover { background: var(--g-mint); }
.dep-grad-nav:focus-visible { outline: 3px solid var(--g-ink); outline-offset: 2px; }
.dep-grad-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dep-grad-prev { left: 12px; }
.dep-grad-next { right: 12px; }
.dep-grad-nav[disabled] { opacity: 0; pointer-events: none; }
@media (min-width: 1300px) {
	.dep-grad-prev { left: -22px; }
	.dep-grad-next { right: -22px; }
}

.dep-grad-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.dep-grad-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #CFE3DD; cursor: pointer; transition: width .2s ease, background .2s ease; }
.dep-grad-dots button[aria-current="true"] { width: 24px; border-radius: 8px; background: var(--g-green); }

@container depgrad (max-width: 1020px) {
	.dep-grad-track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
}
@container depgrad (max-width: 760px) {
	.dep-grad-track { grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; }
	.dep-grad .dep-grad-title { font-size: 34px; }
	.dep-grad-head { margin-bottom: 28px; }
	.dep-grad-prev { left: 6px; }
	.dep-grad-next { right: 6px; }
}
@container depgrad (max-width: 520px) {
	.dep-grad-track { grid-auto-columns: 84%; gap: 14px; }
	.dep-grad-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.dep-grad-track { scroll-behavior: auto; }
}

/* Marquee (default): endless belt, pauses on hover. */
.dep-grad-marquee {
	overflow: hidden;
}
.dep-grad-belt { display: flex; width: max-content; animation: dep-grad-run var(--dep-dur, 40s) linear infinite; }
.dep-grad-marquee:hover .dep-grad-belt, .dep-grad-marquee:focus-within .dep-grad-belt { animation-play-state: paused; }
.dep-grad-set { display: flex; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.dep-grad-set .dep-grad-card { flex: none; width: 290px; margin: 0 20px 0 0 !important; }
@keyframes dep-grad-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@container depgrad (max-width: 760px) {
	.dep-grad-set .dep-grad-card { width: 240px; margin-right: 14px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.dep-grad-belt { animation: none; }
	.dep-grad-marquee { overflow-x: auto; }
	.dep-grad-set[aria-hidden="true"] { display: none; }
}
