/**
 * Homepage client testimonials — carousel layout.
 */

.pws-testimonials {
	position: relative;
	overflow: hidden;
	background: #f8fafc;
	margin-top: 40px;
}

.pws-testimonials-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 12% 40%, rgba(37, 99, 235, 0.09) 0%, transparent 42%),
		radial-gradient(circle at 88% 20%, rgba(124, 58, 237, 0.07) 0%, transparent 38%);
}

.pws-testimonials .pws-container {
	position: relative;
}

.pws-testimonials .pws-section-head {
	margin-bottom: 40px;
}

/* ---- Slider ---- */
.pws-testimonials-slider {
	max-width: 820px;
	margin: 0 auto;
}

.pws-testimonials-viewport {
	position: relative;
	min-height: 280px;
	transition: min-height 0.35s ease;
	overflow: hidden;
}

.pws-testimonials-track {
	position: relative;
	width: 100%;
}

.pws-testimonial-slide {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(12px);
	transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
	z-index: 0;
}

.pws-testimonial-slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
	z-index: 1;
}

/* Reset legacy theme blockquote styles */
body.pws-landing-page .pws-testimonials blockquote.pws-testimonial-quote,
.pws-testimonials blockquote.pws-testimonial-quote {
	float: none;
	width: auto;
	background: none;
	background-image: none;
	padding: 0;
	margin: 0 0 28px;
	border: 0;
	font-style: normal;
}

body.pws-landing-page .pws-testimonials blockquote.pws-testimonial-quote p,
.pws-testimonials blockquote.pws-testimonial-quote p {
	float: none;
	font-family: inherit;
	font-style: normal;
}

.pws-testimonial-slide-inner {
	background: var(--pws-white, #fff);
	border-radius: 16px;
	padding: 40px 44px 36px;
	box-shadow: 0 8px 40px rgba(15, 23, 42, 0.08);
	border: 1px solid rgba(15, 23, 42, 0.06);
	position: relative;
	overflow: hidden;
}

.pws-testimonial-slide-inner::before {
	content: '\201C';
	position: absolute;
	top: 20px;
	left: 28px;
	font-size: 72px;
	line-height: 1;
	font-family: Georgia, 'Times New Roman', serif;
	color: var(--pws-primary, #2563eb);
	opacity: 0.12;
	pointer-events: none;
}

.pws-testimonial-rating,
.pws-testimonial-quote,
.pws-testimonial-author {
	position: relative;
	z-index: 1;
}

.pws-testimonial-rating {
	display: flex;
	gap: 3px;
	margin-bottom: 18px;
	color: #f59e0b;
}

.pws-testimonial-quote {
	margin: 0 0 28px;
	padding: 0;
	border: 0;
}

.pws-testimonial-quote p {
	margin: 0;
	font-size: 17px;
	line-height: 1.75;
	color: var(--pws-heading, #0f172a);
	font-weight: 500;
}

.pws-testimonial-author {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-top: 24px;
	border-top: 1px solid #eef2f7;
}

.pws-testimonial-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	flex-shrink: 0;
	letter-spacing: 0.02em;
}

.pws-testimonial-author-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pws-testimonial-name {
	display: block;
	font-size: 16px;
	font-weight: 700;
	font-style: normal;
	color: var(--pws-heading, #0f172a);
}

.pws-testimonial-role {
	display: block;
	font-size: 13px;
	line-height: 1.45;
	color: var(--pws-text, #475569);
}

.pws-testimonial-date {
	display: block;
	font-size: 12px;
	color: #94a3b8;
	margin-top: 2px;
}

/* ---- Controls ---- */
.pws-testimonials-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 28px;
}

.pws-testimonials-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid #e2e8f0;
	background: var(--pws-white, #fff);
	color: var(--pws-heading, #0f172a);
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
	flex-shrink: 0;
	padding: 0;
	margin: 0;
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
	line-height: 1;
	box-sizing: border-box;
}

.pws-testimonials-nav:hover {
	background: var(--pws-primary, #2563eb);
	border-color: var(--pws-primary, #2563eb);
	color: #fff;
}

.pws-testimonials-nav:focus-visible {
	outline: 2px solid var(--pws-primary, #2563eb);
	outline-offset: 2px;
}

.pws-testimonials-dots {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pws-testimonials-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	padding: 0;
	margin: 0;
	background: #cbd5e1;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
	line-height: 1;
	box-sizing: border-box;
}

.pws-testimonials-dot.is-active {
	background: var(--pws-primary, #2563eb);
	transform: scale(1.15);
}

.pws-testimonials-dot:focus-visible {
	outline: 2px solid var(--pws-primary, #2563eb);
	outline-offset: 2px;
}

/* ---- Author thumbs ---- */
.pws-testimonials-thumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 28px;
}

.pws-testimonials-thumb {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px 8px 8px;
	border-radius: 999px;
	border: 1px solid #e2e8f0;
	background: var(--pws-white, #fff);
	color: var(--pws-text, #475569);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
	max-width: 100%;
	margin: 0;
	appearance: none;
	-webkit-appearance: none;
	font-family: inherit;
	line-height: 1.3;
	box-sizing: border-box;
	text-align: left;
}

.pws-testimonials-thumb:hover {
	border-color: #bfdbfe;
	color: var(--pws-heading, #0f172a);
}

.pws-testimonials-thumb.is-active {
	border-color: var(--pws-primary, #2563eb);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
	color: var(--pws-heading, #0f172a);
}

.pws-testimonials-thumb:focus-visible {
	outline: 2px solid var(--pws-primary, #2563eb);
	outline-offset: 2px;
}

.pws-testimonials-thumb-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	flex-shrink: 0;
}

.pws-testimonials-thumb-name {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 160px;
}

/* ---- Landing page overrides ---- */
body.pws-landing-page .row-front-testimonials {
	width: 100%;
	max-width: none;
	margin: 40px 0 0;
	padding: 0;
	border: none;
	background: none;
	background-image: none;
}

body.pws-landing-page .row-front-testimonials .grid_12 {
	max-width: none;
	margin: 0;
	padding: 0;
	float: none;
	width: auto;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
	.pws-testimonial-slide-inner {
		padding: 28px 24px 24px;
	}

	.pws-testimonial-slide-inner::before {
		font-size: 56px;
		top: 14px;
		left: 18px;
	}

	.pws-testimonial-quote p {
		font-size: 15px;
	}

	.pws-testimonials-thumbs {
		display: none;
	}
}

@media (max-width: 480px) {
	.pws-testimonials-controls {
		gap: 14px;
	}

	.pws-testimonials-nav {
		width: 40px;
		height: 40px;
	}
}
