/* ─── Testimonial Grid Element ───────────────────────────────────────────────── */

.testimonial-grid .tg-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* ─── Card ───────────────────────────────────────────────────────────────────── */

.testimonial-grid .tg-card {
	background: #F7F6F1;
	border: 1px solid #0F391C;
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.testimonial-grid .tg-card:hover {
	background: #0F391C;
	border-color: #0F391C;

}

/* ─── Quote ──────────────────────────────────────────────────────────────────── */

.testimonial-grid .tg-quote {
	font-style: italic;
	font-size: 16px;
	line-height: 1.6;
	color: #0F391C;
	padding-bottom: 32px;
	margin: 0 0 24px;
	border-bottom: 1px solid #0f391c2e;
}

.testimonial-grid .tg-card:hover .tg-quote {
	color: #FAF9F6;
	border-bottom: 1px solid #ffffff2b;
}

/* ─── Meta ───────────────────────────────────────────────────────────────────── */

.testimonial-grid .tg-meta {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	align-items: center;
}

.testimonial-grid .tg-author {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #0F391C;
}

.testimonial-grid .tg-card:hover .tg-author {
	color: #FAF9F6;
}

.testimonial-grid .tg-stars svg {
	font-size: 11px;
	letter-spacing: 3px;
	line-height: 1;
	fill: #0F391C;
}

.testimonial-grid .tg-card:hover .tg-stars svg {
	fill: #FAF9F6;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */

.testimonial-grid .tg-footer {
	margin-top: 55px;
	border-top: 2px solid #0F391C;
}

.testimonial-grid .tg-footer-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 0;
	gap: 48px;
}

.testimonial-grid .tg-sep {
	display: block;
	width: 1px;
	height: 48px;
	background-color: #0F391C;
	user-select: none;
}

/* ─── CTA Buttons ────────────────────────────────────────────────────────────── */

.testimonial-grid .tg-cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	color: #0F391C;
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ─── Slider Mode ─────────────────────────────────────────────────────────────── */

.testimonial-grid .tg-slider {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.testimonial-grid .tg-viewport {
	overflow: hidden;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
}

.testimonial-grid .tg-viewport.is-dragging {
	cursor: grabbing;
}

.testimonial-grid .tg-track {
	display: flex;
	transition: transform 0.35s ease;
}

.testimonial-grid .tg-slide {
	flex: 0 0 calc(100% / 3);
	padding: 0 10px;
	box-sizing: border-box;
}

/* Ensure cards inside slides stretch to full height */
.testimonial-grid .tg-slide .tg-card {
	height: 100%;
}

/* ─── Controls (arrows + dots row) ───────────────────────────────────────────── */

.testimonial-grid .tg-controls {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-bottom: 20px;
}

.testimonial-grid .tg-arrow {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	padding: 0;
	margin: 0;
	border: 1px solid #0F391C;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #0F391C;
	transition: background 0.2s ease, color 0.2s ease;
}

.testimonial-grid .tg-arrow:hover {
	background: #0F391C;
	color: #ffffff;
}

.testimonial-grid .tg-arrow.is-disabled {
	opacity: 0.35;
	pointer-events: none;
}

/* ─── Dots ────────────────────────────────────────────────────────────────────── */

.testimonial-grid .tg-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.testimonial-grid .tg-dot {
	width: 8px;
	height: 8px;
	margin: 0;
	min-height: unset;
	min-width: unset;
	border-radius: 50%;
	border: none;
	padding: 0;
	background: #0F391C;
	opacity: 0.25;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.testimonial-grid .tg-dot.is-active {
	opacity: 1;
	transform: scale(1.4);
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */

@media (min-width: 550px) and (max-width: 849px) {
	.testimonial-grid .tg-grid {
		grid-template-columns: 1fr 1fr;
	}

	.testimonial-grid .tg-slide {
		flex: 0 0 50%;
	}
}

@media (max-width: 549px) {
	.testimonial-grid .tg-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.testimonial-grid .tg-slide {
		flex: 0 0 100%;
		padding: 0;
	}

	.testimonial-grid .tg-footer-inner {
		flex-direction: column;
		gap: 14px;
		padding: 24px 0;
	}

	.testimonial-grid .tg-sep {
		display: none;
	}
}