/**
 * CLW Testimonial Slider Styles
 */

.clw-testimonial-section {
	width: 100%;
	position: relative;
	box-sizing: border-box;
}

/* Header Section */
.clw-testimonial-header {
	margin-bottom: 40px;
	box-sizing: border-box;
}

.clw-testimonial-header.text-center {
	text-align: center;
}

.clw-testimonial-header.text-left {
	text-align: left;
}

.clw-testimonial-header.text-right {
	text-align: right;
}

.clw-testimonial-badge-wrapper {
	margin-bottom: 14px;
}

.clw-testimonial-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 18px;
	background-color: #FFF0ED;
	color: #EF4444;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: 999px;
	border: 1px solid rgba(239, 68, 68, 0.15);
	line-height: 1.4;
	transition: all 0.3s ease;
}

.clw-testimonial-title {
	font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 38px;
	font-weight: 800;
	line-height: 1.25;
	color: #0B1E3F;
	margin: 0 0 10px 0;
	letter-spacing: -0.02em;
}

.clw-testimonial-subtitle {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: #64748B;
	margin: 0;
	max-width: 680px;
}

.clw-testimonial-header.text-center .clw-testimonial-subtitle {
	margin-left: auto;
	margin-right: auto;
}

.clw-testimonial-header.text-right .clw-testimonial-subtitle {
	margin-left: auto;
}

/* Slider Container */
.clw-testimonial-slider-wrap {
	position: relative;
	width: 100%;
}

.clw-testimonial-slider {
	position: relative;
	width: 100%;
	padding: 12px 4px 20px 4px;
	overflow: hidden;
}

.clw-testimonial-slider .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

.clw-testimonial-slider .swiper-slide {
	height: auto; /* Required for uniform card heights */
	display: flex;
	box-sizing: border-box;
}

/* Card Styling */
.clw-testimonial-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	background: #ffffff;
	border: 1px solid #E5E7EB;
	border-radius: 24px;
	padding: 38px 34px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
	box-sizing: border-box;
	position: relative;
}

.clw-testimonial-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
	border-color: #D1D5DB;
}

/* Card Upper Content */
.clw-testimonial-content {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

/* Stars Rating */
.clw-testimonial-stars {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 22px;
	color: #F59E0B;
}

.clw-testimonial-star {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.clw-testimonial-star svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	transition: transform 0.2s ease;
}

.clw-testimonial-star.unfilled {
	color: #E2E8F0;
}

/* Review Quote */
.clw-testimonial-quote {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 15px;
	font-style: italic;
	line-height: 1.68;
	color: #475467;
	margin: 0 0 28px 0;
	flex-grow: 1;
}

/* Author Row */
.clw-testimonial-author {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
	padding-top: 10px;
}

.clw-testimonial-avatar-wrapper {
	flex-shrink: 0;
}

.clw-testimonial-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 2px solid #F1F5F9;
	background-color: #E2E8F0;
	transition: transform 0.3s ease;
}

.clw-testimonial-card:hover .clw-testimonial-avatar {
	transform: scale(1.05);
}

.clw-testimonial-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.clw-testimonial-name {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #0F172A;
	line-height: 1.35;
	margin: 0 0 3px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.clw-testimonial-designation {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 13.5px;
	font-weight: 400;
	color: #64748B;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Navigation Arrows */
.clw-testimonial-arrows {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	pointer-events: none;
	display: flex;
	justify-content: space-between;
	z-index: 10;
	padding: 0 10px;
}

.clw-testimonial-arrow {
	pointer-events: auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #E2E8F0;
	color: #1E293B;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: all 0.25s ease;
}

.clw-testimonial-arrow:hover {
	background: #0F172A;
	color: #ffffff;
	border-color: #0F172A;
	transform: scale(1.08);
}

.clw-testimonial-arrow svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.clw-testimonial-arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

/* Pagination Dots */
.clw-testimonial-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
}

.clw-testimonial-pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #CBD5E1;
	opacity: 1;
	border-radius: 999px;
	margin: 0 !important;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	cursor: pointer;
}

.clw-testimonial-pagination .swiper-pagination-bullet-active {
	width: 28px;
	background: #0F172A;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
	.clw-testimonial-title {
		font-size: 32px;
	}
	.clw-testimonial-card {
		padding: 32px 28px;
		border-radius: 20px;
	}
}

@media (max-width: 767px) {
	.clw-testimonial-title {
		font-size: 26px;
	}
	.clw-testimonial-card {
		padding: 28px 22px;
		border-radius: 18px;
	}
	.clw-testimonial-quote {
		font-size: 14.5px;
	}
	.clw-testimonial-avatar {
		width: 44px;
		height: 44px;
	}
	.clw-testimonial-name {
		font-size: 15px;
	}
	.clw-testimonial-designation {
		font-size: 13px;
	}
}
