/**
 * ThryonLab Testimonials — frontend (BEM + slider)
 */

.thryonlab-testimonials {
	--tht-gap: 1.5rem;
	--tht-photo-size: 200px;
	--tht-radius: 16px;
	--tht-bg: #ffffff;
	--tht-bg-soft: #f8fafc;
	--tht-border: #e2e8f0;
	--tht-text: #0f172a;
	--tht-text-muted: #64748b;
	--tht-accent: #2563eb;
	--tht-star: #cbd5e1;
	--tht-star-filled: #f59e0b;
	--tht-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
	--tht-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.08);
}

/* Grid */
.thryonlab-testimonials__grid,
.thryonlab-testimonials-grid {
	display: grid;
	gap: var(--tht-gap);
	grid-template-columns: repeat(var(--tht-cols, 1), minmax(0, 1fr));
}

@media (max-width: 782px) {
	.thryonlab-testimonials__grid,
	.thryonlab-testimonials-grid {
		grid-template-columns: 1fr;
	}
}

/* Slider */
.thryonlab-testimonials--mode-slider .thryonlab-testimonials__viewport {
	overflow: hidden;
	border-radius: var(--tht-radius);
}

.thryonlab-testimonials__track {
	display: flex;
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

.thryonlab-testimonials--mode-slider .thryonlab-testimonials__track {
	gap: 0;
}

.thryonlab-testimonials__slide {
	flex: 0 0 100%;
	min-width: 100%;
}

.thryonlab-testimonials--mode-slider .thryonlab-testimonials__slide {
	flex: 0 0 calc(100% / var(--tht-cols, 1));
	min-width: calc(100% / var(--tht-cols, 1));
	padding: 0 calc(var(--tht-gap) / 2);
	box-sizing: border-box;
}

@media (max-width: 782px) {
	.thryonlab-testimonials--mode-slider .thryonlab-testimonials__slide {
		flex: 0 0 100%;
		min-width: 100%;
	}
}

.thryonlab-testimonials__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.25rem;
}

.thryonlab-testimonials__nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--tht-border);
	border-radius: 999px;
	background: var(--tht-bg);
	color: var(--tht-text);
	font-size: 1.1rem;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.thryonlab-testimonials__nav-btn:hover {
	background: var(--tht-bg-soft);
	border-color: var(--tht-accent);
	transform: translateY(-1px);
}

.thryonlab-testimonials__dots {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.thryonlab-testimonials__dot {
	width: 0.65rem;
	height: 0.65rem;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: var(--tht-star);
	cursor: pointer;
	transition: width 0.25s, background 0.25s;
}

.thryonlab-testimonials__dot.is-active {
	width: 1.75rem;
	background: var(--tht-accent);
}

/* Card base */
.thryonlab-testimonial__card,
.thryonlab-testimonial-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.75rem;
	background: var(--tht-card-bg, var(--tht-bg));
	border: 1px solid var(--tht-border);
	border-radius: var(--tht-radius);
	box-shadow: var(--tht-shadow);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.thryonlab-testimonials--mode-grid .thryonlab-testimonial__card:hover {
	box-shadow: var(--tht-shadow-hover);
	transform: translateY(-2px);
}

/* Photo */
.thryonlab-testimonial__photo-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 1rem;
}

.thryonlab-testimonial__photo,
.thryonlab-testimonial-photo {
	width: var(--tht-photo-size);
	height: var(--tht-photo-size);
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--tht-bg);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* Stars */
.thryonlab-testimonial__stars,
.thryonlab-testimonial-stars {
	display: flex;
	justify-content: center;
	gap: 0.2rem;
	margin-bottom: 1rem;
	font-size: 1.2rem;
	line-height: 1;
	color: var(--tht-star);
}

.thryonlab-testimonial__star,
.thryonlab-testimonial-stars .thryonlab-star {
	color: var(--tht-star);
}

.thryonlab-testimonial__star.is-filled,
.thryonlab-testimonial-stars .thryonlab-star.is-filled {
	color: var(--tht-star-filled);
}

/* Comment */
.thryonlab-testimonial__comment,
.thryonlab-testimonial-comment {
	width: 100%;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--tht-text);
}

.thryonlab-testimonial__comment > *:first-child,
.thryonlab-testimonial-comment > *:first-child {
	margin-top: 0;
}

.thryonlab-testimonial__comment > *:last-child,
.thryonlab-testimonial-comment > *:last-child {
	margin-bottom: 0;
}

.thryonlab-testimonial__comment--style-regular,
.thryonlab-testimonial-comment.thryonlab-testimonial__comment--style-regular {
	font-weight: 400;
	font-style: normal;
}

.thryonlab-testimonial__comment--style-italic,
.thryonlab-testimonial-comment.thryonlab-testimonial__comment--style-italic {
	font-weight: 400;
	font-style: italic;
}

.thryonlab-testimonial__comment--style-bold,
.thryonlab-testimonial-comment.thryonlab-testimonial__comment--style-bold {
	font-weight: 700;
	font-style: normal;
}

/* Footer / meta */
.thryonlab-testimonial__footer {
	margin-top: auto;
	padding-top: 1rem;
	text-align: center;
}

.thryonlab-testimonial__name,
.thryonlab-testimonial-name {
	margin: 0 0 0.35rem;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tht-text);
}

.thryonlab-testimonial__meta,
.thryonlab-testimonial-meta {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--tht-text-muted);
}

.thryonlab-testimonial__designation,
.thryonlab-testimonial-designation {
	display: block;
	font-weight: 600;
	color: var(--tht-text);
}

.thryonlab-testimonial__footer--no-name .thryonlab-testimonial__designation::before,
.thryonlab-testimonial__footer--no-name .thryonlab-testimonial-designation::before {
	content: "— ";
}

.thryonlab-testimonial__country,
.thryonlab-testimonial-country {
	display: block;
	margin-top: 0.15rem;
}

/* Card layout */
.thryonlab-testimonial__card--classic {
	text-align: center;
}

.thryonlab-testimonial__card--classic .thryonlab-testimonial__comment {
	text-align: center;
}

/* Quote styles — shared card padding when any quote mark is active (Classic + Horizontal) */
.thryonlab-testimonials--layout-classic[class*="--quote-"] .thryonlab-testimonial__card--classic,
.thryonlab-testimonials--layout-horizontal[class*="--quote-"] .thryonlab-testimonial__card--horizontal {
	padding-top: 3rem;
}

.thryonlab-testimonials--layout-classic.thryonlab-testimonials--quote-curly_top_left .thryonlab-testimonial__card--classic,
.thryonlab-testimonials--layout-horizontal.thryonlab-testimonials--quote-curly_top_left .thryonlab-testimonial__card--horizontal {
	padding-top: 3.25rem;
}

.thryonlab-testimonials--layout-classic.thryonlab-testimonials--quote-curly_centered .thryonlab-testimonial__card--classic,
.thryonlab-testimonials--layout-horizontal.thryonlab-testimonials--quote-curly_centered .thryonlab-testimonial__card--horizontal {
	padding-top: 4rem;
}

.thryonlab-testimonials--layout-classic.thryonlab-testimonials--quote-straight_top_left .thryonlab-testimonial__card--classic,
.thryonlab-testimonials--layout-horizontal.thryonlab-testimonials--quote-straight_top_left .thryonlab-testimonial__card--horizontal {
	padding-top: 2.75rem;
}

.thryonlab-testimonials--layout-classic.thryonlab-testimonials--quote-guillemet_top_left .thryonlab-testimonial__card--classic,
.thryonlab-testimonials--layout-horizontal.thryonlab-testimonials--quote-guillemet_top_left .thryonlab-testimonial__card--horizontal {
	padding-top: 3rem;
}

.thryonlab-testimonials--layout-classic.thryonlab-testimonials--quote-watermark_center .thryonlab-testimonial__card--classic,
.thryonlab-testimonials--layout-horizontal.thryonlab-testimonials--quote-watermark_center .thryonlab-testimonial__card--horizontal {
	padding-top: 4.5rem;
}

.thryonlab-testimonials--layout-classic.thryonlab-testimonials--quote-custom_svg .thryonlab-testimonial__card--classic,
.thryonlab-testimonials--layout-horizontal.thryonlab-testimonials--quote-custom_svg .thryonlab-testimonial__card--horizontal {
	padding-top: 3.25rem;
}

/* Curly serif */
.thryonlab-testimonials--layout-classic.thryonlab-testimonials--quote-curly_top_left .thryonlab-testimonial__card--classic::before,
.thryonlab-testimonials--layout-horizontal.thryonlab-testimonials--quote-curly_top_left .thryonlab-testimonial__card--horizontal::before {
	content: "\201C";
	position: absolute;
	top: 0.5rem;
	left: 1.5rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 4.5rem;
	font-weight: 400;
	line-height: 1;
	color: var(--tht-accent);
	opacity: 0.18;
	pointer-events: none;
}

/* Curly bold */
.thryonlab-testimonials--layout-classic.thryonlab-testimonials--quote-curly_centered .thryonlab-testimonial__card--classic::before,
.thryonlab-testimonials--layout-horizontal.thryonlab-testimonials--quote-curly_centered .thryonlab-testimonial__card--horizontal::before {
	content: "\201C";
	position: absolute;
	top: 0.5rem;
	left: 1.5rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 5.5rem;
	font-weight: 700;
	line-height: 1;
	color: var(--tht-accent);
	opacity: 0.2;
	pointer-events: none;
}

/* Straight sans */
.thryonlab-testimonials--layout-classic.thryonlab-testimonials--quote-straight_top_left .thryonlab-testimonial__card--classic::before,
.thryonlab-testimonials--layout-horizontal.thryonlab-testimonials--quote-straight_top_left .thryonlab-testimonial__card--horizontal::before {
	content: "\"";
	position: absolute;
	top: 0.5rem;
	left: 1.5rem;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 3.25rem;
	font-weight: 700;
	line-height: 1;
	color: var(--tht-text);
	opacity: 0.2;
	pointer-events: none;
}

/* Guillemet */
.thryonlab-testimonials--layout-classic.thryonlab-testimonials--quote-guillemet_top_left .thryonlab-testimonial__card--classic::before,
.thryonlab-testimonials--layout-horizontal.thryonlab-testimonials--quote-guillemet_top_left .thryonlab-testimonial__card--horizontal::before {
	content: "\00AB";
	position: absolute;
	top: 0.5rem;
	left: 1.5rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 4rem;
	font-weight: 400;
	line-height: 1;
	color: var(--tht-accent);
	opacity: 0.28;
	pointer-events: none;
}

/* Script */
.thryonlab-testimonials--layout-classic.thryonlab-testimonials--quote-watermark_center .thryonlab-testimonial__card--classic::before,
.thryonlab-testimonials--layout-horizontal.thryonlab-testimonials--quote-watermark_center .thryonlab-testimonial__card--horizontal::before {
	content: "\201C";
	position: absolute;
	top: 0.5rem;
	left: 1.5rem;
	font-family: "Brush Script MT", "Segoe Script", cursive;
	font-size: 6rem;
	font-weight: 400;
	line-height: 1;
	color: var(--tht-accent);
	opacity: 0.22;
	pointer-events: none;
}

/* Quote layout theme */
.thryonlab-testimonial__card--quote {
	text-align: center;
	background: linear-gradient(135deg, var(--tht-bg-soft) 0%, var(--tht-card-bg, var(--tht-bg)) 100%);
	padding-top: 3.5rem;
}

.thryonlab-testimonial__card--quote::before {
	content: "\201C";
	position: absolute;
	top: 0.75rem;
	left: 50%;
	transform: translateX(-50%);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 5rem;
	font-weight: 700;
	line-height: 1;
	color: var(--tht-accent);
	opacity: 0.15;
	pointer-events: none;
}

.thryonlab-testimonial__card--quote .thryonlab-testimonial__comment {
	text-align: center;
}

.thryonlab-testimonial__footer--quote {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	text-align: left;
	margin-top: 1.25rem;
	padding-top: 0;
}

.thryonlab-testimonial__footer--quote .thryonlab-testimonial__photo-wrap {
	margin-bottom: 0;
}

.thryonlab-testimonial__footer--quote .thryonlab-testimonial__photo,
.thryonlab-testimonial__footer--quote .thryonlab-testimonial-photo {
	width: 56px;
	height: 56px;
	border-width: 2px;
}

.thryonlab-testimonial__footer--quote .thryonlab-testimonial__footer-text {
	min-width: 0;
}

/* Horizontal layout theme */
.thryonlab-testimonial__card--horizontal {
	flex-direction: row;
	align-items: flex-start;
	text-align: left;
	gap: 1.25rem;
}

.thryonlab-testimonial__card--horizontal .thryonlab-testimonial__media {
	flex: 0 0 auto;
}

.thryonlab-testimonial__card--horizontal .thryonlab-testimonial__photo-wrap {
	margin-bottom: 0;
	justify-content: flex-start;
}

.thryonlab-testimonial__card--horizontal .thryonlab-testimonial__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.thryonlab-testimonial__card--horizontal .thryonlab-testimonial__stars {
	justify-content: flex-start;
}

.thryonlab-testimonial__card--horizontal .thryonlab-testimonial__comment {
	text-align: left;
}

.thryonlab-testimonial__card--horizontal .thryonlab-testimonial__footer {
	text-align: left;
}

@media (max-width: 782px) {
	.thryonlab-testimonial__card--horizontal {
		flex-direction: column;
	}

	.thryonlab-testimonial__card--horizontal .thryonlab-testimonial__photo-wrap {
		justify-content: center;
	}

	.thryonlab-testimonial__card--horizontal .thryonlab-testimonial__stars {
		justify-content: center;
	}

	.thryonlab-testimonial__card--horizontal .thryonlab-testimonial__comment,
	.thryonlab-testimonial__card--horizontal .thryonlab-testimonial__footer {
		text-align: center;
	}
}

/* Custom SVG */
.thryonlab-testimonial__quote-svg {
	position: absolute;
	top: 0.75rem;
	left: 1.25rem;
	width: auto;
	height: 3.5rem;
	max-width: 4.5rem;
	object-fit: contain;
	opacity: 0.35;
	pointer-events: none;
}

/* Single + empty states */
.thryonlab-testimonials__empty,
.thryonlab-testimonials-empty,
.thryonlab-testimonial-invalid {
	text-align: center;
	color: var(--tht-text-muted);
	margin: 1.5rem 0;
	padding: 1rem;
}
