﻿/* from Testimonials.module.css */
[data-tp="home-Testimonials"] {
.section {
	padding: 60px 0 60px;
	background: #ededed;
	position: relative;
	overflow: hidden;
}

.sectionDark {
	background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.sectionDark .title {
	color: #fff;
}

.sectionDark .kicker {
	color: var(--tp-brand);
}

.container {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 20px;
}

.head { text-align: center; margin-bottom: 36px; }

.kicker {
	color: var(--tp-brand);
	font-size: var(--tp-section-kicker-fs);
	font-weight: var(--tp-section-kicker-weight);
	letter-spacing: var(--tp-section-kicker-tracking);
	text-transform: uppercase;
	margin: 0 0 8px;
}
.title {
	font-size: var(--tp-section-title-fs);
	font-weight: var(--tp-section-title-weight);
	line-height: var(--tp-section-title-lh);
	color: #0f172a;
	margin: 0;
	margin-bottom: 10px;
}

.grid {
	display: flex;
	justify-content: center;
	max-width: 420px;
	margin: 0 auto;
}

.trackWrap {
	position: relative;
}

.viewport {
	overflow: hidden;
	width: 100%;
	padding: 4px 0 8px;
}

.track {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 24px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	will-change: transform;
}
.track::-webkit-scrollbar {
	display: none;
	height: 0;
}

.track .card {
	flex: 0 0 calc((100% - 48px) / 3);
	min-width: 0;
}

.card {
	position: relative;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid #f1f5f9;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
	transform: translateY(-4px);
}
.cardOpen {
	z-index: 5;
	transform: none;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.mediaBtn {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	text-align: left;
}
.mediaBtn:disabled {
	cursor: default;
}

.media {
	position: relative;
	width: 100%;
	height: 370px;
	background: #0f172a;
	overflow: hidden;
}
.media > :first-child {
	width: 100%;
	height: 100%;
}
.media .tp-testimonial-gallery-viewport {
	height: 100%;
	min-height: 0;
}
.media .tp-testimonial-gallery-viewport img,
.media iframe,
.media img {
	width: 100%;
	height: 100%;
	display: block;
	border: 0;
	object-fit: cover;
}
.mediaPlaceholder {
	width: 100%;
	height: 100%;
	background: #e2e8f0;
}

.mediaOverlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 52px 16px 16px;
	background: linear-gradient(
		180deg,
		transparent 0%,
		rgba(15, 23, 42, 0.35) 28%,
		rgba(15, 23, 42, 0.88) 100%
	);
	pointer-events: none;
}

.readHint {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #0f172a;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.mediaBtn:hover .readHint,
.cardOpen .readHint {
	opacity: 1;
	transform: translateY(0);
}

.mediaMeta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.quote {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--tp-brand);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
	pointer-events: none;
}

.body {
	padding: 16px 18px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.name {
	font-size: 17px;
	font-weight: 800;
	color: #fff;
	margin: 0;
	line-height: 1.25;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.designation {
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.88);
	margin: 0;
	text-transform: capitalize;
	letter-spacing: 0.02em;
}
.descPreview {
	font-size: 13.5px;
	color: #334155;
	line-height: 1.55;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.descPreview p {
	margin: 0;
}

.detailPanel {
	position: absolute;
	inset: 0;
	z-index: 30;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 12px;
}
.detailShade {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(4px);
}
.detailCard {
	position: relative;
	z-index: 1;
	width: 100%;
	max-height: 88%;
	background: #fff;
	border-radius: 14px;
	padding: 18px 16px 16px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
	display: flex;
	flex-direction: column;
	animation: tp-home-tm-detail-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.detailClose {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: #334155;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.2s;
}
.detailClose:hover {
	background: #e2e8f0;
}
.detailHead {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 12px;
	padding-right: 28px;
}
.detailQuote {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--tp-brand) 12%, #fff);
	color: var(--tp-brand);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}
.detailName {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	color: #0f172a;
}
.detailRole {
	margin: 3px 0 0;
	font-size: 12px;
	color: #64748b;
	text-transform: capitalize;
}
.detailStars {
	color: #fbbf24;
	font-size: 12px;
	margin-top: 5px;
	letter-spacing: 2px;
}
.detailBody {
	flex: 1;
	overflow-y: auto;
	font-size: 14px;
	line-height: 1.65;
	color: #334155;
	max-height: 200px;
	padding-right: 4px;
}
.detailBody p {
	margin: 0 0 0.65em;
}
.detailBody p:last-child {
	margin-bottom: 0;
}

.stars {
	color: #fbbf24;
	font-size: 13px;
	margin-top: 2px;
	letter-spacing: 2px;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.footer { text-align: center; margin-top: 28px; }
.viewAll {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 43px;
	border-radius: 5px;
	background: var(--tp-brand);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
	transition: filter 0.2s, transform 0.2s;
}
.viewAll:hover { filter: brightness(1.06); transform: translateY(-1px); }

@media (max-width: 991px) {
	.track .card {
		flex: 0 0 calc((100% - 24px) / 2);
	}
}
@media (max-width: 575px) {
	.section { padding: 52px 0 44px; }
	.track .card {
		flex: 0 0 100%;
	}
	.media { height: 320px; }
	.mediaOverlay { padding: 44px 14px 14px; }
}

}
@keyframes tp-home-tm-detail-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}


