/*
 * GIQ AAE UX fixes — advance-learnearngrow.org
 * Source: UX/UI audit, 28 Nov 2026. Finding numbers in comments (C = critical, M = major, A = accessibility, N = design note).
 */

:root {
	--aae-ux-navy: #0A033C;
	--aae-ux-blue: #0B6DBF;
	--aae-ux-blue-dark: #08579A;
	--aae-ux-tint: #ECF5F8;
	--aae-ux-tint-2: #DCEBF3;
}

/* ------------------------------------------------------------------ */
/* C · Mobile and tablet menu (ElementsKit off-canvas)                 */
/* ------------------------------------------------------------------ */
@media (max-width: 1024px) {
	/* Toggle: brand outline instead of the kit's cyan button fill */
	#aae-header button.elementskit-menu-hamburger,
	#aae-header button.elementskit-menu-hamburger:hover,
	#aae-header button.elementskit-menu-hamburger:focus {
		display: inline-flex !important;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 5px;
		width: 44px;
		height: 44px;
		padding: 0 !important;
		background: #fff !important;
		background-image: none !important;
		border: 1px solid rgba(10, 3, 60, 0.25) !important;
		border-radius: 4px !important;
		box-shadow: none !important;
	}
	#aae-header button.elementskit-menu-hamburger .elementskit-menu-hamburger-icon {
		display: block;
		width: 22px !important;
		height: 2px !important;
		margin: 0 !important;
		background-color: var(--aae-ux-navy) !important;
	}
	#aae-header button.elementskit-menu-hamburger:focus-visible,
	#ekit-megamenu-main-menu button.elementskit-menu-close:focus-visible {
		outline: 3px solid var(--aae-ux-blue) !important;
		outline-offset: 2px;
	}

	/* Panel: solid white sheet on top of everything */
	#ekit-megamenu-main-menu.elementskit-menu-container {
		background: #fff !important;
		background-image: none !important;
		width: min(320px, 86vw) !important;
		max-width: none !important;
		height: 100vh !important;
		height: 100dvh !important;
		padding: 72px 0 24px !important;
		box-shadow: 0 0 32px rgba(10, 3, 60, 0.28);
		overflow-y: auto;
		z-index: 100000 !important;
		flex-direction: column !important;
		align-items: stretch !important;
		justify-content: flex-start !important;
	}
	.elementskit-menu-overlay.ekit-nav-menu--overlay {
		background-color: rgba(10, 3, 60, 0.55) !important;
		z-index: 99999 !important;
	}
	#ekit-megamenu-main-menu .elementskit-navbar-nav {
		width: 100%;
		flex: 0 0 auto !important;
		height: auto !important;
		max-height: none !important;
	}
	#ekit-megamenu-main-menu .elementskit-navbar-nav > li > a.ekit-menu-nav-link {
		display: block !important;
		padding: 14px 24px !important;
		font-size: 18px !important;
		line-height: 1.4 !important;
		color: var(--aae-ux-navy) !important;
		border-bottom: 1px solid #EEF1F4;
	}
	#ekit-megamenu-main-menu .elementskit-navbar-nav > li > a.ekit-menu-nav-link.active {
		color: var(--aae-ux-blue) !important;
		font-weight: 600 !important;
	}

	/* Close button: inside the panel, top right, brand style */
	#ekit-megamenu-main-menu .elementskit-nav-identity-panel {
		position: absolute !important;
		top: 0;
		left: 0;
		right: 0;
		height: 64px;
		display: flex !important;
		justify-content: flex-end;
		align-items: center;
		padding: 0 14px !important;
		margin: 0 !important;
		border-bottom: 1px solid #EEF1F4;
		background: #fff;
	}
	#ekit-megamenu-main-menu button.elementskit-menu-close,
	#ekit-megamenu-main-menu button.elementskit-menu-close:hover,
	#ekit-megamenu-main-menu button.elementskit-menu-close:focus {
		position: static !important;
		float: none !important;
		width: 44px !important;
		height: 44px !important;
		padding: 0 !important;
		margin: 0 !important;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		background: transparent !important;
		background-image: none !important;
		border: 1px solid rgba(10, 3, 60, 0.25) !important;
		border-radius: 4px !important;
		color: var(--aae-ux-navy) !important;
		font-size: 0 !important;
		line-height: 1 !important;
		box-shadow: none !important;
	}
	#ekit-megamenu-main-menu button.elementskit-menu-close::before {
		content: "\00D7";
		font-size: 28px;
		line-height: 1;
		font-weight: 400;
		color: var(--aae-ux-navy);
	}

	/* Call + Get Started block injected by ux-fixes.js */
	#ekit-megamenu-main-menu .aae-ux-menu-actions {
		display: flex;
		flex-direction: column;
		gap: 12px;
		padding: 20px 24px 8px;
	}
	#ekit-megamenu-main-menu .aae-ux-menu-actions a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 48px;
		padding: 12px 16px;
		border-radius: 4px;
		font-size: 16px;
		font-weight: 500;
		text-decoration: none;
	}
	#ekit-megamenu-main-menu .aae-ux-menu-actions .aae-ux-menu-cta {
		background: var(--aae-ux-blue);
		color: #fff !important;
	}
	#ekit-megamenu-main-menu .aae-ux-menu-actions .aae-ux-menu-call {
		border: 1px solid var(--aae-ux-blue);
		color: var(--aae-ux-blue) !important;
		background: #fff;
	}
	#ekit-megamenu-main-menu .aae-ux-menu-actions svg {
		width: 18px;
		height: 18px;
		fill: currentColor;
	}

	html.aae-ux-menu-open,
	html.aae-ux-menu-open body {
		overflow: hidden !important;
	}
}

/* Desktop: never show the injected mobile actions */
@media (min-width: 1025px) {
	#ekit-megamenu-main-menu .aae-ux-menu-actions {
		display: none !important;
	}
}

/* ------------------------------------------------------------------ */
/* M2 · Get Started in the phone header                                */
/* ------------------------------------------------------------------ */
@media (max-width: 767px) {
	#aae-header .elementor-element-742752a {
		gap: 10px !important;
	}
	#aae-header .elementor-element-742752a > a:first-child {
		flex: 0 1 150px;
		max-width: 150px;
	}
	#aae-header .elementor-element-742752a > a:first-child img,
	#aae-header .elementor-element-742752a > a:first-child svg {
		max-width: 100% !important;
		height: auto !important;
	}
	#aae-header .elementor-element-742752a a.aae-btn {
		display: inline-flex !important;
		order: 2;
		margin-left: auto;
		padding: 10px 14px !important;
		min-height: 44px;
		font-size: 14px !important;
		line-height: 1.2 !important;
		white-space: nowrap;
	}
	#aae-header .elementor-element-742752a .elementor-element-5581730 {
		order: 3;
		flex: 0 0 auto !important;
		width: auto !important;
	}
}

/* ------------------------------------------------------------------ */
/* M1 · Hero copy over the photo (Home, About) on phones and tablets   */
/* ------------------------------------------------------------------ */
@media (max-width: 767px) {
	.elementor-74 > section.elementor-element-19023d2,
	.elementor-178 > section.elementor-element-f9a311a {
		background-image: url("/wp-content/uploads/2020/08/header-background.avif") !important;
		background-size: cover !important;
		background-position: center top !important;
	}
	.elementor-74 > section.elementor-element-19023d2::after,
	.elementor-178 > section.elementor-element-f9a311a::after {
		content: "";
		display: block;
		width: 100%;
		height: 360px;
		margin-top: 8px;
		background-repeat: no-repeat;
		background-position: center bottom;
		background-size: contain;
	}
	.elementor-74 > section.elementor-element-19023d2::after {
		background-image: url("/wp-content/uploads/2020/10/2020-Grad-1-cropped.avif");
	}
	.elementor-178 > section.elementor-element-f9a311a::after {
		background-image: url("/wp-content/uploads/2020/11/CBabout_usA-e1605896844390.avif");
		height: 260px;
	}
}
@media (min-width: 768px) and (max-width: 1024px) {
	.elementor-74 > section.elementor-element-19023d2 .aae-container > .e-con:first-child,
	.elementor-178 > section.elementor-element-f9a311a .aae-container > .e-con:first-child {
		max-width: 56% !important;
		flex: 0 0 56% !important;
	}
}

/* ------------------------------------------------------------------ */
/* M3 · Three Year Plans cards (ADVANCE In Action)                     */
/* ------------------------------------------------------------------ */
.jet-listing-grid--682 .jet-listing-grid__items {
	width: 100% !important;
}
@media (min-width: 1025px) {
	.jet-listing-grid--682.jet-listing-grid__items > .jet-listing-grid__item,
	.jet-listing-grid__items.jet-listing-grid--682 > .jet-listing-grid__item {
		flex: 0 0 50% !important;
		max-width: 50% !important;
		width: 50% !important;
	}
}
.jet-listing-grid--682 .e-svg-base {
	flex: 0 0 22px !important;
	width: 22px !important;
}
.jet-listing-grid--682 .e-svg-base svg {
	width: 22px !important;
	height: 22px !important;
}
.jet-listing-grid--682 .aae-li-title {
	flex: 1 1 auto !important;
	min-width: 0 !important;
}
.jet-listing-grid--682 .aae-jlink-btn {
	flex: 0 0 auto !important;
}

/* ------------------------------------------------------------------ */
/* M4 · Card fallbacks when an item has no image                       */
/* ------------------------------------------------------------------ */
/* In the News / Case Studies */
.jet-listing-grid--1563 .aae-card:not(:has(img))::before {
	content: "";
	display: block;
	width: 100%;
	height: 202px !important;
	min-height: 0 !important;
	max-height: 202px !important;
	border-radius: 4px;
	border-bottom: 3px solid var(--aae-ux-navy);
	background-color: var(--aae-ux-tint-2);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230B6DBF'%3E%3Cpath d='M4 3h13a2 2 0 0 1 2 2v1h1a2 2 0 0 1 2 2v11a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V5a2 2 0 0 1 2-2Zm1 2v14a1 1 0 0 0 1 1h12.17A3 3 0 0 1 18 19V5H5Zm15 3v11a1 1 0 0 0 2 0V8h-2ZM7 7h9v4H7V7Zm0 6h9v1.5H7V13Zm0 3h6v1.5H7V16Z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 64px 64px;
	order: -1;
	/* Elementor containers use ::before for overlays; take this one out of that */
	position: relative !important;
	inset: auto !important;
	opacity: 1 !important;
	flex: 0 0 202px !important;
}
/* Leadership Board / Staff without a photo */
.jet-listing-grid--402 .aae-card:not(:has(img))::before,
.jet-listing-grid--305 .aae-card:not(:has(img))::before {
	content: "";
	display: block;
	width: 150px;
	height: 150px;
	margin: 0 auto 4px;
	border-radius: 50%;
	background-color: var(--aae-ux-tint-2);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237AA7C7'%3E%3Cpath d='M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Zm0 2c-4.4 0-8 2.24-8 5v1h16v-1c0-2.76-3.6-5-8-5Z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center 60%;
	background-size: 96px 96px;
	order: -1;
	flex: 0 0 auto;
	position: relative !important;
	inset: auto !important;
	opacity: 1 !important;
}
.jet-listing-grid--402 .aae-card:not(:has(img)),
.jet-listing-grid--305 .aae-card:not(:has(img)) {
	justify-content: flex-start !important;
}

/* ------------------------------------------------------------------ */
/* M7 · Program tiles are clickable (whole card)                      */
/* ------------------------------------------------------------------ */
.jet-listing-grid--274 .jet-listing-grid__item {
	position: relative;
}
/* the button's widget wrapper is position:relative; let the link overlay reach the card instead */
.jet-listing-grid--274 .jet-listing-grid__item .aae-jlink-btn,
.jet-listing-grid--274 .jet-listing-grid__item .jet-listing-dynamic-link {
	position: static !important;
}
.jet-listing-grid--274 .jet-listing-grid__item .jet-listing-dynamic-link__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.jet-listing-grid--274 .jet-listing-grid__item img {
	transition: transform 0.25s ease;
}
.jet-listing-grid--274 .jet-listing-grid__item:hover img {
	transform: scale(1.03);
}
.jet-listing-grid--274 .jet-listing-grid__item .aae-li-thumb {
	overflow: hidden;
}
.jet-listing-grid--274 .jet-listing-grid__item:hover h3 {
	color: var(--aae-ux-blue);
}

/* ------------------------------------------------------------------ */
/* M8 · Partner logos: grid on phones instead of one long column       */
/* ------------------------------------------------------------------ */
@media (max-width: 767px) {
	#partners .elementor-element-387dee0 {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px !important;
		justify-items: stretch;
	}
	#partners .elementor-element-387dee0 > a {
		width: auto !important;
		height: auto !important;
		padding: 6px !important;
		margin: 0 !important;
	}
	#partners .elementor-element-387dee0 > a img {
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 1 / 1;
		object-fit: contain;
	}
}

/* ------------------------------------------------------------------ */
/* A1 · Video play button focus ring                                   */
/* ------------------------------------------------------------------ */
a.ekit-video-popup:focus-visible {
	outline: 3px solid var(--aae-ux-navy) !important;
	outline-offset: 3px !important;
}

/* A2 · Skip link added by ux-fixes.js on pages that lack one */
.aae-ux-skip-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 100001;
	padding: 10px 16px;
	background: var(--aae-ux-navy);
	color: #fff !important;
	border-radius: 4px;
	font-size: 16px;
	text-decoration: none;
}
.aae-ux-skip-link:focus {
	top: 12px;
}

/* ------------------------------------------------------------------ */
/* N2 · One button style: kit buttons use the brand primary            */
/* ------------------------------------------------------------------ */
.elementor-kit-10 .jet-theme-core-location--single-location .elementor-button,
.elementor-kit-10 .jet-listing-dynamic-field__content .elementor-button {
	background-color: var(--aae-ux-blue) !important;
	background-image: none !important;
	/* the kit's global button style adds a cyan inset glow (box-shadow -70px 0 70px #4BDEFF) */
	box-shadow: none !important;
	color: #fff !important;
}
.elementor-kit-10 .jet-theme-core-location--single-location .elementor-button:hover,
.elementor-kit-10 .jet-listing-dynamic-field__content .elementor-button:hover {
	background-color: var(--aae-ux-blue-dark) !important;
}
.jet-popup .jet-popup__close-button,
.jet-popup .jet-popup__close-button:hover,
.jet-popup .jet-popup__close-button:focus {
	background: var(--aae-ux-navy) !important;
	background-image: none !important;
	box-shadow: none !important;
	border: 0 !important;
	color: #fff !important;
}
.jet-popup .jet-popup__close-button svg,
.jet-popup .jet-popup__close-button i {
	fill: #fff !important;
	color: #fff !important;
}

/* ------------------------------------------------------------------ */
/* N1 · One font family (top-bar details, staff and board roles)       */
/* ------------------------------------------------------------------ */
#aae-header .elementor-element-9011e73 p,
#aae-header .elementor-element-9011e73 a,
.aae-li-position,
.aae-li-position * {
	font-family: Roboto, sans-serif !important;
}

/* N4 · Top bar: one alignment */
@media (min-width: 768px) {
	#aae-header .elementor-element-9011e73 p {
		text-align: left !important;
	}
}

/* N5 · Staff and board role lines centred like the rest of the card */
.aae-li-position,
.aae-li-position .jet-listing-dynamic-field__content {
	text-align: center !important;
	justify-content: center;
}

/* N7 · Program pages: readable line length, aligned left edge */
.jet-theme-core-location--single-location .jet-listing-dynamic-field__content .elementor-section-boxed > .elementor-container {
	max-width: 760px !important;
	margin-left: 0 !important;
}
.jet-theme-core-location--single-location .jet-listing-dynamic-field__content .elementor-column-gap-default > .elementor-column > .elementor-element-populated {
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.jet-theme-core-location--single-location .jet-listing-dynamic-field__content .elementor-widget-button.elementor-align-center {
	text-align: left !important;
}

/* N8 · Home card headings look like links */
#aae-features h3 a {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.2s ease, color 0.2s ease;
}
#aae-features h3 a::after {
	content: " \2192";
	color: var(--aae-ux-blue);
}
#aae-features h3 a:hover,
#aae-features h3 a:focus-visible {
	color: var(--aae-ux-blue) !important;
	background-size: 100% 2px;
}
