/**
 * Wallxer Hero widget. Mobile first; two columns from 1181px (the design's breakpoint).
 */

.wlx-hero {
	--wlx-hero-offset: 68px;
	--wlx-hero-bg: var(--wlx-tint-3, #f1f2fa);
	--wlx-hero-fade: var(--wlx-bg, #ffffff);
	--wlx-hero-pad-y: clamp(32px, 4vw, 64px);

	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	margin-top: calc(-1 * var(--wlx-hero-offset));
	background-color: var(--wlx-hero-bg);
}

/* Soft fade into the next section. */
.wlx-hero::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 22%;
	background: linear-gradient(180deg, transparent 0%, var(--wlx-hero-fade) 100%);
	pointer-events: none;
}

.wlx-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: calc(var(--wlx-hero-offset) + var(--wlx-hero-pad-y)) clamp(20px, 4vw, 48px) var(--wlx-hero-pad-y);
}

.wlx-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

/* Copy ------------------------------------------------------------------- */

.wlx-hero__copy {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

.wlx-hero__eyebrow {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	margin: 0 0 22px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.08em;
	color: var(--wlx-brand, #5b63d3);
	text-transform: uppercase;
}

.wlx-hero__eyebrow::before {
	content: "";
	flex: none;
	width: 28px;
	height: 2px;
	border-radius: 2px;
	background-color: var(--wlx-brand, #5b63d3);
}

.wlx-hero .wlx-hero__title {
	margin: 0 0 22px;
	font-family: var(--wlx-font-heading, "Anek Bangla", "Hind Siliguri", sans-serif);
	font-size: clamp(32px, 3.4vw, 54px);
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -0.02em;
	color: var(--wlx-ink-strong, #0d0d13);
	text-wrap: balance;
}

.wlx-hero__title .wlx-hl {
	font-family: var(--wlx-font-accent, "Baloo Da 2", "Anek Bangla", sans-serif);
	font-weight: 700;
	color: var(--wlx-brand, #5b63d3);
}

.wlx-hero .wlx-hero__text {
	max-width: 44ch;
	margin: 0 auto 34px;
	font-size: clamp(16.5px, 1.5vw, 18.5px);
	line-height: 1.85;
	color: var(--wlx-muted, #4e4e63);
	text-wrap: pretty;
}

.wlx-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: center;
}

.wlx-hero__link {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	padding: 15px 10px;
	border-bottom: 1.5px solid transparent;
	font-size: 16.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--wlx-ink-2, #26263a);
	text-decoration: none;
	transition: color 0.2s, border-color 0.2s;
}

.wlx-hero__link:hover,
.wlx-hero__link:focus-visible {
	border-color: var(--wlx-brand, #5b63d3);
	color: var(--wlx-brand-ink, #3f46a8);
}

/* Video card -------------------------------------------------------------- */

.wlx-hero__media {
	--wlx-hero-accent: var(--wlx-brand, #5b63d3);
	--wlx-hero-radius: 28px;

	position: relative;
	width: 100%;
	max-width: 680px;
	margin: 0 auto;
}

.wlx-hero__glow {
	position: absolute;
	inset: 6% 4%;
	border-radius: 40px;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--wlx-hero-accent) 55%, transparent), rgba(140, 120, 255, 0.25) 60%, transparent 100%);
	filter: blur(34px);
	pointer-events: none;
}

.wlx-hero__frame {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 3px;
	border-radius: var(--wlx-hero-radius);
	background: var(--wlx-hero-accent);
	box-shadow: 0 30px 70px rgba(40, 44, 120, 0.22);
}

.wlx-hero__spin {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: -1;
	width: 200%;
	aspect-ratio: 1 / 1;
	background: conic-gradient(from 0deg, var(--wlx-hero-accent), #a9aef5, #ffffff, #8b7cf6, var(--wlx-hero-accent), #c9ccf8, var(--wlx-hero-accent));
	transform: translate(-50%, -50%);
}

.wlx-hero__video {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: calc(var(--wlx-hero-radius) - 3px);
	background: var(--wlx-dark, #14141c);
}

.wlx-hero__video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.wlx-hero__play {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	color: #ffffff;
	background: var(--wlx-dark, #14141c);
	cursor: pointer;
}

.wlx-hero__play:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: -6px;
}

/* Two classes: Elementor's own ".elementor img" rule would otherwise win. */
.wlx-hero .wlx-hero__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.22, 0.7, 0.25, 1);
}

.wlx-hero__play:hover .wlx-hero__poster {
	transform: scale(1.04);
}

.wlx-hero__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 20, 28, 0) 40%, rgba(20, 20, 28, 0.7) 100%);
}

/* Small card (phones): smaller play button, moved up so it clears the caption. */
.wlx-hero__ring,
.wlx-hero__icon {
	position: absolute;
	top: 38%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	border-radius: 50%;
}

@media (min-width: 521px) {

	.wlx-hero__ring,
	.wlx-hero__icon {
		top: 50%;
		width: 84px;
		height: 84px;
		margin: -42px 0 0 -42px;
	}
}

.wlx-hero__ring {
	background: rgba(255, 255, 255, 0.35);
}

.wlx-hero__icon {
	display: grid;
	place-items: center;
	color: var(--wlx-hero-accent);
	background: #ffffff;
	box-shadow: 0 14px 34px rgba(20, 20, 40, 0.35);
}

.wlx-hero__icon svg {
	margin-left: 4px;
}

.wlx-hero__caption {
	position: absolute;
	right: 18px;
	bottom: 14px;
	left: 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	align-items: center;
	font-size: clamp(13.5px, 3.4vw, 15.5px);
	font-weight: 600;
	line-height: 1.5;
	color: #ffffff;
	text-align: left;
}

.wlx-hero__badge {
	padding: 4px 11px;
	border-radius: 999px;
	font-size: 13px;
	white-space: nowrap;
	background: var(--wlx-hero-accent);
}

/* Motion (only when the switch is on and the visitor allows it) ------------ */

@media (prefers-reduced-motion: no-preference) {

	.wlx-hero-motion-yes .wlx-hero__glow {
		animation: wlx-hero-glow 4s ease-in-out infinite;
	}

	.wlx-hero-motion-yes .wlx-hero__spin {
		animation: wlx-hero-spin 6s linear infinite;
	}

	.wlx-hero-motion-yes .wlx-hero__ring {
		animation: wlx-hero-ring 2.2s cubic-bezier(0.22, 0.7, 0.25, 1) infinite;
	}
}

@keyframes wlx-hero-spin {

	from {
		transform: translate(-50%, -50%) rotate(0deg);
	}

	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

@keyframes wlx-hero-glow {

	0%,
	100% {
		opacity: 0.55;
		transform: scale(0.96);
	}

	50% {
		opacity: 1;
		transform: scale(1.04);
	}
}

@keyframes wlx-hero-ring {

	0% {
		opacity: 0.9;
		transform: scale(1);
	}

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

/* Two columns ------------------------------------------------------------- */

@media (min-width: 1181px) {

	.wlx-hero {
		min-height: calc(var(--wlx-hero-offset) + clamp(440px, 32vw, 620px));
	}

	.wlx-hero__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	}

	.wlx-hero__copy {
		max-width: 520px;
		margin: 0;
		text-align: left;
	}

	.wlx-hero .wlx-hero__text {
		margin-right: 0;
		margin-left: 0;
	}

	.wlx-hero__actions {
		justify-content: flex-start;
	}

	.wlx-hero__media {
		max-width: none;
	}

	/* Without a video, or when "Centre" is chosen, the copy sits in the middle. */
	.wlx-hero__grid--single {
		grid-template-columns: minmax(0, 1fr);
	}

	.wlx-hero__grid--single .wlx-hero__copy,
	.wlx-hero-align-center .wlx-hero__copy {
		max-width: 720px;
		margin: 0 auto;
		text-align: center;
	}

	.wlx-hero__grid--single .wlx-hero__text,
	.wlx-hero-align-center .wlx-hero__text {
		margin-right: auto;
		margin-left: auto;
	}

	.wlx-hero__grid--single .wlx-hero__actions,
	.wlx-hero-align-center .wlx-hero__actions {
		justify-content: center;
	}
}
