/*
 * Site header, Destinations mega menu and homepage banner slider.
 * Ported from the edubridge theme so both themes share the same top of page.
 */

@font-face {
	font-family: Poppins;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/poppins-latin-400.woff2") format("woff2");
}

@font-face {
	font-family: Poppins;
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/poppins-latin-500.woff2") format("woff2");
}

@font-face {
	font-family: Poppins;
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/poppins-latin-600.woff2") format("woff2");
}

@font-face {
	font-family: Poppins;
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/poppins-latin-700.woff2") format("woff2");
}

:root {
	--eb-primary: #066f78;
	--eb-primary-hover: #055a61;
	--eb-secondary: #2a9aa3;
	--eb-dark: #212427;
	--eb-black: #000000;
	--eb-light: #f3f4f5;
	--eb-white: #ffffff;
	--eb-muted: #5c6066;
	--eb-line: #e1e3e5;
	--eb-max: 1120px;
	--eb-photo-overlay: linear-gradient(
		180deg,
		color-mix(in srgb, var(--eb-primary) 42%, transparent) 0%,
		color-mix(in srgb, var(--eb-primary) 78%, #021618) 100%
	);
}

.eb-header,
.eb-hero-v2 {
	font-family: Poppins, system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: auto;
}

.eb-header :focus-visible,
.eb-hero-v2 :focus-visible {
	outline: 3px solid var(--eb-secondary);
	outline-offset: 2px;
}

/* Header */

.eb-header {
	position: sticky;
	top: 0;
	z-index: 50;
	color: var(--eb-dark);
	background: var(--eb-white);
	border-bottom: 1px solid var(--eb-line);
	overflow: visible;
}

.admin-bar .eb-header {
	top: 32px;
}

.eb-header__inner {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	width: min(var(--eb-max), calc(100% - 2.5rem));
	min-height: 72px;
	margin-inline: auto;
	gap: 1rem;
}

.eb-logo {
	display: inline-flex;
	align-items: center;
	align-self: center;
	text-decoration: none;
	line-height: 0;
}

.eb-logo__img {
	display: block;
	width: auto;
	height: 48px;
}

.eb-logo:hover {
	opacity: 0.92;
}

.eb-nav {
	position: static;
	display: flex;
	align-items: stretch;
}

.eb-nav > ul {
	display: flex;
	align-items: center;
	height: 100%;
	gap: 0.35rem 1.1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.eb-nav > ul > li > a {
	color: var(--eb-dark);
	font-size: 0.92rem;
	font-weight: 500;
	text-decoration: none;
}

.eb-nav > ul > li > a:hover {
	color: var(--eb-primary);
}

.eb-nav a[aria-current="page"],
.eb-nav .current-menu-item > a,
.eb-nav .current_page_item > a,
.eb-nav .eb-mega--current > a {
	color: var(--eb-primary);
}

.eb-nav > ul > li > a.eb-btn,
.eb-nav .eb-btn,
.eb-nav > ul > li > a.eb-btn:hover,
.eb-nav .eb-btn:hover {
	color: #fff;
}

/* Destinations mega menu */

.eb-has-mega {
	position: static;
	align-self: stretch;
	display: flex;
	align-items: center;
}

.eb-mega__trigger {
	display: inline-flex;
	align-items: center;
	align-self: stretch;
	gap: 0.3rem;
}

.eb-mega__caret {
	width: 0.45rem;
	height: 0.45rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	transition: transform 0.15s ease;
}

.eb-has-mega.is-open > .eb-mega__trigger .eb-mega__caret,
.eb-has-mega:hover > .eb-mega__trigger .eb-mega__caret {
	transform: rotate(225deg) translateY(-1px);
}

.eb-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 60;
	padding-top: 0.7rem;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.16s ease, visibility 0.16s ease;
}

.eb-has-mega:hover > .eb-mega,
.eb-has-mega:focus-within > .eb-mega,
.eb-has-mega.is-open > .eb-mega {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.eb-mega__panel {
	width: min(var(--eb-max), calc(100% - 2.5rem));
	margin-inline: auto;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem 2rem;
	padding: 1.35rem 1.6rem 1.5rem;
	background: var(--eb-white);
	border: 1px solid var(--eb-line);
	border-radius: 18px;
	box-shadow: 0 18px 48px rgba(33, 36, 39, 0.12);
}

.eb-mega__heading {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 0.7rem;
	color: var(--eb-muted);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.eb-mega__icon {
	display: inline-flex;
	color: var(--eb-primary);
}

.eb-mega__icon svg {
	width: 14px;
	height: 14px;
}

.eb-mega__list {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: left;
}

.eb-mega__list li {
	width: 100%;
}

.eb-mega__list a,
.eb-mega__list span {
	display: block;
	padding: 0.28rem 0;
	color: var(--eb-dark);
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.35;
	text-align: left;
	text-decoration: none;
}

.eb-mega__list a:hover,
.eb-mega__list a[aria-current="page"] {
	color: var(--eb-primary);
}

.eb-mega__more {
	display: inline-flex;
	margin-top: 0.65rem;
	color: var(--eb-primary);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
}

.eb-mega__more:hover {
	text-decoration: underline;
}

/* Mobile menu button */

.eb-nav-toggle {
	display: none;
	align-self: center;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.eb-nav-toggle__icon,
.eb-nav-toggle__icon::before,
.eb-nav-toggle__icon::after {
	position: relative;
	display: block;
	width: 22px;
	height: 2px;
	background: var(--eb-dark);
}

.eb-nav-toggle__icon::before,
.eb-nav-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
}

.eb-nav-toggle__icon::before {
	top: -7px;
}

.eb-nav-toggle__icon::after {
	top: 7px;
}

/* Buttons */

.eb-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.eb-actions--center {
	justify-content: center;
}

.eb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.2rem;
	border: 2px solid var(--eb-primary);
	border-radius: 999px;
	background: var(--eb-primary);
	color: #fff;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.65;
	text-decoration: none;
	cursor: pointer;
}

.eb-btn:hover {
	background: var(--eb-primary-hover);
	border-color: var(--eb-primary-hover);
}

.eb-btn--small {
	padding: 0.4rem 0.9rem;
	font-size: 0.85rem;
}

.eb-btn--dark {
	background: var(--eb-black);
	border-color: var(--eb-black);
	color: #fff;
}

.eb-btn--dark:hover {
	background: #141516;
	border-color: #141516;
}

.eb-btn--light {
	background: #fff;
	border-color: #fff;
	color: var(--eb-dark);
}

.eb-btn--light:hover {
	background: var(--eb-light);
	border-color: var(--eb-light);
}

/* Header floating over the homepage banner */

.has-hero-banner .eb-header {
	position: absolute;
	top: auto;
	left: 0;
	right: 0;
	background: transparent;
	border: 0;
}

.has-hero-banner .eb-header__inner {
	margin-top: 1rem;
	padding-inline: 0.7rem 0.45rem;
	min-height: 64px;
	border-radius: 999px;
	background: var(--eb-white);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
	overflow: visible;
}

.has-hero-banner .eb-nav {
	top: auto;
}

/* Homepage banner slider */

.eb-hero-v2 {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 100%;
	min-height: 100vh;
	padding: 8rem 1.25rem 2.5rem;
	overflow: hidden;
	color: #fff;
	background-color: #021618;
	background-image: var(--eb-hero-image);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.eb-hero-v2::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--eb-photo-overlay);
	pointer-events: none;
}

.eb-hero-v2 > * {
	position: relative;
	z-index: 1;
}

.eb-hero-slider {
	padding: 0;
	background-image: none;
}

.eb-hero-slider::before {
	display: none;
}

.eb-hero-slider__stage {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 70vh;
}

.eb-hero-slider__viewport {
	position: relative;
	flex: 1;
	display: grid;
	min-height: 70vh;
}

.eb-hero-slide {
	position: relative;
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 8rem 1.25rem 4.75rem;
	color: #fff;
	background-color: #021618;
	background-image: var(--eb-hero-image);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.85s ease, visibility 0.85s ease;
}

.eb-hero-slide::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--eb-photo-overlay);
	pointer-events: none;
}

.eb-hero-slide > * {
	position: relative;
	z-index: 1;
}

.eb-hero-slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.eb-hero-slider[data-hero-anim="slide"] .eb-hero-slide {
	opacity: 1;
	visibility: visible;
	transform: translateX(100%);
	transition: transform 0.75s ease;
	pointer-events: none;
}

.eb-hero-slider[data-hero-anim="slide"] .eb-hero-slide.is-prev {
	transform: translateX(-100%);
}

.eb-hero-slider[data-hero-anim="slide"] .eb-hero-slide.is-active {
	z-index: 1;
	transform: translateX(0);
	pointer-events: auto;
}

.eb-hero-v2__inner {
	width: min(900px, 100%);
	margin: 0 auto 3rem;
	text-align: center;
}

.eb-kicker {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.35rem 0.8rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.65;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.eb-hero-v2 h1,
.eb-hero-slide__title {
	max-width: none;
	margin: 0 0 1.2rem;
	color: #fff;
	font-family: inherit;
	font-size: clamp(2.6rem, 7vw, 5.4rem);
	line-height: 0.95;
	letter-spacing: -0.02em;
}

.eb-hero-v2 h1 {
	font-weight: 600;
}

.eb-hero-slide__title {
	font-weight: 700;
}

.eb-hero-v2__lead {
	max-width: 38rem;
	margin: 0 auto;
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.05rem;
}

.eb-hero-v2__trust {
	margin: 1.5rem 0 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9rem;
}

.eb-hero-slider__controls {
	position: absolute;
	left: 50%;
	bottom: 1.15rem;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	width: min(var(--eb-max), calc(100% - 2.5rem));
	margin: 0;
	transform: translateX(-50%);
	pointer-events: none;
}

.eb-hero-slider__controls > * {
	pointer-events: auto;
}

.eb-hero-slider__arrow {
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.eb-hero-slider__arrow:hover {
	background: rgba(255, 255, 255, 0.2);
}

.eb-hero-slider__dots {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.eb-hero-slider__dot {
	width: 0.55rem;
	height: 0.55rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.4);
	cursor: pointer;
}

.eb-hero-slider__dot.is-active {
	width: 1.6rem;
	background: #fff;
}

/* University strip under the banner */

.eb-clients {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 1.25rem 1.75rem;
	width: 100%;
	margin: 0;
	padding: 1.15rem 1.25rem 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(2, 22, 24, 0.35);
}

.eb-clients__label {
	margin: 0;
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
	opacity: 0.7;
}

.eb-clients__viewport {
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.eb-clients__track {
	display: flex;
	align-items: center;
	gap: 2.5rem;
	width: max-content;
	margin: 0;
	padding: 0.15rem 0;
	list-style: none;
	animation: eb-logo-scroll 28s linear infinite;
}

.eb-clients__track:hover {
	animation-play-state: paused;
}

.eb-clients__item {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
	text-decoration: none;
}

.eb-clients__item:hover {
	color: #fff;
}

.eb-uni-mark {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: 2.4rem;
	height: 2.4rem;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.12);
}

.eb-uni-mark__img {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: 0.2rem;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.eb-uni-mark__initials {
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.04em;
}

@keyframes eb-logo-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.eb-hero-slide,
	.eb-hero-slider[data-hero-anim="slide"] .eb-hero-slide {
		transition: none;
	}

	.eb-clients__viewport {
		-webkit-mask-image: none;
		mask-image: none;
		overflow-x: auto;
	}

	.eb-clients__track {
		flex-wrap: wrap;
		width: auto;
		gap: 1rem 1.5rem;
		animation: none;
	}

	.eb-clients__track li[aria-hidden="true"] {
		display: none;
	}
}

/* Announcement slider band under the banner */

.announcements-section {
	padding: 40px 0;
	background: var(--stone);
}

.home-main .eb-hero-v2 + .announcements-section {
	border-top: 0;
}

.announcements-section .announcement-carousel {
	margin: 0;
}

@media (max-width: 900px) {
	.eb-nav-toggle {
		display: grid;
		place-items: center;
	}

	.eb-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 72px;
		padding: 1rem 1.25rem 1.5rem;
		border-bottom: 1px solid var(--eb-line);
		background: var(--eb-white);
	}

	.eb-nav.is-open {
		display: block;
	}

	.eb-nav > ul {
		flex-direction: column;
		align-items: flex-start;
	}

	.eb-has-mega {
		flex-wrap: wrap;
		width: 100%;
	}

	.eb-has-mega:hover > .eb-mega__trigger .eb-mega__caret,
	.eb-has-mega:focus-within > .eb-mega__trigger .eb-mega__caret {
		transform: rotate(45deg) translateY(-1px);
	}

	.eb-has-mega.is-open > .eb-mega__trigger .eb-mega__caret {
		transform: rotate(225deg) translateY(-1px);
	}

	.eb-mega {
		position: static;
		flex-basis: 100%;
		display: none;
		padding-top: 0;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transition: none;
	}

	.eb-has-mega.is-open > .eb-mega {
		display: block;
	}

	.eb-mega__panel {
		width: 100%;
		margin: 0.35rem 0 0;
		grid-template-columns: 1fr;
		gap: 1rem;
		padding: 0.75rem 0 0.35rem 0.85rem;
		border: 0;
		border-left: 2px solid var(--eb-line);
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.eb-mega__heading {
		margin-bottom: 0.35rem;
	}

	.has-hero-banner .eb-header__inner {
		flex-wrap: wrap;
		padding-inline: 0.9rem;
		border-radius: 22px;
	}

	.has-hero-banner .eb-nav {
		position: static;
		flex-basis: 100%;
		padding: 0.5rem 0 1rem;
		border: 0;
		background: transparent;
	}

	.eb-hero-v2 {
		min-height: 92vh;
		padding-top: 7rem;
	}

	.eb-hero-slider {
		padding-top: 0;
	}

	.eb-hero-slide {
		padding-top: 7rem;
	}

	.eb-clients {
		grid-template-columns: 1fr;
		gap: 0.7rem;
		padding-inline: 1rem;
	}
}

@media (max-width: 782px) {
	.admin-bar .eb-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .eb-header {
		top: 0;
	}

	.announcements-section {
		padding: 28px 0;
	}
}
