/* header-main.css — site-wide main navigation (extracted from index.php).
   Used on standalone pages (/programs/, /program/<slug>/) where index.php inline-CSS isn't available.
   Mobile (<=1023px): legacy .nav hidden by mobile-nav.css → mnv-topbar handles nav. */

:root {
  --hdr-accent: #0057B7;
  --hdr-accent-2: #003F87;
  --hdr-text: #0A1628;
  --hdr-text-dim: #4A5568;
  --hdr-border: #DDE2EB;
  --hdr-bg-soft: #F4F6FA;
  --hdr-shadow-md: 0 4px 12px rgba(10,22,40,.08);
  --hdr-shadow-cta: 0 8px 20px rgba(0,87,183,.20);
  --hdr-accent-glow: rgba(0,87,183,.36);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(250, 251, 252, 0.88);
  border-bottom: 1px solid var(--hdr-border);
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.nav .container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--hdr-text);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px -4px var(--hdr-accent-glow);
  flex-shrink: 0;
  overflow: hidden;
}
.logo-mark img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.logo-text {
  background: none;
  color: #1E3A8A;
  -webkit-text-fill-color: #1E3A8A;
  font-weight: 700;
}
.logo-ua {
  background-image: linear-gradient(180deg, #1E3A8A 0%, #2A4F9F 25%, #6B8E5A 50%, #D4B948 75%, #FCD34D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--hdr-text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .15s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--hdr-accent);
  transition: width .15s;
  border-radius: 2px;
}
.nav-links a:hover { color: var(--hdr-text); }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-login {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: transparent;
  color: var(--hdr-text);
  border: 1px solid var(--hdr-border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  cursor: pointer;
  white-space: nowrap;
}
.nav-login:hover {
  background: var(--hdr-bg-soft);
  border-color: var(--hdr-accent);
  color: var(--hdr-accent);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--hdr-accent);
  color: #fff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s, background .15s, box-shadow .15s;
  box-shadow: var(--hdr-shadow-md);
  white-space: nowrap;
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--hdr-accent-2);
  box-shadow: var(--hdr-shadow-cta);
}
.nav-cta svg { width: 14px; height: 14px; }

@media (max-width: 1023px) {
  /* Hidden on mobile — mnv-topbar takes over */
  .nav { display: none; }
}
