/**
 * Naseem Testimonial Carousel — creative card slider (Elementor).
 *
 * @package Naseem
 */

.elementor-widget-naseem-testimonial-carousel .elementor-widget-container {
	margin: 0;
	padding: 0;
}

.naseem-testimonial-carousel {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.naseem-testimonial-carousel__header {
	text-align: center;
	max-width: 40rem;
	margin: 0 auto 2rem;
}

.naseem-testimonial-carousel__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-text-muted, #64748b);
}

.naseem-testimonial-carousel__heading {
	margin: 0;
	font-family: var(--font-display, "Poppins", system-ui, sans-serif);
	font-weight: 400;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--color-text, #0f172a);
}

.naseem-testimonial-carousel__viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
	outline: none;
}

.naseem-testimonial-carousel__viewport:focus-visible {
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
	border-radius: 12px;
}

.naseem-testimonial-carousel__track {
	display: flex;
	flex-wrap: nowrap;
	width: 100%;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.naseem-testimonial-carousel__slide {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0 0.5rem;
}

@media (min-width: 768px) {
	.naseem-testimonial-carousel__slide {
		padding: 0 1.5rem;
	}
}

.naseem-testimonial-carousel__card {
	position: relative;
	margin: 0 auto;
	max-width: 52rem;
	padding: 2rem 1.75rem 2rem;
	background: #fff;
	border-radius: 28px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
	overflow: hidden;
}

.naseem-testimonial-carousel__deco {
	position: absolute;
	right: 1.25rem;
	top: 1rem;
	opacity: 0.12;
	pointer-events: none;
	color: var(--color-text, #0f172a);
}

.naseem-testimonial-carousel__deco svg {
	width: clamp(4rem, 12vw, 7rem);
	height: clamp(4rem, 12vw, 7rem);
	stroke: currentColor;
	fill: none;
}

.naseem-testimonial-carousel__video-trigger {
	position: absolute;
	left: 1rem;
	top: 1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.88);
	color: #fff;
	cursor: pointer;
	z-index: 2;
	transition: transform 0.2s ease, background 0.2s ease;
}

.naseem-testimonial-carousel__video-trigger:hover {
	transform: scale(1.06);
	background: var(--color-primary, #22c55e);
}

.naseem-testimonial-carousel__video-trigger svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
}

.naseem-testimonial-carousel__quote {
	margin: 0 0 1.75rem;
	padding: 0;
	border: 0;
	font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
	line-height: 1.65;
	font-weight: 500;
	color: var(--color-text, #0f172a);
	font-family: var(--font-sans, "Inter", system-ui, sans-serif);
}

.naseem-testimonial-carousel__footer {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.naseem-testimonial-carousel__avatar {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.naseem-testimonial-carousel__avatar-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.naseem-testimonial-carousel__cite {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	min-width: 0;
}

.naseem-testimonial-carousel__name {
	font-style: normal;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.02em;
	color: var(--color-text, #0f172a);
}

.naseem-testimonial-carousel__meta {
	margin: 0;
	font-size: 0.875rem;
	color: var(--color-text-muted, #64748b);
}

.naseem-testimonial-carousel__stars {
	display: flex;
	gap: 0.15rem;
	margin-top: 0.35rem;
	font-size: 0.95rem;
	line-height: 1;
	letter-spacing: 0.05em;
}

.naseem-testimonial-carousel__star {
	color: rgba(15, 23, 42, 0.18);
}

.naseem-testimonial-carousel__star--on {
	color: #eab308;
}

.naseem-testimonial-carousel--single .naseem-testimonial-carousel__controls {
	display: none;
}

.naseem-testimonial-carousel__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.75rem;
	flex-wrap: wrap;
}

.naseem-testimonial-carousel__nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 50%;
	background: #fff;
	color: var(--color-text, #0f172a);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.naseem-testimonial-carousel__nav-btn:hover {
	background: var(--color-primary, #22c55e);
	border-color: var(--color-primary, #22c55e);
	color: #fff;
	transform: scale(1.05);
}

.naseem-testimonial-carousel__nav-btn svg {
	width: 22px;
	height: 22px;
	stroke: currentColor;
	fill: none;
}

.naseem-testimonial-carousel__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	flex-wrap: wrap;
}

.naseem-testimonial-carousel__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.2);
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease;
}

.naseem-testimonial-carousel__dot:hover {
	transform: scale(1.15);
}

.naseem-testimonial-carousel__dot.is-active {
	background: var(--color-primary, #22c55e);
	transform: scale(1.2);
}

.naseem-testimonial-carousel__video-modal {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 9999;
}

.naseem-testimonial-carousel__video-modal.is-open {
	display: block;
}

.naseem-testimonial-carousel__video-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, 0.78);
}

.naseem-testimonial-carousel__video-dialog {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(92vw, 880px);
	background: #000;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(2, 6, 23, 0.4);
}

.naseem-testimonial-carousel__video-player {
	display: block;
	width: 100%;
	height: auto;
	max-height: 80vh;
	background: #000;
}

.naseem-testimonial-carousel__video-close {
	position: absolute;
	right: 10px;
	top: 10px;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.85);
	color: #fff;
	cursor: pointer;
	z-index: 2;
}

.naseem-testimonial-carousel__video-close svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
}

@media (prefers-reduced-motion: reduce) {
	.naseem-testimonial-carousel__track {
		transition: none;
	}

	.naseem-testimonial-carousel__nav-btn,
	.naseem-testimonial-carousel__dot {
		transition: none;
	}

	.naseem-testimonial-carousel__nav-btn:hover {
		transform: none;
	}
}
