/* =====================================================================
   ADB Education Header — front-end styles
   ===================================================================== */

.adb-header, .adb-header * { box-sizing: border-box; }

.adb-header__inner {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* Full-bleed background, boxed inner content ---------------------------
   The actual edge-to-edge stretch is applied in JS (script.js), because a
   pure CSS 100vw/negative-margin trick silently fails the moment any
   ancestor element has overflow:hidden or a transform on it — which is
   exactly what most Elementor sections/columns have by default. The JS
   routine also strips any clipping ancestors it finds so this keeps
   working regardless of the container it's dropped into.               */
.adb-header--stretched .adb-topbar,
.adb-header--stretched .adb-header__main {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------------
   Top bar (contact + social) — merged from the mkglobalconsultant layout
   --------------------------------------------------------------------- */
.adb-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 24px;
	padding-top: 8px;
	padding-bottom: 8px;
	font-size: 13px;
}

.adb-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.adb-contact__item { display: flex; align-items: center; gap: 8px; }
.adb-contact__item a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; transition: color .25s ease; }
.adb-contact__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; border-radius: 50%;
	font-size: 12px; flex-shrink: 0;
}

.adb-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.adb-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; font-size: 13px;
	border: 1px solid rgba(255,255,255,.25);
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
	text-decoration: none;
}

/* ---------------------------------------------------------------------
   Main header bar
   --------------------------------------------------------------------- */
.adb-header__main { position: relative; z-index: 20; }
.adb-header--sticky .adb-header__main {
	position: sticky; top: 0; z-index: 999;
	transition: box-shadow .25s ease;
}

.adb-header__main-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: nowrap;
}

.adb-header__logo { flex-shrink: 0; line-height: 0; }
.adb-header__logo img { height: auto; display: block; }

.adb-header__nav { flex: 1 1 auto; display: flex; }

.adb-header__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; position: relative; }

/* ---------------------------------------------------------------------
   Nav menu — base
   --------------------------------------------------------------------- */
.adb-nav-menu { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; gap: 6px; }
.adb-nav-menu li { position: relative; }
.adb-nav-menu > li > a {
	display: inline-flex; align-items: center;
	padding: 10px 14px;
	text-decoration: none;
	font-weight: 600;
	position: relative;
	transition: color .25s ease;
	white-space: nowrap;
}

/* menu-item-has-children caret */
.adb-nav-menu li.menu-item-has-children > a::after {
	content: "\f107";
	font-family: "Font Awesome 5 Free"; font-weight: 900;
	margin-left: 6px; font-size: 11px; opacity: .7;
}

/* Effect 1 — underline expands from center (Student Advisers style) ---- */
.adb-header--underline-center .adb-nav-menu > li > a::before {
	content: "";
	position: absolute;
	left: 50%; bottom: 6px;
	width: 0; height: 2px;
	transform: translateX(-50%);
	transition: width .3s ease;
}
.adb-header--underline-center .adb-nav-menu > li > a:hover::before,
.adb-header--underline-center .adb-nav-menu > li.current-menu-item > a::before {
	width: calc(100% - 28px);
}

/* Effect 2 — background fill */
.adb-header--background-fill .adb-nav-menu > li > a {
	border-radius: 6px;
	transition: color .25s ease, background-color .25s ease;
}

/* Effect 3 — text color only: no extra treatment needed */

/* Submenu (dropdown) ----------------------------------------------------- */
.adb-nav-menu .sub-menu {
	list-style: none;
	position: absolute;
	top: 100%; left: 0;
	min-width: 240px;
	margin: 0; padding: 8px 0;
	opacity: 0; visibility: hidden;
	transform: translateY(8px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
	box-shadow: 0 18px 40px rgba(0,0,0,.12);
	border-radius: 8px;
	z-index: 100;
}
.adb-nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.adb-nav-menu .sub-menu .sub-menu { top: 0; left: 100%; }
.adb-nav-menu .sub-menu a {
	display: block; padding: 10px 20px; text-decoration: none; font-weight: 500; font-size: 14px;
	transition: background-color .2s ease, color .2s ease; white-space: nowrap;
}

/* ---------------------------------------------------------------------
   Search
   --------------------------------------------------------------------- */
.adb-search-toggle {
	width: 38px; height: 38px; border-radius: 50%;
	border: 1px solid currentColor; background: transparent;
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer; transition: background-color .25s ease, color .25s ease;
}

.adb-search-box {
	position: absolute; top: calc(100% + 10px); right: 0;
	width: 0; overflow: hidden; opacity: 0;
	background: #fff; border-radius: 30px; box-shadow: 0 10px 30px rgba(0,0,0,.15);
	transition: width .3s ease, opacity .3s ease;
}
.adb-header.adb-search-open .adb-search-box { width: 260px; opacity: 1; }
.adb-search-box input {
	width: 100%; border: none; background: transparent; padding: 10px 18px;
	font-size: 14px; outline: none;
}

/* ---------------------------------------------------------------------
   Quick About button
   --------------------------------------------------------------------- */
.adb-btn-quickabout {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 18px; border: 2px solid currentColor; border-radius: 30px;
	text-decoration: none; font-weight: 600; font-size: 14px;
	transition: color .25s ease, background-color .25s ease, border-color .25s ease;
	white-space: nowrap;
}
.adb-btn-quickabout__icon { display: inline-flex; line-height: 0; font-size: 14px; }
.adb-btn-quickabout svg { fill: currentColor; width: 14px; height: 14px; }

/* ---------------------------------------------------------------------
   Quick About — Google-apps-style grid icon button
   --------------------------------------------------------------------- */
.adb-quickabout-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, 1fr);
	gap: 3px;
	width: 40px; height: 40px;
	padding: 9px;
	border: none;
	background: transparent;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color .25s ease;
	flex-shrink: 0;
}
.adb-quickabout-grid span {
	width: 4px; height: 4px;
	border-radius: 50%;
	background-color: #242D65; /* fallback so the dots are visible even before Elementor's per-widget CSS (re)generates */
	transition: background-color .25s ease;
}

.adb-quickabout-grid--icon {
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 18px;
}
.adb-quickabout-grid--icon i { line-height: 1; }
.adb-quickabout-grid--icon svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------------------------------------------------------------------
   Quick About — slide-in panel (mirrors the mkglobalconsultant.co.uk
   "about" off-canvas behaviour)
   --------------------------------------------------------------------- */
.adb-about-overlay {
	position: fixed; inset: 0;
	opacity: 0; visibility: hidden;
	transition: opacity .3s ease, visibility .3s ease;
	z-index: 100000;
}

.adb-about-panel {
	position: fixed; top: 0; bottom: 0;
	height: 100vh;
	max-width: 90vw;
	overflow-y: auto;
	padding: 60px 30px 40px;
	box-shadow: 0 0 40px rgba(0,0,0,.2);
	transition: transform .35s ease;
	z-index: 100001;
}
.adb-about-panel--right { right: 0; transform: translateX(100%); }
.adb-about-panel--left  { left: 0;  transform: translateX(-100%); }

.adb-header.adb-about-open .adb-about-overlay { opacity: 1; visibility: visible; }
.adb-header.adb-about-open .adb-about-panel   { transform: translateX(0); }

.adb-about-panel__logo { margin-bottom: 20px; }
.adb-about-panel__logo img { max-width: 160px; height: auto; }

.adb-about-panel h3 { margin: 0 0 14px; font-size: 20px; }
.adb-about-panel h4 { margin: 24px 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.adb-about-panel p { line-height: 1.7; font-size: 14px; margin: 0; }

.adb-about-panel .adb-contact--stacked { flex-direction: column; gap: 12px; }
.adb-about-panel .adb-contact__item a { color: inherit; }

.adb-social--panel { list-style: none; display: flex; gap: 10px; margin: 24px 0 0; padding: 0; }
.adb-social--panel a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%;
	background: rgba(0,0,0,.06); color: inherit; text-decoration: none;
	transition: background-color .25s ease;
}

.adb-about-close {
	position: absolute; top: 18px; right: 18px;
	width: 36px; height: 36px; border-radius: 50%;
	border: 1px solid rgba(0,0,0,.15);
	background: transparent;
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer; color: inherit;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.adb-about-close:hover { color: #fff; }
.adb-about-panel--left .adb-about-close { right: auto; left: 18px; }

/* ---------------------------------------------------------------------
   Apply Now button — red-to-blue mid-out sweep
   --------------------------------------------------------------------- */
.adb-btn-apply {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	overflow: hidden;
	text-decoration: none; font-weight: 700; white-space: nowrap;
	isolation: isolate; /* keep text above the sweep layer */
}
.adb-btn-apply span { position: relative; z-index: 2; }
.adb-btn-apply::before {
	content: "";
	position: absolute;
	top: 0; left: 50%;
	width: 100%; height: 100%;
	transform: translateX(-50%) scaleX(0);
	transform-origin: center;
	transition-property: transform;
	transition-timing-function: ease-out;
	z-index: 1;
}
.adb-btn-apply:hover::before { transform: translateX(-50%) scaleX(1); }

/* ---------------------------------------------------------------------
   Mobile burger + collapsed nav
   --------------------------------------------------------------------- */
.adb-burger {
	display: none; flex-direction: column; justify-content: center; gap: 5px;
	width: 34px; height: 30px; background: transparent; border: none; cursor: pointer;
	padding: 0; flex-shrink: 0;
}
.adb-burger span { display: block; width: 100%; height: 3px; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.adb-nav-open .adb-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.adb-nav-open .adb-burger span:nth-child(2) { opacity: 0; }
.adb-nav-open .adb-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1024px) {
	.adb-header__actions .adb-btn-quickabout { display: none; }
	.adb-nav-menu { flex-direction: column; align-items: flex-start; width: 100%; }
	.adb-nav-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; width: 100%; display: none; }
	.adb-nav-menu li.menu-item-has-children.adb-open > .sub-menu { display: block; }
	.adb-nav-menu .sub-menu .sub-menu { left: 0; padding-left: 14px; }
}

@media (max-width: 600px) {
	.adb-topbar .adb-contact__item span:not(.adb-contact__icon) { display: none; }
	.adb-topbar .adb-contact__item strong { display: none; }
}
