/* Karim Home Widgets – page hero styles (generated from the inner pages in temp/, scoped to .khw-page-hero) */

.khw-page-hero.hero-wrap {
	padding: var(--gap);
}

.khw-page-hero .hero {
	position: relative;
	min-height: 560px;
	border-radius: var(--radius);
	overflow: hidden;
	color: var(--white);
	background-color: var(--dark);
	background-image: url("../img/hero-karim-narrow.jpg");
	background-position: right center;
	background-size: cover;
	background-repeat: no-repeat;
	display: flex;
	flex-direction: column;
}

.khw-page-hero .hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.35) 70%, rgba(0,0,0,.6) 100%),
		linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.45) 100%);
	pointer-events: none;
}

.khw-page-hero .hero--navy::before {
	background:
		linear-gradient(90deg, rgba(8,18,28,.88) 0%, rgba(8,18,28,.6) 50%, rgba(8,18,28,.45) 100%),
		linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.4) 100%);
}

.khw-page-hero .hero--plain {
	min-height: 460px;
	background-image: none !important;
}

.khw-page-hero .hero--plain::before {
	content: none;
}

.khw-page-hero .page-hero--full {
	min-height: calc(100vh - var(--gap) * 2);
	min-height: calc(100svh - var(--gap) * 2);
}

.khw-page-hero .hero-deco {
	position: absolute;
	right: 0;
	top: 0;
	width: 420px;
	height: 100%;
	pointer-events: none;
}

.khw-page-hero .hero > * {
	position: relative;
	z-index: 1;
}

.khw-page-hero .hero > .hero-deco {
	position: absolute;
	z-index: 0;
}

.khw-page-hero .page-head {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: clamp(48px, 9vh, 110px) var(--pad-x) 0;
}

.khw-page-hero .badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 22px;
	padding: 6px 14px 6px 12px;
	border-radius: 4px;
	background: rgba(27, 53, 80, 0.8);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: -0.2px;
}

.khw-page-hero .badge::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--gold);
}

.khw-page-hero .page-title {
	font-size: clamp(44px, 5.4vw, 104px);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.khw-page-hero .page-title.is-upper {
	text-transform: uppercase;
}

.khw-page-hero .page-title em {
	font-style: normal;
	color: var(--gold);
}

.khw-page-hero .page-hero--article .page-title {
	max-width: 1250px;
	font-size: clamp(34px, 3.8vw, 72px);
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.khw-page-hero .page-hero--legal .page-title {
	max-width: 1200px;
	font-size: clamp(36px, 4.4vw, 84px);
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.khw-page-hero .page-hero--service .page-title {
	max-width: 980px;
	font-size: clamp(38px, 4.2vw, 78px);
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.khw-page-hero .page-intro {
	max-width: 640px;
	margin-top: 26px;
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .88);
}

.khw-page-hero .page-head .btn-wrap {
	display: block;
	margin-top: 36px;
}

.khw-page-hero .page-head .btn-lime:hover {
	--btn-bg: var(--white);
	color: var(--dark);
}

.khw-page-hero .page-head .btn-lime:hover .btn-label,
.khw-page-hero .page-head .btn-lime:hover .btn-icon {
	color: var(--dark);
}

.khw-page-hero .page-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px 40px;
	margin-top: 60px;
	padding: 34px 0 40px;
	border-top: 1px solid rgba(255, 255, 255, .28);
}

.khw-page-hero .page-hero--service .page-bar {
	gap: 20px 40px;
	padding: 30px 0 36px;
}

.khw-page-hero .crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .2px;
}

.khw-page-hero .page-hero--service .crumbs {
	font-size: 14px;
}

.khw-page-hero .crumbs li + li::before {
	content: "/";
	margin-right: 8px;
}

.khw-page-hero .crumbs a {
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color .2s;
}

.khw-page-hero .crumbs a:hover {
	color: var(--gold);
}

.khw-page-hero .crumbs [aria-current] {
	color: var(--gold);
}

.khw-page-hero .page-lead {
	max-width: 440px;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.55;
}

.khw-page-hero .page-lead.is-small {
	max-width: none;
	font-size: 14px;
	color: rgba(255, 255, 255, .75);
}

.khw-page-hero .page-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .2px;
}

.khw-page-hero .page-meta a:hover {
	color: var(--gold);
}

.khw-page-hero .author-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.khw-page-hero .av {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--gold);
	color: var(--dark);
	font-size: 16px;
	font-weight: 600;
}

.khw-page-hero .creds {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 40px;
	list-style: none;
}

.khw-page-hero .creds li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.khw-page-hero .creds svg {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	fill: none;
	stroke: var(--gold);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.khw-page-hero .creds b {
	display: block;
	font-size: 16px;
	font-weight: 600;
}

.khw-page-hero .creds small {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	color: rgba(255, 255, 255, .75);
}

@media (max-width: 1200px) {
	.khw-page-hero .page-hero--article .page-bar,
	.khw-page-hero .page-hero--service .page-bar {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 1024px) {
	.khw-page-hero .hero {
		min-height: 460px;
	}

	.khw-page-hero .hero--plain {
		min-height: 400px;
	}

	.khw-page-hero .page-hero--full {
		min-height: 0;
	}
}

@media (max-width: 700px) {
	.khw-page-hero .page-bar {
		flex-direction: column;
		align-items: flex-start;
		margin-top: 40px;
		padding: 26px 0 30px;
	}

	.khw-page-hero .page-lead,
	.khw-page-hero .page-intro {
		font-size: 16px;
	}

	.khw-page-hero .hero-deco {
		width: 240px;
		opacity: .6;
	}
}

/* Header bar only (title banner switched off) */
.khw-page-hero .page-hero--bar {
	min-height: 0;
	padding-bottom: 22px;
	background-image: none !important;
}

.khw-page-hero .page-hero--bar::before {
	content: none;
}
