/* Home page testimonials (inc/home-testimonials.php). Same 1310px content width as the other home sections. */
.tt-section { position: relative; padding: 100px 0 110px; color: #0b1437; background: linear-gradient(180deg, #f5f7ff 0%, #fff 100%); }
.tt-section *, .tt-section *::before, .tt-section *::after { box-sizing: border-box; }
.tt-wrap { width: 100%; max-width: 1358px; margin: 0 auto; padding: 0 24px; }
.tt-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.tt-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #2b47f2; background: rgba(43, 71, 242, .08); }
.tt-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tt-section .tt-head h2 { margin: 18px 0 0; padding: 0; font-size: var(--tl-h2, 42px); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; color: #0b1437; }
.tt-section .tt-head p { margin: 16px 0 0; font-size: var(--tl-lead, 18px); line-height: 1.65; color: #5b6485; }
.tt-ribbon { margin: 0 0 28px; padding: 10px 16px; border-radius: 12px; font-size: 14px; color: #7a4a00; background: #fff4d6; border: 1px solid #ffe19a; text-align: center; }

.tt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tt-section figure.tt-card {
	position: relative; display: flex; flex-direction: column; margin: 0; padding: 30px 28px 26px;
	background: #fff; border: 1px solid #e3e8f8; border-radius: 22px; box-shadow: 0 18px 44px -32px rgba(18, 36, 120, .45);
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.tt-section figure.tt-card::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 3px; border-radius: 0 0 6px 6px; background: var(--tone); opacity: .85; }
.tt-section figure.tt-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--tone) 40%, #e3e8f8); box-shadow: 0 28px 56px -30px rgba(18, 36, 120, .5); }
.tt-card__quote { position: absolute; right: 24px; top: 22px; color: var(--tone); opacity: .14; }
.tt-card__stars { display: inline-flex; gap: 2px; margin-bottom: 14px; color: #f5a524; }
.tt-card__stars svg { display: block; }
.tt-section .tt-card blockquote { margin: 0 0 22px; padding: 0; border: 0; background: none; }
.tt-section .tt-card blockquote p { margin: 0; font-size: var(--tl-body, 16px); line-height: 1.7; color: #1d2750; }
.tt-section .tt-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid #edf0fb; }
.tt-card__avatar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-size: 15px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--tone), color-mix(in srgb, var(--tone) 55%, #fff)); }
.tt-card__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.tt-card__who strong { font-size: 16px; color: #0b1437; }
.tt-card__who span { font-size: 14px; color: #5b6485; }
.tt-card__tag { flex: none; margin-left: auto; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--tone); background: color-mix(in srgb, var(--tone) 10%, #fff); white-space: nowrap; }

@media (max-width: 1000px) { .tt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tt-section { padding: 84px 0 92px; } }
@media (max-width: 640px) {
	.tt-section { padding: 70px 0 78px; }
	.tt-wrap { padding: 0 18px; }
	.tt-head { margin-bottom: 34px; }
	/* swipe through the cards */
	.tt-grid { display: flex; gap: 14px; margin: 0 -18px; padding: 4px 18px 18px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.tt-grid::-webkit-scrollbar { display: none; }
	.tt-section figure.tt-card { flex: 0 0 86%; scroll-snap-align: center; padding: 26px 22px 22px; }
	.tt-card__tag { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tt-section figure.tt-card { transition: none; } .tt-section figure.tt-card:hover { transform: none; } }

/* The theme styles every <blockquote> (grey box, big quote marks); our cards bring their own design */
.tt-section .tt-card blockquote { background: transparent !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; quotes: none; font-style: normal; border-radius: 0; }
.tt-section .tt-card blockquote::before, .tt-section .tt-card blockquote::after { content: none !important; display: none !important; }
.tt-section .tt-card blockquote p { font-style: normal; font-weight: 400; }
