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

.page-hero,
.page-hero-header {
	padding: 64px 0 58px;
	margin-bottom: 44px;
	background: radial-gradient(70% 120% at 50% 0, var(--hd-page), var(--hd-paper) 75%);
	color: var(--hd-ink);
	/* حافة الصفحات في الأسفل: سطور رفيعة متتالية كأطراف أوراق الكتاب */
	box-shadow: 0 1px 0 var(--hd-page-edge), 0 3px 0 var(--hd-page), 0 4px 0 var(--hd-page-edge), 0 6px 0 var(--hd-page), 0 7px 0 var(--hd-page-edge), 0 18px 30px -24px rgba(30, 40, 20, 0.35);
}

/* كتاب الشعار خافتاً في الزاوية بدل رسمة الأب */
.page-hero::before,
.page-hero-header::before {
	inset: 0;
	background: var(--hd-gold-grad);
	opacity: 0.1;
	-webkit-mask: var(--hd-flow) left -160px bottom -150px / 560px auto no-repeat;
	mask: var(--hd-flow) left -160px bottom -150px / 560px auto no-repeat;
}

/* شريط العلامة الذهبي المتدلّي (يسار الصفحة) */
.page-hero::after,
.page-hero-header::after {
	content: '';
	position: absolute;
	top: 0;
	left: clamp(24px, 8vw, 120px);
	z-index: 2;
	width: 26px;
	height: 76px;
	background: var(--hd-gold-grad);
	clip-path: var(--hd-ribbon-clip);
	filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.15));
	pointer-events: none;
}

.page-hero-title {
	margin-bottom: 6px;
	font-family: var(--hd-display);
	font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
	font-weight: 800;
	line-height: 1.45;
	/* الأب يفرض الثانوي بـ !important */
	color: var(--hd-ink) !important;
}

/* جرّة القلم تحت العنوان */
.page-hero-title::after {
	content: '';
	display: block;
	width: 120px;
	height: 10px;
	margin: 10px auto 0;
	background: var(--hd-gold-grad);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M119 6.2C92 4.6 58 4.9 30 6.6 19 7.3 9.5 8.2 2.5 9.5c-1.8.3-1.6 2.4.3 2.3C12 11 22 10.2 32 9.6c28-1.6 60-1.4 87-.6z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M119 6.2C92 4.6 58 4.9 30 6.6 19 7.3 9.5 8.2 2.5 9.5c-1.8.3-1.6 2.4.3 2.3C12 11 22 10.2 32 9.6c28-1.6 60-1.4 87-.6z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.page-hero-desc {
	color: var(--theme-text-light, #5b6b60) !important;
}

.page-hero-meta,
.page-hero-meta div,
.page-hero-meta span,
.page-hero-meta a,
.page-hero-meta svg,
.page-hero-meta i {
	color: var(--hd-ink) !important;
}

/* مسار التنقل: سطر صغير بالأخضر، والفواصل ذهبية */
.page-hero .breadcrumbs,
.page-hero .breadcrumbs a,
.page-hero .breadcrumbs span {
	color: var(--theme-primary);
}

.page-hero .breadcrumbs .sep,
.page-hero .breadcrumbs .breadcrumb-sep {
	color: var(--hd-gold);
}

.page-hero .breadcrumbs span:last-child {
	color: var(--theme-text-light, #5b6b60);
}

@media (max-width: 767px) {
	.page-hero,
	.page-hero-header {
		padding: 46px 0 40px;
	}

	.page-hero::after,
	.page-hero-header::after {
		left: 18px;
		width: 18px;
		height: 52px;
	}
}
