/* MSD Student Reviews – front-end carousel */
.msdr-section {
	--msdr-accent: #c8102e;
	--msdr-card: #ffffff;
	--msdr-text: #1f2933;
	--msdr-visible: 3;
	--msdr-gap: 24px;
	width: 100%;
	box-sizing: border-box;
	padding: 56px 0;
}
.msdr-section.has-bg { background: var(--msdr-bg); padding: 64px 20px; }
.msdr-section *, .msdr-section *::before, .msdr-section *::after { box-sizing: border-box; }

.msdr-head { text-align: center; max-width: 760px; margin: 0 auto 36px; padding: 0 16px; }
.msdr-title { margin: 0 0 8px; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.2; }
.msdr-subtitle { margin: 0 0 10px; opacity: .8; font-size: 1.05rem; }
.msdr-summary { margin: 0; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: .95rem; }

.msdr-stars { display: inline-flex; gap: 2px; font-size: 1.15rem; line-height: 1; }
.msdr-stars .on { color: var(--msdr-accent); }
.msdr-stars .off { color: #cfd4da; }

.msdr-carousel { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 52px; }
.msdr-viewport { overflow: hidden; margin: 0 calc(var(--msdr-gap) / -2); }
.msdr-track {
	display: flex;
	align-items: stretch;
	will-change: transform;
	transition: transform .65s cubic-bezier(.22, .61, .36, 1);
}
.msdr-track.no-anim { transition: none; }

.msdr-slide { flex: 0 0 calc(100% / var(--msdr-visible)); padding: 6px calc(var(--msdr-gap) / 2) 14px; display: flex; }

.msdr-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	background: var(--msdr-card);
	color: var(--msdr-text);
	border-radius: 14px;
	padding: 30px 28px 24px;
	border-top: 4px solid var(--msdr-accent);
	box-shadow: 0 6px 24px rgba(15, 23, 42, .08), 0 1px 3px rgba(15, 23, 42, .06);
	transition: transform .25s ease, box-shadow .25s ease;
}
.msdr-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15, 23, 42, .12); }
.msdr-quote { position: absolute; top: 20px; right: 22px; width: 38px; height: 38px; fill: var(--msdr-accent); opacity: .14; }

.msdr-card .msdr-stars { margin-bottom: 14px; }
.msdr-text {
	font-size: 1rem;
	line-height: 1.65;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 7;
	overflow: hidden;
}
.msdr-text p { margin: 0 0 .7em; }
.msdr-text p:last-child { margin-bottom: 0; }
.msdr-card.is-expanded .msdr-text { -webkit-line-clamp: unset; display: block; }
.msdr-more {
	align-self: flex-start;
	background: none; border: 0; padding: 6px 0 0; margin: 0;
	color: var(--msdr-accent); font: inherit; font-size: .9rem; font-weight: 600;
	cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.msdr-more[hidden] { display: none; }

.msdr-author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 20px; }
.msdr-avatar {
	flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--msdr-accent); color: #fff; font-weight: 700; font-size: 1.1rem;
}
.msdr-name { font-size: 1rem; }

.msdr-nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 42px; height: 42px; border-radius: 50%;
	border: 2px solid var(--msdr-accent); background: #fff; color: var(--msdr-accent);
	display: grid; place-items: center; cursor: pointer; padding: 0; z-index: 2;
	transition: background .2s, color .2s;
}
.msdr-nav:hover, .msdr-nav:focus-visible { background: var(--msdr-accent); color: #fff; }
.msdr-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.msdr-prev { left: 0; }
.msdr-next { right: 0; }

.msdr-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.msdr-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #cfd4da; cursor: pointer; transition: background .2s, width .2s; }
.msdr-dot.is-active { background: var(--msdr-accent); width: 26px; border-radius: 5px; }

.msdr-carousel.is-static .msdr-nav, .msdr-carousel.is-static .msdr-dots { display: none; }
.msdr-carousel.is-static .msdr-track { justify-content: center; }

.msdr-section .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 1024px) { .msdr-section { --msdr-visible: 2; } }
@media (max-width: 680px) {
	.msdr-section { --msdr-visible: 1; --msdr-gap: 16px; padding: 40px 0; }
	.msdr-carousel { padding: 0 16px; }
	.msdr-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.msdr-track { transition: none; }
	.msdr-card, .msdr-card:hover { transition: none; transform: none; }
}
