/* ===========================================================================
   CareerHike — HEADER stylesheet (independent from footer on purpose).
   Covers: top bar, logo, primary nav, dropdowns, mega menus, Explore/
   Universities/Tools panels, account menu, search overlay, desktop drawer,
   and the mobile slide-in menu (all triggered from the header).
   Colours come from --mud-* CSS vars set per-site in Admin > Styling.
   =========================================================================== */

.mud-hf-header, .mud-hf-header * { box-sizing: border-box; }
.mud-hf-container { max-width: var(--mud-container-width, 1280px); margin: 0 auto; padding: 0 20px; }

/* Header container: constrained + centered on desktop so the bar doesn't
   run edge-to-edge on very wide screens. Written defensively (explicit
   width + !important) because something outside this stylesheet was
   overriding one side of the margin and pushing the bar off-centre. */
.mud-hf-header .mud-hf-container {
	width: 100% !important;
	max-width: 1400px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 0 24px !important;
	float: none !important;
}
body.mud-hf-scroll-lock { overflow: hidden; }

/* ---------------- Header ---------------- */

.mud-hf-header {
	background: var(--mud-header-bg, #fff);
	color: var(--mud-header-text, #111);
	font-family: var(--mud-font, inherit);
	border-bottom: 1px solid rgba(0,0,0,.06);
	position: relative;
	z-index: 100;
	display: flex !important;
	justify-content: center !important;
	width: 100% !important;
}
.mud-hf-header.mud-hf-sticky { position: sticky; top: 0; }

.mud-hf-header .mud-hf-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 56px;
}

.mud-hf-header-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.mud-hf-hamburger {
	background: none; border: none; cursor: pointer; padding: 8px;
	display: flex; flex-direction: column; gap: 5px; justify-content: center;
	flex-shrink: 0;
}
.mud-hf-hamburger span { width: 22px; height: 2px; background: currentColor; display: block; border-radius: 2px; }

.mud-hf-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; flex-shrink: 0; min-width: 0; }
.mud-hf-logo-text { font-weight: 800; font-size: 22px; color: var(--mud-primary, #F35000); white-space: nowrap; }
.mud-hf-logo-img { display: block; height: auto; max-height: 48px; max-width: 100%; flex-shrink: 0; }

/* Primary nav */
.mud-hf-nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mud-hf-nav-item { position: relative; }
.mud-hf-nav-link {
	display: flex; align-items: center; gap: 5px;
	padding: 8px 9px; text-decoration: none; color: inherit; font-weight: 600; font-size: 13.5px;
	border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.mud-hf-nav-link:hover, .mud-hf-nav-item.is-open .mud-hf-nav-link { background: rgba(0,0,0,.04); }
.mud-hf-caret { font-size: 11px; transition: transform .15s ease; }
.mud-hf-nav-item.is-open .mud-hf-caret { transform: rotate(180deg); }

.mud-hf-badge {
	background: var(--mud-primary, #F35000); color: #fff; font-size: 10px; font-weight: 700;
	padding: 1px 6px; border-radius: 999px; line-height: 1.6; text-transform: uppercase;
}
.mud-hf-icon { line-height: 1; }

/* Dropdown */
.mud-hf-dropdown {
	position: absolute; top: 100%; left: 0; min-width: 220px;
	background: #fff; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.12);
	list-style: none; margin: 8px 0 0; padding: 8px; opacity: 0; visibility: hidden;
	transform: translateY(6px); transition: all .15s ease; z-index: 50;
}
.mud-hf-nav-item.is-open .mud-hf-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.mud-hf-dropdown li a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 6px; text-decoration: none; color: #111; font-size: 14px; }
.mud-hf-dropdown li a:hover { background: #f4f5f7; }

/* Mega menu */
.mud-hf-mega {
	position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px);
	width: min(920px, 90vw); background: #fff; border-radius: 14px; box-shadow: 0 20px 48px rgba(0,0,0,.14);
	opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s ease; z-index: 50; padding: 24px;
}
.mud-hf-nav-item.is-open .mud-hf-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* Portaled to <body> by JS (mud-hf-frontend.js, initMegaPortal) so page-
   builder ancestor wrappers (Elementor sections etc.) with their own
   "overflow: hidden" or transform-based stacking context can't clip or bury
   it. Once portaled, JS sets exact top/left inline and toggles ".is-open"
   on the panel itself instead of relying on the ".mud-hf-nav-item.is-open"
   ancestor selector above (which no longer applies once it's moved out). */
/* Generic portal base — used by mega panels, simple nav dropdowns, and the
   account dropdown once JS moves them to a direct child of <body> (see
   mud-hf-frontend.js, portalize()/positionPortal()). Escapes any ancestor
   "overflow: hidden" that would otherwise clip them, and any ancestor (or
   body/html) "transform" that would otherwise hijack "position: fixed" —
   JS adds .mud-hf-portal-absolute and switches to scroll-aware absolute
   coordinates automatically when that's detected. */
.mud-hf-portal {
	position: fixed !important; top: 0; left: 0;
	right: auto !important; margin: 0 !important; transform: none !important;
	z-index: 999999; max-width: calc(100vw - 16px);
}
.mud-hf-portal.mud-hf-portal-absolute { position: absolute !important; }
.mud-hf-portal.is-open { opacity: 1; visibility: visible; }
.mud-hf-mega-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.mud-hf-mega-col h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; }
.mud-hf-mega-col ul { list-style: none; margin: 0; padding: 0; }
.mud-hf-mega-col-image { width: 100%; border-radius: 8px; margin-bottom: 10px; }
.mud-hf-mega-col li a { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; text-decoration: none; color: #111; font-size: 14px; font-weight: 600; }
.mud-hf-mega-col li a small { display: block; font-weight: 400; color: #6b7280; font-size: 12.5px; }
.mud-hf-mega-cta {
	display: inline-block; margin-top: 12px; padding: 8px 14px; border-radius: 8px;
	background: var(--mud-primary, #F35000); color: #fff !important; text-decoration: none; font-size: 13px; font-weight: 700;
}

/* ---------------- Explore Programs / Universities / Tools panel sizing ---------------- */

.mud-hf-mega-explore { width: min(1120px, 94vw); padding: 0; overflow: hidden; }
.mud-hf-mega-universities { width: min(400px, 92vw); padding: 18px; }
.mud-hf-mega-tools { width: min(640px, 92vw); padding: 26px 30px; }

/* Close (×) button, top-right of the Explore Programs panel */
.mud-hf-explore-close {
	position: absolute; top: 14px; right: 14px; z-index: 2;
	width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
	background: none; border: none; border-radius: 999px; cursor: pointer;
	font-size: 20px; line-height: 1; color: #6b7280;
}
.mud-hf-explore-close:hover { background: #f4f5f7; color: #111; }

/* ---- Explore Programs: fixed left topics, independently scrollable right programs ---- */

.mud-hf-explore-panel { display: flex; align-items: stretch; }

.mud-hf-explore-topics {
	width: 260px; flex-shrink: 0; background: #f7f8fb; border-right: 1px solid #eef0f3;
	padding: 10px 0; overflow-y: auto; max-height: 500px;
}
.mud-hf-explore-topics-heading {
	padding: 8px 18px 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
	color: var(--mud-primary, #F35000);
}
.mud-hf-explore-topic {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
	background: none; border: none; border-left: 3px solid transparent; text-align: left; cursor: pointer;
	padding: 11px 18px; font-size: 14px; font-weight: 600; color: #333; font-family: inherit;
}
.mud-hf-explore-topic-text { display: flex; flex-direction: column; gap: 2px; }
.mud-hf-explore-topic-sub { font-weight: 400; font-size: 11.5px; color: #8a8f9c; }
.mud-hf-explore-topic-arrow { font-size: 16px; color: #c2c6cf; transition: transform .15s ease, color .15s ease; flex-shrink: 0; }
.mud-hf-explore-topic:hover,
.mud-hf-explore-topic.is-active { background: #fff; color: var(--mud-primary, #F35000); border-left-color: var(--mud-primary, #F35000); }
.mud-hf-explore-topic.is-active .mud-hf-explore-topic-arrow { color: var(--mud-primary, #F35000); transform: translateX(2px); }

.mud-hf-explore-programs { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.mud-hf-explore-search {
	display: flex; align-items: center; gap: 8px; margin: 18px 22px 0;
	border: 1px solid #e5e7eb; border-radius: 10px; padding: 9px 14px; flex-shrink: 0;
}
.mud-hf-explore-search .dashicons { color: #9ca3af; }
.mud-hf-explore-search-input { border: none; outline: none; flex: 1; font-size: 14px; font-family: inherit; background: transparent; color: inherit; }

.mud-hf-explore-groups { flex: 1; min-width: 0; }
.mud-hf-explore-program-group { display: none; max-height: 500px; overflow-y: auto; padding: 18px 22px 22px; }
.mud-hf-explore-program-group.is-active { display: block; }
.mud-hf-explore-empty { color: #9ca3af; font-size: 13.5px; text-align: center; padding: 30px 0; margin: 0; }

.mud-hf-explore-search-results { max-height: 500px; overflow-y: auto; padding: 14px 22px 22px; }
.mud-hf-explore-search-empty { color: #9ca3af; font-size: 13.5px; text-align: center; padding: 30px 0; margin: 0; }

.mud-hf-program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mud-hf-program-card {
	display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid #eef0f3; border-radius: 12px;
	text-decoration: none; color: #1f2430; transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.mud-hf-program-card:hover { border-color: var(--mud-primary, #F35000); box-shadow: 0 10px 24px rgba(243,80,0,.12); transform: translateY(-1px); }
.mud-hf-program-card-head { display: flex; align-items: center; justify-content: space-between; min-height: 26px; }
.mud-hf-program-card-icon {
	width: 30px; height: 30px; border-radius: 8px; background: #fff4ee; color: var(--mud-primary, #F35000);
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mud-hf-program-card-icon svg { width: 16px; height: 16px; }
.mud-hf-badge-soft { background: #ecfdf3; color: #16a34a; }
.mud-hf-program-card-title { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.mud-hf-program-card-spec {
	display: inline-block; width: fit-content; font-size: 11.5px; font-weight: 600; color: var(--mud-primary, #F35000);
	background: #fff4ee; padding: 2px 9px; border-radius: 999px;
}
.mud-hf-program-card-compare { font-size: 12.5px; color: #6b7280; display: flex; align-items: center; gap: 6px; }
.mud-hf-program-card-compare::before { content: ''; width: 5px; height: 5px; border-radius: 999px; background: #22c55e; flex-shrink: 0; }
.mud-hf-program-card-link { margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--mud-primary, #F35000); display: flex; align-items: center; gap: 4px; }

/* ---- Top Universities: search + scrollable card list ---- */

.mud-hf-uni-panel { display: flex; flex-direction: column; gap: 12px; }
.mud-hf-uni-search { display: flex; align-items: center; gap: 8px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 9px 12px; }
.mud-hf-uni-search .dashicons { color: #9ca3af; }
.mud-hf-uni-search input { border: none; outline: none; flex: 1; font-size: 14px; font-family: inherit; background: transparent; color: inherit; }
.mud-hf-uni-grid { display: flex; flex-direction: column; gap: 6px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.mud-hf-uni-card { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: #1f2430; border: 1px solid transparent; }
.mud-hf-uni-card:hover { background: #f7f8fb; border-color: #eef0f3; }
.mud-hf-uni-card-logo {
	width: 42px; height: 42px; border-radius: 8px; background: #fff4ee; color: var(--mud-primary, #F35000);
	flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 800; font-size: 15px;
}
.mud-hf-uni-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.mud-hf-uni-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mud-hf-uni-card-name { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mud-hf-uni-card-approval { font-size: 11px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mud-hf-uni-card-specs { font-size: 11px; font-weight: 600; color: var(--mud-primary, #F35000); }
.mud-hf-uni-empty { text-align: center; color: #9ca3af; font-size: 13px; padding: 20px 0; margin: 0; }

/* ---- Tools: grouped, two-column icon list ---- */

.mud-hf-tools-panel { display: flex; flex-direction: column; gap: 22px; }
.mud-hf-tools-group h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #9199a8; font-weight: 700; }
.mud-hf-tools-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 30px; }
.mud-hf-tools-list li { break-inside: avoid; }
.mud-hf-tools-list a { display: flex; align-items: center; gap: 10px; padding: 8px 0; text-decoration: none; color: #1f2430; font-size: 13.5px; font-weight: 600; }
.mud-hf-tools-list a:hover { color: var(--mud-primary, #F35000); }
.mud-hf-tool-icon {
	width: 27px; height: 27px; border-radius: 7px; background: #fff4ee; color: var(--mud-primary, #F35000);
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mud-hf-tool-icon svg { width: 15px; height: 15px; }

/* Header right */
.mud-hf-header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mud-hf-icon-btn { background: none; border: none; cursor: pointer; padding: 7px; border-radius: 8px; color: inherit; display: flex; flex-shrink: 0; }
.mud-hf-icon-btn:hover { background: rgba(0,0,0,.05); }

/* Inline (in-flow) variant of the promo badge — e.g. next to a nav label */
.mud-hf-promo-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; flex-shrink: 0; white-space: nowrap; line-height: 1.4; }

/* Wraps the "Compare" CTA so the floating corner badge (below) can be
   positioned relative to it, instead of relative to the whole header —
   that's what lets the badge sit pinned to the CTA's top edge at any
   viewport width instead of drifting toward the header's right edge. */
.mud-hf-compare-wrap { position: relative; display: inline-flex; flex-shrink: 0; }

/* Corner variant: a small pinned "flag" above the CTA, not a full pill —
   kept visually distinct from the pill-shaped buttons around it. */
.mud-hf-promo-badge-corner {
	position: absolute; top: -14px; left: 14px; right: auto;
	border-radius: 6px; padding: 4px 9px; font-size: 11px; gap: 4px;
	box-shadow: 0 2px 6px rgba(0,0,0,.15); z-index: 1;
}

.mud-hf-compare-cta {
	display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: 999px;
	text-decoration: none; font-weight: 700; font-size: 12.5px; white-space: nowrap; flex-shrink: 0;
	border: 1px solid rgba(0,0,0,.05);
}

.mud-hf-login-btn {
	display: inline-flex; align-items: center; gap: 5px; padding: 8px 16px; border-radius: 999px;
	text-decoration: none; font-weight: 700; font-size: 12.5px; white-space: nowrap; flex-shrink: 0;
	background: var(--mud-primary, #F35000); color: #fff !important;
	transition: opacity .15s ease;
}
.mud-hf-login-btn:hover { opacity: .88; }

/* "Search" pill is now an icon-only button, matching the other icon buttons
   in the header (compact, no label/divider — saves width so the right
   side of the header stops overflowing on narrower desktop screens). */
.mud-hf-search-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
	background: var(--mud-search-bg, #fff4ee); color: var(--mud-primary, #F35000);
	border: 1px solid rgba(0,0,0,.05); border-radius: 999px; cursor: pointer; font-family: inherit;
	flex-shrink: 0; padding: 0; transition: opacity .15s ease;
}
.mud-hf-search-btn:hover { opacity: .85; }
.mud-hf-search-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }

/* Account */
.mud-hf-account { position: relative; }
.mud-hf-account-toggle { display: flex; align-items: center; gap: 5px; }
.mud-hf-account-name { font-weight: 600; font-size: 12.5px; }
.mud-hf-account-dropdown {
	position: absolute; top: 100%; right: 0; min-width: 200px; list-style: none; margin: 8px 0 0; padding: 8px;
	background: #fff; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.12);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .15s ease; z-index: 50;
}
.mud-hf-account.is-open .mud-hf-account-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.mud-hf-account-dropdown li a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 6px; text-decoration: none; color: #111; font-size: 14px; }
.mud-hf-account-dropdown li a:hover { background: #f4f5f7; }

/* Search overlay */
.mud-hf-search-overlay {
	position: fixed; inset: 0; background: rgba(15,17,23,.55); z-index: 300;
	display: flex; align-items: flex-start; justify-content: center; padding: 10vh 20px;
	opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.mud-hf-search-overlay.is-open { opacity: 1; pointer-events: auto; }
.mud-hf-search-box {
	background: #fff; width: min(640px, 100%); border-radius: 14px; padding: 14px 18px;
	display: flex; align-items: center; gap: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.mud-hf-search-box input { flex: 1; border: none; outline: none; font-size: 16px; }
.mud-hf-search-results { background: #fff; width: min(640px, 100%); margin-top: 8px; border-radius: 14px; max-height: 50vh; overflow: auto; }
.mud-hf-search-results ul { list-style: none; margin: 0; padding: 8px; }
.mud-hf-search-results li a { display: flex; justify-content: space-between; gap: 10px; padding: 10px; border-radius: 8px; text-decoration: none; color: #111; }
.mud-hf-search-results li a:hover { background: #f4f5f7; }
.mud-hf-search-results small { color: #9ca3af; }
.mud-hf-search-loading, .mud-hf-search-empty { padding: 16px; color: #6b7280; text-align: center; margin: 0; }

/* ---------------- Desktop Drawer ---------------- */

.mud-hf-drawer {
	position: fixed; inset: 0 auto 0 0; width: min(720px, 92vw); background: var(--mud-drawer-bg, #fff);
	z-index: 400; transform: translateX(-100%); transition: transform .28s ease; overflow-y: auto;
	box-shadow: 20px 0 60px rgba(0,0,0,.2);
}
.mud-hf-drawer.is-open { transform: translateX(0); }
.mud-hf-drawer-close { position: absolute; top: 16px; right: 16px; background: #f4f5f7; border: none; border-radius: 999px; width: 36px; height: 36px; cursor: pointer; }
.mud-hf-drawer-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; min-height: 100%; }
.mud-hf-drawer-col { padding: 56px 32px 32px; }
.mud-hf-drawer-right { background: #fff4ee; }
.mud-hf-drawer-col h3 { font-size: 16px; color: var(--mud-primary, #F35000); margin: 0 0 14px; }
.mud-hf-drawer-col ul { list-style: none; margin: 0 0 22px; padding: 0; }
.mud-hf-drawer-col li a { display: flex; align-items: center; gap: 8px; padding: 9px 0; text-decoration: none; color: #1f2430; font-size: 14.5px; }
.mud-hf-drawer-section { margin-bottom: 26px; }
.mud-hf-drawer-contact li { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 14.5px; color: #1f2430; }
.mud-hf-drawer-contact a { color: inherit; text-decoration: none; }

.mud-hf-drawer-backdrop { position: fixed; inset: 0; background: rgba(15,17,23,.5); z-index: 390; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.mud-hf-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ---------------- Mobile Menu ---------------- */

.mud-hf-mobile-menu {
	position: fixed; inset: 0; width: 100%; height: 100%; background: var(--mud-drawer-bg, #fff);
	z-index: 400; transform: translateY(100%); transition: transform .28s ease;
	display: flex; flex-direction: column;
}
.mud-hf-mobile-menu.is-open { transform: translateY(0); }
.mud-hf-mobile-menu-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px; border-bottom: 1px solid #eee; }
.mud-hf-mobile-logo { display: flex; align-items: center; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.mud-hf-mobile-logo-img { display: block; height: auto; max-height: 36px; max-width: 100%; }
.mud-hf-mobile-tagline { font-weight: 800; color: var(--mud-primary, #F35000); white-space: nowrap; }
.mud-hf-mobile-close { background: #f4f5f7; border: none; border-radius: 999px; width: 34px; height: 34px; cursor: pointer; }
.mud-hf-mobile-menu-body { flex: 1; overflow-y: auto; padding: 8px 20px 40px; -webkit-overflow-scrolling: touch; }

.mud-hf-mobile-section { border-bottom: 1px solid #eee; padding: 16px 0; }
.mud-hf-mobile-section h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--mud-primary, #F35000); }
.mud-hf-mobile-list, .mud-hf-mobile-submenu { list-style: none; margin: 0; padding: 0; }
.mud-hf-mobile-submenu { padding-left: 14px; display: none; }
.mud-hf-mobile-item.is-expanded > .mud-hf-mobile-submenu { display: block; }

.mud-hf-mobile-item-row { display: flex; align-items: center; justify-content: space-between; }
.mud-hf-mobile-item-link { flex: 1; display: flex; align-items: center; gap: 8px; padding: 11px 0; text-decoration: none; color: #1f2430; font-size: 15px; }
.mud-hf-mobile-item-toggle { background: none; border: none; padding: 10px; cursor: pointer; color: #6b7280; }
.mud-hf-mobile-item.is-expanded > .mud-hf-mobile-item-row .mud-hf-caret { transform: rotate(90deg); display: inline-block; }
.mud-hf-mobile-item-toggle .mud-hf-caret { transition: transform .15s ease; display: inline-block; }

.mud-hf-contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.mud-hf-contact-card {
	display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
	padding: 14px 10px; border: 1px solid #eee; border-radius: 12px; text-decoration: none; color: #1f2430;
}
.mud-hf-contact-card-label { font-weight: 700; font-size: 13.5px; }
.mud-hf-contact-card-desc { font-size: 11.5px; color: #6b7280; }

.mud-hf-mobile-greeting { margin: 8px 0 14px; }
.mud-hf-mobile-account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mud-hf-mobile-account-btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
	background: #f4f5f7; text-decoration: none; color: #1f2430; font-size: 13.5px; font-weight: 600;
}

.mud-hf-mobile-backdrop { position: fixed; inset: 0; background: rgba(15,17,23,.5); z-index: 390; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.mud-hf-mobile-backdrop.is-open { opacity: 1; pointer-events: auto; }

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

@media (max-width: 1100px) {
	.mud-hf-nav-list { gap: 0; }
	.mud-hf-nav-link { padding: 8px 6px; font-size: 13px; }
	.mud-hf-mega-explore { width: min(760px, 92vw); }
	.mud-hf-explore-topics { width: 210px; }
	.mud-hf-program-grid { grid-template-columns: repeat(2, 1fr); }
	.mud-hf-account-name { display: none; }
}

@media (max-width: 1300px) and (min-width: 1101px) {
	.mud-hf-mega-explore { width: min(900px, 92vw); }
	.mud-hf-program-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 782px) {
	.mud-hf-container { padding: 0 14px; }
	.mud-hf-header .mud-hf-container { padding: 0 14px; gap: 10px; min-height: 58px; }

	/* The full desktop menu was never hidden on mobile — it was fighting the
	   logo and right-side icons for space in the same row, which is what
	   squeezed the logo out and made the bar look crowded/misaligned.
	   Mobile uses the hamburger drawer / mobile menu instead. */
	.mud-hf-nav { display: none; }

	.mud-hf-header-left { gap: 6px; flex-shrink: 0; }
	.mud-hf-header-right { gap: 8px; flex-shrink: 0; align-items: center; }

	/* Hamburger sits flush against the logo — no extra click-padding on its
	   right side, since that padding was reading as a big visual gap. */
	.mud-hf-hamburger { padding: 4px 2px 4px 0; margin: 0; }
	.mud-hf-hamburger span { width: 18px; }
	.mud-hf-logo { gap: 6px; margin-left: 0; }

	/* Logo: give it real height so it doesn't look squashed next to the
	   hamburger, and let the width follow naturally. */
	.mud-hf-logo-img { max-height: 38px; width: auto; object-fit: contain; }
	.mud-hf-logo-text { font-size: 18px; }

	.mud-hf-account-name { display: none; }

	/* AI-Powered badge: on mobile it drops the floating "flag over the
	   Compare button" treatment and sits inline, right before Compare —
	   "Logo ... space ... AI-Powered | Compare". */
	.mud-hf-compare-wrap { align-items: center; gap: 6px; }
	.mud-hf-promo-badge,
	.mud-hf-promo-badge-corner { font-size: 10px; padding: 4px 8px; gap: 3px; line-height: 1.4; }
	.mud-hf-promo-badge-corner {
		position: static; top: auto; left: auto; box-shadow: none;
	}

	.mud-hf-icon-btn { padding: 5px; }
	.mud-hf-icon-btn .dashicons { font-size: 18px; width: 18px; height: 18px; }
	.mud-hf-compare-cta { font-size: 11.5px; padding: 7px 12px; gap: 4px; border-radius: 7px; }
	.mud-hf-login-btn { font-size: 11px; padding: 6px 11px; gap: 4px; }

	/* Mobile header shows the hamburger, logo, the AI-Powered badge, and the
	   Compare button. Search and account/login stay tucked behind the
	   hamburger — they're already available inside the mobile slide-in menu
	   (#mud-hf-mobile-menu) via its Account/Contact sections. */
	.mud-hf-search-btn,
	.mud-hf-account,
	.mud-hf-login-btn { display: none !important; }

	.mud-hf-drawer-inner { grid-template-columns: 1fr; }
	.mud-hf-drawer-col { padding: 56px 20px 24px; }
	.mud-hf-contact-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
	.mud-hf-header .mud-hf-container { min-height: 50px; gap: 8px; }
	.mud-hf-header-left { gap: 2px; }
	.mud-hf-header-right { gap: 6px; }
	.mud-hf-logo-img { max-height: 32px; }
	.mud-hf-logo-text { font-size: 16px; }
	.mud-hf-promo-badge { font-size: 9px; padding: 3px 7px; }
	.mud-hf-promo-badge span.mud-hf-icon { margin-right: -2px; }
	.mud-hf-compare-cta span.mud-hf-icon { display: none; }
	.mud-hf-compare-cta { padding: 6px 10px; font-size: 11px; }
	.mud-hf-login-btn { padding: 5px 9px; font-size: 10.5px; }
	.mud-hf-contact-cards { grid-template-columns: 1fr 1fr; }
	.mud-hf-drawer { width: 100vw; }
	.mud-hf-mobile-logo-img { max-height: 28px; }
	.mud-hf-mobile-tagline { display: none; }
}

@media (max-width: 360px) {
	.mud-hf-header .mud-hf-container { padding: 0 10px; }
	.mud-hf-header-left { gap: 2px; }
	.mud-hf-header-right { gap: 5px; }
	.mud-hf-promo-badge { padding: 3px 6px; font-size: 8.5px; }
	.mud-hf-compare-cta, .mud-hf-login-btn { font-size: 10px; padding: 5px 8px; }
	.mud-hf-logo-img { max-height: 28px; }
	.mud-hf-logo-text { font-size: 14px; }
}

/* prevent any horizontal overflow */
.mud-hf-header, .mud-hf-drawer, .mud-hf-mobile-menu { max-width: 100%; overflow-x: hidden; }

/* ===========================================================================
   v1.9 — Portal header look (logo · centred menu · Compare pill with flag ·
   Sign in · Search pill) and card-style Explore Programs panel.
   =========================================================================== */
.mud-hf-header { font-family: var(--mud-font, 'Poppins', sans-serif); border-bottom: 1px solid #eef0f4; }
@media (min-width: 993px) {
.mud-hf-header .mud-hf-container { min-height: 76px; gap: 16px; }
.mud-hf-hamburger span { width: 24px; height: 2.5px; background: #111827; }
.mud-hf-logo-img { max-height: 64px; width: auto !important; }

.mud-hf-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.mud-hf-nav-list { gap: 10px; }
.mud-hf-nav-link { font-size: 15px; font-weight: 500; color: #111827; padding: 10px 12px; gap: 8px; border-radius: 8px; }
.mud-hf-nav-link:hover, .mud-hf-nav-item.is-open .mud-hf-nav-link { background: #fdf6f3; color: #F35000; }
.mud-hf-caret { flex-shrink: 0; transition: transform .18s ease; }

.mud-hf-header-right { gap: 14px; }
.mud-hf-compare-wrap { padding-top: 6px; }
.mud-hf-compare-cta { font-size: 15px; font-weight: 500; padding: 9px 16px 9px 10px; border-radius: 10px; gap: 6px; border: 0; }
.mud-hf-compare-cta:hover { filter: brightness(.97); }
.mud-hf-verified { flex-shrink: 0; }
.mud-hf-promo-badge-corner { top: -10px; left: 50%; transform: translateX(-50%); border-radius: 6px 6px 6px 6px; font-size: 12px; font-weight: 600; padding: 3px 12px; box-shadow: none; }
.mud-hf-login-btn { border-radius: 8px; padding: 12px 22px; font-size: 15px; font-weight: 600; background: #F35000; }
.mud-hf-search-btn { width: auto; height: auto; padding: 11px 18px; gap: 8px; border-radius: 10px; background: #fff4ee; border: 0; color: #F35000; font-size: 15px; font-weight: 500; }
.mud-hf-search-sep { opacity: .9; font-weight: 400; }
}
/* Mobile: keep compact sizes, only the new colours/shapes */
.mud-hf-compare-cta { border: 0; }
.mud-hf-search-label, .mud-hf-search-sep { display: none; }
@media (min-width: 1181px) { .mud-hf-search-label, .mud-hf-search-sep { display: inline; } }

/* ---- Explore Programs panel: blue left tabs + badge / icon / "Compare N Now" cards ---- */
.mud-hf-mega-explore { width: min(1240px, 96vw); border-radius: 14px; padding: 0; overflow: hidden; box-shadow: 0 24px 60px rgba(17, 24, 39, .16); }
.mud-hf-explore-panel { gap: 28px; padding: 24px 24px 24px 24px; background: #fff; }
.mud-hf-explore-topics { width: 290px; background: #fff; border: 0; border-radius: 14px; padding: 14px; box-shadow: 0 2px 14px rgba(17, 24, 39, .09); max-height: 560px; display: flex; flex-direction: column; gap: 4px; }
.mud-hf-explore-topics-heading { display: none; }
.mud-hf-explore-topic { border: 0 !important; border-radius: 10px; padding: 14px 16px; color: #1f2937; font-weight: 400; background: transparent; }
.mud-hf-explore-topic-text { gap: 6px; align-items: flex-start; }
.mud-hf-explore-topic-label { font-size: 17px; line-height: 1.25; }
.mud-hf-explore-topic-sub { display: inline-block; font-size: 12px; font-weight: 500; color: #F35000; background: #fff4ee; padding: 4px 10px; border-radius: 999px; line-height: 1.35; }
.mud-hf-explore-topic:hover { background: #fff8f5; color: #1f2937; }
.mud-hf-explore-topic.is-active { background: #F35000; color: #fff; }
.mud-hf-explore-topic.is-active .mud-hf-explore-topic-sub { background: #fff; color: #F35000; }
.mud-hf-explore-close { top: 8px; right: 8px; }

.mud-hf-explore-search { display: none; }
.mud-hf-explore-search-results[hidden] { display: none; }
.mud-hf-explore-program-group, .mud-hf-explore-search-results { max-height: 560px; padding: 4px 6px 10px 0; }

.mud-hf-program-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 14px; padding-top: 2px; }
.mud-hf-program-card { position: relative; align-items: center; text-align: center; gap: 0; padding: 30px 6px 0; min-height: 168px; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 1px 10px rgba(17, 24, 39, .12); overflow: hidden; color: #111827; }
.mud-hf-program-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(243, 80, 0, .18); border: 0; }
.mud-hf-pc-badge { position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; max-width: 94%; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; font-weight: 500; padding: 3px 10px; border-radius: 0 0 10px 10px; background: #fdebd8; color: #b45309; }
.mud-hf-pc-badge.is-green { background: #d7f5e3; color: #15935a; font-weight: 600; }
.mud-hf-program-card .mud-hf-program-card-icon { width: 40px; height: 40px; background: transparent; color: #F35000; border-radius: 0; margin: 4px auto 8px; }
.mud-hf-program-card .mud-hf-program-card-icon svg { width: 30px; height: 30px; stroke-width: 1.5; }
.mud-hf-program-card-title { font-size: 15px; font-weight: 400; line-height: 1.35; flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 0 4px 10px; }
.mud-hf-program-card-bar { align-self: stretch; margin: 0 -6px; background: #F35000; color: #fff; font-size: 13px; font-weight: 600; padding: 6px 4px; line-height: 1.3; }

@media (max-width: 1320px) {
	.mud-hf-nav-link { font-size: 14px; padding: 8px 8px; }
	.mud-hf-nav-list { gap: 2px; }
	.mud-hf-compare-cta, .mud-hf-search-btn, .mud-hf-login-btn { font-size: 13.5px; }
	.mud-hf-program-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
	.mud-hf-search-label, .mud-hf-search-sep { display: none; }
	.mud-hf-search-btn { padding: 10px 12px; }
	.mud-hf-program-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.mud-hf-explore-topics { width: 240px; }
}
@media (max-width: 992px) { .mud-hf-verified { width: 16px; height: 16px; } }
/* Mobile: hamburger · logo · "AI-Powered" flag sitting on the "Compare in 2 mins" pill */
@media (max-width: 782px) {
	.mud-hf-header .mud-hf-container { min-height: 64px; }
	.mud-hf-logo-img { max-height: 46px; }
	.mud-hf-compare-wrap { padding-top: 9px; }
	.mud-hf-promo-badge-corner { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); font-size: 9.5px; padding: 2px 8px; border-radius: 5px; z-index: 2; }
	.mud-hf-compare-cta { font-size: 12.5px; font-weight: 500; padding: 8px 10px 7px 7px; border-radius: 8px; }
}
@media (max-width: 420px) {
	.mud-hf-compare-cta { font-size: 11.5px; padding: 8px 8px 7px 6px; }
	.mud-hf-logo-img { max-height: 42px; }
}
@media (max-width: 350px) {
	.mud-hf-verified { display: none; }
}

/* Search results: thumbnails + "See all results" */
.mud-hf-search-results li a { align-items: center; }
.mud-hf-search-results li a span { flex: 1; min-width: 0; }
.mud-hf-search-thumb { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.mud-hf-search-results small { flex-shrink: 0; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #fff1e8; color: #c24000; }
.mud-hf-search-all { display: block; padding: 12px 18px; border-top: 1px solid #eef0f3; font-weight: 600; font-size: 14px; color: #f35000 !important; text-decoration: none; }
.mud-hf-search-all:hover { background: #fff7f2; }
.mud-hf-search-loading, .mud-hf-search-empty { padding: 14px 18px; margin: 0; color: #6b7280; }

/* Side gap at the header edges (like collegevidya): ~96px on a 1920px
   screen, scaling down on smaller screens. */
@media (min-width: 993px) {
	html body .mud-hf-header .mud-hf-container { max-width: none !important; padding-left: clamp(24px, 5.5vw, 105px) !important; padding-right: clamp(24px, 5.5vw, 105px) !important; }
}

/* ---- Hamburger drawer (Resources / Why CareerHike / Find us) ---- */
.mud-hf-drawer { width: min(900px, 94vw); }
.mud-hf-drawer-col { padding: 64px 44px 36px; }
.mud-hf-drawer-col h3 { font-size: 18px; font-weight: 600; color: #f35000; margin: 0 0 16px; }
.mud-hf-drawer-col ul { margin: 0 0 30px; }
.mud-hf-drawer-col li a { position: relative; gap: 10px; padding: 11px 0; font-size: 16px; color: #1f2430; transition: color .2s ease, transform .2s ease; }
.mud-hf-drawer-col li a::after { content: ''; position: absolute; left: 0; bottom: 6px; width: 0; height: 2px; background: #f35000; border-radius: 2px; transition: width .25s ease; }
.mud-hf-drawer-col li a:hover { color: #f35000; transform: translateX(4px); }
.mud-hf-drawer-col li a:hover::after { width: 28px; }
.mud-hf-drawer-col .mud-hf-badge { margin-left: 2px; background: #f35000; color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; padding: 3px 8px; border-radius: 999px; line-height: 1.3; }
.mud-hf-drawer-contact { margin-top: 4px !important; }
.mud-hf-drawer-contact li { gap: 12px; padding: 10px 0; font-size: 16px; }
.mud-hf-drawer-contact li > .dashicons, .mud-hf-drawer-contact li > .mud-hf-icon { color: #1f2430; font-size: 20px; width: 20px; height: 20px; flex-shrink: 0; }
.mud-hf-drawer-contact li strong { font-weight: 700; }
.mud-hf-drawer-contact li a { transition: color .2s ease; }
.mud-hf-drawer-contact li a:hover { color: #f35000; }
.mud-hf-drawer-contact li a::after { display: none; }
.mud-hf-drawer-contact li a:hover { transform: none; }
@media (max-width: 782px) {
	.mud-hf-drawer-col { padding: 56px 22px 24px; }
	.mud-hf-drawer-col li a, .mud-hf-drawer-contact li { font-size: 15px; }
}

/* ---- Top Universities panel: logos + 2 columns ---- */
.mud-hf-mega-universities { width: min(760px, 94vw) !important; }
.mud-hf-uni-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; max-height: 440px !important; overflow-y: auto; }
.mud-hf-uni-card[hidden] { display: none !important; }
.mud-hf-uni-card { border: 1px solid #f1f2f5 !important; transition: border-color .2s, box-shadow .2s, transform .2s; }
.mud-hf-uni-card:hover { border-color: #ffc9ad !important; background: #fff !important; box-shadow: 0 6px 16px rgba(243,80,0,.10); transform: translateY(-1px); }
.mud-hf-uni-card-logo { width: 64px !important; height: 44px !important; flex-shrink: 0; border-radius: 8px !important; background: #fff !important; border: 1px solid #eef0f3; padding: 4px; box-sizing: border-box; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #f35000; font-weight: 800; }
.mud-hf-uni-card-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mud-hf-uni-card-name { white-space: normal !important; line-height: 1.3; }
@media (max-width: 700px) { .mud-hf-uni-grid { grid-template-columns: 1fr; } }

/* CareerHike v2.4.0: header action buttons compact, like collegevidya.com (Compare / Sign Up / Search) */
@media (min-width: 993px) {
	.mud-hf-header .mud-hf-header-right { gap: 10px; }
	.mud-hf-header .mud-hf-compare-wrap { padding-top: 8px; }
	.mud-hf-header .mud-hf-compare-cta { font-size: 13px !important; font-weight: 500; padding: 5px 10px 5px 7px !important; border-radius: 7px; gap: 5px; line-height: 1.3; }
	.mud-hf-header .mud-hf-compare-cta .mud-hf-verified { width: 17px; height: 17px; }
	.mud-hf-header .mud-hf-promo-badge-corner { top: -8px; font-size: 10px !important; padding: 1px 8px !important; border-radius: 4px; line-height: 1.4; }
	.mud-hf-header .mud-hf-login-btn { font-size: 13px !important; font-weight: 600; padding: 6px 15px !important; border-radius: 6px; line-height: 1.35; }
	.mud-hf-header .mud-hf-search-btn { font-size: 13px !important; padding: 6px 12px !important; border-radius: 7px; gap: 5px; line-height: 1.35; }
	.mud-hf-header .mud-hf-search-btn svg { width: 14px; height: 14px; }
}
