/* ============================================================
   APP MASTERS — GLOBAL STYLESHEET
   Brand system: dark navy bg, blue/green accents, Plus Jakarta
   Sans headlines + General Sans body.
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}
body {
	margin: 0;
	padding: 0;
	font-family: "General Sans", "Helvetica Neue", Arial, sans-serif;
	font-weight: 400;
	color: #050038;
	background: #ffffff;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img {
	max-width: 100%;
	display: block;
}
a {
	color: inherit;
}
h1, h2, h3, h4, h5, h6 {
	font-family: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
	font-weight: 800;
	margin: 0;
}
p {
	margin: 0;
}
ul, ol {
	margin: 0;
	padding: 0;
}
button {
	font-family: inherit;
	cursor: pointer;
}

/* ---- Brand color variables (for reference — most page sections use hardcoded hex,
       but these are here for any new component that wants to use them) ---- */
:root {
	--am-navy: #050038;
	--am-blue: #2e42ff;
	--am-blue-light: #6b7dff;
	--am-green: #55df63;
	--am-bg-light: #F9FAFB;
	--am-border: #E5E7EB;
	--am-text-secondary: rgba(5, 0, 56, 0.55);
}

/* ---- Push page content below the fixed nav (nav height = 70px desktop) ---- */
body {
	padding-top: 70px;
}
@media (max-width: 1024px) {
	body {
		padding-top: 64px; /* matches mobile nav height set in nav CSS below */
	}
}

/* ---- Skip-link for accessibility (hidden unless focused) ---- */
.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	z-index: 99999;
}
.skip-link:focus {
	left: 50%;
	top: 8px;
	transform: translateX(-50%);
	width: auto;
	height: auto;
	padding: 10px 18px;
	background: #2e42ff;
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
}

/* ============================================================
   NAV / MEGAMENU
   (Appended below — extracted from the megamenu build)
   ============================================================ */

/* ── MOBILE DRAWER (was missing entirely — hidden by default, slides in via .open) ── */
.am-nav-mobile {
	display: none;
	position: fixed;
	top: 70px;
	left: 0;
	right: 0;
	bottom: 0;
	background: #050038;
	z-index: 9997;
	overflow-y: auto;
	padding: 12px 20px 100px;
	transform: translateY(-12px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s, transform 0.2s;
}
.am-nav-mobile.open {
	display: block;
	opacity: 1;
	transform: translateY(0);
	pointer-events: all;
}

.am-mob-item {
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.am-mob-trigger {
	width: 100%;
	background: none;
	border: none;
	color: #ffffff;
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	font-weight: 500;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 4px;
	cursor: pointer;
}
.am-mob-trigger svg {
	width: 12px;
	height: 12px;
	transition: transform 0.2s;
	flex-shrink: 0;
}
.am-mob-trigger.open svg {
	transform: rotate(180deg);
}

.am-mob-sub {
	display: none;
	flex-direction: column;
	padding: 4px 4px 14px 8px;
}
.am-mob-sub.open {
	display: flex;
}

.am-mob-section-label {
	font-family: 'DM Sans', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.35);
	margin: 14px 0 8px;
}
.am-mob-section-label:first-child {
	margin-top: 4px;
}

.am-mob-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 6px;
	text-decoration: none;
	color: rgba(255,255,255,0.80);
	font-family: 'DM Sans', sans-serif;
	font-size: 14.5px;
	border-radius: 6px;
	transition: background 0.15s, color 0.15s;
}
.am-mob-link:hover {
	background: rgba(255,255,255,0.06);
	color: #ffffff;
}
.am-mob-link-icon {
	width: 28px;
	height: 28px;
	border-radius: 7px;
	background: rgba(255,255,255,0.07);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.am-mob-link-icon i {
	font-size: 14px;
	color: rgba(255,255,255,0.70);
}

.am-mob-cta {
	display: block;
	text-align: center;
	background: #2e42ff;
	color: #ffffff !important;
	text-decoration: none !important;
	border-radius: 7px;
	padding: 14px;
	margin-top: 20px;
	font-family: 'DM Sans', sans-serif;
	font-weight: 600;
	font-size: 15px;
}
.am-mob-cta:hover {
	background: #55df63;
}

/* ── HAMBURGER BUTTON (hidden on desktop, shown on mobile via media query below) ── */
.am-nav-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 32px;
	height: 32px;
	background: none;
	border: none;
	padding: 0;
	flex-shrink: 0;
}
.am-nav-hamburger span {
	display: block;
	width: 100%;
	height: 2px;
	background: #ffffff;
	border-radius: 2px;
	transition: transform 0.25s, opacity 0.2s;
}
.am-nav-hamburger.open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.am-nav-hamburger.open span:nth-child(2) {
	opacity: 0;
}
.am-nav-hamburger.open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ── CUSTOM NAV ── */
#am-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #050038;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  z-index: 9999;
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* push page content down so it doesn't hide under fixed nav */
#am-nav ~ * { margin-top: 0; }
body { padding-top: 70px; }

.am-nav-logo { display: flex; align-items: center; flex-shrink: 0; margin-right: 40px; z-index: 1; }
.am-nav-logo img { height: 32px; width: auto; display: block; }

/* Centered nav links — absolutely positioned within the relative #am-nav bar,
   so they center against the full bar width regardless of logo/CTA widths,
   rather than just filling leftover space next to the logo. */
.am-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.am-nav-item { position: static; }

.am-nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px;
  font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,0.82);
  cursor: pointer;
  background: transparent; border: none; outline: none;
  box-shadow: none; -webkit-appearance: none;
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: 0.01em;
  transition: color 0.15s;
  white-space: nowrap;
}
.am-nav-link:focus,
.am-nav-link:focus-visible { outline: none; box-shadow: none; }
.am-nav-item:hover .am-nav-link,
.am-nav-link.active { color: #fff; }
.am-nav-link svg { width: 11px; height: 11px; opacity: 0.55; transition: transform 0.22s; flex-shrink: 0; margin-top: 1px; }
.am-nav-item:hover .am-nav-link svg,
.am-nav-link.active svg { transform: rotate(180deg); opacity: 1; }

.am-nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.am-nav-search {
  width: 32px; height: 32px; border-radius: 50%;
  background: transparent; border: none; outline: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); transition: color 0.15s;
}
.am-nav-search:hover { color: #fff; }
.am-nav-search svg { width: 17px; height: 17px; }

.am-nav-cta {
  background: #2e42ff; color: #fff;
  border: none; outline: none; border-radius: 5px;
  padding: 9px 22px; font-size: 13.5px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  font-family: 'DM Sans', sans-serif; letter-spacing: 0.01em;
  transition: background 0.25s, transform 0.15s;
}
.am-nav-cta:hover { background: #55df63; transform: translateY(-1px); }

/* ── MEGAMENU ── */
#am-mega {
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: #fff;
  border-top: 2px solid #2e42ff;
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 24px 64px rgba(0,0,0,0.14);
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s;
  z-index: 9998;
}
#am-mega.open { opacity: 1; pointer-events: all; transform: translateY(0); }

.am-mega-panel { display: none; max-width: 1100px; margin: 0 auto; padding: 32px 40px 28px; }
.am-mega-panel.active { display: flex; gap: 0; }

/* Left dark panel */
.am-mega-left {
  width: 220px; flex-shrink: 0;
  background: linear-gradient(150deg, #050038 0%, #0c1660 100%);
  border-radius: 12px; padding: 26px 22px;
  margin-right: 36px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
}
.am-mega-left::before {
  content: ""; position: absolute;
  top: -50px; right: -50px; width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(46,66,255,0.35) 0%, transparent 70%);
}
.am-mega-left::after {
  content: ""; position: absolute;
  bottom: -30px; left: -30px; width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(85,223,99,0.18) 0%, transparent 70%);
}
.am-mega-left-tag { font-size: 9.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: #6b7dff; margin-bottom: 8px; position: relative; z-index: 1; }
.am-mega-left-title { font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 700; color: #fff; line-height: 1.28; letter-spacing: -0.4px; position: relative; z-index: 1; margin-bottom: 6px; }
.am-mega-left-title em { color: #55df63; font-style: normal; }
.am-mega-left-sub { font-size: 12px; color: rgba(255,255,255,0.48); line-height: 1.6; position: relative; z-index: 1; }
.am-mega-left-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: #2e42ff; color: #fff; font-size: 11.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 6px; text-decoration: none;
  transition: background 0.2s; position: relative; z-index: 1;
  margin-top: 20px; align-self: flex-start;
}
.am-mega-left-cta:hover { background: #55df63; }
.am-mega-left-cta svg { width: 12px; height: 12px; }

/* Right content */
.am-mega-right { flex: 1; min-width: 0; }
.am-mega-cols { display: grid; }
.am-mega-cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.am-mega-col { padding-right: 20px; }
.am-mega-col:not(:last-child) { border-right: 1px solid #F3F4F6; margin-right: 20px; }
.am-mega-col-label { font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #2e42ff; margin-bottom: 12px; display: flex; align-items: center; gap: 5px; }
.am-mega-col-label i { font-size: 12px; }

/* Service item */
.am-si {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 8px; border-radius: 7px;
  text-decoration: none; transition: background 0.13s;
  margin-bottom: 1px; position: relative;
}
.am-si::before {
  content: ""; position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 2px; height: 0; border-radius: 1px;
  background: #2e42ff; transition: height 0.18s;
}
.am-si:hover { background: #F4F6FF; }
.am-si:hover::before { height: 55%; }
.am-si-icon { width: 28px; height: 28px; border-radius: 6px; background: rgba(46,66,255,0.07); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.13s; }
.am-si:hover .am-si-icon { background: rgba(46,66,255,0.14); }
.am-si-icon i { font-size: 13px; color: #2e42ff; }
.am-si-name { font-size: 12.5px; font-weight: 500; color: #050038; line-height: 1.2; }
.am-si-desc { font-size: 10.5px; color: #B0B7C3; margin-top: 1px; }

/* Learn / Company items */
.am-li {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 9px;
  text-decoration: none; transition: background 0.13s;
  border: 0.5px solid transparent; margin-bottom: 4px;
}
.am-li:hover { background: #F4F6FF; border-color: #E5E7EB; }
.am-li-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.am-li-icon i { font-size: 17px; }
.li-yt { background: rgba(255,0,0,0.08); } .li-yt i { color: #FF0000; }
.li-comm { background: rgba(46,66,255,0.08); } .li-comm i { color: #2e42ff; }
.li-news { background: rgba(46,66,255,0.08); } .li-news i { color: #2e42ff; }
.li-dl { background: rgba(85,223,99,0.13); } .li-dl i { color: #1a8e2a; }
.li-blog { background: rgba(46,66,255,0.08); } .li-blog i { color: #2e42ff; }
.li-tl { background: rgba(46,66,255,0.08); } .li-tl i { color: #2e42ff; }
.li-book { background: rgba(85,223,99,0.13); } .li-book i { color: #1a8e2a; }
.am-li-name { font-size: 13px; font-weight: 500; color: #050038; }
.am-li-sub { font-size: 11px; color: #9CA3AF; margin-top: 2px; }

/* Footer strip */
.am-mega-footer { border-top: 1px solid #F3F4F6; margin-top: 20px; padding-top: 14px; display: flex; align-items: center; gap: 20px; }
.am-mf-stat { display: flex; align-items: baseline; gap: 5px; }
.am-mf-num { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; color: #050038; }
.am-mf-label { font-size: 11px; color: #9CA3AF; }
.am-mf-sep { width: 1px; height: 16px; background: #E5E7EB; }
.am-mf-link { margin-left: auto; font-size: 12px; font-weight: 500; color: #2e42ff; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: color 0.15s, gap 0.15s; }
.am-mf-link:hover { color: #55df63; gap: 7px; }
.am-mf-link i { font-size: 13px; }

/* Contact cards */
.am-cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.am-cc { padding: 14px; border-radius: 9px; border: 0.5px solid #E5E7EB; text-decoration: none; transition: border-color 0.15s, background 0.15s; display: flex; flex-direction: column; gap: 6px; }
.am-cc:hover { border-color: #2e42ff; background: #F4F6FF; }
.am-cc-icon { width: 30px; height: 30px; border-radius: 6px; background: rgba(46,66,255,0.07); display: flex; align-items: center; justify-content: center; }
.am-cc-icon i { font-size: 14px; color: #2e42ff; }
.am-cc-name { font-size: 12.5px; font-weight: 600; color: #050038; }
.am-cc-sub { font-size: 11px; color: #9CA3AF; }

/* ============================================================
   RESPONSIVE NAV OVERRIDE — must stay at the END of this file.
   CSS cascade rule: later source order wins at equal specificity,
   so this block has to come after .am-nav-links/.am-nav-hamburger
   base rules above, or the media query gets silently overridden.
   ============================================================ */
@media (max-width: 1024px) {
	.am-nav-links {
		display: none !important;
	}
	.am-nav-hamburger {
		display: flex !important;
	}
}

@media (max-width: 520px) {
	#am-nav {
		padding: 0 16px;
	}
	.am-nav-search {
		display: none;
	}
	.am-nav-cta {
		font-size: 13px;
		padding: 8px 14px;
	}
}
