/* Slider — full-slide content carousel. Layout/motion via Swiper. */
.ractro-slider { width: 100%; }
.ractro-slider .swiper { width: 100%; overflow: hidden; }
.ractro-slider .swiper-slide {
	position: relative;
	height: 480px;
	display: flex;
	overflow: hidden;
}
.ractro-slide__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: #1e293b; /* fallback when no image is set */
}
.ractro-slide__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	pointer-events: none;
}
.ractro-slide__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 18px;
	width: 100%;
	max-width: 640px;
	margin: auto;
	padding: 32px clamp(20px, 6vw, 64px);
	color: #fff;
}
.ractro-slide__heading {
	margin: 0;
	font-size: clamp(28px, 4vw, 46px);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
}
.ractro-slide__sub {
	margin: 0;
	font-size: clamp(15px, 1.4vw, 18px);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
}
/* Subtitle — sits between the Heading and the Description paragraph. */
.ractro-slide__subtitle {
	margin: 0;
	font-size: clamp(14px, 1.3vw, 17px);
	line-height: 1.4;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}
.ractro-slide__btns {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
}
.ractro-slide__btn,
.ractro-slide__btn2 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 26px;
	border-radius: 10px;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform .2s ease, filter .2s ease;
	width: fit-content;
}
.ractro-slide__btn { background: #6366f1; }
.ractro-slide__btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
/* Secondary button — ghost/outline style by default, distinct from primary. */
.ractro-slide__btn2 {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.7);
}
.ractro-slide__btn2:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.12); }

/* Navigation / pagination */
.ractro-slider .swiper-button-prev,
.ractro-slider .swiper-button-next {
	color: #fff;
	width: 40px; height: 40px;
	background: rgba(15, 23, 42, 0.35);
	border-radius: 50%;
	backdrop-filter: blur(2px);
	transition: background .2s ease;
}
.ractro-slider .swiper-button-prev:hover,
.ractro-slider .swiper-button-next:hover { background: rgba(15, 23, 42, 0.6); }
/* Real SVG icons render inside .ractro-slide-nav (see render()); Swiper's
   default ::after glyph would double up with them, so it's suppressed. */
.ractro-slider .swiper-button-prev::after,
.ractro-slider .swiper-button-next::after { content: ''; display: none; }
.ractro-slide-nav { display: flex; align-items: center; justify-content: center; }
.ractro-slider .swiper-pagination-bullet { background: #fff; opacity: 0.6; }
.ractro-slider .swiper-pagination-bullet-active { background: #fff; opacity: 1; }

/* Pagination position modes — see `dots_position` control. Inside (default)
   keeps Swiper's own absolute bottom-offset behaviour; Outside drops the
   dots into normal document flow below the slider. */
.ractro-slider--dots-inside .swiper-pagination { position: absolute; bottom: 10px; }
.ractro-slider--dots-outside .swiper-pagination {
	position: static;
	margin-top: 16px;
	display: flex;
	justify-content: center;
}

/* Content fade-in animation — only active when `content_animation_enable`
   is on (wrapper carries `.ractro-slider--anim`). Duration/stagger read
   from the CSS custom properties the matching controls set on the wrapper. */
.ractro-slider--anim .ractro-slide__inner > * {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity var(--ractro-sl-anim-dur, 800ms) ease, transform var(--ractro-sl-anim-dur, 800ms) ease;
}
.ractro-slider--anim .swiper-slide-active .ractro-slide__inner > *:nth-child(1) { transition-delay: 0ms; }
.ractro-slider--anim .swiper-slide-active .ractro-slide__inner > *:nth-child(2) { transition-delay: var(--ractro-sl-anim-stagger, 100ms); }
.ractro-slider--anim .swiper-slide-active .ractro-slide__inner > *:nth-child(3) { transition-delay: calc(var(--ractro-sl-anim-stagger, 100ms) * 2); }
.ractro-slider--anim .swiper-slide-active .ractro-slide__inner > *:nth-child(4) { transition-delay: calc(var(--ractro-sl-anim-stagger, 100ms) * 3); }
.ractro-slider--anim .swiper-slide-active .ractro-slide__inner > * { opacity: 1; transform: translateY(0); }

.ractro-slider-empty {
	padding: 28px; text-align: center; color: #94a3b8;
	border: 1px dashed #cbd5e1; border-radius: 12px;
	font: 500 14px/1.4 system-ui, sans-serif;
}
