/* SCT Bookings — testimonials section */
.sctb-t {
	--p: var(--sctb-per, 3);
	--gap: 24px;
	position: relative; overflow: hidden; color: #063C70;
	background-color: #8FD8EC;
	background-image:
		linear-gradient(180deg, rgba(214, 242, 252, .95) 0%, rgba(214, 242, 252, .55) 22%, rgba(214, 242, 252, .25) 45%, rgba(214, 242, 252, .25) 100%),
		var(--sctb-t-bg, url("/wp-content/themes/serenity-crown-tours/assets/images/bg-water-caustics.webp"));
	background-size: cover; background-position: center;
}
.sctb-t-inner { max-width: 1360px; margin: 0 auto; padding: 56px 40px 52px; box-sizing: border-box; }

/* Heading: navy script on a yellow brushstroke with a navy swoosh */
.sctb-t-title { text-align: center; margin: 0 0 34px !important; line-height: 1; }
.sctb-t-title span {
	position: relative; display: inline-block; padding: 16px 54px 22px;
	font-family: 'Kaushan Script', cursive; font-weight: 400; font-style: normal; font-size: clamp(2.2rem, 4.4vw, 4rem); color: #0A4FA0;
	text-shadow: 0 2px 0 rgba(255, 255, 255, .6);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620 120' preserveAspectRatio='none'%3E%3Cpath d='M18 34C150 10 430 4 596 18l14-6-6 18 14 8-18 10 14 12-16 10 12 12C428 104 180 112 28 102l-18-8 14-12-20-10 16-12-14-8 16-10z' fill='%23FFE000'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.sctb-t-title span::after {
	content: ""; position: absolute; left: 30%; right: 30%; bottom: -14px; height: 10px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 10C60 2 140 0 198 6L196 10C140 6 70 8 4 13Z' fill='%230A4FA0'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* Carousel */
.sctb-t-viewport { position: relative; }
.sctb-t-track {
	list-style: none; margin: 0 !important; padding: 8px 4px 18px !important;
	display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; -ms-overflow-style: none;
}
.sctb-t-track::-webkit-scrollbar { display: none; }
.sctb-t-track:focus-visible { outline: 3px solid #FFE000; outline-offset: 4px; border-radius: 12px; }
.sctb-t-card {
	flex: 0 0 calc((100% - (var(--p) - 1) * var(--gap)) / var(--p));
	scroll-snap-align: start; container-type: inline-size;
	margin: 0 !important; background: #fff; border-radius: 24px; box-shadow: 0 14px 32px rgba(6, 60, 112, .18);
	display: flex; box-sizing: border-box;
}
.sctb-t-in { display: grid; grid-template-columns: 46% 1fr; gap: 20px; padding: 18px; width: 100%; box-sizing: border-box; }
.sctb-t-photo { position: relative; margin: 0 !important; border-radius: 18px; overflow: hidden; background: #E9FAFB; min-height: 240px; align-self: stretch; }
.sctb-t-photo img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: center 30%; display: block; }
.sctb-t-initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; height: 100%; font: 900 64px/1 Poppins, sans-serif; color: #20A6AF; }
.sctb-t-body { display: flex; flex-direction: column; gap: 10px; padding: 4px 4px 6px 0; }
.sctb-t-body > * { margin: 0 !important; }
.sctb-t-stars { color: #FFC400; font-size: 26px; letter-spacing: 2px; line-height: 1; text-shadow: 0 1px 0 #E0A800; }
.sctb-t-quote { margin: 0 !important; padding: 0 !important; border: 0 !important; flex: 1; }
.sctb-t-quote p { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 500; color: #063C70; font-style: normal; }
.sctb-t-name { position: relative; padding-top: 18px; font-size: 20px; font-weight: 800; color: #063C70; }
.sctb-t-name::before { content: ""; position: absolute; left: 0; top: 0; width: 80px; height: 5px; border-radius: 3px; background: #FFE000; }
.sctb-t-label { font-size: 14px; font-weight: 600; color: #20A6AF; }

/* Narrow cards (4 across, tablets): photo on top */
@container (max-width: 370px) {
	.sctb-t-in { grid-template-columns: 1fr; }
	.sctb-t-photo { aspect-ratio: 16 / 11; min-height: 0; align-self: auto; }
}

/* Arrows + dots */
.sctb-t-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 10px; }
.sctb-t-nav[hidden] { display: none; }
.sctb-t-arrow {
	width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: #fff; color: #0A4FA0;
	font: 700 28px/1 Poppins, sans-serif; box-shadow: 0 6px 16px rgba(6, 60, 112, .2); transition: transform .2s ease, background .2s ease;
}
.sctb-t-arrow:hover { background: #FFE000; transform: translateY(-2px); }
.sctb-t-dots { display: flex; gap: 8px; }
.sctb-t-dot { width: 12px; height: 12px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: rgba(10, 79, 160, .3); transition: width .25s ease, background .25s ease; }
.sctb-t-dot[aria-current="true"] { width: 30px; background: #0A4FA0; }
.sctb-t-arrow:focus-visible, .sctb-t-dot:focus-visible { outline: 3px solid #FFE000; outline-offset: 3px; }

@media (max-width: 1100px) { .sctb-t { --p: min(var(--sctb-per, 3), 2); } }
@media (max-width: 700px) {
	.sctb-t { --p: 1; --gap: 16px; }
	.sctb-t-inner { padding: 40px 16px 36px; }
	.sctb-t-title span { padding: 12px 30px 18px; }
}
@media (prefers-reduced-motion: reduce) { .sctb-t-track { scroll-behavior: auto; } }
