/* Trusted By — accessible Splide carousel */

.tts-carousel-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 1.5rem 2rem;
}

.tts-carousel-hint {
	margin: 1rem 0 0;
	text-align: center;
	font-size: 0.875rem;
	color: #666;
	line-height: 1.5;
}

.tts-trusted-carousel.splide {
	padding-bottom: 0.5rem;
}

.tts-trusted-carousel .splide__track {
	padding: 0.25rem 0;
}

.tts-endorsement {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 2rem;
	align-items: start;
	background: #fff;
	border: 1px solid #e8eced;
	border-radius: 16px;
	padding: 1.75rem;
	box-shadow: 0 8px 28px rgba(11, 46, 79, 0.06);
	min-height: 100%;
}

.tts-endorsement--photo-right {
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.tts-endorsement--photo-right .tts-endorsement__media {
	order: 2;
}

.tts-endorsement--photo-right .tts-endorsement__content {
	order: 1;
}

.tts-endorsement__media {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	width: 100%;
}

.tts-endorsement__badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.tts-endorsement__badge img {
	width: 80px;
	height: 80px;
	object-fit: contain;
}

.tts-endorsement__badge-label {
	font-family: Inter, sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #c8a24c;
}

.tts-endorsement__photo {
	margin: 0 auto;
	width: 100%;
	max-width: 320px;
	display: flex;
	justify-content: center;
}

.tts-endorsement__photo img {
	display: block;
	width: 100%;
	max-width: 320px;
	height: auto;
	margin: 0 auto;
	border-radius: 12px;
	aspect-ratio: 1;
	object-fit: cover;
	background: #0b2e4f;
}

.tts-endorsement__card {
	background: #f5f7f8;
	border: 1px solid #e8eced;
	border-radius: 12px;
	padding: 1.25rem 1.35rem;
}

.tts-endorsement__name {
	margin: 0 0 0.35rem;
	font-family: "DM Serif Display", Georgia, serif;
	font-size: 1.375rem;
	font-weight: 400;
	color: #0b2e4f;
	line-height: 1.3;
}

.tts-endorsement__title {
	margin: 0 0 0.15rem;
	color: #666;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.tts-endorsement__org {
	margin: 0.65rem 0 0;
	font-weight: 600;
	color: #0b2e4f;
	font-size: 0.9375rem;
}

.tts-endorsement__links {
	list-style: none;
	margin: 0.85rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

.tts-endorsement__links a,
.tts-endorsement__linkedin a {
	color: #0b2e4f;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tts-endorsement__links a:hover,
.tts-endorsement__links a:focus,
.tts-endorsement__linkedin a:hover,
.tts-endorsement__linkedin a:focus {
	color: #c8a24c;
}

.tts-endorsement__linkedin {
	margin: 0.65rem 0 0;
}

.tts-endorsement__quote {
	margin: 1.25rem 0 0;
	padding: 0;
	border: 0;
}

.tts-endorsement__quote p {
	margin: 0;
	font-style: italic;
	font-size: 1.0625rem;
	line-height: 1.8;
	color: #333;
}

/* Compact homepage testimonial cards */
.tts-carousel-wrap--home {
	padding-top: 1.5rem;
}

.tts-home-endorsement {
	position: relative;
	height: 100%;
	box-sizing: border-box;
	padding: 1.75rem;
	border: 1px solid #e8eced;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(11, 46, 79, 0.08);
}

.tts-home-endorsement__badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 1.25rem;
	color: #9b7728;
	font-family: Inter, sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tts-home-endorsement__badge img {
	width: 80px;
	height: 80px;
	object-fit: contain;
}

.tts-home-endorsement__person {
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: 760px;
	margin: 0 auto 1.25rem;
}

.tts-home-endorsement__person > img {
	flex: 0 0 88px;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	background: #0b2e4f;
}

.tts-home-endorsement__person h3 {
	margin: 0 0 0.3rem;
	color: #0b2e4f;
	font-family: "DM Serif Display", Georgia, serif;
	font-size: 1.4rem;
	font-weight: 400;
	line-height: 1.25;
}

.tts-home-endorsement__person p {
	margin: 0.1rem 0;
	color: #666;
	font-size: 0.9rem;
	line-height: 1.45;
}

.tts-home-endorsement__person .tts-home-endorsement__org {
	color: #0b2e4f;
	font-weight: 600;
}

.tts-home-endorsement blockquote {
	max-width: 820px;
	margin: 0 auto 1.25rem;
	padding: 0;
	border: 0;
	color: #333;
	font-family: "DM Serif Display", Georgia, serif;
	font-size: clamp(1.15rem, 2.2vw, 1.5rem);
	font-style: italic;
	line-height: 1.55;
	text-align: center;
}

.tts-home-endorsement blockquote p {
	margin: 0;
}

.tts-home-endorsement__full {
	margin: 0 auto;
	max-width: 820px;
}

.tts-home-endorsement__full summary {
	display: table;
	margin: 0 auto;
	color: #0b2e4f;
	font-weight: 700;
	cursor: pointer;
	text-decoration: underline;
	text-decoration-color: #c8a24c;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.tts-home-endorsement__full summary:hover,
.tts-home-endorsement__full summary:focus {
	color: #9b7728;
}

.tts-home-endorsement__full[open] summary {
	margin-bottom: 1.25rem;
}

.tts-home-endorsement__full div {
	padding: 1.25rem;
	border-radius: 10px;
	background: #f5f7f8;
	color: #444;
	line-height: 1.75;
	text-align: left;
}

.tts-home-endorsement__full div p:first-child {
	margin-top: 0;
}

.tts-home-endorsement__full div p:last-child {
	margin-bottom: 0;
}

/* Splide controls — brand + a11y focus */
.tts-trusted-carousel .splide__arrows {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.tts-trusted-carousel .splide__arrow {
	position: static;
	transform: none;
	width: 48px;
	height: 48px;
	background: #0b2e4f;
	opacity: 1;
	border-radius: 999px;
	border: 2px solid transparent;
}

.tts-trusted-carousel .splide__arrow svg {
	fill: #fff;
}

.tts-trusted-carousel .splide__arrow:hover {
	background: #c8a24c;
}

.tts-trusted-carousel .splide__arrow:focus {
	outline: 3px solid #c8a24c;
	outline-offset: 3px;
}

.tts-trusted-carousel .splide__arrow:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.tts-trusted-carousel .splide__pagination {
	position: static;
	margin-top: 1rem;
	padding: 0;
	gap: 0.5rem;
}

.tts-trusted-carousel .splide__pagination__page {
	width: 12px;
	height: 12px;
	background: #cfd6db;
	opacity: 1;
	margin: 0;
}

.tts-trusted-carousel .splide__pagination__page.is-active {
	background: #0b2e4f;
	transform: scale(1.15);
}

.tts-trusted-carousel .splide__pagination__page:focus {
	outline: 3px solid #c8a24c;
	outline-offset: 3px;
}

@media (max-width: 768px) {
	.tts-home-endorsement {
		padding: 1.25rem;
	}

	.tts-home-endorsement__person {
		flex-direction: column;
		text-align: center;
	}

	.tts-endorsement,
	.tts-endorsement--photo-right {
		grid-template-columns: 1fr;
	}

	.tts-endorsement--photo-right .tts-endorsement__media,
	.tts-endorsement--photo-right .tts-endorsement__content {
		order: initial;
	}

	.tts-endorsement__photo img {
		max-width: 240px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tts-trusted-carousel .splide__slide {
		scroll-behavior: auto;
	}
}
