/**
 * DeiraJobs Hero Slider 2 (Immersive) — Dedicated stylesheet
 *
 * Specificity intentionally kept low (.class = 0,1,0) so that Elementor
 * controls ({{WRAPPER}} .class = 0,2,0) always override it. Colors below are
 * fallbacks only: every one of them is exposed in the widget's Style tab.
 *
 * Transform layers never collide: .dh2-bg-wrap = Swiper parallax,
 * .dh2-bg = scroll parallax, .dh2-bg__media = Ken Burns, .dh2-depth = mouse
 * parallax, .dh2-layer = entrance animation.
 */

/* ──────────────────────────────────────────
   WRAPPER & TOKENS
────────────────────────────────────────── */
.deira-hero-2 {
	--dh2-container: 1320px;
	--dh2-anim-dur: 1000ms;
	--dh2-anim-delay: 350ms;
	--dh2-anim-stagger: 140ms;
	--dh2-kb-dur: 14s;
	--dh2-kb-scale: 1.15;
	--dh2-sy: 0px;
	--dh2-vignette: rgba(0, 0, 0, .55);
	position: relative;
	overflow: hidden;
	isolation: isolate;
	box-sizing: border-box;
	background-color: #0b1222;
	color: #ffffff;
}

.deira-hero-2 *,
.deira-hero-2 *::before,
.deira-hero-2 *::after {
	box-sizing: border-box;
}

.deira-hero-2 .djb-ico {
	flex-shrink: 0;
	width: 1.1em;
	height: 1.1em;
}

.deira-hero-2 :is(a, button):focus-visible {
	outline: 2px solid #e9c46a;
	outline-offset: 3px;
}

/* ──────────────────────────────────────────
   SLIDE & BACKGROUND
────────────────────────────────────────── */
.dh2-slide {
	position: relative;
	height: 100vh;
	overflow: hidden;
}

.dh2-bg-wrap {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.dh2-bg {
	position: absolute;
	top: -10%;
	bottom: -10%;
	left: 0;
	right: 0;
	/* Transparent: the hero background (Style › Background) shows through,
	   unless the slide sets its own base color */
	background-color: transparent;
	transform: translate3d(0, var(--dh2-sy), 0);
	will-change: transform;
}

.dh2-bg__media {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	will-change: transform;
}

/* Ken Burns (runs on the active slide and keeps running while it fades out) */
.dh2-ready .swiper-slide-active .dh2-kb-zoom-in,
.dh2-ready .swiper-slide-prev .dh2-kb-zoom-in { animation: dh2-kb-zoom-in var(--dh2-kb-dur) linear both; }
.dh2-ready .swiper-slide-active .dh2-kb-zoom-out,
.dh2-ready .swiper-slide-prev .dh2-kb-zoom-out { animation: dh2-kb-zoom-out var(--dh2-kb-dur) linear both; }
.dh2-ready .swiper-slide-active .dh2-kb-pan-left,
.dh2-ready .swiper-slide-prev .dh2-kb-pan-left { animation: dh2-kb-pan-left var(--dh2-kb-dur) linear both; }
.dh2-ready .swiper-slide-active .dh2-kb-pan-right,
.dh2-ready .swiper-slide-prev .dh2-kb-pan-right { animation: dh2-kb-pan-right var(--dh2-kb-dur) linear both; }

@keyframes dh2-kb-zoom-in   { from { transform: scale(1); } to { transform: scale(var(--dh2-kb-scale)); } }
@keyframes dh2-kb-zoom-out  { from { transform: scale(var(--dh2-kb-scale)); } to { transform: scale(1); } }
@keyframes dh2-kb-pan-left  { from { transform: scale(var(--dh2-kb-scale)) translateX(3%); } to { transform: scale(var(--dh2-kb-scale)) translateX(-3%); } }
@keyframes dh2-kb-pan-right { from { transform: scale(var(--dh2-kb-scale)) translateX(-3%); } to { transform: scale(var(--dh2-kb-scale)) translateX(3%); } }

/* Animated gradient mesh (default background when no media) */
.dh2-mesh {
	--dh2-mesh-a: #ad881e;
	--dh2-mesh-b: #1e3a8a;
	--dh2-mesh-c: #0ea5e9;
	position: absolute;
	inset: -20%;
	opacity: .75;
	filter: blur(70px) saturate(120%);
}

.dh2-mesh span {
	position: absolute;
	width: 55%;
	aspect-ratio: 1;
	border-radius: 50%;
	animation: dh2-blob 22s ease-in-out infinite alternate;
}

.dh2-mesh span:nth-child(1) { top: 5%;  left: 45%; background: radial-gradient(circle, var(--dh2-mesh-a) 0%, transparent 65%); }
.dh2-mesh span:nth-child(2) { top: 40%; left: 5%;  background: radial-gradient(circle, var(--dh2-mesh-b) 0%, transparent 65%); animation-duration: 26s; animation-delay: -6s; }
.dh2-mesh span:nth-child(3) { top: 45%; left: 55%; background: radial-gradient(circle, var(--dh2-mesh-c) 0%, transparent 65%); animation-duration: 30s; animation-delay: -12s; opacity: .7; }

@keyframes dh2-blob {
	0%   { transform: translate(0, 0) scale(1); }
	50%  { transform: translate(-12%, 10%) scale(1.15); }
	100% { transform: translate(10%, -8%) scale(.9); }
}

.dh2-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(75deg, rgba(8, 12, 24, .85) 0%, rgba(8, 12, 24, .25) 75%);
	pointer-events: none;
}

.dh2-vignette .dh2-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: radial-gradient(ellipse at center, transparent 50%, var(--dh2-vignette) 100%);
}

/* Film grain (tiny inline SVG noise) */
.dh2-grain {
	position: absolute;
	inset: -50%;
	z-index: 1;
	opacity: .08;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	animation: dh2-grain 1s steps(4) infinite;
}

@keyframes dh2-grain {
	0%   { transform: translate(0, 0); }
	25%  { transform: translate(-3%, 2%); }
	50%  { transform: translate(2%, -3%); }
	75%  { transform: translate(-2%, -1%); }
	100% { transform: translate(0, 0); }
}

/* ──────────────────────────────────────────
   STAGE & CONTENT POSITION
────────────────────────────────────────── */
.dh2-stage {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	height: 100%;
	max-width: calc(var(--dh2-container) + 80px);
	margin: 0 auto;
	padding: 120px 40px 150px;
}

.dh2-h-left .dh2-stage   { justify-content: flex-start; text-align: left; }
.dh2-h-center .dh2-stage { justify-content: center;     text-align: center; }
.dh2-h-right .dh2-stage  { justify-content: flex-end;   text-align: right; }

.dh2-v-top .dh2-stage    { align-items: flex-start; }
.dh2-v-center .dh2-stage { align-items: center; }
.dh2-v-bottom .dh2-stage { align-items: flex-end; }

.dh2-content {
	position: relative;
	z-index: 3;
	max-width: 820px;
}

.dh2-depth {
	transform: translate3d(var(--dh2-mx, 0px), var(--dh2-my, 0px), 0);
	transition: transform .8s cubic-bezier(.2, .7, .2, 1);
	will-change: transform;
}

/* ──────────────────────────────────────────
   LAYERS
────────────────────────────────────────── */
.dh2-overline {
	--dh2-line: #e9c46a;
	--dh2-line-w: 48px;
	display: inline-flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
	color: #e9c46a;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.dh2-overline::before {
	content: "";
	width: var(--dh2-line-w);
	height: 2px;
	background: var(--dh2-line);
	flex-shrink: 0;
}

.dh2-h-center .dh2-overline::after {
	content: "";
	width: var(--dh2-line-w);
	height: 2px;
	background: var(--dh2-line);
	flex-shrink: 0;
}

.dh2-h-right .dh2-overline { flex-direction: row-reverse; }

.dh2-title {
	margin: 0 0 28px;
	color: #ffffff;
	font-size: clamp(2.6rem, 7vw, 5.5rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.03em;
}

.dh2-line {
	display: block;
	overflow: hidden;
	padding-bottom: .1em;
	margin-bottom: -.1em;
}

.dh2-line__inner { display: inline-block; }

.dh2-title mark {
	--dh2-mark: #e9c46a;
	--dh2-mark-b: #ad881e;
	--dh2-stroke: 2px;
	color: inherit;
	background: none;
	padding: 0;
}

.dh2-mark-gradient .dh2-title mark {
	color: transparent;
	background: linear-gradient(100deg, var(--dh2-mark) 0%, var(--dh2-mark-b) 100%);
	-webkit-background-clip: text;
	background-clip: text;
}

.dh2-mark-outline .dh2-title mark {
	color: transparent;
	-webkit-text-stroke: var(--dh2-stroke) var(--dh2-mark);
}

.dh2-mark-solid .dh2-title mark { color: var(--dh2-mark); }

.dh2-text {
	max-width: 560px;
	margin: 0 0 40px;
	color: rgba(255, 255, 255, .82);
	font-size: 1.25rem;
	line-height: 1.55;
}

.dh2-h-center .dh2-text { margin-inline: auto; }
.dh2-h-right .dh2-text  { margin-left: auto; }

.dh2-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.dh2-h-center .dh2-buttons { justify-content: center; }
.dh2-h-right .dh2-buttons  { justify-content: flex-end; }

.dh2-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 18px 34px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: 999px;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.dh2-btn--primary { color: #0b1222; background-color: #e9c46a; border-color: #e9c46a; }

.dh2-btn--secondary {
	color: #ffffff;
	background-color: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .4);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.dh2-btn .djb-ico { transition: transform .25s ease; }
.dh2-btn:hover .djb-ico,
.dh2-btn:focus-visible .djb-ico { transform: translateX(4px); }

/* ── Entrance animations (only once JS is ready: no-JS keeps everything visible) */
.dh2-ready .dh2-layer[data-anim]:not([data-anim="none"]) { opacity: 0; }

.dh2-ready .swiper-slide-active .dh2-layer[data-anim]:not([data-anim="none"]) {
	animation-duration: var(--dh2-anim-dur);
	animation-timing-function: cubic-bezier(.16, 1, .3, 1);
	animation-delay: calc(var(--dh2-anim-delay) + var(--i, 0) * var(--dh2-anim-stagger));
	animation-fill-mode: both;
}

.dh2-ready .swiper-slide-active [data-anim="fade-up"]    { animation-name: dh2-fade-up; }
.dh2-ready .swiper-slide-active [data-anim="fade-down"]  { animation-name: dh2-fade-down; }
.dh2-ready .swiper-slide-active [data-anim="fade-left"]  { animation-name: dh2-fade-left; }
.dh2-ready .swiper-slide-active [data-anim="fade-right"] { animation-name: dh2-fade-right; }
.dh2-ready .swiper-slide-active [data-anim="zoom-in"]    { animation-name: dh2-zoom-in; }
.dh2-ready .swiper-slide-active [data-anim="zoom-out"]   { animation-name: dh2-zoom-out; }
.dh2-ready .swiper-slide-active [data-anim="blur"]       { animation-name: dh2-blur; }
.dh2-ready .swiper-slide-active [data-anim="mask"]       { animation-name: dh2-mask; }

/* Title + mask: every line rises from its own mask
   (.dh2-layer.dh2-title = 0,4,0, declared later: beats the generic hide rule) */
.dh2-ready .dh2-layer.dh2-title[data-anim="mask"] { opacity: 1; }
.dh2-ready .swiper-slide-active .dh2-title[data-anim="mask"] { animation: none; }

.dh2-ready .dh2-title[data-anim="mask"] .dh2-line__inner { transform: translateY(110%); }

.dh2-ready .swiper-slide-active .dh2-title[data-anim="mask"] .dh2-line__inner {
	animation: dh2-line-up var(--dh2-anim-dur) cubic-bezier(.16, 1, .3, 1) both;
	animation-delay: calc(var(--dh2-anim-delay) + (var(--i, 1) + var(--l, 0)) * var(--dh2-anim-stagger));
}

@keyframes dh2-fade-up    { from { opacity: 0; transform: translateY(40px); }  to { opacity: 1; transform: none; } }
@keyframes dh2-fade-down  { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes dh2-fade-left  { from { opacity: 0; transform: translateX(60px); }  to { opacity: 1; transform: none; } }
@keyframes dh2-fade-right { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes dh2-zoom-in    { from { opacity: 0; transform: scale(.85); }        to { opacity: 1; transform: none; } }
@keyframes dh2-zoom-out   { from { opacity: 0; transform: scale(1.15); }       to { opacity: 1; transform: none; } }
@keyframes dh2-blur       { from { opacity: 0; filter: blur(16px); transform: scale(1.04); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes dh2-mask       { from { opacity: 1; clip-path: inset(0 0 100% 0); transform: translateY(30px); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
@keyframes dh2-line-up    { from { transform: translateY(110%); } to { transform: none; } }

/* ──────────────────────────────────────────
   FLOATING LAYER
────────────────────────────────────────── */
.dh2-float {
	position: absolute;
	right: 8%;
	bottom: 26%;
	z-index: 3;
}

.dh2-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 22px 26px 22px 22px;
	background-color: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 22px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	animation: dh2-bob 6s ease-in-out infinite;
	text-align: left;
}

@keyframes dh2-bob {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-10px); }
}

.dh2-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	font-size: 22px;
	color: #0b1222;
	background-color: #e9c46a;
	border-radius: 16px;
	flex-shrink: 0;
}

.dh2-card__icon svg { width: 1em; height: 1em; fill: currentColor; }

.dh2-card__text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.dh2-card__value { color: #ffffff; font-size: 30px; font-weight: 800; }
.dh2-card__label { color: rgba(255, 255, 255, .78); font-size: 14px; }

.dh2-float__img {
	display: block;
	width: 460px;
	max-width: 42vw;
	height: auto;
}

/* ──────────────────────────────────────────
   NAVIGATION
────────────────────────────────────────── */
.dh2-counter {
	position: absolute;
	top: 110px;
	right: 40px;
	z-index: 2;
	color: rgba(255, 255, 255, .14);
	font-size: 140px;
	font-weight: 800;
	line-height: .8;
	letter-spacing: -.04em;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}

.dh2-side {
	position: absolute;
	top: 50%;
	right: 40px;
	z-index: 6;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transform: translateY(-50%);
}

.dh2-navbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	color: #ffffff;
	background-color: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 999px;
	cursor: pointer;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.dh2-navbtn .djb-ico { width: 20px; height: 20px; }

.dh2-ico--play { display: none; }
.dh2-pause[aria-pressed="true"] .dh2-ico--pause { display: none; }
.dh2-pause[aria-pressed="true"] .dh2-ico--play { display: block; }

.dh2-bottom {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 40px;
	z-index: 6;
	display: flex;
	align-items: flex-end;
	gap: 32px;
	max-width: calc(var(--dh2-container) + 80px);
	margin: 0 auto;
	padding: 0 40px;
}

.dh2-tabs {
	flex: 1 1 auto;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 24px;
	max-width: 900px;
}

.dh2-tab {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	padding: 0;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-align: left;
	color: rgba(255, 255, 255, .55);
	background: none;
	border: 0;
	cursor: pointer;
	transition: color .25s ease;
}

.dh2-tab__track {
	position: relative;
	display: block;
	width: 100%;
	height: 2px;
	overflow: hidden;
	background-color: rgba(255, 255, 255, .22);
	border-radius: 999px;
}

.dh2-tab__fill {
	position: absolute;
	inset: 0;
	background-color: #e9c46a;
	transform: scaleX(0);
	transform-origin: left center;
}

.dh2-tab.is-active .dh2-tab__fill { transform: scaleX(1); }

.dh2-autoplay .dh2-tab.is-active .dh2-tab__fill {
	animation: dh2-fill var(--dh2-delay, 7000ms) linear both;
}

.deira-hero-2.is-paused .dh2-tab.is-active .dh2-tab__fill { animation-play-state: paused; }

@keyframes dh2-fill {
	from { transform: scaleX(0); }
	to   { transform: scaleX(1); }
}

.dh2-tab__text {
	display: flex;
	gap: 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dh2-tab__num { font-variant-numeric: tabular-nums; }
.dh2-tab.is-active .dh2-tab__num { color: #e9c46a; }

.dh2-scroll {
	--dh2-scroll-dot: #e9c46a;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	padding: 0;
	font: inherit;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .25em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .8);
	background: none;
	border: 0;
	cursor: pointer;
}

.dh2-scroll__mouse {
	position: relative;
	width: 24px;
	height: 38px;
	border: 2px solid currentColor;
	border-radius: 14px;
}

.dh2-scroll__mouse::after {
	content: "";
	position: absolute;
	top: 7px;
	left: 50%;
	width: 4px;
	height: 8px;
	margin-left: -2px;
	border-radius: 2px;
	background: var(--dh2-scroll-dot);
	animation: dh2-wheel 1.8s ease-in-out infinite;
}

@keyframes dh2-wheel {
	0%   { opacity: 0; transform: translateY(-3px); }
	30%  { opacity: 1; }
	100% { opacity: 0; transform: translateY(12px); }
}

/* ──────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────── */
@media (max-width: 1024px) {
	.dh2-float { right: 5%; bottom: 22%; }
	.dh2-counter { font-size: 100px; }
}

@media (max-width: 767px) {
	.dh2-stage { padding: 96px 20px 150px; }

	.dh2-float-hide-mobile-yes .dh2-float { display: none; }
	.dh2-float { right: 20px; bottom: 150px; transform: scale(.85); transform-origin: right bottom; }

	.dh2-counter { right: 20px; top: 84px; font-size: 72px; }

	.dh2-side {
		top: auto;
		bottom: 96px;
		right: 20px;
		flex-direction: row;
		transform: none;
	}

	.dh2-navbtn { width: 44px; height: 44px; }

	.dh2-bottom { padding: 0 20px; bottom: 28px; }
	.dh2-tabs { gap: 12px; }
	.dh2-tab__label { display: none; }
	.dh2-scroll { display: none; }

	.dh2-buttons .dh2-btn { flex: 1 1 auto; }
}

/* ──────────────────────────────────────────
   REDUCED MOTION
────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.deira-hero-2 *,
	.deira-hero-2 *::before,
	.deira-hero-2 *::after {
		animation: none !important;
		transition: none !important;
	}

	.dh2-ready .dh2-layer[data-anim] { opacity: 1 !important; }
	.dh2-ready .dh2-title[data-anim="mask"] .dh2-line__inner { transform: none !important; }
	.dh2-depth,
	.dh2-bg { transform: none !important; }
}

/* ──────────────────────────────────────────
   EFFECTS BEHIND THE CONTENT (Style › Background › Effects)
   deira-bgfx-media: images / videos only; deira-bgfx-none: hero background only.
   !important: slide colors come from per-slide controls with a higher specificity.
────────────────────────────────────────── */
.deira-bgfx-media .dh2-overlay,
.deira-bgfx-media .dh2-grain,
.deira-bgfx-media .dh2-mesh,
.deira-bgfx-media .dh2-slide::after,
.deira-bgfx-none .dh2-overlay,
.deira-bgfx-none .dh2-grain,
.deira-bgfx-none .dh2-mesh,
.deira-bgfx-none .dh2-slide::after,
.deira-bgfx-none .dh2-bg__media {
	display: none;
}

.deira-bgfx-media .dh2-bg,
.deira-bgfx-none .dh2-bg {
	background-color: transparent !important;
}
