/* Responsive Nivo Slider 2.0 */
.jx-rnivo {
	--rnivo-radius: 18px;
	--rnivo-accent: #0f766e;
	--rnivo-ink: #f8fafc;
	--rnivo-muted: rgba(248, 250, 252, 0.78);
	--rnivo-overlay: rgba(15, 23, 42, 0.55);
	--rnivo-speed: 500ms;
	--rnivo-height: 360px;
	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	color: var(--rnivo-ink);
}

.jx-rnivo *,
.jx-rnivo *::before,
.jx-rnivo *::after {
	box-sizing: border-box;
}

.jx-rnivo__frame {
	position: relative;
	overflow: hidden;
	border-radius: var(--rnivo-radius);
	background: #0f172a;
	box-shadow: 0 22px 50px rgba(15, 23, 42, 0.22);
	isolation: isolate;
}

.jx-rnivo__stage {
	position: relative;
	width: 100%;
	height: var(--rnivo-height);
	min-height: 180px;
	outline: none;
}

.jx-rnivo--height-auto .jx-rnivo__stage {
	aspect-ratio: 16 / 6;
	height: auto;
}

.jx-rnivo__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 1;
}

.jx-rnivo__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 2;
}

.jx-rnivo__slide.is-leaving {
	z-index: 3;
}

.jx-rnivo__media,
.jx-rnivo__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jx-rnivo__media {
	position: absolute;
	inset: 0;
}

.jx-rnivo__link {
	display: block;
	width: 100%;
	height: 100%;
}

/* Effects */
.jx-rnivo__slide.fx-fade.is-active {
	animation: rnivo-fade-in var(--rnivo-speed) ease both;
}

.jx-rnivo__slide.fx-fade.is-leaving {
	animation: rnivo-fade-out var(--rnivo-speed) ease both;
}

.jx-rnivo__slide.fx-slide.is-active {
	animation: rnivo-slide-in var(--rnivo-speed) ease both;
}

.jx-rnivo__slide.fx-slide.is-leaving {
	animation: rnivo-slide-out var(--rnivo-speed) ease both;
}

.jx-rnivo__slide.fx-fold.is-active .jx-rnivo__media {
	animation: rnivo-fold-in var(--rnivo-speed) ease both;
}

.jx-rnivo__slide.fx-fold.is-leaving .jx-rnivo__media {
	animation: rnivo-fold-out var(--rnivo-speed) ease both;
}

.jx-rnivo__slide.fx-zoom.is-active .jx-rnivo__media {
	animation: rnivo-zoom-in var(--rnivo-speed) ease both;
}

.jx-rnivo__slide.fx-zoom.is-leaving .jx-rnivo__media {
	animation: rnivo-zoom-out var(--rnivo-speed) ease both;
}

@keyframes rnivo-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes rnivo-fade-out {
	from { opacity: 1; }
	to { opacity: 0; }
}

@keyframes rnivo-slide-in {
	from { opacity: 0; transform: translateX(8%); }
	to { opacity: 1; transform: translateX(0); }
}

@keyframes rnivo-slide-out {
	from { opacity: 1; transform: translateX(0); }
	to { opacity: 0; transform: translateX(-8%); }
}

@keyframes rnivo-fold-in {
	from { clip-path: inset(0 100% 0 0); }
	to { clip-path: inset(0 0 0 0); }
}

@keyframes rnivo-fold-out {
	from { clip-path: inset(0 0 0 0); }
	to { clip-path: inset(0 0 0 100%); }
}

@keyframes rnivo-zoom-in {
	from { opacity: 0; transform: scale(1.08); }
	to { opacity: 1; transform: scale(1); }
}

@keyframes rnivo-zoom-out {
	from { opacity: 1; transform: scale(1); }
	to { opacity: 0; transform: scale(0.96); }
}

.jx-rnivo__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
	padding: 0.95rem 1.15rem;
	background: linear-gradient(180deg, transparent, var(--rnivo-caption-bg, var(--rnivo-overlay)));
	color: var(--rnivo-caption-color, var(--rnivo-ink));
	font-family: var(--rnivo-caption-font, inherit);
	font-size: var(--rnivo-caption-size, 0.98rem);
	font-weight: var(--rnivo-caption-weight, normal);
	opacity: var(--rnivo-caption-opacity, 1);
	line-height: 1.45;
}

.jx-rnivo__caption[hidden] {
	display: none !important;
}

.jx-rnivo__arrow {
	position: absolute;
	top: 50%;
	z-index: 6;
	transform: translateY(-50%);
	appearance: none;
	border: 0;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.55);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(8px);
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.jx-rnivo__arrow:hover,
.jx-rnivo__arrow:focus-visible {
	background: var(--rnivo-accent);
}

.jx-rnivo__arrow:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.jx-rnivo__arrow--prev {
	left: 0.85rem;
}

.jx-rnivo__arrow--next {
	right: 0.85rem;
}

.jx-rnivo__dots {
	display: flex;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.85rem 0 0;
}

.jx-rnivo__dot {
	appearance: none;
	border: 0;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.22);
	cursor: pointer;
	padding: 0;
	transition: width 0.18s ease, background-color 0.18s ease;
}

.jx-rnivo__dot.is-active {
	width: 28px;
	background: var(--rnivo-accent);
}

.jx-rnivo__dot:focus-visible {
	outline: 2px solid var(--rnivo-accent);
	outline-offset: 2px;
}

.jx-rnivo__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
	gap: 0.55rem;
	padding: 0.85rem 0 0;
}

.jx-rnivo__thumb {
	appearance: none;
	border: 2px solid transparent;
	padding: 0;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	background: #0f172a;
	aspect-ratio: 16 / 10;
}

.jx-rnivo__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jx-rnivo__thumb.is-active {
	border-color: var(--rnivo-accent);
	box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.25);
}

.jx-rnivo__thumb:focus-visible {
	outline: 2px solid var(--rnivo-accent);
	outline-offset: 2px;
}

.jx-rnivo--theme-light .jx-rnivo__frame {
	background: #e2e8f0;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.jx-rnivo--theme-light .jx-rnivo__arrow {
	background: rgba(255, 255, 255, 0.85);
	color: #0f172a;
}

.jx-rnivo--theme-bar .jx-rnivo__caption {
	background: rgba(15, 23, 42, 0.82);
}

.jx-rnivo--theme-bar .jx-rnivo__frame {
	border-radius: 0;
	box-shadow: none;
}

.jx-rnivo-empty {
	padding: 1rem 1.15rem;
	border-radius: 12px;
	background: #f1f5f9;
	color: #334155;
}

@media (max-width: 640px) {
	.jx-rnivo__arrow {
		width: 40px;
		height: 40px;
	}

	.jx-rnivo__arrow--prev {
		left: 0.55rem;
	}

	.jx-rnivo__arrow--next {
		right: 0.55rem;
	}

	.jx-rnivo__caption {
		font-size: clamp(0.82rem, 3.4vw, 0.95rem);
		padding: 0.75rem 0.85rem;
	}

	.jx-rnivo--height-auto .jx-rnivo__stage {
		aspect-ratio: 16 / 9;
	}

	.jx-rnivo:not(.jx-rnivo--height-auto) .jx-rnivo__stage {
		height: auto;
		aspect-ratio: 16 / 9;
		min-height: 160px;
		max-height: 260px;
	}

	.jx-rnivo__thumbs {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.4rem;
	}

	.jx-rnivo__thumb {
		border-radius: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jx-rnivo__slide,
	.jx-rnivo__slide .jx-rnivo__media,
	.jx-rnivo__dot,
	.jx-rnivo__arrow {
		animation: none !important;
		transition: none !important;
	}
}
