.top-nav-bar {
  position: relative;
  z-index: 20;
  padding: 8px 0;
  color: #fff;
  background: linear-gradient(110deg, #1e3a8a, #2563eb);
  font-size: .88rem;
}
.top-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top-nav-left, .top-nav-right { display: flex; align-items: center; gap: 18px; }
.top-nav-item { color: #fff; white-space: nowrap; }
.top-nav-item:hover, .registration-link:hover { text-decoration: underline; }
.top-nav-center { text-align: center; }
.job-assurance-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  font-weight: 700;
  white-space: nowrap;
}
.top-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 7px 12px;
  color: #fff;
  background: #10b981;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
}
.top-nav-btn:hover { background: #059669; }
.registration-link { color: #fff; white-space: nowrap; }

header.site-header {
  position: sticky;
  z-index: 9999;
  isolation: isolate;
  top: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .1);
}
.site-header .navbar {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
}
.site-header > .container,
.top-nav-container.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}
.site-header .logo { flex: 0 0 auto; }
.site-header .logo img { width: 170px; height: 54px; object-fit: contain; }
.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header .nav-links a {
  color: #1e293b;
  font-size: .96rem;
  font-weight: 650;
  white-space: nowrap;
}
.site-header .nav-links a:hover,
.site-header .nav-links a[aria-current="page"] { color: #2563eb; }
.site-header .nav-links .home-nav-link {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 1.05rem;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.site-header .nav-links .home-nav-link:hover,
.site-header .nav-links .home-nav-link[aria-current="page"] {
  color: #fff;
  background: #2563eb;
  transform: translateY(-1px);
}
.course-dropdown { position: relative; }
.site-header .course-menu-toggle {
  border: 0;
  padding: 8px 0;
  color: #1e293b;
  background: transparent;
  font: inherit;
  font-size: .96rem;
  font-weight: 650;
  cursor: pointer;
}
.site-header .course-menu-toggle::after { content: " ▾"; }
.site-header .course-menu-toggle:hover,
.course-dropdown.is-open > .course-menu-toggle { color: #2563eb; }
.course-submenu {
  position: absolute;
  z-index: 25;
  top: calc(100% + 8px);
  left: -16px;
  display: none;
  width: max-content;
  min-width: 240px;
  max-width: min(320px, 90vw);
  margin: 0;
  padding: 8px 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
  list-style: none;
}
.course-dropdown.is-open > .course-submenu { display: block; }
.site-header .course-submenu > li > a,
.site-header .trending-menu-toggle {
  display: block;
  width: 100%;
  padding: 9px 16px;
  border: 0;
  color: #1e293b;
  background: transparent;
  font: inherit;
  font-size: .94rem;
  font-weight: 600;
  text-align: left;
  white-space: normal;
  cursor: pointer;
}
.site-header .course-submenu > li > a:hover,
.site-header .trending-menu-toggle:hover,
.trending-dropdown.is-open > .trending-menu-toggle { color: #1d4ed8; background: #eff6ff; }
.trending-dropdown { position: relative; }
.site-header .trending-menu-toggle::after { content: "›"; float: right; font-size: 1.15rem; line-height: 1; }
.course-submenu-heading {
  margin-top: 6px;
  border-top: 1px solid #e2e8f0;
  padding: 12px 16px 5px;
  color: #64748b;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.trending-submenu {
  position: absolute;
  z-index: 26;
  top: -9px;
  left: calc(100% - 2px);
  display: none;
  width: max-content;
  min-width: 220px;
  max-width: min(320px, 90vw);
  margin: 0;
  padding: 8px 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
  list-style: none;
}
.trending-dropdown.is-open > .trending-submenu { display: block; }
.site-header .trending-submenu a {
  display: block;
  padding: 9px 16px;
  color: #1e293b;
  font-size: .92rem;
  font-weight: 600;
  white-space: normal;
}
.site-header .trending-submenu a:hover { color: #1d4ed8; background: #eff6ff; }
.site-header .nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-actions .btn-secondary { border: 2px solid #2563eb; color: #2563eb; background: transparent; }
.nav-actions .btn-primary { border: 2px solid #2563eb; color: #fff; background: #2563eb; }
.nav-actions .btn-primary:hover { background: #1d4ed8; }
.site-header .mobile-menu-btn { display: none; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .site-header .nav-links { gap: 14px; }
  .site-header .nav-actions .btn-secondary { display: none; }
}
@media (min-width: 769px) and (max-width: 900px) {
  .trending-submenu {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 4px 0;
    border: 0;
    background: #f8fafc;
    box-shadow: none;
  }
}
@media (max-width: 768px) {
  .top-nav-center, .top-nav-right .registration-link { display: none; }
  .top-nav-container { justify-content: center; }
  .top-nav-left { justify-content: space-between; width: 100%; gap: 10px; }
  .site-header > .container,
  .top-nav-container.container { width: min(100% - 32px, 620px); }
  .site-header .navbar {
    min-height: 72px;
    gap: 12px;
    padding: 8px 0;
  }
  .site-header .nav-links, .site-header .nav-actions { display: none; }
  .site-header .mobile-menu-btn {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 7px 16px rgba(37, 99, 235, .24);
    font: inherit;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .site-header .mobile-menu-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, .3);
  }
  .site-header .mobile-menu-btn:focus-visible,
  .mobile-menu a:focus-visible,
  .mobile-menu button:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
  }
  .mobile-menu {
    position: fixed;
    z-index: 30;
    inset: 0 0 0 auto;
    width: min(88vw, 390px);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 88px 24px 28px;
    background: #fff;
    box-shadow: -18px 0 50px rgba(15, 23, 42, .16), 0 0 0 100vmax rgba(15, 23, 42, .46);
    visibility: hidden;
    pointer-events: none;
    transform: translateX(105%);
    transition: transform .28s ease, visibility .28s ease;
  }
  .mobile-menu.active {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }
  .mobile-menu::before {
    position: absolute;
    top: 31px;
    left: 24px;
    color: #1d4ed8;
    content: "OMS INFOTECH";
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .12em;
  }
  .mobile-menu .close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 13px;
    color: #334155;
    background: #f1f5f9;
    font: inherit;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
  }
  .mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
  }
  .mobile-menu .nav-links > li { width: 100%; }
  .mobile-menu .nav-links a {
    display: flex;
    min-height: 48px;
    align-items: center;
    border-radius: 12px;
    padding: 11px 14px;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 650;
    transition: color .18s ease, background .18s ease;
  }
  .mobile-menu .nav-links a:hover,
  .mobile-menu .nav-links a[aria-current="page"] {
    color: #1d4ed8;
    background: #eff6ff;
  }
  .mobile-menu .nav-links .home-nav-link {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 1.1rem;
  }
  .mobile-menu .nav-links .home-nav-link:hover {
    color: #fff;
    background: #2563eb;
  }
  .mobile-menu .course-dropdown { width: 100%; }
  .mobile-menu .course-menu-toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 12px;
    padding: 11px 14px;
    color: #1e293b;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
  }
  .mobile-menu .course-menu-toggle:hover,
  .mobile-menu .course-dropdown.is-open > .course-menu-toggle {
    color: #1d4ed8;
    background: #eff6ff;
  }
  .mobile-menu .course-submenu {
    position: static;
    width: 100%;
    max-width: none;
    max-height: min(58vh, 460px);
    overflow-y: auto;
    margin: 6px 0 8px;
    padding: 5px;
    border: 0;
    background: #f8fafc;
    box-shadow: none;
    scrollbar-color: #93c5fd transparent;
  }
  .mobile-menu .course-submenu > li > a,
  .mobile-menu .trending-menu-toggle {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 8px;
    padding: 9px 10px;
    color: #1e293b;
    background: transparent;
    font: inherit;
    font-size: .94rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
  }
  .mobile-menu .course-submenu > li > a:hover,
  .mobile-menu .trending-menu-toggle:hover,
  .mobile-menu .trending-dropdown.is-open > .trending-menu-toggle {
    color: #1d4ed8;
    background: #eff6ff;
  }
  .mobile-menu .trending-menu-toggle::after {
    content: "⌄";
    font-size: 1.2rem;
  }
  .mobile-menu .trending-dropdown.is-open > .trending-menu-toggle::after { content: "⌃"; }
  .mobile-menu .course-submenu-heading {
    margin-top: 6px;
    padding: 12px 10px 5px;
    color: #64748b;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .mobile-menu .trending-submenu {
    position: static;
    width: 100%;
    max-width: none;
    margin: 3px 0 8px;
    padding: 4px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #e2e8f0;
  }
  .mobile-menu .trending-submenu a {
    display: block;
    padding: 8px 12px 8px 18px;
    color: #334155;
    font-size: .9rem;
    font-weight: 600;
  }
  .mobile-menu .trending-submenu a:hover { color: #1d4ed8; background: #eff6ff; }
  .mobile-menu .nav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
  }
  .mobile-menu .nav-actions .btn {
    width: 100%;
    min-height: 48px;
  }
}
@media (max-width: 480px) {
  .top-nav-bar { font-size: .78rem; }
  .top-nav-left { flex-direction: column; align-items: center; gap: 4px; }
  .site-header .logo img { width: 142px; height: 48px; }
  .site-header .navbar { min-height: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .mobile-menu-btn,
  .mobile-menu,
  .mobile-menu .nav-links a {
    transition: none;
  }
}
