/*
 * LBBC Campus Pro 4.0 — institutional header and three-column homepage hero.
 * Loaded last so it can safely refine the earlier component styles.
 */

:root {
	--lbbc-header-max: 1380px;
	--lbbc-navy-hero: #07163d;
	--lbbc-navy-panel: #0b1f58;
	--lbbc-rule: rgba(255, 255, 255, .16);
}

/* ---------- Utility bar ---------- */
.utility-bar {
	background: #061033;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	font-size: .7rem;
	letter-spacing: .01em;
}

.utility-bar__inner {
	min-height: 32px;
	gap: 18px;
}

.utility-bar__right,
.utility-bar__contact,
.utility-social {
	display: flex;
	align-items: center;
}

.utility-bar__right {
	gap: 16px;
}

.utility-bar__contact {
	gap: 18px;
}

.utility-social {
	gap: 9px;
	padding-left: 14px;
	border-left: 1px solid rgba(255, 255, 255, .18);
}

.utility-social a {
	width: 20px;
	height: 20px;
	justify-content: center;
}

.utility-social__icon {
	width: 13px;
	height: 13px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
}

.utility-menu {
	gap: 18px;
}

.utility-menu a,
.utility-bar__contact a {
	min-height: 32px;
	font-weight: 560;
}

/* ---------- Main header ---------- */
.site-header {
	background: rgba(255, 255, 255, .985);
	box-shadow: 0 3px 16px rgba(7, 16, 50, .05);
	backdrop-filter: blur(14px);
}

.site-header__inner {
	min-height: 74px;
	grid-template-columns: minmax(220px, 275px) minmax(0, 1fr) auto;
	gap: 22px;
}

.site-branding img,
.custom-logo {
	max-width: 248px;
	max-height: 54px;
}

.primary-navigation {
	min-width: 0;
}

.primary-menu {
	gap: clamp(14px, 1.45vw, 25px);
}

.primary-menu > li > a,
.primary-menu--brand .mega-menu-trigger {
	min-height: 74px;
	font-size: .81rem;
	font-weight: 680;
	letter-spacing: -.01em;
}

.primary-menu > li > a,
.primary-menu--brand .mega-menu-trigger {
	position: relative;
}

.primary-menu > li > a::after,
.primary-menu--brand .mega-menu-trigger::after {
	position: absolute;
	right: 0;
	bottom: 16px;
	left: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--lbbc-red);
	content: "";
	opacity: 0;
	transform: scaleX(.35);
	transition: opacity .2s ease, transform .25s ease;
}

.primary-menu > li > a:hover::after,
.primary-menu > .current-menu-item > a::after,
.primary-menu--brand .mega-menu-item.is-open > .mega-menu-trigger::after,
.primary-menu--brand .mega-menu-trigger:hover::after {
	opacity: 1;
	transform: scaleX(1);
}

.header-actions {
	gap: 8px;
}

.site-search-toggle {
	width: 38px;
	height: 38px;
}

.header-apply {
	min-height: 44px;
	padding: 0 20px;
	border-radius: 4px;
	font-size: .8rem;
}

.site-header.is-scrolled .site-header__inner,
.site-header.is-scrolled .primary-menu--brand > li > a,
.site-header.is-scrolled .primary-menu--brand .mega-menu-trigger,
.site-header.is-scrolled .primary-menu > li > a {
	min-height: 66px;
}

/* ---------- Mega menu: clean and editorial ---------- */
.mega-menu-panel {
	width: min(calc(100vw - 42px), 1380px);
	padding: 30px;
	border-radius: 0 0 14px 14px;
	box-shadow: 0 28px 64px rgba(7, 16, 50, .2);
}

.mega-menu-grid {
	min-height: 360px;
	grid-template-columns: .92fr .92fr .92fr 1.25fr;
}

.mega-menu-column {
	padding: 6px 30px;
}

.mega-menu-column h3 {
	margin-bottom: 19px;
	font-size: 1rem;
}

.mega-menu-column h3::after {
	width: 30px;
	height: 2px;
	background: var(--lbbc-red);
}

.mega-menu-column > a {
	padding: 9px 0;
	font-size: .86rem;
	font-weight: 590;
}

.mega-feature-card {
	min-height: 318px;
	margin-left: 24px;
	border-radius: 12px;
}

.mega-feature-card__content {
	padding: 26px;
}

.mega-feature-card__content strong {
	font-size: 1.32rem;
}

.mega-feature-card__content b {
	border-radius: 5px;
}

/* ---------- Hero ---------- */
.hero-section--institutional {
	overflow: visible;
	background: var(--lbbc-navy-hero);
}

.hero-section__inner--three-column {
	max-width: none;
	min-height: 520px;
	padding-right: 0;
	padding-left: max(24px, calc((100vw - var(--lbbc-header-max)) / 2));
	grid-template-columns: minmax(420px, .95fr) minmax(520px, 1.25fr) minmax(240px, .52fr);
	gap: 0;
}

.hero-copy {
	padding: 58px 46px 104px 0;
	background: linear-gradient(90deg, var(--lbbc-navy-hero) 0%, var(--lbbc-navy-hero) 75%, rgba(7, 22, 61, .92) 100%);
}

.hero-copy::after {
	display: none;
}

.hero-eyebrow {
	margin: 0 0 14px;
	color: rgba(255, 255, 255, .68) !important;
	font-size: .68rem !important;
	font-weight: 720;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.hero-copy h1 {
	max-width: 620px;
	margin-bottom: 18px;
	font-size: clamp(2.55rem, 4vw, 4.45rem);
	font-weight: 760;
	letter-spacing: -.045em;
	line-height: 1.05;
}

.hero-copy p:not(.hero-eyebrow) {
	max-width: 525px;
	margin-bottom: 25px;
	font-size: .98rem;
	line-height: 1.68;
}

.hero-actions {
	gap: 10px;
}

.hero-actions .button {
	min-height: 44px;
	border-radius: 4px;
	font-size: .78rem;
}

.hero-advisor-link {
	font-size: .78rem;
	font-weight: 630;
	text-decoration-thickness: 1px;
}

.hero-media {
	min-height: 520px;
	background: #111a31;
}

.hero-media::before {
	position: absolute;
	inset: 0 auto 0 0;
	z-index: 1;
	width: 18%;
	background: linear-gradient(90deg, rgba(7, 22, 61, .62), transparent);
	content: "";
	pointer-events: none;
}

.hero-media img {
	min-height: 520px;
	object-position: center center;
}

.hero-stats {
	display: grid;
	min-height: 520px;
	align-content: stretch;
	padding: 22px 30px 72px;
	border-left: 2px solid rgba(196, 18, 32, .75);
	background: linear-gradient(180deg, #102460 0%, #07163d 100%);
}

.hero-stat {
	display: grid;
	align-items: center;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 15px;
	padding: 18px 0;
	border-bottom: 1px solid var(--lbbc-rule);
}

.hero-stat__icon {
	display: grid;
	width: 46px;
	height: 46px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .27);
	border-radius: 9px;
	color: #fff;
}

.hero-stat-icon {
	width: 23px;
	height: 23px;
}

.hero-stat__copy {
	display: grid;
	gap: 3px;
}

.hero-stat__copy small {
	color: rgba(255, 255, 255, .63);
	font-size: .63rem;
	font-weight: 720;
	letter-spacing: .07em;
	line-height: 1.35;
	text-transform: uppercase;
}

.hero-stat__copy strong {
	color: #fff;
	font-size: clamp(1.55rem, 2vw, 2.05rem);
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.hero-stats__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	align-self: end;
	padding-top: 18px;
	color: #fff;
	font-size: .78rem;
	font-weight: 650;
}

/* ---------- Search bar ---------- */
.programme-search-wrap {
	z-index: 20;
	margin-top: -54px;
}

.programme-search-panel {
	grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(190px, auto);
	gap: 12px;
	padding: 14px 16px 15px;
	border-radius: 7px;
	background: rgba(8, 25, 70, .985);
	box-shadow: 0 18px 42px rgba(7, 16, 50, .22);
}

.programme-search-panel select,
.programme-search-panel input,
.programme-search-panel .button {
	min-height: 48px;
	border-radius: 4px;
}

.programme-filter-field label {
	margin-bottom: 5px;
	font-size: .68rem;
	font-weight: 650;
}

.programme-search-panel .button {
	align-self: end;
	font-size: .78rem;
}

/* ---------- Page sections ---------- */
.home-section,
.programmes-section,
.pathways-section,
.academic-schools-section,
.why-lbbc-section,
.news-events-section,
.video-testimonials,
.intakes-scholarships-news {
	padding-block: clamp(50px, 6vw, 82px);
}

.section-heading h2 {
	letter-spacing: -.025em;
}

.programme-card,
.school-card,
.pathway-card,
.info-panel,
.news-carousel-card,
.video-testimonial-card {
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(7, 16, 50, .055);
}

.programme-card:hover,
.school-card:hover,
.pathway-card:hover,
.video-testimonial-card:hover,
.news-carousel-card:hover,
.info-panel:hover {
	transform: translateY(-5px);
	box-shadow: 0 18px 36px rgba(7, 16, 50, .11);
}

/* ---------- Inner pages ---------- */
.inner-page-hero {
	background: linear-gradient(105deg, rgba(7, 16, 50, .97), rgba(7, 22, 61, .78)), var(--inner-hero-image) center/cover no-repeat;
}

.inner-page-hero::after {
	display: none;
}

.inner-page-hero__inner {
	min-height: 310px;
	padding-block: 58px;
}

.inner-page-hero h1 {
	font-size: clamp(2.3rem, 4vw, 4rem);
	letter-spacing: -.04em;
}

.page-content-shell {
	padding-block: 64px 88px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
	.site-header__inner {
		grid-template-columns: 215px minmax(0, 1fr) auto;
		gap: 14px;
	}
	.site-branding img,
	.custom-logo {
		max-width: 210px;
	}
	.primary-menu {
		gap: 14px;
	}
	.primary-menu > li > a,
	.primary-menu--brand .mega-menu-trigger {
		font-size: .76rem;
	}
	.hero-section__inner--three-column {
		grid-template-columns: minmax(370px, .9fr) minmax(440px, 1.15fr) minmax(220px, .5fr);
	}
	.hero-stats {
		padding-inline: 22px;
	}
}

@media (max-width: 1080px) {
	.utility-bar__contact span,
	.utility-menu span {
		display: none;
	}
	.site-header__inner {
		grid-template-columns: minmax(190px, 235px) 1fr auto;
	}
	.hero-section__inner--three-column {
		padding-left: 24px;
		grid-template-columns: minmax(350px, .9fr) 1.1fr;
	}
	.hero-stats {
		grid-column: 1 / -1;
		min-height: auto;
		grid-template-columns: repeat(4, 1fr);
		padding: 0 24px;
		border-top: 1px solid rgba(255, 255, 255, .12);
		border-left: 0;
	}
	.hero-stat {
		grid-template-columns: 38px 1fr;
		padding: 16px 12px;
		border-right: 1px solid rgba(255, 255, 255, .12);
		border-bottom: 0;
	}
	.hero-stat:last-of-type {
		border-right: 0;
	}
	.hero-stat__icon {
		width: 36px;
		height: 36px;
		border-radius: 6px;
	}
	.hero-stat-icon {
		width: 19px;
		height: 19px;
	}
	.hero-stats__link {
		display: none;
	}
}

@media (max-width: 960px) {
	.utility-bar {
		display: none;
	}
	.site-header__inner {
		min-height: 68px;
		grid-template-columns: 1fr auto auto;
	}
	.site-branding img,
	.custom-logo {
		max-width: 220px;
		max-height: 50px;
	}
	.menu-toggle {
		display: inline-flex;
	}
	.primary-navigation {
		position: fixed;
		top: 68px;
		right: 0;
		bottom: 0;
		left: 0;
		overflow-y: auto;
		padding: 14px 24px 50px;
		background: #fff;
		box-shadow: 0 24px 48px rgba(7, 16, 50, .15);
	}
	.admin-bar .primary-navigation {
		top: 100px;
	}
	.primary-navigation:not(.is-open) {
		display: none;
	}
	.primary-menu {
		display: block;
	}
	.primary-menu > li > a,
	.primary-menu--brand .mega-menu-trigger {
		width: 100%;
		min-height: 52px;
		justify-content: space-between;
		font-size: .95rem;
	}
	.header-apply {
		display: none;
	}
	.mega-menu-panel {
		width: 100%;
		padding: 8px 0 18px;
		border-radius: 0;
	}
	.hero-section__inner--three-column {
		padding: 0;
		grid-template-columns: 1fr;
	}
	.hero-copy {
		padding: 56px 24px 38px;
	}
	.hero-copy h1 {
		max-width: 700px;
	}
	.hero-media,
	.hero-media img {
		min-height: 430px;
	}
	.hero-stats {
		grid-template-columns: repeat(2, 1fr);
		padding-inline: 20px;
	}
	.hero-stat:nth-child(2) {
		border-right: 0;
	}
	.hero-stat:nth-child(-n+2) {
		border-bottom: 1px solid rgba(255, 255, 255, .12);
	}
	.programme-search-wrap {
		margin-top: 0;
		background: #07163d;
		padding-bottom: 20px;
	}
	.programme-search-panel {
		grid-template-columns: repeat(2, 1fr);
	}
	.programme-search-panel .button {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.site-branding img,
	.custom-logo {
		max-width: 185px;
	}
	.header-actions {
		gap: 0;
	}
	.hero-copy {
		padding-top: 44px;
	}
	.hero-copy h1 {
		font-size: clamp(2.25rem, 12vw, 3.35rem);
	}
	.hero-media,
	.hero-media img {
		min-height: 320px;
	}
	.hero-stats {
		grid-template-columns: 1fr;
		padding-inline: 18px;
	}
	.hero-stat {
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
	}
	.hero-stat:last-of-type {
		border-bottom: 0 !important;
	}
	.programme-search-panel {
		grid-template-columns: 1fr;
		padding: 16px;
	}
	.programme-search-panel .button {
		grid-column: auto;
	}
	.mega-menu-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.primary-menu > li > a::after,
	.primary-menu--brand .mega-menu-trigger::after {
		transition: none;
	}
}
