:root { 
  /* Primary brand */ 
  --em-blue-dark: #13283f; 
  --em-blue: #1c3552; 
  
  /* Accent */ 
  --em-accent: #6fa8dc; 
  
  /* Text */ 
  --em-text-main: #e6edf6; 
  --em-text-strong: #ffffff; 
  --em-text-dark: #13283f; 
  
  /* Backgrounds */ 
  --em-bg-nav-gradient: linear-gradient(180deg, #1c3552, #13283f); 
  --em-bg-hover: rgba(255, 255, 255, 0.08); 
  --em-bg-dropdown: #ffffff; 
  --em-bg-dropdown-hover: rgba(111, 168, 220, 0.12); 
  
  /* Borders */ 
  --em-border-light: #d8e0ea; 
  
  /* Shadows */ 
  --em-shadow-nav: 0 10px 30px rgba(0, 0, 0, 0.25); 
  --em-shadow-dropdown: 0 14px 34px rgba(0, 0, 0, 0.18); 
  
  /* CTA (optional) */ 
  --em-gold: #d4b05c; 
  --em-gold-dark: #b8923f; }


/* =========================================================
   QUICK NAV / SUB NAV
   ========================================================= */

#header {
  position: absolute;
  margin-bottom: 0;
  padding-bottom: 0;
  z-index: 3300 !important;
}

#header nav ul li ul {
  z-index: 3300;
}

.quick-navbar {
  margin-top: 0 !important;
  z-index: 100000000000000000000;
}

#header {
  position: absolute;
  margin-bottom: 0;
  padding-bottom: 0;
}

.quick-navbar {
  margin-top: 0 !important;
}

.quick-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--em-bg-nav-gradient);
  box-shadow: var(--em-shadow-nav);
  overflow: visible;
}

.quick-nav-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 1rem;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* =========================================================
   TOP LEVEL ITEMS
   ========================================================= */

.quick-nav-list > li {
  position: relative;
  display: flex;
  align-items: stretch;
}

.quick-nav-list > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border-radius: 0.85rem;
  color: var(--em-text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    transform 0.18s ease,
    box-shadow 0.22s ease;
}

.quick-nav-list > li > a i {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.quick-nav-list > li > a:hover,
.quick-nav-list > li > a:focus-visible {
  color: var(--em-text-strong);
  transform: translateY(-1px);
}

.quick-nav-list > li > a:focus-visible {
  outline: 2px solid var(--em-accent);
  outline-offset: 2px;
}

/* subtle active underline */
.quick-nav-list > li > a::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.45rem;
  height: 2px;
  border-radius: 999px;
  background: var(--em-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
  opacity: 0.95;
}

.quick-nav-list > li > a:hover::before,
.quick-nav-list > li > a:focus-visible::before,
.quick-nav-list > li:hover > a::before {
  transform: scaleX(1);
}

/* =========================================================
   BRAND / HOME ITEM
   ========================================================= */

#em-home-link {
  margin-right: 0.4rem;
}

#em-home-link > a {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  color: var(--em-text-strong);
  font-weight: 700;
  padding: 0.85rem 1.15rem;
  border-radius: 1rem;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.3);
  margin: .75rem auto;
}

#em-home-link > a:hover,
#em-home-link > a:focus-visible {
  background: linear-gradient(
    135deg,
    rgba(111, 168, 220, 0.18),
    rgba(255, 255, 255, 0.05)
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.18);
    color: var(--em-text-strong);
}

#em-home-link > a:hover i,
#em-home-link > a:focus-visible i {
  color: var(--em-text-strong);
}

#em-home-link i {
  font-size: 1.15rem;
  color: var(--em-accent);
}

#em-home-link span {
  display: inline-block;
  line-height: 1.1;
  white-space: normal;
}

/* =========================================================
   DROPDOWNS
   ========================================================= */

.nav-dropdown > .dropdown-toggle {
  cursor: pointer;
}

.nav-dropdown > .dropdown-toggle .bi-caret-down-fill {
  font-size: 0.72rem;
  margin-left: 0.15rem;
  opacity: 0.8;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-dropdown:hover > .dropdown-toggle .bi-caret-down-fill,
.nav-dropdown:focus-within > .dropdown-toggle .bi-caret-down-fill {
  transform: rotate(180deg);
  opacity: 1;
}

.dropdown-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  min-width: 250px;
  margin: 0;
  padding: 0.45rem;
  background: var(--em-bg-dropdown);
  border: 1px solid var(--em-border-light);
  border-radius: 1rem;
  box-shadow: var(--em-shadow-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.8rem 0.95rem;
  border-radius: 0.75rem;
  color: var(--em-text-dark);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.3;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: var(--em-bg-dropdown-hover);
  color: var(--em-blue-dark);
  transform: translateX(2px);
  outline: none;
}

.dropdown-menu a[aria-current="page"] {
  background: rgba(111, 168, 220, 0.16);
  color: var(--em-blue-dark);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--em-accent);
}

/* =========================================================
   EXTERNAL/LINK EMPHASIS
   ========================================================= */

.quick-nav-list .external-link-icon {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-left: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Large tablet / narrow desktop */
@media (max-width: 1100px) {
  .quick-nav-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 0.45rem 0.75rem 0.7rem;
  }

  .quick-nav-list::-webkit-scrollbar {
    height: 8px;
  }

  .quick-nav-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
  }

  .quick-nav-list > li {
    flex: 0 0 auto;
  }

  .quick-nav-list > li > a {
    white-space: nowrap;
  }

  .dropdown-menu {
    left: 0;
    right: auto;
  }

  .swipe-hint {
    display: block !important;
    color: #fff;
    font-size: .88rem;
    text-align: right;
    padding: .25rem 1rem .75rem 0;
  }
}

/* Tablet */
@media (max-width: 820px) {
  .quick-nav-list > li > a {
    min-height: 48px;
    padding: 0.75rem 0.9rem;
    font-size: 0.92rem;
  }

  #em-home-link > a {
    padding: 0.75rem 1rem;
  }
}

/* Phone */
@media (max-width: 640px) {
  .quick-nav {
    border-radius: 0;
  }

  .quick-nav-list {
    gap: 0.3rem;
    padding: 0.4rem 0.65rem 0.65rem;
  }

  .quick-nav-list > li > a {
    min-height: 46px;
    padding: 0.72rem 0.85rem;
    font-size: 0.9rem;
    border-radius: 0.8rem;
  }

  #em-home-link > a {
    min-width: 220px;
  }

  .dropdown-menu {
    min-width: 220px;
  }
}

/* Very small phones */
@media (max-width: 480px) {
  .quick-nav-list > li > a {
    padding: 0.7rem 0.8rem;
    font-size: 0.88rem;
  }

  #em-home-link > a {
    min-width: 200px;
  }

  .dropdown-menu {
    min-width: 205px;
  }
}

/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .quick-nav-list > li > a,
  .dropdown-menu,
  .dropdown-menu a,
  .nav-dropdown > .dropdown-toggle .bi-caret-down-fill,
  .quick-nav-list > li > a::before {
    transition: none;
  }
}

.swipe-hint {
  display: none;
}

