/* ===== Ward Hero Slider ===== */
.ward-hero {
	position: relative;
	background: transparent;
	overflow: hidden;
	/* عرض الشاشة كامل بدون فراغات بيضا يمين/شمال */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-bottom: 28px;
	box-sizing: border-box;
}

html:has(.ward-hero),
body:has(.ward-hero) {
	overflow-x: hidden;
}

/* سكشن/كونتينر إليمنتور لعرض كامل بدون padding جانبي */
.elementor-top-section:has(.ward-hero),
.elementor-section:has(.ward-hero),
.elementor-container:has(.ward-hero),
.elementor-column:has(.ward-hero),
.elementor-widget-wrap:has(.ward-hero),
.elementor-element:has(.ward-hero),
.e-con:has(.ward-hero),
.e-con-inner:has(.ward-hero) {
	margin-top: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	max-width: none !important;
	width: 100% !important;
	border-radius: 0 !important;
}
.elementor-element:has(> .elementor-widget-container > .ward-hero),
.elementor-widget:has(.ward-hero),
.elementor-widget-container:has(.ward-hero) {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

.ward-front-page,
.ward-front-page > .elementor,
body.has-ward-hero .site-main {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	width: 100% !important;
	overflow-x: hidden;
}

.ward-hero-bg-decor {
	position: absolute;
	top: -120px; left: -120px;
	width: 480px; height: 480px;
	border: 1px solid rgba(255,255,255,.06);
	border-radius: 50%;
}
.ward-hero-bg-decor::before {
	content: '';
	position: absolute; inset: 60px;
	border: 1px solid rgba(255,255,255,.06);
	border-radius: 50%;
}
.ward-hero-track { position: relative; min-height: 100vh; min-height: 100dvh; }
.ward-hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease;
	overflow: hidden;
	background: var(--hero-slide-bg, var(--ward-navy, #101a4a));
}
.ward-hero-slide.active { position: relative; opacity: 1; visibility: visible; }
.ward-hero-slide-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background: var(--hero-slide-bg, var(--ward-navy, #101a4a));
}
.ward-hero-slide-bg-image {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	object-position: center center;
}
.ward-hero-slide-bg.has-overlay::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		135deg,
		rgba(10, 16, 48, var(--hero-overlay, .55)) 0%,
		rgba(16, 26, 74, calc(var(--hero-overlay, .55) + .1)) 55%,
		rgba(10, 16, 48, calc(var(--hero-overlay, .55) + .05)) 100%
	);
}
/* عند إلغاء التعتيم نحتفظ بظل أعلى الصورة فقط لوضوح الهيدر */
.ward-hero-slide-bg.has-header-shade::after {
	content: '';
	position: absolute;
	inset: 0 0 auto;
	z-index: 1;
	height: clamp(110px, 18vh, 190px);
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		rgba(6, 10, 32, .78) 0%,
		rgba(6, 10, 32, .4) 48%,
		transparent 100%
	);
}
.ward-hero-slide.bg-fit-contain .ward-hero-slide-bg-image {
	/* الصورة كاملة دائمًا من غير أي قص */
	object-fit: contain !important;
}
.ward-hero-slide.bg-fit-cover .ward-hero-slide-bg-image {
	object-fit: cover;
}
.ward-hero-slide.bg-fit-stretch .ward-hero-slide-bg-image {
	/* يملأ العرض والارتفاع بالكامل؛ قد يغيّر نسبة أبعاد الصورة */
	object-fit: fill;
}
.ward-hero-slide.has-bg .ward-hero-bg-decor { opacity: .35; }
.ward-hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
	grid-template-rows: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: clamp(24px, 4vw, 48px);
	row-gap: 28px;
	/* مسافة فوق عشان الهيدر الشفاف فوق الهيرو */
	padding-top: 140px;
	/* مسافة تحت للمحتوى + نقاط السلايدر / SCROLL */
	padding-bottom: 120px;
	min-height: 100vh;
	min-height: 100dvh;
	box-sizing: border-box;
}
.ward-hero-slide.is-image-only .ward-hero-inner {
	display: none;
	pointer-events: none;
}

/*
 * سلايد الصورة فقط:
 * ارتفاعه يتبع نسبة أبعاد الصورة الطبيعية، فتظهر كاملة بعرض الشاشة
 * بدون قص من أعلى أو أسفل.
 */
.ward-hero:has(.ward-hero-slide.is-image-only.active) {
	padding-bottom: 0;
}
.ward-hero:has(.ward-hero-slide.is-image-only.active) .ward-hero-track {
	min-height: 0;
}
.ward-hero-slide.is-image-only.active {
	min-height: 0;
	overflow: visible;
}
.ward-hero-slide.is-image-only .ward-hero-slide-bg {
	position: relative;
	inset: auto;
	width: 100%;
	height: auto;
	overflow: hidden;
}
.ward-hero-slide.is-image-only .ward-hero-slide-bg-image {
	position: relative;
	inset: auto;
	width: 100%;
	height: auto;
	max-width: none;
	object-fit: contain !important;
}

.ward-hero-text {
	max-width: 100%;
	position: relative;
	z-index: 2;
	grid-column: 1;
	grid-row: 1;
	align-self: center;
	min-width: 0;
}
.ward-hero-badge {
	display: inline-block;
	font-size: 12px; font-weight: 700;
	color: var(--ward-gold);
	background: rgba(201,162,75,.12);
	border: 1px solid rgba(201,162,75,.3);
	padding: 6px 16px;
	border-radius: 20px;
	margin-bottom: 18px;
}
.ward-hero-heading { margin-bottom: 18px; line-height: 1.25; }
.ward-hero-eyebrow-line { display: block; font-size: 34px; font-weight: 900; color: #fff; }
.ward-hero-title-line { display: block; font-size: 46px; font-weight: 900; color: var(--ward-gold); }
.ward-hero-author {
	margin: -6px 0 14px;
	font-size: 15px;
	font-weight: 700;
	color: var(--ward-gold);
}
.ward-hero-desc { color: #c7cbe8; font-size: 16px; line-height: 1.9; margin-bottom: 28px; max-width: 460px; }

/* ===== أزرار الهيرو زي التصميم ===== */
.ward-hero-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 0;
}

.ward-hero-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: all .25s ease;
	border: 2px solid transparent;
}

.ward-hero-btn svg {
	flex-shrink: 0;
}

/* ذهبى ممتلئ */
.ward-hero-btn-primary {
	background: var(--ward-gold);
	color: #141c52;
	border-color: var(--ward-gold);
}
.ward-hero-btn-primary:hover {
	background: var(--ward-gold-light);
	border-color: var(--ward-gold-light);
	color: #141c52;
}

/* شفاف ببوردر فاتح + أيقونة بلاي */
.ward-hero-btn-secondary {
	background: rgba(255, 255, 255, .06);
	color: #fff;
	border-color: rgba(255, 255, 255, .45);
}
.ward-hero-btn-secondary:hover {
	background: rgba(255, 255, 255, .12);
	border-color: #fff;
	color: #fff;
}

/* ===== الأرقام تحت عمود النص (ديسكتوب) / تحت الصورة (موبايل) ===== */
.ward-hero-stats {
	position: relative;
	z-index: 2;
	grid-column: 1;
	grid-row: 2;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 28px 56px;
	width: auto;
	max-width: 100%;
	margin-top: 0;
	padding-top: 22px;
	padding-bottom: 0;
	padding-inline: 0;
	border-top: 1px solid rgba(255, 255, 255, .22);
}

.ward-hero-stat-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 0 12px;
	border: none;
	text-align: right;
}

.ward-hero-stat-number {
	font-size: 28px;
	font-weight: 900;
	color: #fff;
	line-height: 1.15;
}

.ward-hero-stat-label {
	color: rgba(255, 255, 255, .85);
	font-size: 13px;
	margin-top: 6px;
	font-weight: 500;
}

/* ===== صورة الجانب — حجم ثابت داخل العمود عشان ما تتداخلش ===== */
.ward-hero-books {
	--hero-book-max-w: min(100%, 520px);
	--hero-book-max-h: min(52vh, 460px);
	position: relative;
	grid-column: 2;
	grid-row: 1;
	width: 100%;
	max-width: var(--hero-book-max-w);
	height: var(--hero-book-max-h);
	min-height: 0;
	max-height: var(--hero-book-max-h);
	align-self: center;
	justify-self: center;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	z-index: 1;
	pointer-events: none;
}

.ward-hero-book,
.ward-hero-book-0 {
	position: relative;
	top: auto;
	right: auto;
	left: auto;
	bottom: auto;
	display: block;
	width: 100%;
	height: 100%;
	max-width: var(--hero-book-max-w);
	max-height: var(--hero-book-max-h);
	min-height: 0;
	aspect-ratio: auto;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: none;
	transform: none !important;
	background: rgba(255, 255, 255, .04);
	z-index: 1;
	text-decoration: none;
	pointer-events: auto;
}

.ward-hero-book img,
.ward-hero-book-0 img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: var(--hero-book-max-h);
	min-height: 0;
	object-fit: contain;
	object-position: center;
	display: block;
}

.ward-hero-dots {
	position: absolute;
	bottom: 88px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 5;
	pointer-events: auto;
}
.ward-hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); border: none; cursor: pointer; }
.ward-hero-dot.active { background: var(--ward-gold); width: 24px; border-radius: 4px; }

.ward-hero-scroll {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: #8f94b8;
	font-size: 11px;
	letter-spacing: 2px;
	animation: ward-bounce 1.8s infinite;
	pointer-events: none;
}
@keyframes ward-bounce {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 900px) {
	.ward-hero {
		padding-bottom: 20px;
	}
	.ward-hero-inner {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		text-align: center;
		padding-top: 28px;
		padding-bottom: 40px;
		min-height: 0;
		row-gap: 24px;
	}
	.ward-hero-text {
		grid-column: auto;
		grid-row: auto;
		order: 1;
		padding-top: 28px;
	}
	.ward-hero-books {
		--hero-book-max-w: min(100%, 360px);
		--hero-book-max-h: min(42vh, 300px);
		grid-column: auto;
		grid-row: auto;
		order: 2;
		width: 100%;
		height: var(--hero-book-max-h);
		max-width: var(--hero-book-max-w);
		max-height: var(--hero-book-max-h);
		margin-inline: auto;
	}
	.ward-hero-stats {
		grid-column: auto;
		grid-row: auto;
		order: 3;
		justify-content: center;
		align-items: center;
		width: 100%;
	}
	.ward-hero-eyebrow-line { font-size: 26px; }
	.ward-hero-title-line { font-size: 34px; }
	.ward-hero-desc { margin-left: auto; margin-right: auto; }
	.ward-hero-btns { justify-content: center; }
	.ward-hero-book,
	.ward-hero-book-0,
	.ward-hero-book img,
	.ward-hero-book-0 img {
		max-height: var(--hero-book-max-h);
		min-height: 0;
	}
	.ward-hero-stat-item {
		align-items: center;
		text-align: center;
		padding: 0;
	}
	.ward-hero-scroll { display: none; }
	.ward-hero-dots { bottom: 20px; }
}

@media (max-width: 600px) {
	.ward-hero-books {
		--hero-book-max-w: min(100%, 280px);
		--hero-book-max-h: 240px;
	}
}
