/**
 * هيدر الصفحات الداخلية لثيم تنمية الشمالية (template-parts/header/page-header.php). يُحمَّل في كل الصفحات.
 *
 * تدرّج الرمز العميق (النعناعي إلى الأزرق المخضر)، والمحتوى في البداية، ورمز الشعار كبيراً خافتاً في الطرف المقابل
 * مع ثلاث نقاط كوفية، والحافة السفلية على هيئة رأس المعيّن (تنحدر نحو الوسط).
 */

.sh-page-hero {
	--sh-tip: 34px;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 62px 0 calc(var(--sh-tip) + 58px);
	background:
		radial-gradient(ellipse 45% 80% at 12% 60%, rgba(68, 170, 143, 0.28), transparent 70%),
		var(--sh-page-hero-bg, var(--sh-grad-deep));
	color: #ffffff;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--sh-tip)), 50% 100%, 0 calc(100% - var(--sh-tip)));
}

/* شبكة المعيّنات الخافتة تتلاشى نحو المحتوى */
.sh-page-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, 0.07);
	-webkit-mask: var(--sh-lattice) 0 0 / var(--sh-lattice-size), linear-gradient(to left, transparent 35%, #000);
	-webkit-mask-composite: source-in;
	mask: var(--sh-lattice) 0 0 / var(--sh-lattice-size), linear-gradient(to left, transparent 35%, #000);
	mask-composite: intersect;
	pointer-events: none;
}

/* رمز الشعار رسماً خطياً أبيض في الطرف المقابل (اليسار) */
.sh-page-hero__art {
	position: absolute;
	top: 50%;
	left: max(16px, calc((100vw - 1280px) / 2));
	z-index: -1;
	width: clamp(200px, 22vw, 290px);
	aspect-ratio: 1;
	transform: translateY(-56%);
}

.sh-page-hero__art::before {
	content: '';
	position: absolute;
	inset: -10%;
	background: #ffffff;
	opacity: 0.22;
	-webkit-mask: var(--sh-emblem-line) center / contain no-repeat;
	mask: var(--sh-emblem-line) center / contain no-repeat;
}

/* ثلاث نقاط كوفية تنحدر بجوار الرمز */
.sh-page-hero__dot {
	position: absolute;
	width: 12px;
	height: 12px;
	border-radius: 3px;
	background: var(--theme-secondary);
	transform: rotate(45deg);
}

.sh-page-hero__dot:nth-of-type(1) {
	top: 8%;
	right: -6%;
}

.sh-page-hero__dot:nth-of-type(2) {
	top: 17%;
	right: -14%;
	background: var(--sh-mint);
}

.sh-page-hero__dot:nth-of-type(3) {
	top: 26%;
	right: -22%;
	background: rgba(255, 255, 255, 0.55);
}

.sh-page-hero__container {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: 1240px;
}

.sh-page-hero__container > * {
	max-width: min(760px, 64%);
}

.sh-page-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	padding: 6px 14px;
	border: 1px solid rgba(var(--theme-secondary-rgb), 0.65);
	border-radius: var(--sh-radius-sm);
	background: rgba(var(--theme-secondary-rgb), 0.16);
	color: #ffffff;
	font-size: 0.85rem;
	font-weight: 700;
}

.sh-page-hero__badge-icon {
	width: 16px;
	height: 16px;
	color: var(--theme-secondary);
}

.sh-page-hero__title {
	margin: 0 0 14px;
	color: #ffffff;
	font-size: clamp(1.7rem, 1.2rem + 2vw, 2.75rem);
	font-weight: 800;
	line-height: 1.3;
}

.sh-page-hero__desc {
	margin: 18px 0 0;
	color: rgba(255, 255, 255, 0.84);
	font-size: 1.05rem;
	line-height: 1.9;
}

.sh-page-hero__meta {
	margin-top: 6px;
}

.sh-page-hero__meta > div {
	justify-content: flex-start !important;
}

.sh-page-hero__meta,
.sh-page-hero__meta span {
	color: rgba(255, 255, 255, 0.82) !important;
}

/* مسار التنقل: بلاطة زجاجية خافتة، والصفحة الحالية بالذهبي */
.sh-page-hero .breadcrumbs {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 0 0 22px;
	padding: 7px 14px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--sh-radius-sm);
	background: rgba(255, 255, 255, 0.07);
	color: var(--theme-secondary);
	font-size: 0.86rem;
}

.sh-page-hero .breadcrumbs a {
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
	transition: color 0.2s ease;
}

.sh-page-hero .breadcrumbs a:hover,
.sh-page-hero .breadcrumbs a:focus-visible {
	color: var(--theme-secondary);
}

.sh-page-hero .breadcrumbs .sep {
	color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
	.sh-page-hero {
		--sh-tip: 22px;
		padding: 46px 0 calc(var(--sh-tip) + 44px);
	}

	.sh-page-hero__container > * {
		max-width: 100%;
	}

	/* الرمز يخفت خلف النص على الشاشات الضيقة، بلا النقاط */
	.sh-page-hero__art {
		left: -40px;
		width: 220px;
	}

	.sh-page-hero__art::before {
		opacity: 0.1;
	}

	.sh-page-hero__dot {
		display: none;
	}
}
