/**
 * Bab Al Rayan — inner-page breadcrumb banner (lightweight, not hero)
 */

/* Legacy banner — suppress if old markup exists */
.page-title,
.page-title--inner,
.bab-inner-banner {
	display: none !important;
}

.page-title .big-title,
.page-title [class*="big-title"],
.page-title_text,
.page-title .page-title_text,
.page-title-heading,
.page-title .page-title-heading {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	overflow: hidden !important;
	opacity: 0 !important;
	position: absolute !important;
	left: -9999px !important;
}

/* ------------------------------------------------------------------ */
/* Inner-page banner                                                  */
/* ------------------------------------------------------------------ */

.bab-page-hero {
	--bab-banner-height: 300px;
	position: relative;
	display: block;
	height: var(--bab-banner-height);
	min-height: var(--bab-banner-height);
	max-height: var(--bab-banner-height);
	margin-top: var(--bab-header-offset, 112px);
	margin-bottom: 0;
	padding: 0;
	overflow: hidden;
	background-color: #0e1628;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	isolation: isolate;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* No spacer gap from parent wrappers on inner pages */
.page-wrapper,
#smooth-wrapper,
#smooth-content {
	padding-top: 0 !important;
	margin-top: 0;
}

#smooth-content > .bab-page-hero:first-child {
	margin-top: var(--bab-header-offset, 112px);
}

.bab-page-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		90deg,
		rgba(8, 14, 26, 0.88) 0%,
		rgba(8, 14, 26, 0.62) 55%,
		rgba(8, 14, 26, 0.78) 100%
	);
	pointer-events: none;
}

.bab-page-hero__container {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 32px 15px;
	box-sizing: border-box;
}

.bab-page-hero__content {
	position: relative;
	width: 100%;
	max-width: 620px;
	padding: 34px 38px;
	text-align: left;
	background: rgba(8, 14, 26, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

/* Subtle accent — not a full-height bar */
.bab-page-hero__content::before {
	content: "";
	position: absolute;
	left: 38px;
	right: 38px;
	top: 0;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--main-color, #ffa200) 0%, rgba(255, 162, 0, 0.15) 100%);
}

/* Breadcrumb */
.bab-breadcrumb {
	margin: 0 0 12px;
	padding: 0;
}

.bab-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bab-breadcrumb__item {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: 0.01em;
}

.bab-breadcrumb__item:not(:last-child)::after {
	content: "/";
	margin: 0 10px;
	color: rgba(255, 255, 255, 0.4);
	font-size: 12px;
	font-weight: 400;
}

.bab-breadcrumb__link,
.bab-breadcrumb__text {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	transition: color 0.2s ease;
}

.bab-breadcrumb__link:hover {
	color: var(--main-color, #ffa200);
}

.bab-breadcrumb__item--current .bab-breadcrumb__text {
	color: rgba(255, 255, 255, 0.95);
	font-weight: 600;
}

/* Page title — inner page scale, not homepage hero */
.bab-page-hero__title {
	margin: 0;
	padding: 0;
	font-weight: 700;
	font-size: clamp(22px, 2.6vw, 34px);
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: #ffffff;
	text-transform: none;
	text-shadow: none;
}

.bab-page-hero__title::before,
.bab-page-hero__title::after,
.bab-breadcrumb::before,
.bab-breadcrumb::after {
	content: none !important;
	display: none !important;
}

/* Subtle load animation */
@keyframes babBannerFadeUp {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.bab-page-hero__animate {
	opacity: 0;
	animation: babBannerFadeUp 0.55s ease forwards;
}

.bab-page-hero__animate--delay {
	animation-delay: 0.08s;
}

@media (prefers-reduced-motion: reduce) {
	.bab-page-hero__animate {
		opacity: 1;
		animation: none;
		transform: none;
	}
}

/* Separation from main content */
.bab-page-hero + .inner-page-section,
.bab-page-hero + .sidebar-page-container,
.bab-page-hero + .about-page-content,
.bab-page-hero + .why-choose-section,
.bab-page-hero + section,
.bab-page-hero + div.inner-page-section {
	margin-top: 0;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                         */
/* ------------------------------------------------------------------ */

@media only screen and (max-width: 991px) {
	.bab-page-hero {
		--bab-banner-height: 280px;
	}

	.bab-page-hero__container {
		padding: 28px 15px;
	}

	.bab-page-hero__content {
		max-width: 100%;
		padding: 30px 32px;
	}

	.bab-page-hero__content::before {
		left: 32px;
		right: 32px;
	}

	.bab-page-hero__title {
		font-size: clamp(20px, 4vw, 28px);
	}
}

@media only screen and (max-width: 767px) {
	.bab-page-hero {
		--bab-banner-height: 260px;
	}

	.bab-page-hero__container {
		padding: 24px 15px;
	}

	.bab-page-hero__content {
		padding: 28px 30px;
		border-radius: 8px;
	}

	.bab-page-hero__content::before {
		left: 30px;
		right: 30px;
	}

	.bab-breadcrumb {
		margin-bottom: 10px;
	}

	.bab-breadcrumb__item {
		font-size: 12px;
	}

	.bab-page-hero__title {
		font-size: 20px;
		line-height: 1.3;
	}
}

@media only screen and (max-width: 479px) {
	.bab-page-hero {
		--bab-banner-height: 240px;
	}

	.bab-page-hero__content {
		padding: 24px 26px;
	}

	.bab-page-hero__content::before {
		left: 26px;
		right: 26px;
	}

	.bab-page-hero__title {
		font-size: 18px;
	}
}
