/**
 * Frontend styles for the IO4ALL Banner Carousel.
 *
 * Scoped replica of the reference index.html .top-banner CSS. All colors,
 * dimensions and timings come from the --io4all-* custom properties set on the
 * wrapper element by the shortcode renderer.
 */

.io4all-carousel {
	position: relative;
	margin-top: 0;
	height: var(--io4all-height, 460px);
	overflow: hidden;
	background: var(--io4all-banner-bg, #0a2036);
}

@media (max-width: 760px) {
	.io4all-carousel {
		margin-top: 0;
		height: 320px;
	}
}

.io4all-carousel .container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.io4all-carousel .tb-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity var(--io4all-transition, 700ms) ease;
	display: flex;
	align-items: center;
}

.io4all-carousel .tb-slide.active {
	opacity: 1;
}

.io4all-carousel .tb-slide .tb-bg {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.io4all-carousel .tb-slide .tb-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.io4all-carousel .tb-slide .tb-overlay {
	position: absolute;
	inset: 0;
	background: var(--io4all-overlay-gradient, linear-gradient(90deg, rgba(10, 32, 54, 0.88) 0%, rgba(10, 32, 54, 0.55) 45%, rgba(10, 32, 54, 0.15) 100%));
}

.io4all-carousel .tb-content {
	position: relative;
	z-index: 2;
	color: var(--io4all-title, #ffffff);
	padding-left: 56px;
}

@media (max-width: 760px) {
	.io4all-carousel .tb-content {
		padding-left: 26px;
	}
}

.io4all-carousel .tb-eyebrow {
	display: block;
	font-family: var(--io4all-font-body, "Inter", sans-serif);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--io4all-eyebrow, #e8b93a);
}

.io4all-carousel .tb-title {
	font-family: var(--io4all-font-display, "Plus Jakarta Sans", sans-serif);
	color: var(--io4all-title, #ffffff);
	font-size: clamp(24px, 3.6vw, 40px);
	margin-top: 10px;
	font-weight: 800;
	line-height: 1.2;
}

.io4all-carousel .tb-sub {
	font-family: var(--io4all-font-body, "Inter", sans-serif);
	color: var(--io4all-subtitle, #b7c6d6);
	margin-top: 8px;
	font-size: 14.5px;
	max-width: 380px;
}

.io4all-carousel .tb-nav {
	position: absolute;
	z-index: 3;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: var(--io4all-arrow, #ffffff);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease;
}

.io4all-carousel .tb-nav:hover {
	background: rgba(255, 255, 255, 0.25);
}

.io4all-carousel .tb-prev {
	left: 20px;
}

.io4all-carousel .tb-next {
	right: 20px;
}

.io4all-carousel .tb-dots {
	position: absolute;
	z-index: 3;
	bottom: 18px;
	left: 0;
	right: 0;
	display: flex;
	gap: 8px;
	justify-content: center;
}

.io4all-carousel .tb-dots button {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	border: none;
	cursor: pointer;
	padding: 0;
}

.io4all-carousel .tb-dots button.active {
	background: var(--io4all-dots-active, #e8b93a);
	width: 22px;
	border-radius: 5px;
	transition: width 0.2s ease;
}

.io4all-carousel .tb-note {
	position: absolute;
	z-index: 3;
	right: 16px;
	bottom: 16px;
	font-size: 10.5px;
	color: rgba(255, 255, 255, 0.4);
	letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
	.io4all-carousel .tb-slide,
	.io4all-carousel .tb-dots button.active,
	.io4all-carousel .tb-nav {
		transition-duration: 0.001ms !important;
	}
}
