/*
 * MasterStudy Testimonials Slider
 * All rules are scoped under .msts-wrap so they never fight the theme's
 * own CSS, no matter what page or widget area this ends up on.
 */

.msts-wrap {
	--msts-purple: #4B0A8F;
	--msts-red: #B32025;
	--msts-gold: #E6A11B;
	--msts-white: #FFFFFF;
	--msts-border: #E7E1F3;
	--msts-muted: #6B6B76;
	--msts-body-text: #2B2B33;
	--msts-shadow: 0 10px 30px rgba(43, 10, 82, 0.08);
	--msts-radius: 18px;
	--msts-font-heading: 'Poppins', sans-serif;
	--msts-font-body: 'Inter', sans-serif;
	position: relative;
}

.msts-track {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 10px;
	scrollbar-width: none;
}
.msts-track::-webkit-scrollbar { display: none; }

.msts-item {
	scroll-snap-align: start;
	flex: 0 0 auto;
}

.msts-card {
	width: 380px;
	display: flex;
	flex-direction: column;
	background: var(--msts-white);
	border: 1px solid var(--msts-border);
	border-radius: var(--msts-radius);
	padding: 28px;
	box-shadow: var(--msts-shadow);
	font-family: var(--msts-font-body);
}

/* Mode 2: manually-selected screenshots (chat conversations, job invite
 * notifications, etc), shown as a center-focused carousel -- the active
 * slide scales up to full opacity, neighbors sit smaller/dimmed on either
 * side. Clicking a slide opens it full-size in the lightbox below. */
.msts-image-slide {
	display: block;
	box-sizing: border-box;
	width: 300px;
	height: 460px;
	border: 0;
	margin: 0;
	padding: 0;
	border-radius: var(--msts-radius);
	overflow: hidden;
	box-shadow: var(--msts-shadow);
	background: var(--msts-white);
	font: inherit;
	cursor: pointer;
	scroll-snap-align: center;
	opacity: 0.5;
	transform: scale(0.86);
	transition: transform 0.18s ease, opacity 0.18s ease;
}

.msts-image-slide.is-active {
	opacity: 1;
	transform: scale(1.08);
	z-index: 2;
}

.msts-image-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	pointer-events: none;
}

.msts-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(10, 6, 20, 0.86);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 40px;
	z-index: 99999;
}

.msts-lightbox.is-open { display: flex; }

.msts-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.msts-lightbox__close {
	position: absolute;
	top: 20px;
	right: 28px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.12);
	color: var(--msts-white, #fff);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.18s ease;
}

.msts-lightbox__close:hover { background: rgba(255, 255, 255, 0.24); }

body.msts-lightbox-open { overflow: hidden; }

.msts-card__quote {
	color: var(--msts-body-text);
	font-size: 14.5px;
	line-height: 1.7;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 9;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.msts-card__stars {
	color: var(--msts-gold);
	font-size: 14px;
	margin-bottom: 12px;
	letter-spacing: 2px;
}

.msts-card__person {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 20px;
}

.msts-avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--msts-purple), var(--msts-red));
	color: var(--msts-white);
	font-family: var(--msts-font-heading);
	font-weight: 700;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.msts-card__person div strong {
	display: block;
	font-family: var(--msts-font-heading);
	font-size: 14.5px;
	color: var(--msts-purple);
}

.msts-card__person div span {
	font-size: 12px;
	color: var(--msts-muted);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.msts-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	margin-top: 28px;
}

.msts-arrow {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 2px solid var(--msts-border);
	background: var(--msts-white);
	color: var(--msts-purple);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	transition: border-color 0.18s ease, color 0.18s ease;
}
.msts-arrow:hover { border-color: var(--msts-gold); color: var(--msts-gold); }

.msts-dots { display: flex; align-items: center; gap: 9px; }

.msts-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--msts-border);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease;
}
.msts-dot.is-active { background: var(--msts-purple); transform: scale(1.3); }

.msts-empty {
	color: var(--msts-muted);
	font-family: var(--msts-font-body);
}

@media (max-width: 480px) {
	.msts-card { width: 300px; padding: 22px; }
	.msts-image-slide { width: 220px; height: 340px; }
}
