/*
 * Giltech Testimonials Auto Carousel – Elementor widget styles.
 * Everything is scoped under .gwtc-section so it cannot leak into the theme or into the other
 * widgets of this plugin. Values reproduce the original HTML exactly. Elementor style controls
 * change the CSS variables below (or plain properties of non-stateful elements), so hover
 * states and animations always keep working.
 *
 * Selector weights are kept at (0,3,0) or lower on purpose: stronger than theme / Elementor-kit
 * element rules, weaker than Elementor's own generated control selectors.
 */

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

.gwtc-section {
	--gwtc-ease: cubic-bezier(.2, .72, .2, 1);

	/* Tokens (Elementor controls override these). */
	--gwtc-bg-top: #fbfbf9;
	--gwtc-bg-bottom: #f1f1ee;
	--gwtc-line: #E2E2E2;
	--gwtc-star: #F4B000;
	--gwtc-pad: clamp(14px, 4vw, 62px);
	--gwtc-max: 1240px;
	--gwtc-gap: 10px;
	--gwtc-speed: 46s;
	--gwtc-card-w: 340px;
	--gwtc-card-radius: 17px;
	--gwtc-photo-h: 172px;
	--gwtc-card-bg: #FFFFFF;
	--gwtc-card-border: #E2E2E2;
	--gwtc-card-border-h: #d6d6d6;
	--gwtc-shade: rgba(0, 0, 0, .62);
	--gwtc-cat-bg: rgba(255, 255, 255, .9);
	--gwtc-cat-color: #555555;
	--gwtc-g: #4285F4;
	--gwtc-verified: rgba(255, 255, 255, .82);
	--gwtc-avatar-bg: #151515;
	--gwtc-avatar-color: #FFFFFF;
	--gwtc-avatar-bg-h: #FF0000;
	--gwtc-btn-color: #151515;
	--gwtc-btn-bg: #FFFFFF;
	--gwtc-btn-border: #E2E2E2;
	--gwtc-btn-badge: #4285F4;
	--gwtc-btn-color-h: #FF0000;
	--gwtc-btn-bg-h: #FFFFFF;
	--gwtc-btn-border-h: #dfc5c5;
	--gwtc-btn-badge-h: #4285F4;

	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 52px 0 56px;
	overflow: hidden;
	color: #151515;
	font-family: "DM Sans", Manrope, Arial, sans-serif;
	text-align: start;
	-webkit-font-smoothing: antialiased;
	background: linear-gradient(180deg, var(--gwtc-bg-top), var(--gwtc-bg-bottom));
}

/* Edge-to-edge: CSS fallback, the script then sets exact pixel values. */
.gwtc-section.gwtc-fullwidth {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

/* Side spacing lives on the wrappers, so the carousel can optionally bleed to the screen edges. */
.gwtc-section .gwtc-wrap,
.gwtc-section .gwtc-stage {
	width: 100%;
	max-width: calc(var(--gwtc-max) + 2 * var(--gwtc-pad));
	margin: 0 auto;
	padding-left: var(--gwtc-pad);
	padding-right: var(--gwtc-pad);
}

.gwtc-section .gwtc-stage {
	display: flow-root;
}

.gwtc-section.gwtc-bleed .gwtc-stage {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

/* ---------- Header ---------- */
.gwtc-section .gwtc-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 30px;
	margin: 0;
	padding: 0 0 19px;
	border-bottom: 1px solid var(--gwtc-line);
}

.gwtc-section .gwtc-kicker {
	margin: 0 0 8px;
	color: #FF0000;
	font-family: inherit;
	font-size: 9px;
	font-weight: 500;
	line-height: normal;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.gwtc-section .gwtc-title {
	margin: 0;
	padding: 0;
	color: #151515;
	font-family: inherit;
	font-size: clamp(36px, 4.4vw, 55px);
	font-style: normal;
	font-weight: 400;
	line-height: .96;
	letter-spacing: -.05em;
	text-transform: none;
	text-shadow: none;
}

.gwtc-section .gwtc-head-copy {
	max-width: 410px;
	margin: 0;
	padding: 0;
	color: #737373;
	font-family: inherit;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.7;
}

/* ---------- Rating ---------- */
.gwtc-section .gwtc-rating {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 0 14px;
}

.gwtc-section .gwtc-gbadge {
	display: grid;
	place-items: center;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border: 1px solid var(--gwtc-line);
	border-radius: 8px;
	background: #FFFFFF;
	color: #4285F4;
	font: bold 16px Arial, sans-serif;
}

.gwtc-section .gwtc-score {
	color: #151515;
	font-size: 17px;
	font-weight: 400;
	line-height: normal;
}

.gwtc-section .gwtc-rating-label {
	display: block;
	margin-top: 2px;
	color: #737373;
	font-size: 8px;
	line-height: normal;
}

.gwtc-section .gwtc-stars {
	color: var(--gwtc-star);
	font-size: 11px;
	line-height: 1;
	letter-spacing: .08em;
}

/* ---------- Carousel ---------- */
/* Vertical padding + matching negative margin = room for the hover lift and shadow
 * (overflow:hidden would otherwise cut them) without changing the layout height. */
.gwtc-section .gwtc-viewport {
	position: relative;
	width: 100%;
	margin: -12px 0 -38px;
	padding: 12px 0 38px;
	overflow: hidden;
}

.gwtc-section .gwtc-track {
	display: flex;
	gap: var(--gwtc-gap);
	width: max-content;
	margin: 0;
	padding: 0;
	animation: gwtcMarquee var(--gwtc-speed) linear infinite;
	will-change: transform;
}

.gwtc-section.gwtc-reverse .gwtc-track {
	animation-direction: reverse;
}

.gwtc-section.gwtc-pause .gwtc-viewport:hover .gwtc-track,
.gwtc-section.gwtc-pause .gwtc-viewport:focus-within .gwtc-track {
	animation-play-state: paused;
}

/* Auto scroll off: a plain row visitors can swipe / scroll. */
.gwtc-section.gwtc-static .gwtc-track {
	animation: none;
	will-change: auto;
}

.gwtc-section.gwtc-static .gwtc-viewport {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

@keyframes gwtcMarquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(calc(-50% - var(--gwtc-gap) / 2));
	}
}

/* ---------- Card ---------- */
.gwtc-section .gwtc-card {
	display: block;
	flex: 0 0 var(--gwtc-card-w);
	width: var(--gwtc-card-w);
	max-width: calc(100vw - 24px);
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--gwtc-card-border);
	border-radius: var(--gwtc-card-radius);
	background: var(--gwtc-card-bg);
	box-shadow: 0 12px 26px rgba(0, 0, 0, .045);
	transition: transform .3s var(--gwtc-ease), box-shadow .3s, border-color .3s;
}

.gwtc-section .gwtc-card:hover {
	border-color: var(--gwtc-card-border-h);
}

.gwtc-section.gwtc-lift .gwtc-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 19px 36px rgba(0, 0, 0, .075);
}

.gwtc-section .gwtc-photo-wrap {
	position: relative;
	height: var(--gwtc-photo-h);
	overflow: hidden;
	background: #dddddd;
}

.gwtc-section .gwtc-photo {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	transition: transform .65s var(--gwtc-ease), filter .65s var(--gwtc-ease);
}

.gwtc-section.gwtc-zoom .gwtc-card:hover .gwtc-photo {
	transform: scale(1.05);
	filter: saturate(1.05);
}

.gwtc-section .gwtc-photo-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .02), var(--gwtc-shade));
}

.gwtc-section .gwtc-photo-top,
.gwtc-section .gwtc-photo-bottom {
	position: absolute;
	left: 12px;
	right: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.gwtc-section .gwtc-photo-top {
	top: 12px;
}

.gwtc-section .gwtc-photo-bottom {
	bottom: 12px;
}

.gwtc-section .gwtc-photo-top > :only-child,
.gwtc-section .gwtc-photo-bottom > :only-child {
	margin-left: auto;
}

.gwtc-section .gwtc-photo-top > .gwtc-category:only-child,
.gwtc-section .gwtc-photo-bottom > .gwtc-stars:only-child {
	margin-left: 0;
}

.gwtc-section .gwtc-category {
	padding: 5px 8px;
	border-radius: 999px;
	background: var(--gwtc-cat-bg);
	color: var(--gwtc-cat-color);
	font-size: 7px;
	line-height: normal;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.gwtc-section .gwtc-google {
	color: var(--gwtc-g);
	font: bold 13px Arial, sans-serif;
}

.gwtc-section .gwtc-verified {
	color: var(--gwtc-verified);
	font-size: 7px;
	line-height: normal;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.gwtc-section .gwtc-body {
	display: flex;
	flex-direction: column;
	min-height: 168px;
	padding: 16px 17px 17px;
}

.gwtc-section .gwtc-quote {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: #2d2d2d;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 15px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.67;
	letter-spacing: normal;
	text-align: start;
	quotes: none;
}

.gwtc-section .gwtc-quote::before,
.gwtc-section .gwtc-quote::after {
	content: none;
}

.gwtc-section .gwtc-person {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 11px;
	border-top: 1px solid var(--gwtc-line);
}

.gwtc-section .gwtc-avatar {
	display: grid;
	place-items: center;
	flex: 0 0 37px;
	width: 37px;
	height: 37px;
	border-radius: 50%;
	background: var(--gwtc-avatar-bg);
	color: var(--gwtc-avatar-color);
	font-size: 9px;
	line-height: 1;
	transition: background .25s var(--gwtc-ease), transform .25s var(--gwtc-ease);
}

.gwtc-section .gwtc-card:hover .gwtc-avatar {
	background: var(--gwtc-avatar-bg-h);
	transform: scale(1.05);
}

.gwtc-section .gwtc-person-text {
	min-width: 0;
}

.gwtc-section .gwtc-name {
	display: block;
	color: #151515;
	font-size: 10.5px;
	font-weight: 500;
	line-height: 1.3;
}

.gwtc-section .gwtc-role {
	display: block;
	max-width: 260px;
	margin-top: 2px;
	color: #737373;
	font-size: 7.5px;
	line-height: 1.45;
}

/* ---------- Footer ---------- */
.gwtc-section .gwtc-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	margin-top: 11px;
	padding-top: 12px;
	border-top: 1px solid var(--gwtc-line);
}

.gwtc-section .gwtc-note {
	color: #737373;
	font-size: 8px;
	line-height: normal;
}

.gwtc-section .gwtc-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	margin: 0;
	padding: 0 11px;
	border: 1px solid var(--gwtc-btn-border);
	border-radius: 8px;
	background: var(--gwtc-btn-bg);
	box-shadow: none;
	color: var(--gwtc-btn-color);
	font-family: inherit;
	font-size: 7px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
	letter-spacing: .08em;
	text-decoration: none;
	text-shadow: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: .2s var(--gwtc-ease);
}

.gwtc-section .gwtc-btn:hover,
.gwtc-section .gwtc-btn:focus-visible {
	border-color: var(--gwtc-btn-border-h);
	background: var(--gwtc-btn-bg-h);
	box-shadow: none;
	color: var(--gwtc-btn-color-h);
	text-decoration: none;
	transform: translateY(-2px);
}

.gwtc-section .gwtc-btn-badge {
	color: var(--gwtc-btn-badge);
	font: bold 12px Arial, sans-serif;
}

.gwtc-section .gwtc-btn:hover .gwtc-btn-badge,
.gwtc-section .gwtc-btn:focus-visible .gwtc-btn-badge {
	color: var(--gwtc-btn-badge-h);
}

/* ---------- Tablet ---------- */
@media (max-width: 850px) {
	.gwtc-section {
		--gwtc-speed: 40s;
		--gwtc-card-w: 315px;
	}

	.gwtc-section .gwtc-head {
		display: block;
	}

	.gwtc-section .gwtc-head-copy {
		max-width: 700px;
		margin-top: 10px;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	.gwtc-section {
		--gwtc-speed: 34s;
		--gwtc-gap: 8px;
		--gwtc-pad: 12px;
		--gwtc-card-w: calc(100vw - 34px);
		--gwtc-photo-h: 180px;
		padding: 39px 0 43px;
	}

	.gwtc-section .gwtc-title {
		font-size: 36px;
	}

	.gwtc-section .gwtc-head-copy {
		font-size: 11px;
	}

	.gwtc-section .gwtc-body {
		min-height: 155px;
		padding: 15px 15px 16px;
	}

	.gwtc-section .gwtc-quote {
		font-size: 14px;
	}

	.gwtc-section .gwtc-controls {
		display: block;
	}

	.gwtc-section .gwtc-btn {
		display: flex;
		justify-content: center;
		width: 100%;
		margin-top: 7px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gwtc-section .gwtc-track {
		animation: none;
	}

	.gwtc-section.gwtc-static .gwtc-viewport,
	.gwtc-section .gwtc-viewport {
		overflow-x: auto;
	}

	.gwtc-section .gwtc-clone {
		display: none;
	}

	.gwtc-section *,
	.gwtc-section *::before,
	.gwtc-section *::after {
		transition: none !important;
	}
}
