/* TutsVela Theme: client reviews rows. */
/* Client reviews rows (homepage section 06 and the single service template): moving rows (owner, 21 Nov 2026; reference: two rows, soft cards, faded edges). Loaded on the homepage and service pages (inc/home.php). Why CSS and
   JS: the Kadence Testimonials block is a static grid or a Splide slider with arrows; it has no continuous two-row
   marquee, edge fade, reduced-motion fallback or swipe strip. Card colours, radius, padding, fonts, stars and photos
   stay Testimonials settings; approved form reviews are added as native items by TutsVela Core (Client reviews).
   Phones and reduced motion: no movement, a swipeable strip with snap points. */
.tv-rv-row { position: relative; margin-top: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.tv-rv-row .kt-testimonial-grid-wrap { display: flex; flex-wrap: nowrap; gap: 20px; width: max-content; margin: 0; padding: 4px 0; }
.tv-rv-row .kt-testimonial-grid-item { flex: 0 0 360px; display: flex; }
.tv-rv-row .kt-testimonial-item-wrap { display: flex; flex-direction: column; width: 100%; height: 100%; }
.tv-rv-row .kt-testimonial-text-wrap { flex: 1 1 auto; }
/* Rating-only cards (no review text yet) keep the name under the stars when a taller review sets the row height. */
.tv-rv-row .kt-testimonial-item-wrap:not(:has(.kt-testimonial-content:not(:empty))) .kt-testimonial-text-wrap { flex: 0 0 auto; }
.tv-rv-row .kt-testimonial-content-wrap:has(.kt-testimonial-content:empty) { display: none; }
.tv-rv-row .kt-testimonial-media-inner-wrap img { border-radius: 50%; object-fit: cover; }
.tv-rv-row.is-mq .kt-testimonial-grid-wrap { animation: tv-rv-mq var(--tv-rv-dur, 60s) linear infinite; }
.tv-rv-row.tv-rv-reverse.is-mq .kt-testimonial-grid-wrap { animation-direction: reverse; }
.tv-rv-row.is-mq:hover .kt-testimonial-grid-wrap,
.tv-rv-row.is-mq:focus-within .kt-testimonial-grid-wrap,
.tv-rv-paused .tv-rv-row.is-mq .kt-testimonial-grid-wrap { animation-play-state: paused; }
@keyframes tv-rv-mq { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--tv-rv-shift, 50%))); } }
.tv-rv-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 20px auto 0; padding: 0 16px; border: 1px solid var(--global-palette7); border-radius: 999px; background: var(--global-palette9); color: var(--global-palette3); font-size: 14px; font-weight: 600; box-shadow: none; cursor: pointer; }
.tv-rv-toggle:hover { border-color: var(--global-palette6); background: var(--global-palette8); color: var(--global-palette3); box-shadow: none; }
.tv-rv-toggle:focus-visible { outline: 3px solid var(--global-palette1); outline-offset: 2px; }
.tv-rv-strip { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; scrollbar-width: thin; }
.tv-rv-strip .kt-testimonial-grid-item { scroll-snap-align: start; }
.tv-rv-strip:focus-visible { outline: 3px solid var(--global-palette1); outline-offset: 4px; border-radius: 20px; }
@media (max-width: 1024px) { .tv-rv-row .kt-testimonial-grid-item { flex-basis: 320px; } }
@media (max-width: 767px) { .tv-rv-row .kt-testimonial-grid-item { flex-basis: min(84vw, 340px); } }
