/* Testimonials Custom Widget */

.tcw-wrapper {
	--tcw-accent: #1fa9e1;
	width: 100%;
	box-sizing: border-box;
}

.tcw-wrapper *,
.tcw-wrapper *::before,
.tcw-wrapper *::after {
	box-sizing: border-box;
}

/* ---------- Heading (Home2 style) ---------- */

.tcw-heading {
	margin-bottom: 40px;
}

.tcw-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: var(--tcw-accent);
	border-radius: 5px;
	padding: 8px 14px;
	margin: 0 0 14px;
}

.tcw-badge-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	background-color: #fff;
	border-radius: 1px;
	flex-shrink: 0;
}

.tcw-badge-text {
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: 0.016em;
	margin: 0;
}

.tcw-heading-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 30px 40px;
	flex-wrap: wrap;
}

.tcw-heading-left {
	flex: 1 1 320px;
	max-width: 560px;
}

.tcw-main-heading {
	margin: 0;
	color: #111;
	font-size: 42px;
	font-weight: 600;
	line-height: 1.2;
}

.tcw-heading-right {
	flex: 1 1 280px;
	max-width: 420px;
	display: grid;
	gap: 8px;
	text-align: right;
}

.tcw-subtitle {
	margin: 0;
	color: #211b1b;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
}

.tcw-subtitle .tcw-accent,
.tcw-subtitle span {
	color: var(--tcw-accent);
}

.tcw-description {
	margin: 0;
	color: #847777;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
}

/* ---------- Carousel ---------- */

.tcw-carousel {
	--tcw-slides: 3;
	--tcw-gap: 24px;
	position: relative;
	width: 100%;
	padding: 0 48px;
}

.tcw-carousel-viewport {
	overflow: hidden;
	width: 100%;
	container-type: inline-size;
	cursor: grab;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}

.tcw-carousel-viewport.is-dragging {
	cursor: grabbing;
}

.tcw-carousel-viewport.is-dragging * {
	pointer-events: none;
}

.tcw-cards,
.tcw-carousel-track {
	display: flex;
	align-items: stretch;
	gap: var(--tcw-gap);
	margin: 0;
	padding: 0;
	transition: transform 0.45s ease;
	will-change: transform;
}

.tcw-slide {
	flex: 0 0 calc((100cqi - (var(--tcw-slides) - 1) * var(--tcw-gap)) / var(--tcw-slides));
	width: calc((100cqi - (var(--tcw-slides) - 1) * var(--tcw-gap)) / var(--tcw-slides));
	max-width: calc((100cqi - (var(--tcw-slides) - 1) * var(--tcw-gap)) / var(--tcw-slides));
	min-width: 0;
	align-self: stretch;
	height: auto;
	box-sizing: border-box;
}

.tcw-card {
	--tcw-card-space: 20px;
	--tcw-desc-gap: 0px;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	padding: var(--tcw-card-space);
	display: flex;
	flex-direction: column;
	gap: 0 !important;
	height: auto;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.tcw-card-header {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 0 0 auto;
	width: 100%;
	margin: 0;
	min-height: 0;
}

.tcw-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 1px solid #e8e8e8;
	border-radius: 50%;
	background: #fff;
	color: #222;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tcw-nav:hover,
.tcw-nav:focus-visible {
	background: var(--tcw-accent);
	border-color: var(--tcw-accent);
	color: #fff;
	outline: none;
}

.tcw-nav:disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.tcw-nav svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.tcw-prev {
	left: 0;
}

.tcw-next {
	right: 0;
}

.tcw-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 22px;
	flex-wrap: wrap;
}

.tcw-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: #d0d0d0;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.tcw-dot.is-active,
.tcw-dot:hover,
.tcw-dot:focus-visible {
	background: var(--tcw-accent);
	outline: none;
}

.tcw-dot.is-active {
	transform: scale(1.15);
}

.tcw-card:hover {
	border-color: #ddd;
}

.tcw-avatar {
	flex-shrink: 0;
	overflow: hidden;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: transparent;
}

.tcw-avatar img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center center;
}

.tcw-author-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.tcw-author-name {
	margin: 0;
	color: #222;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.tcw-company {
	color: #888;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	text-decoration: none;
	transition: color 0.2s ease;
	word-break: break-word;
}

.tcw-company.is-link {
	color: var(--tcw-accent);
}

.tcw-company.is-link:hover {
	opacity: 0.85;
	text-decoration: underline;
}

.tcw-quote {
	margin: 0;
	margin-top: var(--tcw-desc-gap, 0px);
	padding-top: 0;
	color: #666;
	font-size: 15px;
	font-weight: 400;
	font-style: italic;
	line-height: 1.6;
	flex: 0 1 auto;
	overflow: visible;
	display: block;
}

.tcw-stars {
	display: flex;
	align-items: center;
	gap: 3px;
	flex: 0 0 auto;
	margin: var(--tcw-card-space) 0 0;
	list-style: none;
	padding: 0;
}

.tcw-stars li {
	line-height: 1;
}

.tcw-stars svg {
	display: block;
	width: 18px;
	height: 18px;
}

.tcw-star-filled {
	fill: #f5b301;
}

.tcw-star-empty {
	fill: #d9d9d9;
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
	.tcw-main-heading {
		font-size: 32px;
	}

	.tcw-heading-row {
		align-items: flex-start;
	}

	.tcw-heading-right {
		text-align: left;
		max-width: 100%;
	}

	.tcw-carousel {
		--tcw-slides: 2;
		--tcw-gap: 20px;
		padding: 0 44px;
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
	.tcw-heading {
		margin-bottom: 28px;
	}

	.tcw-main-heading {
		font-size: 26px;
	}

	.tcw-heading-left,
	.tcw-heading-right {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.tcw-heading-right {
		text-align: left;
	}

	.tcw-subtitle {
		font-size: 15px;
	}

	.tcw-description {
		font-size: 14px;
	}

	.tcw-carousel {
		--tcw-slides: 1;
		--tcw-gap: 16px;
		padding: 0 40px;
	}

	.tcw-card {
		--tcw-card-space: 18px;
		--tcw-desc-gap: 0px;
		padding: var(--tcw-card-space);
		gap: 0 !important;
	}

	.tcw-nav {
		width: 34px;
		height: 34px;
	}

	.tcw-nav svg {
		width: 18px;
		height: 18px;
	}
}
