/*
 * Premium copy of the primary mega-menu.
 * Scoped to the duplicated menu/template IDs so the original menu remains
 * visually and structurally untouched.
 */

/* The cloned menu item is 15039 and its cloned template is 15038. */
#menu-primary > li.menu-item-15039 > ul.mega-menu,
#menu-primary > li.menu-item-15039 > ul.mega-menu > li.menu-item-15040 {
	border: 0;
	border-radius: 0 0 24px 24px;
	background: transparent;
	box-shadow: none;
}

#menu-primary > li.menu-item-15039 > ul.mega-menu {
	padding: 18px 0 28px;
}

#menu-primary > li.menu-item-15039 .mega-menu-content {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 22px;
}

#menu-primary > li.menu-item-15039 .elementor-15038 {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(214, 167, 77, .34);
	border-radius: 24px;
	background: #0b1d2e;
	box-shadow: 0 24px 70px rgba(7, 22, 37, .24);
}

#menu-primary > li.menu-item-15039 .elementor-15038:after {
	position: absolute;
	top: -100px;
	right: -85px;
	width: 270px;
	height: 270px;
	border: 1px solid rgba(214, 167, 77, .18);
	border-radius: 50%;
	content: "";
	pointer-events: none;
}

#menu-primary > li.menu-item-15039 .elementor-15038 > .elementor-section {
	min-height: 390px;
	background: #0b1d2e;
}

#menu-primary > li.menu-item-15039 .elementor-15038 > .elementor-section > .elementor-container {
	gap: 0;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .elementor-column:first-child {
	position: relative;
	min-height: 390px;
	background-position: center;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .elementor-column:first-child:after {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(7, 22, 37, .92), rgba(11, 29, 46, .56));
	content: "";
	pointer-events: none;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .elementor-column:first-child .elementor-widget-wrap {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	min-height: 390px;
	padding: 54px 64px;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .elementor-column:first-child .elementor-widget-wrap:before {
	width: 44px;
	height: 3px;
	margin-bottom: 22px;
	background: #e2b75e;
	content: "";
}

#menu-primary > li.menu-item-15039 .elementor-15038 .heading-primary,
#menu-primary > li.menu-item-15039 .elementor-15038 .heading-description,
#menu-primary > li.menu-item-15039 .elementor-15038 .heading-description p {
	color: #fff;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .heading-primary {
	max-width: 360px;
	margin: 0 0 16px;
	font-size: clamp(25px, 2.2vw, 36px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.025em;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .heading-description,
#menu-primary > li.menu-item-15039 .elementor-15038 .heading-description p {
	max-width: 390px;
	margin: 0;
	color: rgba(255, 255, 255, .76);
	font-size: 15px;
	line-height: 1.7;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .tm-button-link {
	margin-top: 28px;
	border: 1px solid #e2b75e;
	border-radius: 999px;
	background: #e2b75e;
	box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
	color: #0b1d2e;
	font-weight: 800;
	letter-spacing: .01em;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .tm-button-link:hover,
#menu-primary > li.menu-item-15039 .elementor-15038 .tm-button-link:focus {
	border-color: #f4d78e;
	background: #f4d78e;
	color: #0b1d2e;
	transform: translateY(-2px);
}

#menu-primary > li.menu-item-15039 .elementor-15038 .elementor-column:last-child {
	background: #fff;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .elementor-column:last-child .elementor-widget-wrap {
	padding: 42px 40px 42px 48px;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .edumall-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 14px;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .edumall-list .item {
	margin: 0;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .edumall-list .link {
	display: flex;
	align-items: center;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid #e7edf3;
	border-radius: 10px;
	background: #fff;
	color: #162b3d;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .edumall-list .link:before {
	width: 6px;
	height: 6px;
	margin-right: 10px;
	border-radius: 50%;
	background: #d6a74d;
	content: "";
	flex: 0 0 auto;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .edumall-list .link:hover,
#menu-primary > li.menu-item-15039 .elementor-15038 .edumall-list .link:focus {
	border-color: #d6a74d;
	background: #f8f4ea;
	color: #0b1d2e;
	transform: translateY(-2px);
}

#menu-primary > li.menu-item-15039 .elementor-15038 .edumall-list .text {
	color: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .edumall-list .badge {
	margin-left: auto;
	padding: 3px 7px;
	border-radius: 999px;
	background: #0b1d2e;
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .08em;
	line-height: 1.2;
	text-transform: uppercase;
}

/* Keep the redesign usable in the mobile/off-canvas menu as well. */
@media (max-width: 991px) {
	#menu-primary > li.menu-item-15039 .mega-menu-content {
		padding: 0 14px;
	}

	#menu-primary > li.menu-item-15039 .elementor-15038 .elementor-column:first-child .elementor-widget-wrap,
	#menu-primary > li.menu-item-15039 .elementor-15038 .elementor-column:last-child .elementor-widget-wrap {
		padding: 32px 26px;
	}

	#menu-primary > li.menu-item-15039 .elementor-15038 .edumall-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	#menu-primary > li.menu-item-15039 .elementor-15038 > .elementor-section,
	#menu-primary > li.menu-item-15039 .elementor-15038 .elementor-column:first-child,
	#menu-primary > li.menu-item-15039 .elementor-15038 .elementor-column:first-child .elementor-widget-wrap {
		min-height: 0;
	}

	#menu-primary > li.menu-item-15039 .elementor-15038 .heading-primary {
		font-size: 28px;
	}
}

/* Keep the desktop dropdown aligned with the off-canvas menu: the selected
 * daytime artwork is the visual lead, followed by the CTA copy and then the
 * complete link list below it. */
#menu-primary > li.menu-item-15039 .elementor-15038 > .elementor-section,
#menu-primary > li.menu-item-15039 .elementor-15038 > .elementor-section > .elementor-container {
	display: flex !important;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 0 !important;
	flex-direction: column !important;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .elementor-column {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	flex: 0 0 auto !important;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .elementor-column:first-child {
	display: flex;
	min-height: 0 !important;
	flex-direction: column;
	overflow: hidden;
	background: #071b46;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .elementor-column:first-child::before {
	display: block;
	width: 100%;
	min-height: 220px;
	aspect-ratio: 16 / 9;
	background-image:
		linear-gradient(180deg, rgba(2, 11, 30, .04), rgba(2, 11, 30, .64)),
		url('../images/ats-menu-overlay-day.webp');
	background-position: center 54%;
	background-repeat: no-repeat;
	background-size: cover;
	content: '';
}

#menu-primary > li.menu-item-15039 .elementor-15038 .elementor-column:first-child .elementor-widget-wrap {
	min-height: 0 !important;
	padding: 34px 42px !important;
	background: #071b46;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .elementor-column:last-child {
	width: 100% !important;
	padding: 0 !important;
	background: #fff;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .elementor-column:last-child .elementor-widget-wrap {
	width: 100%;
	padding: 28px 42px 34px !important;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .edumall-list {
	grid-template-columns: 1fr;
}

/* The standalone template preview uses the same visual language. */
.single-ic_mega_menu .elementor-15038 {
	max-width: 1320px;
	margin: 24px auto;
	padding: 0;
	border-radius: 24px;
	background: #0b1d2e;
	box-shadow: 0 24px 70px rgba(7, 22, 37, .24);
	overflow: hidden;
}

/* -------------------------------------------------------------------------
 * ATS navigation overlay refresh.
 *
 * The live off-canvas menu is rendered from #page-mobile-main-menu and uses
 * the original Edumall markup (not the cloned mega-menu IDs above). Keep this
 * layer scoped to that panel so the header and desktop navigation remain
 * unchanged. The generated artwork is decorative background media; the
 * navigation itself stays semantic and keyboard accessible.
 * ------------------------------------------------------------------------- */

@media (min-width: 768px) {
	#page-mobile-main-menu {
		width: 100vw !important;
		max-width: none !important;
		background-color: #020b1e !important;
		background-image:
			linear-gradient(180deg, rgba(2, 11, 30, .08), rgba(2, 11, 30, .64)),
			url('../images/ats-menu-overlay-day.webp') !important;
		background-position: left center !important;
		background-repeat: no-repeat !important;
		background-size: 50% 100%, 50% 100% !important;
	}

	#page-mobile-main-menu > .inner {
		width: min(640px, 50vw) !important;
		min-height: 100vh;
		margin-left: auto;
		overflow-y: auto;
		background: #fbfaf8;
		box-shadow: -24px 0 80px rgba(2, 11, 30, .28);
	}
}

@media (min-width: 0px) {
	#page-mobile-main-menu {
		z-index: 9999999;
		background-color: #fbfaf8;
		color: #071b46;
	}

	#page-mobile-main-menu > .inner {
		position: relative;
		display: flex;
		min-height: 100%;
		flex-direction: column;
		background: #fbfaf8;
	}

	#page-mobile-main-menu .page-mobile-menu-header {
		position: relative;
		top: auto;
		right: auto;
		display: flex;
		width: 100%;
		min-height: 104px;
		align-items: center;
		justify-content: space-between;
		padding: 22px clamp(24px, 4vw, 48px);
		border-bottom: 1px solid rgba(7, 27, 70, .12);
		background: rgba(251, 250, 248, .94);
	}

	#page-mobile-main-menu .page-mobile-popup-logo,
	#page-mobile-main-menu .page-mobile-menu-logo {
		display: block;
		width: auto;
		height: 58px;
		margin: 0;
	}

	#page-mobile-main-menu .page-mobile-popup-logo img {
		display: block;
		width: auto;
		height: 58px;
		max-width: 128px;
		object-fit: contain;
	}

	#page-mobile-main-menu .page-close-mobile-menu {
		display: grid;
		width: 44px;
		height: 44px;
		margin: 0;
		place-items: center;
		border: 1px solid rgba(7, 27, 70, .2);
		border-radius: 50%;
		background: transparent;
		cursor: pointer;
		transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
	}

	#page-mobile-main-menu .page-close-mobile-menu:hover,
	#page-mobile-main-menu .page-close-mobile-menu:focus-visible {
		border-color: #c8a56a;
		background: #f4efe4;
		transform: rotate(4deg);
	}

	#page-mobile-main-menu .page-close-mobile-menu:focus-visible {
		outline: 3px solid #e7d2a8;
		outline-offset: 3px;
	}

	#page-mobile-main-menu .page-close-mobile-menu .burger-icon {
		width: 20px;
		height: 20px;
	}

	#page-mobile-main-menu .page-close-mobile-menu .burger-icon span {
		background: #071b46;
	}

	#page-mobile-main-menu .page-mobile-menu-content {
		width: 100%;
		min-height: 0;
		padding: 26px clamp(24px, 4vw, 48px) 44px;
	}

	#page-mobile-main-menu #mobile-menu-primary {
		position: relative;
		margin: 0;
		padding: 0;
		counter-reset: ats-mobile-nav;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item {
		margin: 0;
		counter-increment: ats-mobile-nav;
		border-bottom: 1px solid rgba(7, 27, 70, .14);
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item > a,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item > .link {
		display: block;
		min-height: 76px;
		padding: 20px 0;
		color: #071b46;
		text-decoration: none;
		transition: color .2s ease, padding-left .2s ease;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item > a:hover,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item > a:focus-visible,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item > .link:hover,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item > .link:focus-visible {
		padding-left: 8px;
		color: #9d762c;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item > a:focus-visible {
		outline: 3px solid #e7d2a8;
		outline-offset: 4px;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item > a .menu-item-wrap,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item > .link .list-header {
		display: flex;
		min-height: 36px;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item > a .menu-item-title,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item > .link .text {
		color: inherit;
		font-size: clamp(20px, 2.8vw, 30px);
		font-weight: 500;
		letter-spacing: -.035em;
		line-height: 1.12;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item > a .menu-item-title::before,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item > .link .text::before {
		display: inline-block;
		min-width: 34px;
		margin-right: 14px;
		color: #b1894b;
		content: '0' counter(ats-mobile-nav);
		font-size: 10px;
		font-weight: 800;
		letter-spacing: .14em;
		vertical-align: middle;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item > a .toggle-sub-menu {
		display: inline-grid;
		width: 38px;
		height: 38px;
		flex: 0 0 auto;
		place-items: center;
		border: 1px solid rgba(7, 27, 70, .24);
		border-radius: 50%;
		background: transparent;
		color: #071b46;
		font-size: 19px;
		line-height: 1;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item > a .toggle-sub-menu::after {
		content: '+';
		font-weight: 400;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item > a:hover .toggle-sub-menu,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item > a:focus-visible .toggle-sub-menu {
		border-color: #c8a56a;
		background: #071b46;
		color: #fff;
	}

	/* Preserve the expanded submenu, but make it feel like ATS instead of a
	 * second generic Edumall menu. Existing script-controlled display states are
	 * intentionally left intact. */
	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu {
		margin: 0 0 18px;
		padding: 10px 0 6px 48px;
		border-left: 1px solid rgba(200, 165, 106, .7);
		background: transparent;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .mega-menu-content {
		padding: 0;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .elementor-2387 {
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	/* The expanded About ATS content is intentionally stacked. The artwork
	 * leads the CTA, the CTA copy follows below it, and the resource links sit
	 * underneath at the full available width. */
	#page-mobile-main-menu,
	#page-mobile-main-menu > .inner,
	#page-mobile-main-menu .page-mobile-menu-content,
	#page-mobile-main-menu #mobile-menu-primary,
	#page-mobile-main-menu .mega-menu-content,
	#page-mobile-main-menu .elementor,
	#page-mobile-main-menu .elementor-section,
	#page-mobile-main-menu .elementor-container {
		max-width: 100% !important;
		overflow-x: hidden;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .elementor-section,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .elementor-container,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .elementor-row {
		display: flex !important;
		width: 100% !important;
		max-width: 100% !important;
		min-height: 0 !important;
		flex-direction: column !important;
		gap: 0 !important;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .elementor-column {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		min-height: 0 !important;
		flex: 0 0 auto !important;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .elementor-column:first-child {
		display: flex;
		min-height: 0 !important;
		flex-direction: column;
		overflow: hidden;
		border: 1px solid rgba(200, 165, 106, .32);
		background: #071b46;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .elementor-column:first-child::before {
		display: block;
		width: 100%;
		min-height: 190px;
		aspect-ratio: 16 / 9;
		background-image:
			linear-gradient(180deg, rgba(2, 11, 30, .04), rgba(2, 11, 30, .64)),
			url('../images/ats-menu-overlay-day.webp');
		background-position: center 54%;
		background-repeat: no-repeat;
		background-size: cover;
		content: '';
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .elementor-column:first-child .elementor-widget-wrap {
		width: 100%;
		min-height: 0 !important;
		padding: 24px !important;
		background: #071b46;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .elementor-column:first-child .elementor-background-overlay {
		display: none !important;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .heading-primary,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .heading-description,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .heading-description p {
		color: #fff;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .heading-primary {
		font-size: 24px;
		line-height: 1.08;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .elementor-column:last-child .elementor-widget-wrap {
		width: 100%;
		padding: 0 !important;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .elementor-column:last-child {
		width: 100% !important;
		padding: 18px 0 0 !important;
		background: #fbfaf8;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .edumall-list {
		display: grid;
		gap: 0;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .edumall-list .link {
		min-height: 42px;
		padding: 10px 0;
		border: 0;
		border-bottom: 1px solid rgba(7, 27, 70, .12);
		border-radius: 0;
		background: transparent;
		color: #071b46;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .edumall-list .link::before {
		width: 5px;
		height: 5px;
		margin-right: 10px;
		background: #c8a56a;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .edumall-list .link:hover,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .edumall-list .link:focus-visible {
		padding-left: 8px;
		border-color: rgba(200, 165, 106, .6);
		background: #f4efe4;
		color: #071b46;
		transform: none;
	}
}

@media (max-width: 767px) {
	#page-mobile-main-menu {
		width: 100vw !important;
		max-width: 100vw !important;
		background-color: #071b46 !important;
		background-image:
			linear-gradient(180deg, rgba(2, 11, 30, .08) 0%, rgba(2, 11, 30, .56) 42%, rgba(251, 250, 248, .98) 80%),
			url('../images/ats-menu-overlay-day.webp') !important;
		background-position: center top !important;
		background-repeat: no-repeat !important;
		background-size: cover !important;
		overflow-x: hidden !important;
	}

	#page-mobile-main-menu > .inner {
		width: 100%;
		margin-left: 0;
		box-shadow: none;
		background: rgba(251, 250, 248, .96);
	}

	#page-mobile-main-menu .page-mobile-menu-header {
		min-height: 86px;
		padding: 16px 20px;
	}

	#page-mobile-main-menu .page-mobile-popup-logo,
	#page-mobile-main-menu .page-mobile-popup-logo img,
	#page-mobile-main-menu .page-mobile-menu-logo {
		height: 54px;
	}

	#page-mobile-main-menu .page-mobile-popup-logo img {
		max-width: 110px;
	}

	#page-mobile-main-menu .page-close-mobile-menu {
		width: 42px;
		height: 42px;
	}

	#page-mobile-main-menu .page-mobile-menu-content {
		padding: 14px 20px 34px;
		overflow-x: hidden;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item > a,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item > .link {
		min-height: 68px;
		padding-block: 16px;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item > a .menu-item-title,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item > .link .text {
		font-size: 21px;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item > a .menu-item-title::before,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item > .link .text::before {
		min-width: 26px;
		margin-right: 10px;
		font-size: 9px;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu {
		padding-left: 0;
		border-left: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	#page-mobile-main-menu .page-close-mobile-menu,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item > a,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item > .link,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .edumall-list .link {
		transition: none;
	}
}

/* Keep the refreshed composition for tablet-sized navigation markup. On
 * desktop, the original Edumall mega-menu styles should remain in control. */
@media (max-width: 991px) {
#menu-primary > li.menu-item-616 > ul.mega-menu,
#menu-primary > li.menu-item-616 > ul.mega-menu > li.menu-item-2400,
#menu-primary > li.menu-item-616 .mega-menu-content,
#menu-primary > li.menu-item-616 .elementor-2387,
#menu-primary > li.menu-item-616 .elementor-2387 > .elementor-section,
#menu-primary > li.menu-item-616 .elementor-2387 > .elementor-section > .elementor-container {
	max-width: 100% !important;
	overflow-x: hidden;
}

#menu-primary > li.menu-item-616 .elementor-2387 > .elementor-section,
#menu-primary > li.menu-item-616 .elementor-2387 > .elementor-section > .elementor-container {
	display: flex !important;
	width: 100% !important;
	min-height: 0 !important;
	flex-direction: column !important;
}

#menu-primary > li.menu-item-616 .elementor-2387 .elementor-column {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	flex: 0 0 auto !important;
}

#menu-primary > li.menu-item-616 .elementor-2387 .elementor-column:first-child {
	display: flex;
	min-height: 0 !important;
	flex-direction: column;
	overflow: hidden;
	background: #071b46;
}

#menu-primary > li.menu-item-616 .elementor-2387 .elementor-column:first-child::before {
	display: block;
	width: 100%;
	height: 250px;
	min-height: 250px;
	aspect-ratio: auto;
	background-image:
		linear-gradient(180deg, rgba(2, 11, 30, .04), rgba(2, 11, 30, .64)),
		url('../images/ats-menu-overlay-day.webp');
	background-position: center 54%;
	background-repeat: no-repeat;
	background-size: cover;
	content: '';
}

#menu-primary > li.menu-item-616 .elementor-2387 .elementor-column:first-child .elementor-widget-wrap {
	position: relative;
	z-index: 1;
	width: 100%;
	min-height: 0 !important;
	padding: 34px 42px !important;
	background: #071b46;
}

#menu-primary > li.menu-item-616 .elementor-2387 .elementor-column:first-child .elementor-background-overlay {
	display: none !important;
}

#menu-primary > li.menu-item-616 .elementor-2387 .elementor-column:first-child .heading-primary,
#menu-primary > li.menu-item-616 .elementor-2387 .elementor-column:first-child .heading-description,
#menu-primary > li.menu-item-616 .elementor-2387 .elementor-column:first-child .heading-description p {
	color: #fff;
}

#menu-primary > li.menu-item-616 .elementor-2387 .elementor-column:last-child {
	width: 100% !important;
	padding: 0 !important;
	background: #fbfaf8;
}

#menu-primary > li.menu-item-616 .elementor-2387 .elementor-column:last-child .elementor-widget-wrap {
	width: 100%;
	padding: 28px 42px 34px !important;
}

#menu-primary > li.menu-item-616 .elementor-2387 .edumall-list {
	grid-template-columns: 1fr;
}
}

/* Restore the original desktop lead image in the native Edumall dropdown.
 * The template's historical 45.webp upload is unavailable on ats.local; this
 * existing ATS menu artwork is the same image used in the original capture. */
@media (min-width: 992px) {
	#menu-primary > li.menu-item-616 .elementor-2387 .elementor-element-bdf1c58:not(.elementor-motion-effects-element-type-background) > .elementor-widget-wrap,
	#menu-primary > li.menu-item-616 .elementor-2387 .elementor-element-bdf1c58 > .elementor-widget-wrap > .elementor-motion-effects-container > .elementor-motion-effects-layer {
		background-image: url('../images/ats-menu-overlay-day.webp') !important;
		background-position: center center !important;
		background-repeat: no-repeat !important;
		background-size: cover !important;
	}
}

/* Responsive menu polish: give the language-specific logo enough presence
 * while keeping it inside narrow phone headers. */
@media (max-width: 991px) {
	#page-mobile-main-menu .page-mobile-menu-header {
		min-height: 116px;
	}

	#page-mobile-main-menu .page-mobile-popup-logo,
	#page-mobile-main-menu .page-mobile-menu-logo {
		width: min(250px, calc(100vw - 96px));
		max-width: 250px;
		height: auto;
		flex: 0 1 auto;
	}

	#page-mobile-main-menu .page-mobile-popup-logo img {
		width: min(250px, calc(100vw - 96px));
		max-width: 250px;
		height: auto;
		object-fit: contain;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .elementor-column:first-child .elementor-widget-wrap {
		display: flex;
		align-items: center;
		text-align: center;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .elementor-column:first-child .heading-primary,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .elementor-column:first-child .heading-description,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .elementor-column:first-child .heading-description p {
		width: 100%;
		text-align: center;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .elementor-column:first-child .elementor-element-fb175d6,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .elementor-column:first-child .elementor-element-fb175d6 > .elementor-widget-container,
	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .elementor-column:first-child .elementor-element-fb175d6 .tm-button-wrapper {
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: center;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .elementor-column:first-child .elementor-element-fb175d6 > .elementor-widget-container {
		margin: 0 !important;
		padding: 0 !important;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .elementor-column:first-child .elementor-element-fb175d6 .tm-button-link {
		display: flex;
		width: min(232px, 100%);
		min-height: 48px;
		margin: 24px auto 0;
		box-sizing: border-box;
		align-items: center;
		justify-content: center;
	}

	#page-mobile-main-menu #mobile-menu-primary > .menu-item-has-children > .sub-menu .elementor-column:first-child .elementor-element-fb175d6 .button-content-wrapper {
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: center;
		text-align: center;
	}
}

@media (max-width: 767px) {
	#page-mobile-main-menu .page-mobile-menu-header {
		min-height: 104px;
	}
}

/* ATS menu background and English CTA contrast fix.
 * The same selectors cover the primary menu, the premium copy and the
 * original off-canvas/mobile rendering used by both WPML languages. */
#menu-primary > li.menu-item-15039 .elementor-15038 .elementor-column:first-child,
#menu-primary > li.menu-item-616 .elementor-2387 .elementor-column:first-child,
#menu-primary > li.menu-item-15039 .elementor-15038 .elementor-element-bdf1c58,
#menu-primary > li.menu-item-616 .elementor-2387 .elementor-element-bdf1c58,
#page-mobile-main-menu .elementor-2387 .elementor-column:first-child {
	background-image: url('../images/ats-mega-menu-bg-v2.png') !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .elementor-column:first-child .elementor-widget-wrap,
#menu-primary > li.menu-item-616 .elementor-2387 .elementor-column:first-child .elementor-widget-wrap {
	background-color: rgba(7, 27, 70, 0.16);
}

#page-mobile-main-menu .elementor-2387 .elementor-column:first-child::before {
	background-image:
		linear-gradient(180deg, rgba(7, 27, 70, 0.08), rgba(7, 27, 70, 0.58)),
		url('../images/ats-mega-menu-bg-v2.png') !important;
	background-position: center center !important;
	background-size: cover !important;
}

#menu-primary > li.menu-item-616 .elementor-2387 .elementor-element-bdf1c58:not(.elementor-motion-effects-element-type-background) > .elementor-widget-wrap,
#menu-primary > li.menu-item-616 .elementor-2387 .elementor-element-bdf1c58 > .elementor-widget-wrap > .elementor-motion-effects-container > .elementor-motion-effects-layer {
	background-image: url('../images/ats-mega-menu-bg-v2.png') !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .tm-button-link,
#menu-primary > li.menu-item-15039 .elementor-15038 a.elementor-button,
#menu-primary > li.menu-item-616 .elementor-2387 .tm-button-link,
#menu-primary > li.menu-item-616 .elementor-2387 a.elementor-button,
#page-mobile-main-menu .elementor-2387 .tm-button-link,
#page-mobile-main-menu .elementor-2387 a.elementor-button {
	border-color: #c8a56a !important;
	background: #c8a56a !important;
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
	color: #071b46 !important;
	-webkit-text-fill-color: #071b46;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .tm-button-link:hover,
#menu-primary > li.menu-item-15039 .elementor-15038 .tm-button-link:focus-visible,
#menu-primary > li.menu-item-616 .elementor-2387 .tm-button-link:hover,
#menu-primary > li.menu-item-616 .elementor-2387 .tm-button-link:focus-visible,
#page-mobile-main-menu .elementor-2387 .tm-button-link:hover,
#page-mobile-main-menu .elementor-2387 .tm-button-link:focus-visible {
	border-color: #f4d78e !important;
	background: #f4d78e !important;
	color: #071b46 !important;
	-webkit-text-fill-color: #071b46;
}

#menu-primary > li.menu-item-15039 .elementor-15038 .tm-button-link .button-content-wrapper,
#menu-primary > li.menu-item-15039 .elementor-15038 .tm-button-link .button-text,
#menu-primary > li.menu-item-616 .elementor-2387 .tm-button-link .button-content-wrapper,
#menu-primary > li.menu-item-616 .elementor-2387 .tm-button-link .button-text,
#page-mobile-main-menu .elementor-2387 .tm-button-link .button-content-wrapper,
#page-mobile-main-menu .elementor-2387 .tm-button-link .button-text {
	color: #071b46 !important;
	-webkit-text-fill-color: #071b46;
}

/* Elementor can render the menu template outside its parent menu item. */
.elementor-15038 .elementor-column:first-child,
.elementor-15038 .elementor-element-bdf1c58,
.elementor-2387 .elementor-column:first-child,
.elementor-2387 .elementor-element-bdf1c58,
#page-mobile-main-menu .elementor-15038 .elementor-column:first-child,
#page-mobile-main-menu .elementor-2387 .elementor-column:first-child {
	background-image: url('../images/ats-mega-menu-bg-v2.png') !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
}

.elementor-15038 .elementor-element-bdf1c58:not(.elementor-motion-effects-element-type-background) > .elementor-widget-wrap,
.elementor-15038 .elementor-element-bdf1c58 > .elementor-widget-wrap > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.elementor-2387 .elementor-element-bdf1c58:not(.elementor-motion-effects-element-type-background) > .elementor-widget-wrap,
.elementor-2387 .elementor-element-bdf1c58 > .elementor-widget-wrap > .elementor-motion-effects-container > .elementor-motion-effects-layer {
	background-image: url('../images/ats-mega-menu-bg-v2.png') !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
}

.elementor-15038 .elementor-element-fb175d6 .tm-button,
.elementor-15038 .elementor-element-fb175d6 .tm-button-link,
.elementor-2387 .elementor-element-fb175d6 .tm-button,
.elementor-2387 .elementor-element-fb175d6 .tm-button-link,
#page-mobile-main-menu .elementor-15038 .elementor-element-fb175d6 .tm-button,
#page-mobile-main-menu .elementor-2387 .elementor-element-fb175d6 .tm-button {
	border-color: #c8a56a !important;
	background: #c8a56a !important;
	color: #071b46 !important;
	-webkit-text-fill-color: #071b46;
}

.elementor-15038 .elementor-element-fb175d6 .tm-button::before,
.elementor-15038 .elementor-element-fb175d6 .tm-button::after,
.elementor-2387 .elementor-element-fb175d6 .tm-button::before,
.elementor-2387 .elementor-element-fb175d6 .tm-button::after {
	background: #c8a56a !important;
}

.elementor-15038 .elementor-element-fb175d6 .tm-button .button-content-wrapper,
.elementor-15038 .elementor-element-fb175d6 .tm-button .button-text,
.elementor-2387 .elementor-element-fb175d6 .tm-button .button-content-wrapper,
.elementor-2387 .elementor-element-fb175d6 .tm-button .button-text {
	color: #071b46 !important;
	-webkit-text-fill-color: #071b46;
}
