/**
 * Testimonials page mechanics and decorative treatments.
 *
 * Visual fundamentals (type, colour, backgrounds, borders, radius, spacing,
 * sizing and responsive settings) are stored in Elementor. This file is only
 * for the illustrated hero, shortcode slider mechanics and animation states.
 */

body:has(.st_test_page) {
	overflow-x: hidden;
}

body:has(.st_test_page) .entry-header,
body:has(.st_test_page) .entry-title {
	display: none;
}

body:has(.st_test_page) .entry-content {
	margin: 0;
}

.st_test_page {
	overflow: hidden;
	position: relative;
}


.st_test_page > .elementor-container {
	max-width: 1160px !important;
	position: relative;
	z-index: 1;
}


/* Reference button interaction: elevation, shine sweep and arrow movement. */
.st_test_page .elementor-button {
	isolation: isolate;
	overflow: hidden;
	position: relative;
	transform: translateZ(0);
	transition: background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.st_test_page .elementor-button::before {
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	content: "";
	inset: -2px auto -2px -45%;
	position: absolute;
	transform: skewX(-18deg);
	transition: left 0.65s cubic-bezier(0.22, 1, 0.36, 1);
	width: 38%;
	z-index: -1;
}

.st_test_page .elementor-button:hover {
	box-shadow: 0 20px 42px rgba(7, 27, 74, 0.16);
	transform: translateY(-3px);
}

.st_test_page .elementor-button:hover::before {
	left: 120%;
}

.st_test_page .elementor-button .elementor-button-icon {
	transition: transform 0.25s ease;
}

.st_test_page .elementor-button:hover .elementor-button-icon {
	transform: translateX(4px);
}

.st_test_page .elementor-button:active {
	transform: translateY(-1px) scale(0.98);
}

/* Reference hero artwork: layered review card and floating proof notes. */
.st_test_hero_visual {
	min-height: 520px;
	position: relative;
}

.st_test_hero_visual .elementor-widget-container {
	min-height: 520px;
	position: relative;
}

.st_test_quote_stack {
	inset: 0;
	position: absolute;
}

.st_test_featured_quote {
	background: #fff;
	border: 1px solid rgba(7, 27, 74, 0.08);
	border-radius: 42px;
	box-shadow: 0 24px 70px rgba(7, 27, 74, 0.12);
	left: 50%;
	max-width: 520px;
	overflow: hidden;
	padding: 34px;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 70px);
}

.st_test_featured_quote::before {
	color: rgba(245, 181, 27, 0.18);
	content: "\201C";
	font-family: Georgia, serif;
	font-size: 160px;
	font-weight: 900;
	line-height: 1;
	position: absolute;
	right: 28px;
	top: -12px;
}

.st_test_featured_stars {
	color: #f5b51b;
	font-size: 18px;
	letter-spacing: 3px;
	margin-bottom: 22px;
	position: relative;
}

.st_test_featured_quote > p {
	color: #071b4a;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.55;
	margin: 0 0 24px;
	position: relative;
}

.st_test_quote_author {
	align-items: center;
	display: flex;
	gap: 14px;
	position: relative;
}

.st_test_quote_author_img {
	align-items: center;
	background: #fff5d8;
	border-radius: 50%;
	box-shadow: 0 12px 26px rgba(7, 27, 74, 0.08);
	color: #071b4a;
	display: flex;
	font-weight: 900;
	height: 58px;
	justify-content: center;
	width: 58px;
}

.st_test_quote_author b,
.st_test_quote_author span {
	display: block;
}

.st_test_quote_author b {
	color: #071b4a;
	font-weight: 900;
}

.st_test_quote_author span {
	color: #5d6678;
	font-size: 14px;
	font-weight: 700;
}

.st_test_float_review {
	background: #fff;
	border: 1px solid rgba(7, 27, 74, 0.08);
	border-radius: 24px;
	box-shadow: 0 14px 40px rgba(7, 27, 74, 0.08);
	color: #071b4a;
	font-size: 14px;
	font-weight: 900;
	padding: 18px 20px;
	position: absolute;
	z-index: 2;
	transition: box-shadow 0.28s ease;
}

.st_test_float_review i {
	color: #f5b51b;
	margin-right: 7px;
}

.st_test_float_review small {
	color: #5d6678;
	display: block;
	font-size: 11px;
	font-weight: 700;
	margin-top: 5px;
}

.st_test_float_one {
	left: 0;
	top: 52px;
}

.st_test_float_two {
	bottom: 78px;
	right: 0;
}

.st_test_float_three {
	background: #071b4a;
	bottom: 0;
	color: #fff;
	left: 42px;
}

.st_test_float_three small {
	color: rgba(255, 255, 255, 0.72);
}

.st_test_float_review:hover {
	box-shadow: 0 22px 52px rgba(7, 27, 74, 0.14);
}

/* Elementor's legacy column gutters sit inside column backgrounds. These
 * reference rows need true space between their card surfaces. */
.st_test_stories .elementor-inner-section > .elementor-container,
.st_test_wall .elementor-inner-section > .elementor-container {
	gap: 22px;
}

.st_test_stories .elementor-inner-section > .elementor-container > .elementor-column {
	flex: 0 0 calc(50% - 11px);
	width: calc(50% - 11px);
}

.st_test_wall .elementor-inner-section > .elementor-container > .elementor-column {
	flex: 0 0 calc(33.333% - 15px);
	width: calc(33.333% - 15px);
}

.st_test_hero_buttons > .elementor-container,
.st_test_cta_buttons > .elementor-container {
	gap: 14px;
	justify-content: flex-start;
}

.st_test_hero_buttons > .elementor-container > .elementor-column,
.st_test_cta_buttons > .elementor-container > .elementor-column {
	flex: 0 0 auto;
	width: auto;
}

.st_test_button_light .elementor-button,
.st_test_button_light .elementor-button:visited {
	color: #071b4a !important;
}

.st_test_button_light .elementor-button::before {
	background: linear-gradient(90deg, transparent, rgba(245, 181, 27, 0.26), transparent);
}

.st_test_kicker {
	width: auto !important;
}

.st_test_kicker .elementor-heading-title,
.st_test_wall_tag .elementor-heading-title {
	display: inline-flex;
}

/* Hero proof stats. Elementor owns their base colour/radius/padding; these
 * rules supply the reference shadow and interaction layer. */
.st_test_stats > .elementor-container > .elementor-column {
	transition: transform 0.28s ease;
}

.st_test_stats > .elementor-container > .elementor-column > .elementor-widget-wrap {
	filter: drop-shadow(0 12px 19px rgba(7, 27, 74, 0.07));
	transition: filter 0.28s ease;
}

.st_test_stats > .elementor-container > .elementor-column:hover {
	transform: translateY(-6px);
}

.st_test_stats > .elementor-container > .elementor-column:hover > .elementor-widget-wrap {
	filter: drop-shadow(0 20px 23px rgba(7, 27, 74, 0.12));
}

/* Story-card shadows, icon tiles and hover lift. */
.st_test_stories .elementor-inner-section > .elementor-container > .elementor-column {
	position: relative;
	transition: transform 0.28s ease;
}

.st_test_stories .elementor-inner-section > .elementor-container > .elementor-column > .elementor-widget-wrap {
	filter: drop-shadow(0 12px 19px rgba(7, 27, 74, 0.07));
	overflow: hidden;
	position: relative;
	transition: filter 0.28s ease;
}

.st_test_stories .elementor-inner-section > .elementor-container > .elementor-column > .elementor-widget-wrap::after {
	background: rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	bottom: -85px;
	content: "";
	height: 180px;
	pointer-events: none;
	position: absolute;
	right: -65px;
	width: 180px;
}

.st_test_stories .elementor-inner-section > .elementor-container > .elementor-column:hover {
	transform: translateY(-7px);
}

.st_test_stories .elementor-inner-section > .elementor-container > .elementor-column:hover > .elementor-widget-wrap {
	filter: drop-shadow(0 22px 26px rgba(7, 27, 74, 0.12));
}

.st_test_stories .elementor-widget-icon-box .elementor-icon {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 12px 28px rgba(7, 27, 74, 0.07);
	display: inline-flex;
	padding: 17px;
	transition: transform 0.28s ease;
}

.st_test_stories .elementor-column:hover .elementor-icon {
	transform: rotate(-5deg) scale(1.06);
}

/* Dynamic shortcode adapted to the reference slider shell. */
.st_test_slider_shortcode .st_dynamic_testimonials,
.st_test_slider_shortcode .st_testimonial_shell {
	width: 100%;
}

.st_test_slider_shell {
	border: 1px solid rgba(7, 27, 74, 0.08);
	border-radius: 44px;
	box-shadow: 0 12px 38px rgba(7, 27, 74, 0.07);
	overflow: hidden;
	padding: 34px;
	position: relative;
}

.st_test_slider_shell::before {
	background: #fff5d8;
	border-radius: 50%;
	content: "";
	height: 260px;
	position: absolute;
	right: -80px;
	top: -100px;
	width: 260px;
}

.st_test_slider_shell > .elementor-widget-wrap {
	position: relative;
	z-index: 1;
}

.st_test_slider_shortcode .st_testimonial_shell {
	opacity: 1 !important;
	overflow: hidden;
	padding: 2px 0 8px;
	transform: none !important;
	visibility: visible !important;
}

.st_test_slider_shortcode .st_testimonial_track {
	align-items: stretch;
	display: flex !important;
	gap: 0 !important;
	transform: translate3d(0, 0, 0);
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
	visibility: visible !important;
	will-change: transform;
}

.st_test_slider_shortcode .st_testimonial_slide {
	align-self: stretch;
	flex: 0 0 50% !important;
	min-width: 50% !important;
	padding: 0 12px !important;
	visibility: visible !important;
}

.st_test_slider_shortcode .st_testimonial_card {
	background: #fbfcff;
	border: 1px solid rgba(7, 27, 74, 0.08);
	border-radius: 32px;
	box-shadow: none;
	height: 100% !important;
	min-height: 260px !important;
	overflow: hidden;
	padding: 28px;
	position: relative;
	transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.st_test_slider_shortcode .st_testimonial_card::after {
	background: rgba(220, 247, 239, 0.65);
	border-radius: 50%;
	bottom: -48px;
	content: "";
	height: 130px;
	position: absolute;
	right: -48px;
	width: 130px;
}

.st_test_slider_shortcode .st_testimonial_card:hover {
	box-shadow: 0 22px 52px rgba(7, 27, 74, 0.12);
	transform: translateY(-8px);
}

.st_test_slider_shortcode .st_stars {
	color: #f5b51b;
	font-size: 15px;
	letter-spacing: 2px;
	margin-bottom: 18px;
	position: relative;
	z-index: 1;
}

.st_test_slider_shortcode .st_testimonial_quote {
	color: #5d6678;
	display: -webkit-box;
	font-size: 15px;
	line-height: 1.72;
	max-height: 7em;
	overflow: hidden;
	position: relative;
	z-index: 1;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.st_test_slider_shortcode .st_testimonial_quote p {
	color: inherit;
	font-size: inherit;
	line-height: inherit;
	margin: 0;
}

.st_test_slider_shortcode .st_person {
	margin-top: auto;
	padding-top: 22px;
	position: relative;
	z-index: 1;
}

.st_test_slider_shortcode .st_person_img {
	height: 50px;
	width: 50px;
}

.st_test_slider_shortcode .st_person_meta b {
	color: #071b4a;
	font-size: 16px;
	font-weight: 900;
}

.st_test_slider_shortcode .st_person_meta small {
	color: #5d6678;
	font-size: 13px;
	font-weight: 700;
}

.st_test_slider_controls {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.st_test_slider_controls > button {
	align-items: center;
	background: #fff;
	border: 1px solid #e8edf5;
	border-radius: 50%;
	box-shadow: 0 14px 40px rgba(7, 27, 74, 0.08);
	color: #071b4a;
	cursor: pointer;
	display: flex;
	height: 50px;
	justify-content: center;
	padding: 0;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
	width: 50px;
}

.st_test_slider_controls > button:hover,
.st_test_slider_controls > button:focus-visible {
	background: #071b4a;
	box-shadow: 0 18px 38px rgba(7, 27, 74, 0.18);
	color: #fff;
	transform: translateY(-3px);
}

.st_test_slider_dots {
	align-items: center;
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 24px;
}

.st_test_slider_dots button {
	background: #d8deea;
	border: 0;
	border-radius: 99px;
	height: 9px;
	padding: 0;
	transition: background-color 0.25s ease, width 0.25s ease;
	width: 9px;
}

.st_test_slider_dots button.st_active {
	background: #f5b51b;
	width: 28px;
}

/* Video reference overlay. The image itself is an Elementor image widget. */
.st_test_video_image {
	border-radius: 34px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
	overflow: hidden;
	position: relative;
}

.st_test_video_image::before {
	background: linear-gradient(135deg, rgba(245, 181, 27, 0.08), rgba(220, 247, 239, 0.08));
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

.st_test_video_image::after {
	align-items: center;
	background: #f5b51b;
	border-radius: 50%;
	box-shadow: 0 20px 45px rgba(245, 181, 27, 0.35);
	color: #071b4a;
	content: "\f04b";
	display: flex;
	font-family: "Font Awesome 6 Free";
	font-size: 24px;
	font-weight: 900;
	height: 84px;
	justify-content: center;
	left: 50%;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 84px;
	z-index: 2;
}

.st_test_video_image img {
	height: 340px !important;
	object-fit: cover;
	width: 100%;
}

.st_test_video_block,
.st_test_cta_box {
	overflow: hidden;
	position: relative;
}

.st_test_video_block {
	box-shadow: 0 24px 60px rgba(7, 27, 74, 0.14);
}

.st_test_video_block::before {
	background: rgba(245, 181, 27, 0.22);
	border-radius: 50%;
	content: "";
	height: 240px;
	position: absolute;
	right: -70px;
	top: -80px;
	width: 240px;
}

.st_test_video_block > .elementor-widget-wrap,
.st_test_cta_box > .elementor-widget-wrap {
	position: relative;
	z-index: 1;
}

.st_test_cta_box::before {
	background: rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	bottom: -90px;
	content: "";
	height: 260px;
	position: absolute;
	right: -70px;
	width: 260px;
}

/* Feedback wall card depth, tag treatment and lift. */
.st_test_wall_card {
	position: relative;
	transition: transform 0.25s ease;
}

.st_test_wall_card > .elementor-widget-wrap {
	filter: drop-shadow(0 12px 17px rgba(7, 27, 74, 0.06));
	overflow: hidden;
	position: relative;
	transition: filter 0.25s ease;
}

.st_test_wall_card > .elementor-widget-wrap::after {
	background: rgba(220, 247, 239, 0.48);
	border-radius: 50%;
	content: "";
	height: 110px;
	position: absolute;
	right: -58px;
	top: -58px;
	width: 110px;
}

.st_test_wall_card:hover {
	transform: translateY(-6px);
}

.st_test_wall_card:hover > .elementor-widget-wrap {
	filter: drop-shadow(0 20px 23px rgba(7, 27, 74, 0.11));
}

.st_test_wall_card > .elementor-widget-wrap {
	z-index: 1;
}

.st_test_wall_tag .elementor-heading-title {
	align-items: center;
	background: #fff5d8;
	border-radius: 999px;
	color: #071b4a;
	gap: 7px;
	padding: 8px 11px;
}

.st_test_wall_tag .elementor-heading-title i,
.st_test_wall_tag .elementor-heading-title svg {
	color: #f5b51b;
	fill: #f5b51b;
}

.st_test_wall_card .st_test_wall_tag {
	margin-bottom: 14px !important;
}

.st_test_wall_card .elementor-widget-text-editor:nth-child(2) {
	margin-bottom: 18px !important;
}

.st_test_wall_card .elementor-widget-heading:nth-child(3) {
	margin-bottom: 4px !important;
}

.st_test_wall_content > .elementor-widget-wrap > .elementor-widget-heading:not(.st_test_kicker),
.st_test_wall_content > .elementor-widget-wrap > .elementor-widget-text-editor {
	text-align: center;
}

.st_test_wall_content > .elementor-widget-wrap > .st_test_kicker {
	margin-left: auto;
	margin-right: auto;
}

.st_test_cta_box {
	box-shadow: 0 18px 48px rgba(245, 181, 27, 0.18);
}

/* Motion classes are the only presentation classes added to native cards. */
.st_test_anim_item {
	will-change: opacity, transform;
}

@media (max-width: 991px) {
	.st_test_hero > .elementor-container,
	.st_test_video > .elementor-container {
		flex-wrap: wrap;
	}

	.st_test_hero > .elementor-container > .elementor-column,
	.st_test_video > .elementor-container > .elementor-column {
		flex-basis: 100%;
		width: 100%;
	}

	.st_test_hero .st_test_anim_hero:not(.st_test_kicker) .elementor-heading-title {
		font-size: clamp(44px, 6.1vw, 60px);
	}

	.st_test_slider_section .elementor-widget-heading:not(.st_test_kicker) .elementor-heading-title,
	.st_test_wall_content > .elementor-widget-wrap > .elementor-widget-heading:not(.st_test_kicker) .elementor-heading-title {
		font-size: clamp(34px, 4.4vw, 44px);
	}

	.st_test_video_block .elementor-widget-heading:not(.st_test_kicker) .elementor-heading-title {
		font-size: clamp(34px, 4vw, 40px);
	}

	.st_test_cta_box .elementor-widget-heading .elementor-heading-title {
		font-size: clamp(36px, 5vw, 50px);
	}

	.st_test_slider_section,
	.st_test_wall {
		padding: 68px 0 !important;
	}

	.st_test_hero_visual,
	.st_test_hero_visual .elementor-widget-container {
		min-height: 500px;
	}

	.st_test_slider_shortcode .st_testimonial_slide {
		flex-basis: 100% !important;
		min-width: 100% !important;
	}

	.st_test_stories .elementor-inner-section > .elementor-container,
	.st_test_wall .elementor-inner-section > .elementor-container {
		flex-direction: column;
		flex-wrap: wrap;
	}

	.st_test_stories .elementor-inner-section > .elementor-container > .elementor-column,
	.st_test_wall .elementor-inner-section > .elementor-container > .elementor-column {
		flex-basis: 100%;
		width: 100%;
	}
}

@media (max-width: 575px) {
	.st_test_hero .st_test_anim_hero:not(.st_test_kicker) .elementor-heading-title {
		font-size: 45px;
	}

	.st_test_slider_section .elementor-widget-heading:not(.st_test_kicker) .elementor-heading-title,
	.st_test_video_block .elementor-widget-heading:not(.st_test_kicker) .elementor-heading-title,
	.st_test_wall_content > .elementor-widget-wrap > .elementor-widget-heading:not(.st_test_kicker) .elementor-heading-title,
	.st_test_cta_box .elementor-widget-heading .elementor-heading-title {
		font-size: 38px;
	}


	.st_test_hero_visual,
	.st_test_hero_visual .elementor-widget-container {
		min-height: auto;
	}

	.st_test_quote_stack {
		position: relative;
	}

	.st_test_featured_quote {
		left: auto;
		padding: 24px;
		position: relative;
		top: auto;
		transform: none;
		width: 100%;
	}

	.st_test_featured_quote > p {
		font-size: 18px;
	}

	.st_test_float_review {
		bottom: auto !important;
		left: auto !important;
		margin-top: 12px;
		position: relative;
		right: auto !important;
		top: auto !important;
	}

	.st_test_stories .elementor-inner-section > .elementor-container,
	.st_test_wall .elementor-inner-section > .elementor-container {
		flex-direction: column;
		gap: 16px;
	}

	.st_test_stories .elementor-inner-section > .elementor-container > .elementor-column,
	.st_test_wall .elementor-inner-section > .elementor-container > .elementor-column {
		flex-basis: 100%;
		width: 100%;
	}

	.st_test_hero_buttons > .elementor-container,
	.st_test_cta_buttons > .elementor-container {
		align-items: stretch;
		flex-direction: column;
	}

	.st_test_hero_buttons .elementor-column,
	.st_test_cta_buttons .elementor-column,
	.st_test_hero_buttons .elementor-widget-button,
	.st_test_cta_buttons .elementor-widget-button,
	.st_test_hero_buttons .elementor-button,
	.st_test_cta_buttons .elementor-button {
		width: 100%;
	}

	.st_test_slider_shortcode .st_testimonial_slide {
		padding: 0 4px !important;
	}

	.st_test_slider_shortcode .st_testimonial_card {
		border-radius: 26px;
		padding: 22px;
	}

	.st_test_slider_shell {
		border-radius: 30px;
		padding: 22px;
	}

	.st_test_slider_controls {
		justify-content: flex-start;
		margin-top: 20px;
	}

	.st_test_video_image img {
		height: 260px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.st_test_page *,
	.st_test_page *::before,
	.st_test_page *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
