/**
 * Customer Testimonials & Happy Customers Section Stylesheet
 *
 * @package Horizontal_Traders
 */

.ht-test-section {
	padding: 3.5rem 0 4rem;
	background: linear-gradient(180deg, #f0f8fa 0%, #f5f9fb 100%);
	position: relative;
	overflow: hidden;
}

/* ==========================================================================
   Header Area
   ========================================================================== */

.ht-test-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 2.75rem;
}

.ht-test-header-text {
	max-width: 650px;
}

.ht-test-eyebrow {
	display: inline-block;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.8125rem;
	font-weight: 800;
	color: #01757f;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 0.4rem;
}

.ht-test-heading {
	font-family: 'Manrope', 'Inter', system-ui, sans-serif;
	font-size: clamp(1.85rem, 3.2vw, 2.6rem);
	font-weight: 800;
	color: #00152e;
	line-height: 1.18;
	letter-spacing: -0.025em;
	margin: 0 0 0.5rem 0;
}

.ht-test-desc {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.95rem;
	color: #5c758a;
	line-height: 1.5;
	margin: 0;
}

.ht-test-view-all-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 1.35rem;
	border: 1.5px solid #01757f;
	color: #01757f;
	background: #ffffff;
	border-radius: 8px;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 2px 6px rgba(0, 21, 46, 0.04);
	flex-shrink: 0;
}

.ht-test-view-all-btn:hover {
	background: #01757f;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(1, 117, 127, 0.25);
}

.ht-test-view-all-btn svg {
	transition: transform 0.25s ease;
}

.ht-test-view-all-btn:hover svg {
	transform: translateX(4px);
}

/* ==========================================================================
   Layout: Marquee Track + Join Card
   ========================================================================== */

.ht-test-layout {
	display: grid;
	grid-template-columns: 1fr 310px;
	gap: 1.75rem;
	align-items: stretch;
}

/* ==========================================================================
   Auto-Marquee Track (Infinite smooth gliding & Pause on Hover)
   ========================================================================== */

.ht-test-marquee-container {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 18px;
	/* Soft fade out masks on left and right */
	mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
	-webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
	display: flex;
	align-items: center;
}

.ht-test-marquee-track {
	display: flex;
	gap: 1.25rem;
	width: max-content;
	will-change: transform;
	animation: htMarqueeLoop 36s linear infinite;
	padding: 0.5rem 0;
}

/* Pause Marquee on Hover or Active Touch */
.ht-test-marquee-container:hover .ht-test-marquee-track,
.ht-test-marquee-track:hover,
.ht-test-marquee-track.is-paused {
	animation-play-state: paused !important;
}

@keyframes htMarqueeLoop {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/* ==========================================================================
   Review Card Styling
   ========================================================================== */

.ht-test-card {
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid #d2e3eb;
	padding: 1.5rem 1.4rem;
	width: 330px;
	min-width: 330px;
	max-width: 330px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: 0 6px 20px rgba(0, 21, 46, 0.05);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.25s ease;
	cursor: pointer;
}

.ht-test-card:hover {
	transform: translateY(-5px);
	border-color: #06c1d5;
	box-shadow: 0 14px 32px rgba(0, 21, 46, 0.1);
}

.ht-test-stars {
	display: flex;
	gap: 0.25rem;
	margin-bottom: 0.85rem;
}

.ht-test-star-icon {
	color: #f59e0b;
	flex-shrink: 0;
}

.ht-test-quote {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.9rem;
	line-height: 1.55;
	color: #334e68;
	margin: 0 0 1.25rem 0;
	flex-grow: 1;
}

.ht-test-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid #f1f5f9;
}

.ht-test-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #d2e3eb;
	background: #f8fafc;
	flex-shrink: 0;
}

.ht-test-author-info {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.ht-test-name {
	font-family: 'Manrope', 'Inter', system-ui, sans-serif;
	font-size: 0.95rem;
	font-weight: 800;
	color: #00152e;
	margin-bottom: 0.15rem;
}

.ht-test-role {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.78125rem;
	color: #64748b;
}

/* ==========================================================================
   Dark Navy Join Our Happy Customers Card
   ========================================================================== */

.ht-test-join-card {
	position: relative;
	background: linear-gradient(150deg, #00152e 0%, #011b37 100%);
	border-radius: 20px;
	padding: 2rem 1.65rem;
	color: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	box-shadow: 0 14px 36px rgba(0, 21, 46, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.ht-test-join-bg-car {
	position: absolute;
	right: -20px;
	bottom: -10px;
	opacity: 0.35;
	pointer-events: none;
	z-index: 1;
}

.ht-test-join-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: space-between;
}

.ht-test-join-title {
	margin: 0 0 1.5rem 0;
	font-family: 'Manrope', 'Inter', system-ui, sans-serif;
	line-height: 1.15;
}

.ht-test-join-title span {
	display: block;
	font-size: 1.15rem;
	font-weight: 600;
	color: #06c1d5;
	margin-bottom: 0.2rem;
}

.ht-test-join-title strong {
	display: block;
	font-size: 1.55rem;
	font-weight: 800;
	color: #ffffff;
}

.ht-test-join-features {
	list-style: none;
	padding: 0;
	margin: 0 0 1.75rem 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.ht-test-join-features li {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	color: #f1f5f9;
}

.ht-test-feat-icon {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(6, 193, 213, 0.15);
	color: #06c1d5;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ht-test-join-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	background: #ffffff;
	color: #00152e;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.92rem;
	font-weight: 800;
	padding: 0.8rem 1.25rem;
	border-radius: 8px;
	text-decoration: none;
	width: 100%;
	text-align: center;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.ht-test-join-btn:hover {
	background: #01757f;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(1, 117, 127, 0.4);
}

.ht-test-join-btn svg {
	transition: transform 0.25s ease;
}

.ht-test-join-btn:hover svg {
	transform: translateX(4px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
	.ht-test-layout {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.ht-test-join-card {
		max-width: 480px;
		margin: 0 auto;
		width: 100%;
	}
}

@media (max-width: 768px) {
	.ht-test-section {
		padding: 3rem 0 3.5rem;
	}

	.ht-test-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
		margin-bottom: 1.75rem;
	}

	.ht-test-heading {
		font-size: 1.6rem;
	}

	.ht-test-desc {
		font-size: 0.85rem;
	}

	.ht-test-view-all-btn {
		width: 100%;
		justify-content: center;
	}

	.ht-test-marquee-container {
		mask-image: none;
		-webkit-mask-image: none;
		margin: 0 -1rem;
		padding: 0 1rem;
		width: calc(100% + 2rem);
	}

	.ht-test-card {
		width: 280px;
		min-width: 280px;
		max-width: 280px;
		padding: 1.15rem;
	}

	.ht-test-quote {
		font-size: 0.84rem;
	}

	.ht-test-join-card {
		max-width: 100%;
		width: 100%;
		padding: 1.6rem 1.25rem;
		border-radius: 16px;
	}

	.ht-test-join-title strong {
		font-size: 1.35rem;
	}

	.ht-test-join-btn {
		min-height: 48px;
		font-size: 0.95rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ht-test-marquee-track {
		animation: none !important;
		overflow-x: auto;
	}
}
