.hayat-hero-slider {
	--hayat-slider-height: 100vh;
	--hayat-panel-width: 38%;
	--hayat-overlay-color: #071626;
	--hayat-overlay-opacity: 0.88;
	--hayat-counter-side: 88px;
	--hayat-counter-bottom: 44px;
	--hayat-autoplay-delay: 6000ms;
	--hayat-site-container-width: 1280px;
	--hayat-site-container-gutter: 32px;
	position: relative;
	width: 100%;
	height: var(--hayat-slider-height);
	min-height: 620px;
	overflow: hidden;
	background: #071626;
	isolation: isolate;
}

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

.hayat-hero-slider .hayat-hero-slider__swiper,
.hayat-hero-slider .hayat-hero-slider__swiper > .swiper-wrapper,
.hayat-hero-slider .hayat-hero-slider__slide {
	width: 100%;
	height: 100%;
}

.hayat-hero-slider .hayat-hero-slider__slide {
	position: relative;
	display: block;
	overflow: hidden;
	background: #071626;
}

/*
 * The image is a true full-bleed layer. It fills the complete slide and sits
 * behind the content panel, matching the supplied reference rather than
 * behaving like a separate right-hand column.
 */
.hayat-hero-slider .hayat-hero-slider__media {
	position: absolute;
	z-index: 0;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #111;
}

.hayat-hero-slider .hayat-hero-slider__media::after {
	content: '';
	position: absolute;
	z-index: 1;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		var(--hayat-overlay-color) 0%,
		var(--hayat-overlay-color) calc(var(--hayat-panel-width) - 2%),
		transparent calc(var(--hayat-panel-width) + 18%)
	);
	opacity: var(--hayat-overlay-opacity);
}

.hayat-hero-slider--panel-right .hayat-hero-slider__media::after {
	background: linear-gradient(
		270deg,
		var(--hayat-overlay-color) 0%,
		var(--hayat-overlay-color) calc(var(--hayat-panel-width) - 2%),
		transparent calc(var(--hayat-panel-width) + 18%)
	);
}

/* Higher specificity intentionally wins over Elementor's generic img { height:auto }. */
.hayat-hero-slider .hayat-hero-slider__media .hayat-hero-slider__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	object-fit: cover;
	object-position: center center;
	transform: scale(1.002);
}

.hayat-hero-slider .hayat-hero-slider__media--left-top .hayat-hero-slider__image { object-position: left top; }
.hayat-hero-slider .hayat-hero-slider__media--left-center .hayat-hero-slider__image { object-position: left center; }
.hayat-hero-slider .hayat-hero-slider__media--left-bottom .hayat-hero-slider__image { object-position: left bottom; }
.hayat-hero-slider .hayat-hero-slider__media--center-top .hayat-hero-slider__image { object-position: center top; }
.hayat-hero-slider .hayat-hero-slider__media--center-center .hayat-hero-slider__image { object-position: center center; }
.hayat-hero-slider .hayat-hero-slider__media--center-bottom .hayat-hero-slider__image { object-position: center bottom; }
.hayat-hero-slider .hayat-hero-slider__media--right-top .hayat-hero-slider__image { object-position: right top; }
.hayat-hero-slider .hayat-hero-slider__media--right-center .hayat-hero-slider__image { object-position: right center; }
.hayat-hero-slider .hayat-hero-slider__media--right-bottom .hayat-hero-slider__image { object-position: right bottom; }

.hayat-hero-slider .hayat-hero-slider__panel {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	width: var(--hayat-panel-width);
	height: 100%;
	min-width: 0;
	padding: 5vw 2vw 7vw 9vw;
	background: #071626;
	overflow: visible;
}

.hayat-hero-slider--panel-right .hayat-hero-slider__panel {
	margin-left: auto;
}

.hayat-hero-slider .hayat-hero-slider__content {
	position: relative;
	z-index: 2;
	width: 440px;
	max-width: 100%;
	min-width: 0;
}

.hayat-hero-slider--panel-right .hayat-hero-slider__content {
	margin-left: auto;
}

/*
 * Desktop content alignment.
 * The hero/image stays full-bleed, while the text block is positioned against
 * a centered site container (1280px by default). This mirrors Elementor's
 * common boxed-content pattern and keeps the hero visually aligned with the
 * sections below it on wide screens.
 */
@media (min-width: 1025px) {
	.hayat-hero-slider--content-contained .hayat-hero-slider__content {
		position: absolute;
		top: 50%;
		left: max(
			var(--hayat-site-container-gutter),
			calc((100vw - var(--hayat-site-container-width)) / 2 + var(--hayat-site-container-gutter))
		);
		right: auto;
		margin: 0;
		transform: translateY(-50%);
	}

	.hayat-hero-slider--content-contained.hayat-hero-slider--panel-right .hayat-hero-slider__content {
		right: max(
			var(--hayat-site-container-gutter),
			calc((100vw - var(--hayat-site-container-width)) / 2 + var(--hayat-site-container-gutter))
		);
		left: auto;
	}

	.hayat-hero-slider--content-contained .hayat-hero-slider__counter {
		left: max(
			var(--hayat-counter-side),
			calc((100vw - var(--hayat-site-container-width)) / 2 + var(--hayat-site-container-gutter))
		);
	}

	.hayat-hero-slider--content-contained.hayat-hero-slider--panel-right .hayat-hero-slider__counter {
		right: max(
			var(--hayat-counter-side),
			calc((100vw - var(--hayat-site-container-width)) / 2 + var(--hayat-site-container-gutter))
		);
		left: auto;
	}
}

.hayat-hero-slider .hayat-hero-slider__eyebrow {
	margin: 0 0 16px;
	color: #fff;
	font-size: clamp(0.72rem, 0.84vw, 0.94rem);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}

.hayat-hero-slider .hayat-hero-slider__heading {
	margin: 0 0 10px;
	color: #fff;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(4.8rem, 7vw, 8.4rem);
	font-weight: 400;
	line-height: 0.88;
	letter-spacing: 0.075em;
	white-space: nowrap;
}

.hayat-hero-slider .hayat-hero-slider__arabic-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 100%;
	margin: 0 0 22px;
	color: #fff;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(1.9rem, 2.8vw, 3.2rem);
	line-height: 1;
}

.hayat-hero-slider .hayat-hero-slider__arabic-divider {
	flex: 0 1 auto;
	width: 96px;
	max-width: 28%;
	height: 2px;
	background: #c9954b;
}

.hayat-hero-slider .hayat-hero-slider__tagline {
	margin: 0 0 22px;
	color: #fff;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(1.55rem, 2.1vw, 2.5rem);
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.hayat-hero-slider .hayat-hero-slider__description {
	max-width: 360px;
	margin: 0 0 28px;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(0.95rem, 1.1vw, 1.15rem);
	line-height: 1.62;
}

.hayat-hero-slider .hayat-hero-slider__button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-width: min(320px, 100%);
	min-height: 46px;
	padding: 14px 24px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 0;
	background: #b97a2d;
	box-shadow: none;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hayat-hero-slider .hayat-hero-slider__button:hover {
	transform: translateY(-2px);
	background: #d09a52;
	color: #fff;
}

.hayat-hero-slider .hayat-hero-slider__button:focus-visible,
.hayat-hero-slider .hayat-hero-slider__counter-button:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 4px;
}

.hayat-hero-slider .hayat-hero-slider__button-icon,
.hayat-hero-slider .hayat-hero-slider__button-icon svg,
.hayat-hero-slider .hayat-hero-slider__button-icon i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
}

.hayat-hero-slider .hayat-hero-slider__counter {
	position: absolute;
	z-index: 8;
	left: var(--hayat-counter-side);
	bottom: var(--hayat-counter-bottom);
	display: flex;
	align-items: flex-end;
	gap: 18px;
	margin: 0;
	padding: 0;
}

.hayat-hero-slider--panel-right .hayat-hero-slider__counter {
	right: var(--hayat-counter-side);
	left: auto;
}

/* Strongly scoped reset prevents theme/Elementor button styles from creating boxes. */
.hayat-hero-slider .hayat-hero-slider__counter .hayat-hero-slider__counter-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	min-width: 28px;
	min-height: 34px;
	margin: 0;
	padding: 0 0 10px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: rgba(255, 255, 255, 0.62);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	text-decoration: none;
	appearance: none;
	cursor: pointer;
	transition: color 180ms ease;
}

.hayat-hero-slider .hayat-hero-slider__counter .hayat-hero-slider__counter-button:hover,
.hayat-hero-slider .hayat-hero-slider__counter .hayat-hero-slider__counter-button:focus {
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #fff;
}

.hayat-hero-slider .hayat-hero-slider__counter-button::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 48px;
	height: 2px;
	background: #c9954b;
	transform: scaleX(0);
	transform-origin: left center;
}

.hayat-hero-slider .hayat-hero-slider__counter-button.is-active {
	color: #fff;
}

.hayat-hero-slider .hayat-hero-slider__counter-button.is-active::after {
	transform: scaleX(1);
}

.hayat-hero-slider .hayat-hero-slider__counter-button.is-active.is-progressing::after {
	animation: hayat-counter-progress var(--hayat-autoplay-delay) linear forwards;
}

.hayat-hero-slider.is-paused .hayat-hero-slider__counter-button.is-progressing::after {
	animation-play-state: paused;
}

@keyframes hayat-counter-progress {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

.hayat-hero-slider .hayat-hero-slider__scroll {
	position: absolute;
	z-index: 8;
	right: 34px;
	bottom: 34px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.76);
	pointer-events: none;
}

.hayat-hero-slider .hayat-hero-slider__scroll-icon {
	position: relative;
	display: block;
	width: 18px;
	height: 34px;
	border: 1.5px solid currentColor;
	border-radius: 999px;
}

.hayat-hero-slider .hayat-hero-slider__scroll-icon span {
	position: absolute;
	top: 7px;
	left: 50%;
	width: 3px;
	height: 7px;
	border-radius: 999px;
	background: currentColor;
	transform: translateX(-50%);
	animation: hayat-scroll-dot 1.6s ease-in-out infinite;
}

.hayat-hero-slider .hayat-hero-slider__scroll-text {
	margin: 0;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1;
	text-transform: uppercase;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

@keyframes hayat-scroll-dot {
	0%, 100% { opacity: 0.35; transform: translate(-50%, 0); }
	50% { opacity: 1; transform: translate(-50%, 8px); }
}

.hayat-hero-slider .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 1200px) and (min-width: 1025px) {
	.hayat-hero-slider .hayat-hero-slider__content {
		width: min(440px, 100%);
	}

	.hayat-hero-slider .hayat-hero-slider__heading {
		font-size: clamp(4.4rem, 7.4vw, 6.8rem);
	}

	.hayat-hero-slider .hayat-hero-slider__tagline {
		white-space: normal;
	}
}

@media (max-width: 1024px) {
	.hayat-hero-slider {
		height: auto;
		min-height: var(--hayat-slider-height);
		overflow: hidden;
	}

	.hayat-hero-slider .hayat-hero-slider__swiper,
	.hayat-hero-slider .hayat-hero-slider__swiper > .swiper-wrapper {
		height: auto;
		min-height: var(--hayat-slider-height);
	}

	.hayat-hero-slider .hayat-hero-slider__slide,
	.hayat-hero-slider--panel-right .hayat-hero-slider__slide {
		display: flex;
		flex-direction: column;
		height: auto;
		min-height: var(--hayat-slider-height);
		overflow: hidden;
	}

	.hayat-hero-slider .hayat-hero-slider__panel,
	.hayat-hero-slider--panel-right .hayat-hero-slider__panel {
		position: relative;
		order: 1;
		width: 100%;
		height: auto;
		min-height: 360px;
		margin-left: 0;
		padding: 54px 42px 58px;
		overflow: hidden;
	}

	.hayat-hero-slider .hayat-hero-slider__content,
	.hayat-hero-slider--panel-right .hayat-hero-slider__content {
		width: min(680px, 100%);
		max-width: 100%;
		margin-right: auto;
		margin-left: auto;
	}

	.hayat-hero-slider .hayat-hero-slider__media,
	.hayat-hero-slider--panel-right .hayat-hero-slider__media {
		position: relative;
		inset: auto;
		order: 2;
		width: 100%;
		height: clamp(300px, 42vh, 500px);
		min-height: 300px;
		flex: 0 0 auto;
	}

	.hayat-hero-slider--stack-panel-bottom .hayat-hero-slider__panel {
		order: 2;
	}

	.hayat-hero-slider--stack-panel-bottom .hayat-hero-slider__media {
		order: 1;
	}

	.hayat-hero-slider .hayat-hero-slider__media::after,
	.hayat-hero-slider--panel-right .hayat-hero-slider__media::after {
		background: linear-gradient(180deg, var(--hayat-overlay-color) 0%, transparent 42%);
		opacity: var(--hayat-overlay-opacity);
	}

	.hayat-hero-slider--stack-panel-bottom .hayat-hero-slider__media::after,
	.hayat-hero-slider--stack-panel-bottom.hayat-hero-slider--panel-right .hayat-hero-slider__media::after {
		background: linear-gradient(0deg, var(--hayat-overlay-color) 0%, transparent 42%);
	}

	.hayat-hero-slider .hayat-hero-slider__heading {
		font-size: clamp(4rem, 11vw, 7rem);
	}

	.hayat-hero-slider .hayat-hero-slider__tagline {
		white-space: normal;
	}

	.hayat-hero-slider .hayat-hero-slider__counter,
	.hayat-hero-slider--panel-right .hayat-hero-slider__counter {
		right: auto;
		left: var(--hayat-counter-side);
	}
}

@media (max-width: 767px) {
	.hayat-hero-slider {
		min-height: max(var(--hayat-slider-height), 640px);
	}

	.hayat-hero-slider .hayat-hero-slider__panel,
	.hayat-hero-slider--panel-right .hayat-hero-slider__panel {
		min-height: 0;
		padding: 40px 24px 50px;
	}

	.hayat-hero-slider .hayat-hero-slider__media,
	.hayat-hero-slider--panel-right .hayat-hero-slider__media {
		height: clamp(260px, 36vh, 390px);
		min-height: 260px;
	}

	.hayat-hero-slider .hayat-hero-slider__eyebrow {
		font-size: 0.69rem;
		letter-spacing: 0.2em;
	}

	.hayat-hero-slider .hayat-hero-slider__heading {
		font-size: clamp(3.25rem, 16vw, 5.5rem);
		letter-spacing: 0.04em;
		white-space: normal;
	}

	.hayat-hero-slider .hayat-hero-slider__arabic-row {
		font-size: clamp(1.7rem, 8.5vw, 2.6rem);
	}

	.hayat-hero-slider .hayat-hero-slider__arabic-divider {
		max-width: 24vw;
	}

	.hayat-hero-slider .hayat-hero-slider__tagline {
		font-size: clamp(1.35rem, 6vw, 1.95rem);
	}

	.hayat-hero-slider .hayat-hero-slider__description {
		max-width: 100%;
		font-size: 1rem;
		line-height: 1.55;
	}

	.hayat-hero-slider .hayat-hero-slider__button {
		width: 100%;
		min-width: 0;
		min-height: 48px;
		padding: 14px 18px;
	}

	.hayat-hero-slider .hayat-hero-slider__counter {
		gap: 12px;
	}

	.hayat-hero-slider .hayat-hero-slider__counter .hayat-hero-slider__counter-button {
		min-width: 24px;
	}

	.hayat-hero-slider .hayat-hero-slider__scroll {
		right: 12px;
		bottom: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hayat-hero-slider *,
	.hayat-hero-slider *::before,
	.hayat-hero-slider *::after {
		scroll-behavior: auto;
		animation-duration: 0.001ms;
		animation-iteration-count: 1;
		transition-duration: 0.001ms;
	}
}
