.ts-glass-slider {
	--slider-height: 600px;
	--glass-blur: 24px;
	--glass-saturate: 180%;
	--glass-brightness: 110%;
	--glass-border-color: rgba(255, 255, 255, 0.25);
	--glass-bg-blur: 8px;
	--dot-size: 8px;
	position: relative;
	width: 100%;
	overflow: hidden;
}

.ts-glass-slider .glass-track {
	width: 100%;
	height: var(--slider-height);
	position: relative;
	overflow: hidden;
}

.ts-glass-slider .glass-slides {
	width: 100%;
	height: 100%;
	position: relative;
}

.ts-glass-slider .glass-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	will-change: transform, opacity;
}

.ts-glass-slider .slide-inner {
	display: flex;
	width: 100%;
	height: 100%;
	position: relative;
}

.ts-glass-slider.layout-reverse .slide-inner {
	flex-direction: row-reverse;
}

.ts-glass-slider .glass-panel {
	width: 50%;
	position: relative;
	overflow: hidden;
	border-style: solid;
	border-color: var(--glass-border-color);
	display: flex;
	align-items: stretch;
	backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
	-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
	isolation: isolate;
}

.ts-glass-slider .glass-bg-image {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.05);
	filter: blur(var(--glass-bg-blur)) saturate(var(--glass-saturate));
	-webkit-filter: blur(var(--glass-bg-blur)) saturate(var(--glass-saturate));
	will-change: transform, opacity;
}

.ts-glass-slider .glass-bg-tint {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.ts-glass-slider .glass-noise {
	position: absolute;
	inset: 0;
	z-index: 2;
	opacity: 0.04;
	pointer-events: none;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-repeat: repeat;
	background-size: 128px 128px;
}

.ts-glass-slider .glass-edge-light {
	position: absolute;
	inset: 0;
	z-index: 3;
	opacity: 0.6;
	pointer-events: none;
	mix-blend-mode: screen;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.5) 0%,
		rgba(255, 255, 255, 0.15) 15%,
		transparent 35%,
		transparent 70%,
		rgba(255, 255, 255, 0.1) 100%
	);
	transition: background 0.2s ease;
}

.ts-glass-slider .glass-edge-light::before {
	content: '';
	position: absolute;
	inset: 1px;
	border-radius: inherit;
	border: 1px solid rgba(255, 255, 255, 0.15);
	pointer-events: none;
}

.ts-glass-slider .glass-inner-glow {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	mix-blend-mode: screen;
	background:
		radial-gradient(
			ellipse at 50% 0%,
			rgba(255, 255, 255, 0.08) 0%,
			transparent 50%
		),
		radial-gradient(
			ellipse at 50% 100%,
			rgba(255, 255, 255, 0.04) 0%,
			transparent 40%
		);
}

.ts-glass-slider .glass-specular {
	position: absolute;
	inset: 0;
	z-index: 4;
	opacity: 0.4;
	pointer-events: none;
	mix-blend-mode: screen;
	background: radial-gradient(
		ellipse at 25% 15%,
		rgba(255, 255, 255, 0.35) 0%,
		rgba(255, 255, 255, 0.1) 25%,
		transparent 55%
	);
	transition: background 0.1s ease;
}

.ts-glass-slider .glass-content {
	position: relative;
	z-index: 5;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	gap: 18px;
}

.ts-glass-slider .glass-subtitle {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

.ts-glass-slider .glass-subtitle.style-label {
	padding: 6px 16px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	width: fit-content;
}

.ts-glass-slider .glass-subtitle.style-underlined {
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: rgba(255, 255, 255, 0.4);
}

.ts-glass-slider .glass-title {
	font-size: 42px;
	font-weight: 700;
	line-height: 1.15;
	margin: 0;
	color: #ffffff;
}

.ts-glass-slider .glass-desc {
	font-size: 16px;
	line-height: 1.7;
	margin: 0;
	color: rgba(255, 255, 255, 0.75);
}

.ts-glass-slider .glass-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 36px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-decoration: none;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	cursor: pointer;
	width: fit-content;
	overflow: hidden;
	position: relative;
}

.ts-glass-slider .glass-btn::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0);
	transition: background 0.4s ease;
	border-radius: inherit;
}

.ts-glass-slider .glass-btn:hover::before {
	background: rgba(255, 255, 255, 0.1);
}

.ts-glass-slider .glass-btn:hover {
	background: #ffffff;
	color: #0a0a1e;
	border-color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.1);
}

.ts-glass-slider .glass-btn .btn-arrow {
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.ts-glass-slider .glass-btn:hover .btn-arrow {
	transform: translateX(4px);
}

.ts-glass-slider .image-panel {
	width: 50%;
	position: relative;
	overflow: hidden;
}

.ts-glass-slider .image-inner {
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
}

.ts-glass-slider .image-inner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ts-glass-slider .image-inner.hover-zoom:hover img {
	transform: scale(1.08);
}

.ts-glass-slider .image-inner.hover-pan:hover img {
	transform: scale(1.1) translateX(-2%);
}

.ts-glass-slider .image-panel::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0.12) 0%,
		transparent 25%
	);
	pointer-events: none;
	z-index: 1;
}

.ts-glass-slider.layout-reverse .image-panel::after {
	background: linear-gradient(
		-90deg,
		rgba(0, 0, 0, 0.12) 0%,
		transparent 25%
	);
}

.ts-glass-slider .glass-nav {
	position: absolute;
	display: flex;
	gap: 10px;
	z-index: 20;
}

.ts-glass-slider.nav-bottom-right .glass-nav {
	bottom: 30px;
	right: 30px;
}

.ts-glass-slider.nav-bottom-center .glass-nav {
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
}

.ts-glass-slider.nav-sides .glass-nav {
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	justify-content: space-between;
	padding: 0 16px;
}

.ts-glass-slider.nav-center .glass-nav {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	gap: 20px;
}

.ts-glass-slider .glass-nav-btn {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	outline: none;
	padding: 0;
}

.ts-glass-slider .glass-nav-btn:hover {
	background: rgba(255, 255, 255, 0.25);
	transform: scale(1.08);
	border-color: rgba(255, 255, 255, 0.4);
}

.ts-glass-slider .glass-nav-btn:active {
	transform: scale(0.95);
}

.ts-glass-slider .glass-dots {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 20;
	display: flex;
	gap: 8px;
	align-items: center;
}

.ts-glass-slider .glass-dots span {
	width: var(--dot-size, 8px);
	height: var(--dot-size, 8px);
	background: rgba(255, 255, 255, 0.35);
	border-radius: 50px;
	transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	cursor: pointer;
	display: block;
	border: none;
	outline: none;
	padding: 0;
}

.ts-glass-slider.dots-pill .glass-dots span.active {
	background: #ffffff;
	width: 28px;
}

.ts-glass-slider.dots-circle .glass-dots span.active {
	background: #ffffff;
	transform: scale(1.3);
}

.ts-glass-slider.dots-line .glass-dots span {
	width: 20px;
	height: 3px;
	border-radius: 2px;
}

.ts-glass-slider.dots-line .glass-dots span.active {
	background: #ffffff;
	width: 36px;
}

.ts-glass-slider.nav-bottom-right .glass-dots {
	left: 30px;
	transform: none;
	bottom: 30px;
}

.ts-glass-slider.nav-sides .glass-dots,
.ts-glass-slider.nav-center .glass-dots {
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
}

@media (max-width: 1024px) {
	.ts-glass-slider .glass-title {
		font-size: 32px;
	}
}

@media (max-width: 767px) {
	.ts-glass-slider .slide-inner {
		flex-direction: column;
	}

	.ts-glass-slider.layout-reverse .slide-inner {
		flex-direction: column-reverse;
	}

	.ts-glass-slider .glass-panel,
	.ts-glass-slider .image-panel {
		width: 100%;
	}

	.ts-glass-slider .glass-panel {
		height: 55%;
	}

	.ts-glass-slider .image-panel {
		height: 45%;
	}

	.ts-glass-slider .glass-title {
		font-size: 26px;
	}

	.ts-glass-slider .glass-desc {
		font-size: 14px;
	}

	.ts-glass-slider .glass-btn {
		padding: 12px 28px;
		font-size: 13px;
	}

	.ts-glass-slider .glass-nav {
		bottom: 20px;
		right: 20px;
	}

	.ts-glass-slider.nav-bottom-right .glass-nav {
		right: 20px;
		bottom: 20px;
	}

	.ts-glass-slider .glass-nav-btn {
		width: 40px;
		height: 40px;
	}

	.ts-glass-slider .glass-dots {
		bottom: 16px;
	}

	.ts-glass-slider .image-panel::after {
		background: linear-gradient(
			0deg,
			rgba(0, 0, 0, 0.12) 0%,
			transparent 25%
		);
	}
}
