.chi-slider,
.chi-slider * {
	box-sizing: border-box !important;
}

.chi-slider {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	height: var(--chi-h-desktop, 640px) !important;
	max-height: none !important;
	overflow: hidden !important;
	background: #111;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	isolation: isolate;
}

.chi-slider-track {
	position: relative !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Every slide sits absolutely and always fills the track — only opacity/z-index
   ever change, so the layout can never collapse or push other elements around. */
.chi-slide {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
	visibility: hidden;
	z-index: 1;
	transition: opacity 0.7s ease;
	display: flex !important;
	align-items: center;
}

.chi-slide.chi-valign-top {
	align-items: flex-start;
}

.chi-slide.chi-valign-top .chi-slide-inner {
	padding-top: 60px;
}

.chi-slide.chi-valign-middle {
	align-items: center;
}

.chi-slide.chi-valign-bottom {
	align-items: flex-end;
}

.chi-slide.chi-valign-bottom .chi-slide-inner {
	padding-bottom: 60px;
}

.chi-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

/* Slide transition mode */
.chi-transition-slide .chi-slide {
	transition: transform 0.6s ease, opacity 0.6s ease;
	transform: translateX(100%);
}

.chi-transition-slide .chi-slide.is-active {
	transform: translateX(0%);
	opacity: 1;
	visibility: visible;
}

.chi-transition-slide .chi-slide.is-prev {
	transform: translateX(-100%);
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.chi-slide-noimg {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #2b2b2b, #4a4a4a);
	color: rgba(255, 255, 255, 0.55);
	font-size: 14px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.chi-slide-overlay {
	position: absolute;
	inset: 0;
	background: var(--chi-overlay, rgba(0, 0, 0, 0.35));
	z-index: 1;
}

.chi-slide-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 32px;
}

.chi-has-arrows .chi-slide-inner {
	padding: 0 96px;
}

.chi-slide-content {
	max-width: 640px;
	color: #fff !important;
}

.chi-width-narrow .chi-slide-content {
	max-width: 440px;
}

.chi-width-normal .chi-slide-content {
	max-width: 640px;
}

.chi-width-wide .chi-slide-content {
	max-width: 860px;
}

.chi-width-full .chi-slide-content {
	max-width: 100%;
	width: 100%;
}

.chi-align-left .chi-slide-content {
	margin-right: auto;
	text-align: left;
}

.chi-align-center .chi-slide-inner {
	display: flex;
	justify-content: center;
}

.chi-align-center .chi-slide-content {
	text-align: center;
}

.chi-align-right .chi-slide-content {
	margin-left: auto;
	text-align: right;
}

.chi-slide-title {
	font-size: clamp(28px, 4vw, 52px);
	line-height: 1.15;
	font-weight: 700;
	margin: 0 0 16px;
	color: #fff !important;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.chi-slide-subtitle {
	font-size: clamp(15px, 1.6vw, 19px);
	line-height: 1.6;
	margin: 0 0 28px;
	color: rgba(255, 255, 255, 0.92) !important;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.chi-slide-btn {
	display: inline-block;
	padding: 14px 34px;
	border-radius: 6px;
	color: var(--chi-btn-text, #fff);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.02em;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, filter 0.2s ease;
}

.chi-slide-btn:hover,
.chi-slide-btn:focus {
	transform: translateY(-2px);
	filter: brightness(1.08);
	color: var(--chi-btn-text, #fff);
}

/* Nav arrows */
.chi-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 46px;
	height: 46px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(3px);
	transition: background 0.2s ease;
}

.chi-nav:hover {
	background: rgba(255, 255, 255, 0.35);
}

.chi-prev {
	left: 20px;
}

.chi-next {
	right: 20px;
}

.chi-slider.chi-full-width {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	left: 0;
	right: 0;
}

/* Dots */
.chi-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 22px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 10px;
}

.chi-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease, transform 0.2s ease;
}

.chi-dot.is-active {
	background: #fff;
	transform: scale(1.25);
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
	.chi-slider {
		height: var(--chi-h-tablet, 480px) !important;
	}

	.chi-slide-inner {
		padding: 0 24px;
	}

	.chi-has-arrows .chi-slide-inner {
		padding: 0 72px;
	}

	.chi-nav {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}
}

@media (max-width: 640px) {
	.chi-slider {
		height: var(--chi-h-mobile, 380px) !important;
	}

	.chi-slide-content {
		max-width: 100%;
	}

	.chi-has-arrows .chi-slide-inner {
		padding: 0 52px;
	}

	.chi-align-left .chi-slide-content,
	.chi-align-right .chi-slide-content {
		text-align: center;
		margin-left: auto;
		margin-right: auto;
	}

	.chi-slide-btn {
		padding: 12px 26px;
		font-size: 14px;
	}

	.chi-nav {
		width: 34px;
		height: 34px;
		font-size: 14px;
	}

	.chi-prev {
		left: 10px;
	}

	.chi-next {
		right: 10px;
	}

	.chi-dots {
		bottom: 14px;
	}

	.chi-slider.chi-no-arrows-mobile .chi-nav {
		display: none !important;
	}

	.chi-slider.chi-no-dots-mobile .chi-dots {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.chi-slide,
	.chi-slide-btn,
	.chi-dot {
		transition: none !important;
	}
}
