/* ==========================================================================
   JDFCCU Testimonial Slider
   ========================================================================== */

.jdfccu-ts {
	--jdfccu-accent: #1e6b3c;
	--jdfccu-gap: 24px;
	--jdfccu-align: center;
	--jdfccu-anim: 500ms;
	--jdfccu-arrow-size: 44px;
	--jdfccu-star: #f5a623;
	--jdfccu-dot: #cbd5e1;
	--jdfccu-dot-active: var(--jdfccu-accent);

	position: relative;
	text-align: center;
}

/* Viewport / track
   -------------------------------------------------------------------------- */

.jdfccu-ts-viewport {
	overflow: hidden;
	padding: 20px;
	margin: -20px;
}

.jdfccu-ts-track {
	display: flex;
	align-items: stretch;
	gap: var(--jdfccu-gap);
	transition: transform var(--jdfccu-anim) cubic-bezier(0.25, 0.8, 0.35, 1);
	will-change: transform;
}

.jdfccu-ts-track.jdfccu-no-anim {
	transition: none !important;
}

.jdfccu-ts-slide {
	flex: 0 0 auto;
	display: flex;
	min-width: 0;
}

/* Card
   -------------------------------------------------------------------------- */

.jdfccu-ts-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #ffffff;
	border-radius: 16px;
	padding: 40px 36px 32px;
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

.jdfccu-ts-quote {
	display: flex;
	justify-content: var(--jdfccu-align);
	color: var(--jdfccu-accent);
	margin-bottom: 14px;
}

.jdfccu-ts-quote svg {
	width: 36px;
	height: 36px;
	opacity: 0.9;
}

.jdfccu-ts-stars {
	display: flex;
	justify-content: var(--jdfccu-align);
	gap: 3px;
	color: var(--jdfccu-star);
	margin-bottom: 16px;
}

.jdfccu-ts-star {
	display: inline-flex;
}

.jdfccu-ts-star svg {
	width: 18px;
	height: 18px;
}

.jdfccu-ts-star--empty {
	opacity: 0.25;
}

.jdfccu-ts-text {
	color: #3f4854;
	font-size: 16px;
	line-height: 1.75;
	margin: 0 0 20px;
	flex-grow: 1;
}

.jdfccu-ts-text p {
	margin: 0 0 1em;
	color: inherit;
	font: inherit;
}

.jdfccu-ts-text p:last-child {
	margin-bottom: 0;
}

.jdfccu-ts-more {
	align-self: var(--jdfccu-align);
	background: none;
	border: none;
	padding: 0;
	margin: 0 0 24px;
	color: var(--jdfccu-accent);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: opacity 0.2s ease;
}

.jdfccu-ts-more:hover,
.jdfccu-ts-more:focus {
	opacity: 0.75;
	background: none;
	color: var(--jdfccu-accent);
}

/* Author
   -------------------------------------------------------------------------- */

.jdfccu-ts-author {
	display: flex;
	align-items: center;
	justify-content: var(--jdfccu-align);
	gap: 12px;
	margin-top: auto;
}

.jdfccu-ts-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	overflow: hidden;
	flex: 0 0 auto;
}

.jdfccu-ts-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jdfccu-ts-avatar--initials {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--jdfccu-accent);
	color: #ffffff;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.jdfccu-ts-meta {
	text-align: left;
	min-width: 0;
}

.jdfccu-ts-name {
	display: block;
	color: #101828;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.jdfccu-ts-role {
	display: block;
	color: #667085;
	font-size: 14px;
	line-height: 1.35;
	margin-top: 2px;
}

/* Arrows
   -------------------------------------------------------------------------- */

.jdfccu-ts-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: var(--jdfccu-arrow-size);
	height: var(--jdfccu-arrow-size);
	border: none;
	border-radius: 50%;
	background: #ffffff;
	color: var(--jdfccu-accent);
	box-shadow: 0 4px 14px rgba(16, 24, 40, 0.14);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.jdfccu-ts-arrow svg {
	width: 55%;
	height: 55%;
}

.jdfccu-ts-arrow:hover,
.jdfccu-ts-arrow:focus {
	background: var(--jdfccu-accent);
	color: #ffffff;
}

.jdfccu-ts-arrow--prev {
	left: -8px;
}

.jdfccu-ts-arrow--next {
	right: -8px;
}

.jdfccu-ts-arrow[disabled] {
	opacity: 0.35;
	pointer-events: none;
}

.jdfccu-ts--no-nav .jdfccu-ts-arrow,
.jdfccu-ts--no-nav .jdfccu-ts-dots {
	display: none;
}

@media (max-width: 767px) {
	.jdfccu-ts-arrow--prev {
		left: 0;
	}

	.jdfccu-ts-arrow--next {
		right: 0;
	}

	.jdfccu-ts-card {
		padding: 32px 24px 28px;
	}
}

/* Dots
   -------------------------------------------------------------------------- */

.jdfccu-ts-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 28px;
}

.jdfccu-ts-dot {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	border: none;
	padding: 0;
	background: var(--jdfccu-dot);
	cursor: pointer;
	transition: background 0.25s ease, width 0.25s ease;
}

.jdfccu-ts-dot:hover,
.jdfccu-ts-dot:focus {
	background: var(--jdfccu-dot);
	opacity: 0.8;
}

.jdfccu-ts-dot.is-active {
	width: 26px;
	background: var(--jdfccu-dot-active);
}

/* Read-more modal
   -------------------------------------------------------------------------- */

.jdfccu-ts-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	text-align: left;
}

.jdfccu-ts-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(16, 24, 40, 0.6);
	backdrop-filter: blur(2px);
	animation: jdfccuFadeIn 0.25s ease both;
}

.jdfccu-ts-modal-dialog {
	position: relative;
	background: #ffffff;
	border-radius: 16px;
	max-width: 680px;
	width: 100%;
	max-height: 82vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 24px 64px rgba(16, 24, 40, 0.3);
	animation: jdfccuPopIn 0.28s cubic-bezier(0.25, 0.8, 0.35, 1) both;
}

.jdfccu-ts-modal-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 28px 64px 18px 32px;
	border-bottom: 1px solid #eef1f4;
}

.jdfccu-ts-modal-header .jdfccu-ts-author {
	margin-top: 0;
	justify-content: flex-start;
}

.jdfccu-ts-modal-body {
	padding: 24px 32px 32px;
	overflow-y: auto;
	color: #3f4854;
	font-size: 16px;
	line-height: 1.8;
}

.jdfccu-ts-modal-body p {
	margin: 0 0 1em;
}

.jdfccu-ts-modal-body p:last-child {
	margin-bottom: 0;
}

.jdfccu-ts-modal-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: #f2f4f7;
	color: #475467;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease, color 0.2s ease;
}

.jdfccu-ts-modal-close:hover,
.jdfccu-ts-modal-close:focus {
	background: var(--jdfccu-accent, #1e6b3c);
	color: #ffffff;
}

.jdfccu-ts-modal-close svg {
	width: 18px;
	height: 18px;
}

.jdfccu-ts-modal-stars {
	margin: 0 0 12px;
}

.jdfccu-ts-modal-stars .jdfccu-ts-stars {
	justify-content: flex-start;
	margin-bottom: 0;
}

body.jdfccu-ts-modal-open {
	overflow: hidden;
}

@keyframes jdfccuFadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes jdfccuPopIn {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.97);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {

	.jdfccu-ts-track,
	.jdfccu-ts-modal-overlay,
	.jdfccu-ts-modal-dialog {
		transition: none !important;
		animation: none !important;
	}
}
