/* ==========================================================================
   Client Reviews Slider Pro - Modern Clean Theme
   ========================================================================== */

.crs-slider-section {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	background: #ffffff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.crs-slider-section *,
.crs-slider-section *::before,
.crs-slider-section *::after {
	box-sizing: border-box;
}

.crs-slider-inner {
	position: relative;
	margin: 0 auto;
	width: 100%;
	padding: 0 20px;
}

/* Header */
.crs-heading-wrap {
	text-align: center;
	margin-bottom: 34px;
}

.crs-heading {
	font-size: clamp(24px, 3.5vw, 36px);
	font-weight: 700;
	color: #111827;
	margin: 0 0 10px;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.crs-subheading {
	font-size: 15.5px;
	color: #64748b;
	margin: 0 auto;
	max-width: 640px;
	line-height: 1.6;
}

/* Carousel Container */
.crs-carousel-container {
	position: relative;
	width: 100%;
}

.crs-viewport {
	overflow: hidden;
	width: 100%;
	/* Top padding gives room for top-overlapping avatars without clipping */
	padding: 48px 4px 14px;
	margin-top: -48px;
}

.crs-track {
	display: flex;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
	touch-action: pan-y;
	user-select: none;
}

/* Slide item */
.crs-slide {
	flex: 0 0 calc((100% - 48px) / 3);
	margin-right: 24px;
	box-sizing: border-box;
	display: flex;
	align-items: stretch;
}

.crs-slide:last-child {
	margin-right: 0;
}

/* Card */
.crs-card {
	position: relative;
	width: 100%;
	background: #ffffff;
	border-radius: 22px;
	padding: 50px 26px 32px;
	border: 1px solid rgba(0, 0, 0, 0.05);
	box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.05), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.crs-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 42px -4px rgba(0, 0, 0, 0.08), 0 6px 16px -2px rgba(0, 0, 0, 0.04);
}

/* Floating Avatar at Top */
.crs-avatar-wrap {
	position: absolute;
	top: -38px;
	left: 50%;
	transform: translateX(-50%);
	width: 76px;
	height: 76px;
	border-radius: 50%;
	border: 4px solid #ffffff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09), 0 2px 6px rgba(0, 0, 0, 0.04);
	background: #f8fafc;
	overflow: hidden;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
}

.crs-avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

.crs-avatar-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f1f5f9;
}

/* Star Rating */
.crs-rating {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin-bottom: 12px;
}

.crs-star-icon {
	width: 17px;
	height: 17px;
	display: inline-block;
	flex-shrink: 0;
}

/* Author Name */
.crs-author-name {
	font-size: 16.5px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 10px;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

/* Quote Text */
.crs-quote-text {
	font-size: 14.5px;
	line-height: 1.65;
	color: #4b5563;
	margin: 0;
	font-weight: 400;
	flex-grow: 1;
}

/* Author Meta */
.crs-author-meta {
	font-size: 12.5px;
	color: #94a3b8;
	margin-top: 10px;
	font-weight: 500;
}

/* Dots Navigation */
.crs-dots-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 30px;
}

.crs-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.crs-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: #cbd5e1;
	border: none;
	padding: 0;
	cursor: pointer;
	outline: none;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.crs-dot:hover {
	background: #94a3b8;
}

.crs-dot.active {
	width: 28px;
	height: 10px;
	background: var(--crs-dot-active, #1e293b);
	border-radius: 999px;
}

/* Prev / Next Arrows */
.crs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	color: #1e293b;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	z-index: 10;
	padding: 0;
}

.crs-arrow:hover {
	background: #1e293b;
	color: #ffffff;
	border-color: #1e293b;
	transform: translateY(-50%) scale(1.06);
}

.crs-arrow:focus {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.crs-prev {
	left: -20px;
}

.crs-next {
	right: -20px;
}

/* Empty State */
.crs-empty-state {
	text-align: center;
	padding: 40px 20px;
	color: #94a3b8;
	font-size: 15px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
	.crs-slide {
		flex: 0 0 calc((100% - 24px) / 2);
		margin-right: 24px;
	}

	.crs-prev {
		left: -10px;
	}

	.crs-next {
		right: -10px;
	}
}

@media (max-width: 680px) {
	.crs-slide {
		flex: 0 0 100%;
		margin-right: 18px;
	}

	.crs-arrow {
		display: none;
	}

	.crs-card {
		padding: 46px 20px 28px;
		border-radius: 20px;
	}

	.crs-avatar-wrap {
		width: 70px;
		height: 70px;
		top: -35px;
	}

	.crs-quote-text {
		font-size: 14px;
		line-height: 1.6;
	}

	.crs-slider-inner {
		padding: 0 14px;
	}
}
