/* ===== ترويسة الصفحة: الصندوق + العنوان + الخطوط + النص الفرعي ===== */
.ph-widget {
	--ph-text: center;
	--ph-justify: center;
	--ph-sub-margin: 0 auto;
	--ph-bc-gap: 12px;
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	text-align: var(--ph-text);
}

.ph-widget *,
.ph-widget *::before,
.ph-widget *::after {
	box-sizing: border-box;
}

/* طبقة التعتيم */
.ph-widget::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.ph-widget .ph-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	margin-inline: auto;
}

.ph-widget .ph-title-wrap {
	display: flex;
	align-items: center;
	justify-content: var(--ph-justify);
	gap: 16px;
	margin-bottom: 12px;
}

.ph-widget .ph-title {
	margin: 0;
	min-width: 0;
	white-space: nowrap;
	color: #021e41;
	font-family: "Cairo", sans-serif;
}

.ph-widget .ph-line {
	display: inline-block;
	flex: 0 0 auto;
	width: 60px;
	height: 2px;
	background-color: #c59435;
}

.ph-widget .ph-subtitle {
	margin: var(--ph-sub-margin);
	color: #455f7b;
	font-family: "Cairo", sans-serif;
}

/* فتات الخبز داخل الترويسة */
.ph-widget .ph-bc--top {
	margin-bottom: var(--ph-bc-gap);
}

.ph-widget .ph-bc--after_title,
.ph-widget .ph-bc--bottom {
	margin-top: var(--ph-bc-gap);
}

.ph-widget .ph-bc .bc {
	justify-content: var(--ph-justify);
}

@media (max-width: 767px) {
	/* الخطوط تتقلص بدل ما تدفع العنوان خارج الشاشة */
	.ph-widget .ph-line {
		flex-shrink: 1;
		min-width: 12px;
	}
}

/* ===== فتات الخبز ===== */
.bc {
	--bc-wrap: wrap;
	--bc-overflow: visible;
	--bc-ws: normal;
	--bc-mid-d: inline-flex;
	--bc-ell-d: none;
	--bc-list-d: flex;
	--bc-back-d: none;
	--bc-mask: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 8px;
	box-sizing: border-box;
	max-width: 100%;
	font-size: 14px;
	line-height: 1.6;
	color: #666666;
}

.bc *,
.bc *::before,
.bc *::after {
	box-sizing: border-box;
}

.bc-prefix {
	flex: 0 0 auto;
	color: inherit;
}

/* ---------- list ---------- */
.bc .bc-list {
	display: var(--bc-list-d);
	flex-wrap: var(--bc-wrap);
	align-items: center;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow-x: var(--bc-overflow);
	list-style: none;
	scrollbar-width: none;
}

.bc .bc-list::-webkit-scrollbar {
	display: none;
}

.bc.bc--no-back .bc-list {
	display: flex;
}

.bc--fade .bc-list {
	-webkit-mask-image: var(--bc-mask);
	mask-image: var(--bc-mask);
}

.bc .bc-item,
.bc .bc-ellipsis {
	display: inline-flex;
	align-items: center;
	flex: 0 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: var(--bc-ws);
}

.bc .bc-item::marker,
.bc .bc-ellipsis::marker {
	content: none;
}

.bc .bc-item.is-mid {
	display: var(--bc-mid-d);
}

.bc .bc-ellipsis {
	display: var(--bc-ell-d);
}

.bc.is-expanded .bc-item.is-mid {
	display: inline-flex;
}

.bc.is-expanded .bc-ellipsis {
	display: none;
}

/* ---------- links ---------- */
.bc .bc-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
	transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.bc a.bc-link:hover,
.bc a.bc-link:focus-visible {
	color: #111111;
}


.bc .bc-item--current .bc-link {
	color: #111111;
	font-weight: 600;
}

.bc .bc-text {
	display: inline-block;
	max-width: var(--bc-max-all, none);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}

.bc .bc-item--current .bc-text {
	max-width: var(--bc-max-current, none);
}

.bc .bc-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.bc .bc-icon i,
.bc .bc-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* ---------- separator ---------- */
.bc .bc-sep {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	margin-inline: 8px;
	color: #9a9a9a;
	font-size: 12px;
	line-height: 1;
}

.bc .bc-sep i,
.bc .bc-sep svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* arrows point the right way in LTR too */
.bc.is-ltr .bc-sep i,
.bc.is-ltr .bc-sep svg,
.bc.is-ltr .bc-back__icon i,
.bc.is-ltr .bc-back__icon svg {
	transform: scaleX(-1);
}

/* ---------- ellipsis button ---------- */
.bc .bc-ellipsis__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	margin: 0;
	padding: 0 6px;
	border: 0;
	border-radius: 4px;
	background-color: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	line-height: 1.2;
	text-transform: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.bc .bc-ellipsis__btn:hover,
.bc .bc-ellipsis__btn:focus-visible {
	background-color: transparent;
	color: #111111;
}

/* ---------- back button ---------- */
.bc a.bc-back {
	display: var(--bc-back-d);
	align-items: center;
	gap: 8px;
	color: inherit;
	text-decoration: none;
	transition: color 0.25s ease, background-color 0.25s ease;
}

.bc a.bc-back:hover {
	color: #111111;
}

.bc .bc-back__icon {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	line-height: 1;
}

.bc .bc-back__icon i,
.bc .bc-back__icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

@media (max-width: 767px) {
	.bc {
		font-size: 13px;
	}
}