/* [ac_testimonials] -- red testimonial card + carousel (Home "Why Active Carriers").
   Colours come from Elementor's kit variables; the fallbacks only matter if
   Elementor is ever switched off. */
.acs-testi {
	--acs-pad: 48px;
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 32px;
	height: 100%;
	padding: var(--acs-pad);
	border-radius: 12px;
	background: var(--e-global-color-primary, #E30613);
	color: var(--e-global-color-white, #FFFFFF);
}
.acs-testi__mark { display: block; width: 44px; height: 34px; color: rgba(255, 255, 255, 0.45); flex: none; }
.acs-testi__slides { display: flex; flex-direction: column; gap: 40px; flex: 1 0 auto; }
.acs-testi__slide { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.acs-testi__quote { margin: 0; padding: 0; border: 0; font-family: var(--e-global-typography-text-font-family, "Inter"), sans-serif; font-size: 24px; font-weight: 500; line-height: 1.45; color: inherit; font-style: normal; quotes: none; }
.acs-testi__quote p { margin: 0; }
.acs-testi__quote p + p { margin-top: .6em; }
.acs-testi__by { margin: 0; font-style: normal; color: inherit; text-align: left; display: flex; flex-direction: column; font-size: 16px; line-height: 1.55; min-height: 50px; justify-content: center; padding-right: 112px; }
.acs-testi__name { font-weight: 700; color: var(--e-global-color-white, #FFFFFF); }
.acs-testi__meta { font-size: 14px; color: var(--e-global-color-red50, #FFE1E3); }

/* Enhanced (JS on): one slide at a time, all stacked in one grid cell so the
   card keeps the height of the longest quote and never jumps. */
.acs-testi.is-enhanced .acs-testi__slides { display: grid; }
.acs-testi.is-enhanced .acs-testi__slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility 0s linear .25s; }
.acs-testi.is-enhanced .acs-testi__slide[data-active] { visibility: visible; opacity: 1; transition: opacity .25s ease; }

.acs-testi__controls { position: absolute; right: var(--acs-pad); bottom: calc(var(--acs-pad) + 3px); display: flex; gap: 8px; }
.acs-testi__controls[hidden] { display: none; }
.acs-testi .acs-testi__btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
	border: 1.5px solid var(--e-global-color-white, #FFFFFF);
	background: transparent; color: var(--e-global-color-white, #FFFFFF);
	transition: background-color .15s ease, color .15s ease;
}
.acs-testi .acs-testi__btn--next, .acs-testi .acs-testi__btn--next:focus { background: var(--e-global-color-white, #FFFFFF); color: var(--e-global-color-accent, #C0050F); }
.acs-testi .acs-testi__btn:hover, .acs-testi .acs-testi__btn:focus-visible { background: var(--e-global-color-white, #FFFFFF); color: var(--e-global-color-accent, #C0050F); }
.acs-testi .acs-testi__btn--next:hover, .acs-testi .acs-testi__btn--next:focus-visible { background: var(--e-global-color-red50, #FFE1E3); }
.acs-testi .acs-testi__btn:focus-visible { outline: 2px solid var(--e-global-color-white, #FFFFFF); outline-offset: 3px; }
.acs-testi__btn svg { display: block; }

@media (max-width: 1024px) {
	.acs-testi { --acs-pad: 40px; }
	.acs-testi__quote { font-size: 20px; }
}
@media (max-width: 767px) {
	.acs-testi { --acs-pad: 28px; gap: 24px; }
	.acs-testi__quote { font-size: 18px; }
	.acs-testi__slide { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.acs-testi.is-enhanced .acs-testi__slide { transition: none; }
}
