/**
 * Novixa Addons - Premium Hero Slider
 *
 * Every selector starts with .novixa-premium-hero-slider, so nothing here can
 * touch another widget. Elementor controls override the defaults below through
 * higher-specificity selectors; every size is a fluid default (clamp + vw / vh)
 * that only applies until a value is set in the panel.
 *
 * Presets only change custom properties (--nphs-*):
 *   --luxury-dark       navy + gold, serif headings
 *   --modern-minimal    white + charcoal, clean sans
 *   --creative-gradient deep violet to coral gradients
 *
 * Transitions (class on the root): --fade, --slide, --zoom.
 * Slide states: is-active (visible), is-before / is-after (waiting off-screen).
 *
 * Breakpoints (match Elementor): <= 1024px tablet, <= 767px mobile, plus a
 * short-landscape mode (height <= 520px) for phones on their side.
 */

/* ------------------------------------------------------------------ */
/* Root, tokens and presets                                            */
/* ------------------------------------------------------------------ */

.novixa-premium-hero-slider {
	--nphs-speed: 900ms;
	--nphs-delay: 6500ms;
	--nphs-ease: cubic-bezier(.22, .8, .24, 1);

	/* Set by the Content Alignment / Vertical Position controls. */
	--nphs-items: flex-start;
	--nphs-text: left;
	--nphs-valign: center;
	--nphs-angle: 90deg;
	--nphs-a1: .92;
	--nphs-a2: .42;

	/* Fluid sizes. */
	--nphs-pad-x: clamp(96px, 7.2vw, 150px);
	--nphs-heading-size: clamp(36px, min(5.3vw, 9.4vh), 88px);
	--nphs-body-size: clamp(15px, min(1.25vw, 2.5vh), 19px);
	--nphs-btn-size: clamp(13px, min(.95vw, 2vh), 15px);
	--nphs-arrow-size: 56px;

	/* Luxury Dark (default). */
	--nphs-bg: #0a1424;
	--nphs-ov-rgb: 8, 16, 34;
	--nphs-ov-bottom: .6;
	--nphs-ink: #fff;
	--nphs-ink-soft: rgba(255, 255, 255, .82);
	--nphs-accent: #c9a45c;
	--nphs-accent-ink: #0a1424;
	--nphs-hl: #d9b772;
	--nphs-hl-bg: none;
	--nphs-hl-style: italic;
	--nphs-font-heading: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--nphs-heading-weight: 600;
	--nphs-badge-color: #d9b772;
	--nphs-badge-bg: rgba(201, 164, 92, .1);
	--nphs-badge-border: rgba(201, 164, 92, .55);
	--nphs-badge-radius: 2px;
	--nphs-btn-radius: 2px;
	--nphs-btn-bg: #c9a45c;
	--nphs-btn-color: #0a1424;
	--nphs-btn-border: #c9a45c;
	--nphs-btn-bg-h: #e2c486;
	--nphs-btn2-color: #fff;
	--nphs-btn2-border: rgba(255, 255, 255, .55);
	--nphs-btn2-bg-h: #fff;
	--nphs-btn2-color-h: #0a1424;
	--nphs-ctrl-bg: rgba(10, 20, 36, .42);
	--nphs-ctrl-color: #fff;
	--nphs-ctrl-border: rgba(255, 255, 255, .35);
	--nphs-ctrl-bg-h: #c9a45c;
	--nphs-ctrl-color-h: #0a1424;
	--nphs-dot: rgba(255, 255, 255, .45);
	--nphs-track: rgba(255, 255, 255, .18);

	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.novixa-premium-hero-slider--modern-minimal {
	--nphs-bg: #f3f1ed;
	--nphs-ov-rgb: 255, 255, 255;
	--nphs-ov-bottom: .35;
	--nphs-ink: #15171c;
	--nphs-ink-soft: rgba(21, 23, 28, .72);
	--nphs-accent: #15171c;
	--nphs-accent-ink: #fff;
	--nphs-hl: #15171c;
	--nphs-hl-style: normal;
	--nphs-font-heading: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--nphs-heading-weight: 600;
	--nphs-badge-color: #15171c;
	--nphs-badge-bg: #fff;
	--nphs-badge-border: transparent;
	--nphs-badge-radius: 999px;
	--nphs-btn-radius: 999px;
	--nphs-btn-bg: #15171c;
	--nphs-btn-color: #fff;
	--nphs-btn-border: #15171c;
	--nphs-btn-bg-h: #2f333b;
	--nphs-btn2-color: #15171c;
	--nphs-btn2-border: rgba(21, 23, 28, .4);
	--nphs-btn2-bg-h: #15171c;
	--nphs-btn2-color-h: #fff;
	--nphs-ctrl-bg: rgba(255, 255, 255, .85);
	--nphs-ctrl-color: #15171c;
	--nphs-ctrl-border: rgba(21, 23, 28, .12);
	--nphs-ctrl-bg-h: #15171c;
	--nphs-ctrl-color-h: #fff;
	--nphs-dot: rgba(21, 23, 28, .28);
	--nphs-track: rgba(21, 23, 28, .12);
}

.novixa-premium-hero-slider--creative-gradient {
	--nphs-bg: #1a1240;
	--nphs-ov-rgb: 22, 14, 70;
	--nphs-ov-bottom: .55;
	--nphs-ink: #fff;
	--nphs-ink-soft: rgba(255, 255, 255, .86);
	--nphs-accent: #ffb86b;
	--nphs-accent-ink: #1a1240;
	--nphs-hl: #ffb86b;
	--nphs-hl-bg: linear-gradient(110deg, #ffd479 0%, #ff8a5c 52%, #ff5fa2 100%);
	--nphs-hl-style: normal;
	--nphs-font-heading: "Poppins", "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--nphs-heading-weight: 700;
	--nphs-badge-color: #fff;
	--nphs-badge-bg: rgba(255, 255, 255, .14);
	--nphs-badge-border: rgba(255, 255, 255, .34);
	--nphs-badge-radius: 999px;
	--nphs-btn-radius: 14px;
	--nphs-btn-bg: linear-gradient(110deg, #ffd479 0%, #ff8a5c 55%, #ff5fa2 100%);
	--nphs-btn-color: #1a1240;
	--nphs-btn-border: transparent;
	--nphs-btn-bg-h: linear-gradient(110deg, #ffe39d 0%, #ff9d78 55%, #ff7cb4 100%);
	--nphs-btn2-color: #fff;
	--nphs-btn2-border: rgba(255, 255, 255, .5);
	--nphs-btn2-bg-h: rgba(255, 255, 255, .16);
	--nphs-btn2-color-h: #fff;
	--nphs-ctrl-bg: rgba(255, 255, 255, .14);
	--nphs-ctrl-color: #fff;
	--nphs-ctrl-border: rgba(255, 255, 255, .3);
	--nphs-ctrl-bg-h: #ffb86b;
	--nphs-ctrl-color-h: #1a1240;
	--nphs-dot: rgba(255, 255, 255, .45);
	--nphs-track: rgba(255, 255, 255, .2);
}

.novixa-premium-hero-slider *,
.novixa-premium-hero-slider *::before,
.novixa-premium-hero-slider *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ */
/* Stage + slides                                                      */
/* ------------------------------------------------------------------ */

.novixa-premium-hero-slider__stage {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100svh;
	min-height: 560px;
	overflow: hidden;
	isolation: isolate;
	background: var(--nphs-bg);
	color: var(--nphs-ink);
	touch-action: pan-y;
	-webkit-tap-highlight-color: transparent;
}

.novixa-premium-hero-slider__stage:focus-visible {
	outline: 2px solid var(--nphs-accent);
	outline-offset: -4px;
}

.novixa-premium-hero-slider__empty {
	padding: 40px 20px;
	text-align: center;
	border: 1px dashed currentColor;
	opacity: .7;
}

.novixa-premium-hero-slider__slides {
	position: absolute;
	inset: 0;
}

.novixa-premium-hero-slider__slide {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	visibility: hidden;
}

.novixa-premium-hero-slider__slide.is-active {
	z-index: 2;
	visibility: visible;
}

/* ---- Fade (and the base of Zoom) ---- */

.novixa-premium-hero-slider--fade .novixa-premium-hero-slider__slide,
.novixa-premium-hero-slider--zoom .novixa-premium-hero-slider__slide {
	opacity: 0;
	transition: opacity var(--nphs-speed) ease, visibility 0s linear var(--nphs-speed);
}

.novixa-premium-hero-slider--fade .novixa-premium-hero-slider__slide.is-active,
.novixa-premium-hero-slider--zoom .novixa-premium-hero-slider__slide.is-active {
	opacity: 1;
	transition: opacity var(--nphs-speed) ease, visibility 0s;
}

/* ---- Horizontal slide ---- */

.novixa-premium-hero-slider--slide .novixa-premium-hero-slider__slide {
	transform: translate3d(100%, 0, 0);
	transition: transform var(--nphs-speed) var(--nphs-ease), visibility 0s linear var(--nphs-speed);
	will-change: transform;
}

.novixa-premium-hero-slider--slide .novixa-premium-hero-slider__slide.is-before {
	transform: translate3d(-100%, 0, 0);
}

.novixa-premium-hero-slider--slide .novixa-premium-hero-slider__slide.is-after {
	transform: translate3d(100%, 0, 0);
}

.novixa-premium-hero-slider--slide .novixa-premium-hero-slider__slide.is-active {
	transform: none;
	transition: transform var(--nphs-speed) var(--nphs-ease), visibility 0s;
}

.novixa-premium-hero-slider--slide .novixa-premium-hero-slider__slide.is-no-anim {
	transition: none !important;
}

/* ---- Background image ---- */

.novixa-premium-hero-slider__media,
.novixa-premium-hero-slider__media picture {
	position: absolute;
	inset: 0;
	display: block;
}

.novixa-premium-hero-slider__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

/* Elementor / themes ship `.elementor img { height:auto; max-width:100% }`
   (higher specificity than the single class above). That left the photo at its
   natural aspect ratio on tablet and phone, with the rest of the stage showing
   the dark background. Re-assert full-bleed cover with a stronger selector. */
.novixa-premium-hero-slider .novixa-premium-hero-slider__media picture {
	width: 100%;
	height: 100%;
}

.novixa-premium-hero-slider .novixa-premium-hero-slider__media .novixa-premium-hero-slider__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
}

/* Zoom: the incoming image settles from 1.16x to 1x and keeps easing while it is shown. */
.novixa-premium-hero-slider--zoom .novixa-premium-hero-slider__img {
	transform: scale(1.16);
	transition: transform calc(var(--nphs-speed) + var(--nphs-delay)) cubic-bezier(.2, .6, .3, 1);
}

.novixa-premium-hero-slider--zoom .novixa-premium-hero-slider__slide.is-active .novixa-premium-hero-slider__img {
	transform: scale(1);
}

/* ---- Overlay ---- */

.novixa-premium-hero-slider__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(0deg, rgba(var(--nphs-ov-rgb), var(--nphs-ov-bottom)) 0%, rgba(var(--nphs-ov-rgb), 0) 38%),
		linear-gradient(var(--nphs-angle), rgba(var(--nphs-ov-rgb), var(--nphs-a1)) 0%, rgba(var(--nphs-ov-rgb), var(--nphs-a2)) 62%, rgba(var(--nphs-ov-rgb), calc(var(--nphs-a2) * .5)) 100%);
}

.novixa-premium-hero-slider--creative-gradient .novixa-premium-hero-slider__overlay {
	background:
		linear-gradient(0deg, rgba(var(--nphs-ov-rgb), var(--nphs-ov-bottom)) 0%, rgba(var(--nphs-ov-rgb), 0) 40%),
		linear-gradient(var(--nphs-angle), rgba(22, 14, 70, var(--nphs-a1)) 0%, rgba(110, 38, 150, calc(var(--nphs-a1) * .62)) 55%, rgba(255, 110, 90, calc(var(--nphs-a2) * .55)) 100%);
}

/* A per-slide custom overlay drops the preset gradient so the colour or
   gradient chosen in Elementor is the only thing painted. */
.novixa-premium-hero-slider__overlay.is-custom {
	background: none;
}

.novixa-premium-hero-slider--creative-gradient .novixa-premium-hero-slider__overlay.is-custom {
	background: none;
}

/* ------------------------------------------------------------------ */
/* Content                                                             */
/* ------------------------------------------------------------------ */

.novixa-premium-hero-slider__inner {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: var(--nphs-valign);
	align-items: var(--nphs-items);
	height: 100%;
	padding: clamp(88px, 14vh, 150px) var(--nphs-pad-x) clamp(104px, 16vh, 170px);
}

.novixa-premium-hero-slider__content {
	display: flex;
	flex-direction: column;
	align-items: var(--nphs-items);
	width: 100%;
	max-width: min(780px, 100%);
	min-width: 0;
	text-align: var(--nphs-text);
}

.novixa-premium-hero-slider__badge {
	display: inline-flex;
	align-items: center;
	margin: 0 0 clamp(16px, 2.8vh, 28px);
	padding: .6em 1.2em;
	border: 1px solid var(--nphs-badge-border);
	border-radius: var(--nphs-badge-radius);
	background: var(--nphs-badge-bg);
	color: var(--nphs-badge-color);
	font-size: clamp(11px, .85vw, 13px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .2em;
	text-transform: uppercase;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.novixa-premium-hero-slider__heading {
	margin: 0 0 clamp(16px, 3vh, 30px);
	padding: 0;
	color: var(--nphs-ink);
	font-family: var(--nphs-font-heading);
	font-size: var(--nphs-heading-size);
	font-weight: var(--nphs-heading-weight);
	line-height: 1.08;
	letter-spacing: -.01em;
	overflow-wrap: break-word;
	text-wrap: balance;
}

.novixa-premium-hero-slider__hl {
	color: var(--nphs-hl);
	font-style: var(--nphs-hl-style);
	background: var(--nphs-hl-bg);
	-webkit-background-clip: text;
	background-clip: text;
}

.novixa-premium-hero-slider--creative-gradient .novixa-premium-hero-slider__hl {
	color: transparent;
	-webkit-text-fill-color: transparent;
}

/* Gradient text (Style > Heading). The gradient itself comes from the
   Elementor control; these rules clip it to the glyphs. */
.novixa-premium-hero-slider--heading-gradient .novixa-premium-hero-slider__heading {
	color: transparent;
	-webkit-text-fill-color: transparent;
	-webkit-background-clip: text;
	background-clip: text;
}

.novixa-premium-hero-slider--heading-gradient .novixa-premium-hero-slider__hl {
	-webkit-text-fill-color: var(--nphs-hl);
}

.novixa-premium-hero-slider--heading-gradient.novixa-premium-hero-slider--creative-gradient .novixa-premium-hero-slider__hl {
	-webkit-text-fill-color: transparent;
}

.novixa-premium-hero-slider--hl-gradient .novixa-premium-hero-slider__hl {
	color: transparent;
	-webkit-text-fill-color: transparent;
	-webkit-background-clip: text;
	background-clip: text;
}

.novixa-premium-hero-slider__desc {
	max-width: 600px;
	margin: 0 0 clamp(24px, 4.4vh, 42px);
	color: var(--nphs-ink-soft);
	font-size: var(--nphs-body-size);
	line-height: 1.7;
}

.novixa-premium-hero-slider__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: var(--nphs-items);
	gap: 14px 22px;
}

/* ---- Buttons ---- */

.novixa-premium-hero-slider__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .7em;
	min-height: 48px;
	padding: .95em 2em;
	border: 1.5px solid transparent;
	border-radius: var(--nphs-btn-radius);
	font-size: var(--nphs-btn-size);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .06em;
	text-decoration: none;
	cursor: pointer;
	transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.novixa-premium-hero-slider__btn svg {
	display: block;
	width: 1.2em;
	height: 1.2em;
	transition: transform .3s ease;
}

.novixa-premium-hero-slider__btn:hover {
	transform: translateY(-2px);
}

.novixa-premium-hero-slider__btn:hover svg {
	transform: translateX(3px);
}

.novixa-premium-hero-slider__btn--primary {
	border-color: var(--nphs-btn-border);
	background: var(--nphs-btn-bg);
	color: var(--nphs-btn-color);
}

.novixa-premium-hero-slider__btn--primary:hover,
.novixa-premium-hero-slider__btn--primary:focus-visible {
	background: var(--nphs-btn-bg-h);
	color: var(--nphs-btn-color);
	box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
}

.novixa-premium-hero-slider__btn--secondary {
	border-color: var(--nphs-btn2-border);
	background: transparent;
	color: var(--nphs-btn2-color);
}

.novixa-premium-hero-slider__btn--secondary:hover,
.novixa-premium-hero-slider__btn--secondary:focus-visible {
	border-color: var(--nphs-btn2-bg-h);
	background: var(--nphs-btn2-bg-h);
	color: var(--nphs-btn2-color-h);
}

/* ---- Video button ---- */

.novixa-premium-hero-slider__video {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--nphs-ink);
	font: inherit;
	font-size: var(--nphs-btn-size);
	font-weight: 600;
	letter-spacing: .06em;
	cursor: pointer;
}

/* Themes and the Elementor kit style every <button> (blue background on
   hover / focus / active, padding, radius). The video trigger is just an icon
   plus a label, so strip all of that in every state. */
.novixa-premium-hero-slider .novixa-premium-hero-slider__video,
.novixa-premium-hero-slider .novixa-premium-hero-slider__video:hover,
.novixa-premium-hero-slider .novixa-premium-hero-slider__video:focus,
.novixa-premium-hero-slider .novixa-premium-hero-slider__video:focus-visible,
.novixa-premium-hero-slider .novixa-premium-hero-slider__video:active {
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	text-decoration: none;
	text-transform: none;
	-webkit-appearance: none;
	appearance: none;
}

.novixa-premium-hero-slider .novixa-premium-hero-slider__video:hover,
.novixa-premium-hero-slider .novixa-premium-hero-slider__video:focus,
.novixa-premium-hero-slider .novixa-premium-hero-slider__video:active {
	color: var(--nphs-ink);
}

.novixa-premium-hero-slider__video-icon {
	position: relative;
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	border: 1.5px solid var(--nphs-accent);
	border-radius: 50%;
	background: rgba(var(--nphs-ov-rgb), .25);
	color: var(--nphs-accent);
	transition: background .3s ease, color .3s ease, transform .3s ease;
}

/* Pulse ring: only when switched on in the widget. */
.novixa-premium-hero-slider--video-pulse .novixa-premium-hero-slider__video-icon::after {
	content: "";
	position: absolute;
	inset: -1.5px;
	border: 1.5px solid var(--nphs-accent);
	border-radius: 50%;
	opacity: 0;
	animation: nphs-pulse 2.6s ease-out infinite;
}

.novixa-premium-hero-slider__video-icon svg {
	display: block;
	width: 42%;
	height: 42%;
	margin-left: 6%;
}

.novixa-premium-hero-slider__video:hover .novixa-premium-hero-slider__video-icon,
.novixa-premium-hero-slider__video:focus-visible .novixa-premium-hero-slider__video-icon {
	background: var(--nphs-accent);
	color: var(--nphs-accent-ink);
	transform: scale(1.06);
}

.novixa-premium-hero-slider--video-static .novixa-premium-hero-slider__video:hover .novixa-premium-hero-slider__video-icon,
.novixa-premium-hero-slider--video-static .novixa-premium-hero-slider__video:focus-visible .novixa-premium-hero-slider__video-icon {
	transform: none;
}

@keyframes nphs-pulse {
	0% {
		opacity: .7;
		transform: scale(1);
	}

	100% {
		opacity: 0;
		transform: scale(1.6);
	}
}

.novixa-premium-hero-slider__btn:focus-visible,
.novixa-premium-hero-slider__video:focus-visible,
.novixa-premium-hero-slider__arrow:focus-visible,
.novixa-premium-hero-slider__dot:focus-visible,
.novixa-premium-hero-slider__thumb:focus-visible,
.novixa-premium-hero-slider__pause:focus-visible {
	outline: 2px solid var(--nphs-accent);
	outline-offset: 3px;
}

/* ---- Content reveal (only the visible slide animates in) ---- */

.novixa-premium-hero-slider__reveal {
	opacity: 0;
	transform: translate3d(0, 26px, 0);
	transition: opacity .45s ease, transform .45s ease;
}

.novixa-premium-hero-slider__slide.is-active .novixa-premium-hero-slider__reveal {
	opacity: 1;
	transform: none;
	transition:
		opacity .9s var(--nphs-ease) calc(var(--nphs-speed) * .35 + var(--nphs-d, 0s)),
		transform .9s var(--nphs-ease) calc(var(--nphs-speed) * .35 + var(--nphs-d, 0s));
}

.novixa-premium-hero-slider__heading {
	--nphs-d: .1s;
}

.novixa-premium-hero-slider__desc {
	--nphs-d: .2s;
}

.novixa-premium-hero-slider__actions {
	--nphs-d: .3s;
}

/* ------------------------------------------------------------------ */
/* Arrows                                                              */
/* ------------------------------------------------------------------ */

.novixa-premium-hero-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--nphs-arrow-size);
	height: var(--nphs-arrow-size);
	margin: 0;
	padding: 0;
	border: 1px solid var(--nphs-ctrl-border);
	border-radius: 50%;
	background: var(--nphs-ctrl-bg);
	color: var(--nphs-ctrl-color);
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background .3s ease, color .3s ease, border-color .3s ease, opacity .3s ease;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	-webkit-appearance: none;
	appearance: none;
}

.novixa-premium-hero-slider__arrow svg {
	display: block;
	width: 40%;
	height: 40%;
}

.novixa-premium-hero-slider__arrow--prev {
	left: clamp(12px, 2.2vw, 40px);
}

.novixa-premium-hero-slider__arrow--next {
	right: clamp(12px, 2.2vw, 40px);
}

.novixa-premium-hero-slider__arrow:hover:not(:disabled),
.novixa-premium-hero-slider__arrow:focus-visible {
	border-color: var(--nphs-ctrl-bg-h);
	background: var(--nphs-ctrl-bg-h);
	color: var(--nphs-ctrl-color-h);
}

.novixa-premium-hero-slider__arrow:disabled {
	opacity: .35;
	cursor: default;
}

/* ------------------------------------------------------------------ */
/* Bottom bar: counter + pause | dots | thumbnails                     */
/* ------------------------------------------------------------------ */

.novixa-premium-hero-slider__bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 6;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	padding: 0 var(--nphs-pad-x) clamp(22px, 4vh, 40px);
	pointer-events: none;
}

.novixa-premium-hero-slider__bar > * {
	pointer-events: auto;
}

.novixa-premium-hero-slider__bar-start {
	display: flex;
	align-items: center;
	grid-column: 1;
	gap: 18px;
}

.novixa-premium-hero-slider__dots {
	display: flex;
	align-items: center;
	grid-column: 2;
}

.novixa-premium-hero-slider__thumbs {
	display: flex;
	grid-column: 3;
	justify-self: end;
	max-width: 100%;
	gap: 10px;
	overflow-x: auto;
	padding: 4px;
	scrollbar-width: none;
}

.novixa-premium-hero-slider__thumbs::-webkit-scrollbar {
	display: none;
}

/* ---- Counter ---- */

.novixa-premium-hero-slider__counter {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--nphs-ink);
	font-size: clamp(14px, 1.1vw, 17px);
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	letter-spacing: .14em;
}

.novixa-premium-hero-slider__counter-line {
	display: block;
	width: clamp(28px, 3.4vw, 56px);
	height: 1px;
	background: currentColor;
	opacity: .5;
}

.novixa-premium-hero-slider__counter-total {
	opacity: .6;
}

/* ---- Pause / play ---- */

.novixa-premium-hero-slider__pause {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--nphs-ctrl-border);
	border-radius: 50%;
	background: transparent;
	color: var(--nphs-ink);
	cursor: pointer;
	transition: background .3s ease, color .3s ease;
	-webkit-appearance: none;
	appearance: none;
}

.novixa-premium-hero-slider__pause:hover {
	background: var(--nphs-ctrl-bg-h);
	color: var(--nphs-ctrl-color-h);
}

.novixa-premium-hero-slider__pause-icon {
	display: grid;
	grid-area: 1 / 1;
	place-items: center;
}

.novixa-premium-hero-slider__pause-icon svg {
	display: block;
	width: 16px;
	height: 16px;
}

.novixa-premium-hero-slider__pause-icon--play {
	display: none;
}

.novixa-premium-hero-slider.is-user-paused .novixa-premium-hero-slider__pause-icon--pause {
	display: none;
}

.novixa-premium-hero-slider.is-user-paused .novixa-premium-hero-slider__pause-icon--play {
	display: grid;
}

/* ---- Dots (44px touch target, small visible mark) ---- */

.novixa-premium-hero-slider__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 44px;
	margin: 0;
	padding: 0 4px;
	border: 0;
	background: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.novixa-premium-hero-slider__dot-mark {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 99px;
	background: var(--nphs-dot);
	transition: width .4s var(--nphs-ease), background .3s ease;
}

.novixa-premium-hero-slider__dot:hover .novixa-premium-hero-slider__dot-mark {
	background: var(--nphs-accent);
}

.novixa-premium-hero-slider__dot.is-active .novixa-premium-hero-slider__dot-mark {
	width: 34px;
	background: var(--nphs-accent);
}

/* ---- Thumbnails ---- */

.novixa-premium-hero-slider__thumb {
	position: relative;
	flex: 0 0 auto;
	width: 88px;
	height: 56px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 2px solid var(--nphs-ctrl-border);
	border-radius: 6px;
	background: var(--nphs-bg);
	opacity: .72;
	cursor: pointer;
	transition: opacity .3s ease, border-color .3s ease, transform .3s ease;
	-webkit-appearance: none;
	appearance: none;
}

.novixa-premium-hero-slider__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.novixa-premium-hero-slider__thumb-num {
	position: absolute;
	left: 6px;
	bottom: 4px;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
}

.novixa-premium-hero-slider__thumb:hover {
	opacity: 1;
	transform: translateY(-2px);
}

.novixa-premium-hero-slider__thumb.is-active {
	border-color: var(--nphs-accent);
	opacity: 1;
}

/* ------------------------------------------------------------------ */
/* Progress bar                                                        */
/* ------------------------------------------------------------------ */

.novixa-premium-hero-slider__progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 7;
	height: 3px;
	background: var(--nphs-track);
	pointer-events: none;
}

.novixa-premium-hero-slider__progress-bar {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--nphs-accent);
	transform: scaleX(0);
	transform-origin: left center;
}

.novixa-premium-hero-slider__progress-bar.is-running {
	animation: nphs-progress var(--nphs-delay) linear forwards;
}

.novixa-premium-hero-slider.is-paused .novixa-premium-hero-slider__progress-bar {
	animation-play-state: paused;
}

@keyframes nphs-progress {
	from {
		transform: scaleX(0);
	}

	to {
		transform: scaleX(1);
	}
}

/* ------------------------------------------------------------------ */
/* Video popup (appended to <body>, so it carries its own tokens)      */
/* ------------------------------------------------------------------ */

.novixa-premium-hero-slider__modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(12px, 4vw, 48px);
	background: rgba(4, 8, 16, .9);
	opacity: 0;
	transition: opacity .3s ease;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.novixa-premium-hero-slider__modal.is-open {
	opacity: 1;
}

.novixa-premium-hero-slider__modal-box {
	position: relative;
	width: min(1100px, 100%, calc((100vh - 96px) * 1.7778));
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 10px;
	background: #000;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
	transform: scale(.96);
	transition: transform .35s ease;
}

.novixa-premium-hero-slider__modal.is-open .novixa-premium-hero-slider__modal-box {
	transform: none;
}

.novixa-premium-hero-slider__modal-box iframe,
.novixa-premium-hero-slider__modal-box video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

.novixa-premium-hero-slider__modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .4);
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.novixa-premium-hero-slider__modal-close:hover,
.novixa-premium-hero-slider__modal-close:focus-visible {
	background: #fff;
	color: #000;
	outline: none;
}

/* Content Width: Full Width lets the text block span the whole slide
   (inside the slide padding) instead of the boxed max-width. */
.novixa-premium-hero-slider.novixa-premium-hero-slider--content-full .novixa-premium-hero-slider__content {
	max-width: 100%;
}

/* ================================================================== */
/* Tablet (<= 1024px)                                                  */
/* ================================================================== */

@media (max-width: 1024px) {
	.novixa-premium-hero-slider {
		/* Side padding clears the 40px arrows (8px offset + 8px gap). */
		--nphs-pad-x: clamp(58px, 6.4vw, 76px);
		--nphs-heading-size: clamp(34px, 6.4vw, 64px);
		--nphs-body-size: clamp(15px, 2.1vw, 18px);
		--nphs-arrow-size: 40px;
	}

	.novixa-premium-hero-slider__inner {
		padding-top: clamp(84px, 12vh, 130px);
		padding-bottom: clamp(100px, 15vh, 150px);
	}

	.novixa-premium-hero-slider__content {
		max-width: min(640px, 100%);
	}

	/* Extra bottom shade keeps the text readable over busy photos. */
	.novixa-premium-hero-slider__overlay:not(.is-custom)::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(0deg, rgba(var(--nphs-ov-rgb), .55) 0%, rgba(var(--nphs-ov-rgb), .2) 50%, rgba(var(--nphs-ov-rgb), 0) 100%);
	}

	.novixa-premium-hero-slider__thumb {
		width: 68px;
		height: 46px;
	}

	.novixa-premium-hero-slider__arrow--prev {
		left: 8px;
	}

	.novixa-premium-hero-slider__arrow--next {
		right: 8px;
	}
}

/* ================================================================== */
/* Tablet "Stacked" layout (768px - 1024px)                            */
/* ================================================================== */

@media (min-width: 768px) and (max-width: 1024px) {
	/* Stacked layout: the whole photo is shown on top (never cropped) and the
	   text sits below it on the slider background colour. */
	.novixa-premium-hero-slider.novixa-premium-hero-slider--tablet-stacked .novixa-premium-hero-slider__slide {
		display: flex;
		flex-direction: column;
	}

	.novixa-premium-hero-slider.novixa-premium-hero-slider--tablet-stacked .novixa-premium-hero-slider__media,
	.novixa-premium-hero-slider.novixa-premium-hero-slider--tablet-stacked .novixa-premium-hero-slider__media picture {
		position: relative;
		inset: auto;
		flex: 0 0 auto;
		width: 100%;
		height: auto;
	}

	.novixa-premium-hero-slider.novixa-premium-hero-slider--tablet-stacked .novixa-premium-hero-slider__media .novixa-premium-hero-slider__img {
		position: relative;
		inset: auto;
		width: 100%;
		height: auto;
		max-height: 50svh;
		object-fit: contain;
		object-position: center top;
	}

	.novixa-premium-hero-slider.novixa-premium-hero-slider--tablet-stacked .novixa-premium-hero-slider__overlay:not(.is-custom) {
		display: none;
	}

	.novixa-premium-hero-slider.novixa-premium-hero-slider--tablet-stacked .novixa-premium-hero-slider__inner {
		flex: 1 1 auto;
		height: auto;
		justify-content: flex-start;
		padding-top: 32px;
	}
}

/* ================================================================== */
/* Mobile (<= 767px)                                                   */
/* ================================================================== */

@media (max-width: 767px) {
	.novixa-premium-hero-slider {
		--nphs-pad-x: 22px;
		--nphs-heading-size: clamp(30px, 9.2vw, 44px);
		--nphs-body-size: 15px;
		--nphs-arrow-size: 44px;
	}

	.novixa-premium-hero-slider__stage {
		min-height: 600px;
	}

	.novixa-premium-hero-slider__inner {
		padding-top: 76px;
		padding-bottom: 112px;
	}

	/* Cover layout: text spans the full width on a phone, shade top-to-bottom. */
	.novixa-premium-hero-slider:not(.novixa-premium-hero-slider--mobile-stacked) .novixa-premium-hero-slider__overlay:not(.is-custom)::after {
		background: linear-gradient(0deg, rgba(var(--nphs-ov-rgb), .82) 0%, rgba(var(--nphs-ov-rgb), .55) 48%, rgba(var(--nphs-ov-rgb), .2) 100%);
	}

	.novixa-premium-hero-slider__content {
		max-width: 100%;
	}

	.novixa-premium-hero-slider__badge {
		font-size: 11px;
		letter-spacing: .16em;
	}

	.novixa-premium-hero-slider__desc {
		max-width: 100%;
		line-height: 1.6;
	}

	.novixa-premium-hero-slider__actions {
		width: 100%;
		gap: 12px;
	}

	.novixa-premium-hero-slider__btn {
		flex: 1 1 auto;
		min-width: 0;
		min-height: 46px;
		padding: .85em 1.5em;
		text-align: center;
	}

	.novixa-premium-hero-slider__video {
		flex: 1 1 100%;
		justify-content: flex-start;
	}

	/* Arrows are off on phones (swipe + dots) unless the switch is on. */
	.novixa-premium-hero-slider__arrow {
		display: none;
	}

	.novixa-premium-hero-slider--arrows-mobile .novixa-premium-hero-slider__arrow {
		display: inline-flex;
		top: auto;
		bottom: 14px;
		transform: none;
	}

	.novixa-premium-hero-slider--arrows-mobile .novixa-premium-hero-slider__arrow--prev {
		left: 14px;
	}

	.novixa-premium-hero-slider--arrows-mobile .novixa-premium-hero-slider__arrow--next {
		right: 14px;
	}

	.novixa-premium-hero-slider--arrows-mobile .novixa-premium-hero-slider__bar {
		padding-right: 70px;
		padding-left: 70px;
	}

	/* Bar: counter + pause on the left, dots on the right, thumbnails on their own row. */
	.novixa-premium-hero-slider__bar {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 4px 12px;
		padding-bottom: 14px;
	}

	.novixa-premium-hero-slider__bar-start {
		grid-column: 1;
		grid-row: 2;
		gap: 12px;
	}

	.novixa-premium-hero-slider__dots {
		grid-column: 2;
		grid-row: 2;
	}

	.novixa-premium-hero-slider__thumbs {
		display: none;
		grid-column: 1 / -1;
		grid-row: 1;
		justify-self: stretch;
	}

	.novixa-premium-hero-slider--thumbs-mobile .novixa-premium-hero-slider__thumbs {
		display: flex;
	}

	.novixa-premium-hero-slider--thumbs-mobile .novixa-premium-hero-slider__inner {
		padding-bottom: 168px;
	}

	.novixa-premium-hero-slider__thumb {
		width: 60px;
		height: 42px;
	}

	.novixa-premium-hero-slider__counter-line {
		width: 24px;
	}

	/* Stacked layout: the whole photo is shown on top (never cropped) and the
	   text sits below it on the slider background colour. */
	.novixa-premium-hero-slider.novixa-premium-hero-slider--mobile-stacked .novixa-premium-hero-slider__slide {
		display: flex;
		flex-direction: column;
	}

	.novixa-premium-hero-slider.novixa-premium-hero-slider--mobile-stacked .novixa-premium-hero-slider__media,
	.novixa-premium-hero-slider.novixa-premium-hero-slider--mobile-stacked .novixa-premium-hero-slider__media picture {
		position: relative;
		inset: auto;
		flex: 0 0 auto;
		width: 100%;
		height: auto;
	}

	.novixa-premium-hero-slider.novixa-premium-hero-slider--mobile-stacked .novixa-premium-hero-slider__media .novixa-premium-hero-slider__img {
		position: relative;
		inset: auto;
		width: 100%;
		height: auto;
		max-height: 50svh;
		object-fit: contain;
		object-position: center top;
	}

	.novixa-premium-hero-slider.novixa-premium-hero-slider--mobile-stacked .novixa-premium-hero-slider__overlay:not(.is-custom) {
		display: none;
	}

	.novixa-premium-hero-slider.novixa-premium-hero-slider--mobile-stacked .novixa-premium-hero-slider__inner {
		flex: 1 1 auto;
		height: auto;
		justify-content: flex-start;
		padding-top: 24px;
	}
}

/* ================================================================== */
/* Short landscape: phones on their side, very short windows           */
/* ================================================================== */

@media (max-height: 520px) and (orientation: landscape) {
	.novixa-premium-hero-slider {
		--nphs-heading-size: clamp(24px, 8.4vh, 40px);
		--nphs-body-size: 13px;
		--nphs-arrow-size: 40px;
	}

	.novixa-premium-hero-slider__stage {
		min-height: 300px;
	}

	.novixa-premium-hero-slider__inner {
		padding-top: 44px;
		padding-bottom: 64px;
	}

	.novixa-premium-hero-slider__content {
		max-width: min(560px, 80%);
	}

	.novixa-premium-hero-slider__badge {
		margin-bottom: 10px;
		padding: .45em 1em;
	}

	.novixa-premium-hero-slider__heading {
		margin-bottom: 10px;
	}

	.novixa-premium-hero-slider__desc {
		display: -webkit-box;
		margin-bottom: 14px;
		line-height: 1.5;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.novixa-premium-hero-slider__btn {
		min-height: 40px;
		padding: .6em 1.4em;
	}

	.novixa-premium-hero-slider__video-icon {
		width: 40px;
		height: 40px;
	}

	.novixa-premium-hero-slider__bar {
		padding-bottom: 8px;
	}

	.novixa-premium-hero-slider__thumbs {
		display: none;
	}

	.novixa-premium-hero-slider__modal-box {
		width: min(1100px, 100%, calc((100vh - 24px) * 1.7778));
	}

	/* Landscape phones keep their arrows on the sides, like tablets. */
	.novixa-premium-hero-slider__arrow {
		top: 50%;
		bottom: auto;
		transform: translateY(-50%);
	}
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                      */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.novixa-premium-hero-slider__slide,
	.novixa-premium-hero-slider__img,
	.novixa-premium-hero-slider__reveal,
	.novixa-premium-hero-slider__slide.is-active .novixa-premium-hero-slider__reveal,
	.novixa-premium-hero-slider__btn,
	.novixa-premium-hero-slider__btn svg,
	.novixa-premium-hero-slider__arrow,
	.novixa-premium-hero-slider__dot-mark,
	.novixa-premium-hero-slider__thumb,
	.novixa-premium-hero-slider__video-icon,
	.novixa-premium-hero-slider__modal,
	.novixa-premium-hero-slider__modal-box {
		transition: none !important;
	}

	.novixa-premium-hero-slider--zoom .novixa-premium-hero-slider__img,
	.novixa-premium-hero-slider--zoom .novixa-premium-hero-slider__slide.is-active .novixa-premium-hero-slider__img {
		transform: none;
	}

	.novixa-premium-hero-slider__reveal {
		opacity: 1;
		transform: none;
	}

	.novixa-premium-hero-slider__video-icon::after,
	.novixa-premium-hero-slider__progress-bar.is-running {
		animation: none;
	}

	.novixa-premium-hero-slider__progress {
		display: none;
	}
}
