/* 
 * tncfb3d-testimonial.css
 * Pixel-perfect responsive styling for the testimonial slider.
 */

:root {
	--tncfb3d-text-dark: #1e293b;
	--tncfb3d-text-muted: #64748b;
	--tncfb3d-border-color: #cbd5e1;
	--tncfb3d-star-filled: #f59e0b;
	--tncfb3d-star-empty: #e2e8f0;
	--tncfb3d-bg-white: #ffffff;
	--tncfb3d-nav-hover: #f1f5f9;
}

.tncfb3d-testimonial-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	padding: 0;
	box-sizing: border-box;
}

.tncfb3d-testimonial-slider {
	flex: 1;
	min-width: 0;
	position: relative;
	box-sizing: border-box;
}

.tncfb3d-testimonial-track {
	box-sizing: border-box;
}

.slick-list {
	margin: 0 -10px;
	padding: 0 !important;
	/* Allow shadow to be visible */
}

.tncfb3d-testimonial-card {
	margin: 0 10px;
	background: #FCFCFC;
	padding: 30px 34px;
	border-radius: 4px;

	/* Card Drop Shaddow */
	box-shadow: 0 0 20px 0 rgba(202, 216, 238, 0.20);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	transition: all 0.3s ease;
	border: 1px solid transparent;
	min-height: 320px;
}

/* The active (middle) card */
.slick-current .tncfb3d-testimonial-card {
	border: 1px dashed #5C5B5B;
	z-index: 2;
}

.tncfb3d-testimonial-card.slick-center {
	border: 1px dashed #5C5B5B;
}

.tncfb3d-testimonial-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 40px;
}

.tncfb3d-testimonial-avatar {
	width: 46px;
	aspect-ratio: 1;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.tncfb3d-testimonial-avatar-placeholder {
	background-color: var(--tncfb3d-border-color);
}

.tncfb3d-testimonial-meta {
	display: flex;
	flex-direction: column;
}

.tncfb3d-testimonial-name {
	color: #0F2D35;
	font-family: 'Inter';
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	padding: 0;
}

.tncfb3d-testimonial-position {
	color: #6A777B;
	font-family: "DM Sans";
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: -0.07px;
}

.tncfb3d-testimonial-content {
	flex-grow: 1;
	margin-bottom: 28px;
}

.tncfb3d-testimonial-title {
	color: #0F2D35;
	font-family: "DM Sans";
	font-size: 18px;
	font-weight: 600;
	line-height: 160%;
	padding: 0;
}

.tncfb3d-testimonial-desc {

	color: #667175;
	font-family: "DM Sans";
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: -0.16px;
	min-height: 170px;
}

.tncfb3d-testimonial-rating {
	display: flex;
	gap: 2px;
	margin-top: auto;
}

.tncfb3d-star-filled svg {
	fill: #FD9D03;
	width: 18px;
	aspect-ratio: 1;
}

.tncfb3d-star-empty {
	display: none;
}

/* Navigation Buttons */
.tncfb3d-testimonial-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #FCFCFC;
	color: #000;
	cursor: pointer;
	transition: all 0.2s ease;
	flex-shrink: 0;
	padding: 0;
	position: absolute;
	z-index: 9;
	border: none;
}

.tncfb3d-testimonial-prev {
	left: 0;
	transform: translateX(-50%);
}

.tncfb3d-testimonial-next {
	right: 0;
	transform: translateX(50%);
}

.tncfb3d-testimonial-nav:hover:not(:disabled) {
	background: #0055D4;
	color: #fff;
}

.tncfb3d-testimonial-nav:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	box-shadow: none;
}

.tncfb3d-testimonial-nav svg {
	width: 20px;
	height: 20px;
}

/* Responsive Design */
@media (max-width: 767px) {

	.tncfb3d-testimonial-nav {
		width: 40px;
		height: 40px;
	}

	.tncfb3d-testimonial-wrapper {
		gap: 8px;
	}
}