/* ===== قسم الهيرو: بدون جافاسكربت، خفيف وسريع، متوافق مع Astra وكل الأجهزة ===== */

.alk-hero{
	--alk-primary: #0860a9;
	--alk-secondary: #e21f35;
	--alk-dark: #0b1f3a;

	position: relative;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(420px, 72vh, var(--alk-hero-min-h, 640px));
	padding: clamp(90px, 14vh, 140px) 24px;
	direction: rtl;
	box-sizing: border-box;
	background: var(--alk-dark); /* يظهر فوراً قبل تحميل الصورة، بدون قفزة بصرية */
}

.alk-hero__media{
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}
.alk-hero__slide{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	will-change: opacity, transform;
}
/* الصورة الأولى تظهر دوماً كخط دفاع احتياطي حتى لو تعطّل تحميل ملف الـ CSS الخارجي لأي سبب */
.alk-hero__slide:first-child{
	opacity: 1;
}
.alk-hero__slide:not(:first-child){
	opacity: 0;
}
.alk-hero__overlay{
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(11, 31, 58, calc(var(--alk-hero-overlay, .55) * .75)) 0%,
		rgba(11, 31, 58, var(--alk-hero-overlay, .55)) 100%
	);
}

.alk-hero__inner{
	position: relative;
	z-index: 1;
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
	color: #fff;
}

.alk-hero__overline{
	display: inline-block;
	font-size: clamp(.82rem, 1.4vw, .95rem);
	font-weight: 700;
	letter-spacing: .3px;
	color: #cfe0f5;
	margin-bottom: 14px;
}

.alk-hero__headline{
	font-size: clamp(1.7rem, 4.6vw, 3.1rem);
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 18px;
	color: #fff;
}

.alk-hero__subheadline{
	font-size: clamp(1rem, 1.8vw, 1.15rem);
	line-height: 1.8;
	color: rgba(255,255,255,.88);
	margin: 0 auto 32px;
	max-width: 560px;
}

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

.alk-hero__btn{
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 12px;
	font-weight: 700;
	font-size: 1rem;
	padding: 15px 30px;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
	white-space: nowrap;
}
.alk-hero__btn:hover,
.alk-hero__btn:focus{
	color: #fff !important;
	text-decoration: none !important;
}
.alk-hero__btn-icon{
	width: 19px;
	height: 19px;
	flex-shrink: 0;
	fill: #fff;
}

.alk-hero__btn--primary{
	background: var(--alk-primary);
	color: #fff;
	box-shadow: 0 10px 26px rgba(8,96,169,.4);
}
.alk-hero__btn--primary:hover,
.alk-hero__btn--primary:focus{
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(8,96,169,.5);
}

.alk-hero__btn--secondary{
	background: var(--alk-secondary);
	color: #fff;
	border: none;
	box-shadow: 0 10px 26px rgba(226,31,53,.4);
}
.alk-hero__btn--secondary:hover,
.alk-hero__btn--secondary:focus{
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(226,31,53,.5);
}

/* ===== تجاوب: تابلت / آيباد ===== */
@media (max-width: 1024px){
	.alk-hero{ padding: clamp(70px, 12vh, 110px) 24px; }
}

/* ===== تجاوب: جوال ===== */
@media (max-width: 560px){
	.alk-hero{
		min-height: clamp(380px, 78vh, 560px);
		padding: 70px 20px;
	}
	.alk-hero__actions{ flex-direction: column; width: 100%; }
	.alk-hero__btn{ width: 100%; }
}

/* ===== دعم الأجهزة ذات الشاشات القصيرة أفقياً (جوال بالعرض) ===== */
@media (max-height: 480px) and (orientation: landscape){
	.alk-hero{ min-height: auto; padding: 50px 24px; }
}

@media (prefers-reduced-motion: reduce){
	.alk-hero__btn{ transition: none; }
}
