/* Moved verbatim from resources/views/components/page-top-banner.blade.php */
.ptb-banner {
	--ptb-overlay: linear-gradient(120deg, rgba(23, 1, 33, 0.78) 0%, rgba(67, 6, 85, 0.62) 45%, rgba(18, 1, 28, 0.82) 100%);
	--ptb-accent: #ffffff;
	position: relative;
	width: 100%;
	min-height: 165px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 0;
	background-color: #2b0638;
	background-image: var(--ptb-overlay), var(--ptb-bg-image);
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	overflow: hidden;
}

.ptb-banner::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: min(220px, 56vw);
	height: 4px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.96) 50%, rgba(255, 255, 255, 0.18) 100%);
	border-radius: 999px;
	box-shadow: 0 0 26px rgba(255, 255, 255, 0.32);
	z-index: 0;
	pointer-events: none;
}

.ptb-banner .container {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0 14px;
}

.ptb-title {
	position: relative;
	margin: 0;
	color: #fff;
	font-family: 'Playfair Display SC', 'Playfair Display SC Fallback', serif;
	font-size: clamp(27px, 2.7vw, 42px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	display: inline-block;
	max-width: min(930px, 100%);
	padding-bottom: 18px;
	text-align: center;
	text-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.ptb-title::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 64px;
	height: 2px;
	background: var(--ptb-accent);
	opacity: 0.94;
	border-radius: 999px;
}

/* Arabic: no caps/tracking, and room for descenders above the accent line */
html[dir='rtl'] .ptb-title {
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.45;
	padding-bottom: 16px;
}

@media (max-width: 991px) {
	.ptb-banner {
		min-height: 145px;
		padding: 14px 0;
	}

	.ptb-title {
		font-size: clamp(23px, 4.5vw, 32px);
		padding-bottom: 12px;
	}

	.ptb-banner::after {
		width: min(168px, 54vw);
	}

	.ptb-title::after {
		width: 48px;
	}
}

@media (max-width: 575px) {
	.ptb-banner {
		min-height: 128px;
		padding: 10px 0;
	}

	.ptb-title {
		font-size: clamp(20px, 6.5vw, 24px);
		padding-bottom: 10px;
		letter-spacing: 0.02em;
		max-width: 95%;
	}

	.ptb-banner::after {
		width: min(132px, 50vw);
		height: 3px;
		box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
	}

	.ptb-title::after {
		width: 36px;
	}
}

/* sections/breadcrumb.blade.php: --bg is set inline from the CMS breadcrumb image. */
.pages-banner {
	background-image: var(--bg);
}
