/* ═══════════════════════════════════════════
   GLOBAL RESET & BASE
   ═══════════════════════════════════════════ */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
ul { list-style: none; }
a  { text-decoration: none; }

/* ═══════════════════════════════════════════
   DESIGN TOKENS — PURPLE THEME (ref images)
   ═══════════════════════════════════════════ */
:root {
  --p900: #1a0040;
  --p800: #2d0068;
  --p700: #3d007a;
  --p600: #5a009a;
  --p500: #6b21a8;
  --p400: #7c3aed;
  --p300: #a855f7;
  --p200: #d8b4fe;
  --p100: #f3e8ff;

  --gold:    #f59e0b;
  --gold-lt: #fbbf24;

  --white:  #ffffff;
  --muted:  #94a3b8;
  --gray:   #6b7280;

  --border:  rgba(124,58,237,0.25);
  --border2: rgba(255,255,255,0.12);

  --r:    50px;   /* pill radius */
  --rsm:  8px;
  --ease: 0.22s cubic-bezier(.4,0,.2,1);

  --fd: 'Crimson Pro', 'Georgia', serif;
  --fb: 'DM Sans', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--fb); background: #f4f4f8; }

/* ═══════════════════════════════════════════
   UTILITY BAR (top strip)
   ═══════════════════════════════════════════ */
.nt {
  width: 100%;
  background: #1a0040;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 28px;
  gap: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.75);
}
.nt a {
  color: rgba(255,255,255,0.75);
  transition: color var(--ease);
  white-space: nowrap;
}
.nt a:hover { color: var(--p200); }
.nt-sep { color: rgba(255,255,255,0.2); }

@media (max-width: 640px) { .nt { display: none; } }

/* ═══════════════════════════════════════════
   HEADER BAND
   ═══════════════════════════════════════════ */
.nh {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ede9f4;
}
.nh-inner {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nh-logo {
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
}
.nh-crest {
  width: 68px; height: 68px; flex-shrink: 0;
  /*border-radius: 12px;*/
  overflow: hidden;
  background: var(--p600);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fd); font-size: 1.4rem; font-weight: 700;
  color: #fff;
}
.nh-crest img { width: 100%; height: 100%; object-fit: cover; }
.nh-text { display: flex; flex-direction: column; gap: 2px; }
.nh-name {
  font-family: var(--fd);
  font-size: 1.25rem; font-weight: 700;
  color: #1a0040; line-height: 1.15;
}
.nh-tag {
  font-size: 0.62rem; font-weight: 700;
  color: var(--p500);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.nh-aff { font-size: 0.6rem; color: var(--gray); margin-top: 1px; }

.nh-accreditations {
  display: flex; align-items: center; gap: 16px;
  margin-left: auto;
}
.nh-accr-img {
  height: 60px; width: auto; object-fit: contain;
  filter: grayscale(20%);
  transition: filter var(--ease), transform var(--ease);
  cursor: pointer;
}
.nh-accr-img:hover { filter: grayscale(0%); transform: scale(1.07); }

.nh-ctas {
  display: flex; flex-direction: column; gap: 8px;
  flex-shrink: 0;
  margin-left: 16px;
}
.nbtn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 22px; border-radius: 50px;
  font-family: var(--fb); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer; border: none;
  transition: all var(--ease);
}
.nbtn-p {
  background: var(--p600);
  color: #fff;
  box-shadow: 0 4px 16px rgba(90,0,154,0.35);
}
.nbtn-p:hover { background: var(--p500); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(90,0,154,0.45); color: #fff; }
.nbtn-o { background: transparent; color: var(--p600); border: 2px solid var(--p600); }
.nbtn-o:hover { background: var(--p100); transform: translateY(-1px); color: var(--p600); }

@media (max-width: 1100px) { .nh-accreditations { display: none; } }
@media (max-width: 820px)  { .nh-ctas { display: none; } }
@media (max-width: 540px)  {
  .nh-inner { padding: 10px 14px; }
  .nh-crest { width: 50px; height: 50px; }
  .nh-name  { font-size: 0.95rem; }
  .nh-aff   { display: none; }
}

/* ═══════════════════════════════════════════
   STICKY NAV WRAPPER
   ═══════════════════════════════════════════ */
.nn {
  width: 100%;
  background: #f7f5fb;
  position: sticky;
  top: 0;
  z-index: 9000;
  border-bottom: 1px solid #e2d9f3;
  padding: 10px 20px;
}
.nn-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ═══════════════════════════════════════════
   PILL NAVBAR — DESKTOP
   ═══════════════════════════════════════════ */
.nm {
  display: flex;
  align-items: center;
  background: var(--p600);
  border-radius: 50px;
  padding: 5px 5px;
  gap: 2px;
  box-shadow: 0 4px 24px rgba(90,0,154,0.28), 0 1px 0 rgba(255,255,255,0.1) inset;
}

.ni {
  position: relative;
  display: flex;
  align-items: center;
}

/* Home pill (highlighted) */
.ni-home > .nl {
  background: #fff;
  color: var(--p600) !important;
  border-radius: 50px;
  padding: 8px 16px !important;
  font-weight: 700;
}
.ni-home > .nl:hover {
  background: var(--p100) !important;
  color: var(--p600) !important;
}

.nl {
  display: flex; align-items: center; justify-content: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 50px;
  color: rgba(255,255,255,0.9);
  font-family: var(--fb); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.01em; white-space: nowrap;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
  position: relative;
}
.nl:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.ni.active > .nl {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.nl .chv {
  width: 5px; height: 5px; flex-shrink: 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.6; margin-left: 1px;
  transition: transform var(--ease), opacity var(--ease);
}
.ni:hover > .nl .chv { transform: rotate(225deg) translateY(-1px); opacity: 1; }

@media (max-width: 1280px) { .nl { font-size: 0.7rem; padding: 8px 11px; } }
@media (max-width: 1100px) { .nl { font-size: 0.65rem; padding: 7px 9px; } }

/* ═══════════════════════════════════════════
   DROPDOWN — DESKTOP
   ═══════════════════════════════════════════ */
.nd {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 200px;
  background: #fff;
  border: 1px solid #e8dff5;
  border-top: 3px solid var(--p500);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 16px 48px rgba(26,0,64,0.18), 0 2px 8px rgba(26,0,64,0.08);
  opacity: 0; visibility: hidden;
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  z-index: 9100;
  padding: 8px 0 12px;
  overflow: hidden;
}
.ni:hover > .nd {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Mega dropdown */
.nd.mega {
  left: 0;
  transform: translateY(10px);
  min-width: 0;
  width: max-content;
  max-width: 860px;
  display: grid;
  padding: 0;
  border-radius: 0 0 16px 16px;
}
.ni:hover > .nd.mega { transform: translateY(0); }
.nd.mega.c2 { grid-template-columns: 1fr 1fr; }
.nd.mega.c3 { grid-template-columns: 1fr 1fr 1fr; }
.nd.mega.dept { grid-template-columns: 200px 1fr; }

.ndc {
  padding: 14px 0 16px;
  border-right: 1px solid #f0e9fb;
}
.ndc:last-child { border-right: none; }

/* Department list in mega */
.ndc-dept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  padding: 6px 0;
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--p200) transparent;
}
.ndc-dept-grid::-webkit-scrollbar { width: 4px; }
.ndc-dept-grid::-webkit-scrollbar-thumb { background: var(--p200); border-radius: 4px; }

.ndh {
  display: flex; align-items: center;
  padding: 6px 16px 4px;
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--p500);
  border-bottom: 1px solid #f0e9fb;
  margin-bottom: 2px;
}

.ndi {
  display: flex; align-items: center;
  padding: 7px 16px;
  color: #444;
  font-size: 0.78rem; font-weight: 400;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease), padding-left var(--ease);
  position: relative;
}
.ndi::before {
  content: '';
  position: absolute; left: 9px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--p500); opacity: 0;
  transition: opacity var(--ease);
}
.ndi:hover { background: var(--p100); color: var(--p700); padding-left: 24px; }
.ndi:hover::before { opacity: 1; }

/* ═══════════════════════════════════════════
   HAMBURGER
   ═══════════════════════════════════════════ */
.nb {
  display: none;
  flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  cursor: pointer; background: var(--p600); border: none;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background var(--ease);
  margin-left: auto;
}
.nb:hover { background: var(--p500); }
.nb span {
  display: block; width: 20px; height: 2px;
  background: #fff; border-radius: 2px;
  transform-origin: center;
  transition: transform .3s ease, opacity .3s ease, width .3s ease;
}
.nb.is-open span:nth-child(1)  { transform: translateY(7px) rotate(45deg); }
.nb.is-open span:nth-child(2)  { opacity: 0; width: 0; }
.nb.is-open span:nth-child(3)  { transform: translateY(-7px) rotate(-45deg); }

.nn-brand {
  display: none;
  align-items: center; gap: 10px;
  color: var(--p700); font-size: 0.8rem;
  font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nn-brand-ic {
  width: 32px; height: 32px;
  background: var(--p600);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fd); font-size: 0.85rem;
  color: #fff; font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.nn-brand-ic img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .nm         { display: none; }
  .nb         { display: flex; }
  .nn-brand   { display: flex; }
  .nn-inner   { justify-content: space-between; }
}
@media (max-width: 480px) {
  .nn { padding: 8px 12px; }
}

/* ═══════════════════════════════════════════
   MOBILE OVERLAY
   ═══════════════════════════════════════════ */
.nov {
  display: none;
  position: fixed; inset: 0;
  background: rgba(26,0,64,0.55);
  z-index: 9500;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s ease;
}
.nov.show { opacity: 1; }

/* ═══════════════════════════════════════════
   MOBILE DRAWER — Matches reference image 1
   Purple full-height right drawer
   ═══════════════════════════════════════════ */
.ndr {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 300px; max-width: 100vw;
  height: 100%;
  background: var(--p600);
  z-index: 9600;
  overflow-y: auto; overflow-x: hidden;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  padding-bottom: 60px;
  scrollbar-width: thin;
  scrollbar-color: var(--p400) transparent;
}
.ndr::-webkit-scrollbar { width: 4px; }
.ndr::-webkit-scrollbar-thumb { background: var(--p400); border-radius: 4px; }
.ndr.is-open { transform: translateX(0); }

/* Drawer top header */
.ndr-top {
  position: sticky; top: 0; z-index: 10;
  width: 100%;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 16px 16px 8px;
  background: var(--p700);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.ndr-close {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.05rem; font-weight: 300;
  transition: background var(--ease), border-color var(--ease);
}
.ndr-close:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* Home pill — white background (matches ref image) */
.ndr-home {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 16px 8px;
  padding: 12px 18px;
  background: #fff;
  border-radius: 50px;
  color: var(--p600);
  font-family: var(--fb); font-size: 0.9rem; font-weight: 700;
  transition: background var(--ease);
}
.ndr-home:hover { background: var(--p100); color: var(--p600); }
.ndr-home .emo { font-size: 1.1rem; }

/* Regular drawer items */
.ndr-item { border-bottom: 1px solid rgba(255,255,255,0.08); }

.ndr-plain {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 15px 22px;
  background: none; border: none;
  color: rgba(255,255,255,0.9);
  font-family: var(--fb); font-size: 0.9rem; font-weight: 600;
  text-align: left;
  transition: background var(--ease), color var(--ease);
}
.ndr-plain:hover { background: rgba(255,255,255,0.1); color: #fff; }
.ndr-plain .emo { font-size: 1rem; }

.ndr-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 15px 22px;
  background: none; border: none;
  color: rgba(255,255,255,0.9);
  font-family: var(--fb); font-size: 0.9rem; font-weight: 600;
  text-align: left; cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.ndr-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.ndr-btn-l { display: flex; align-items: center; gap: 12px; }
.ndr-btn-l .emo { font-size: 1rem; }

.ndr-item.open > .ndr-btn {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.ndr-chv {
  width: 8px; height: 8px; flex-shrink: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.5;
  transition: transform var(--ease), opacity var(--ease);
}
.ndr-item.open > .ndr-btn .ndr-chv {
  transform: rotate(225deg);
  opacity: 1;
}

.ndr-sub {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.42s cubic-bezier(.4,0,.2,1);
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.ndr-item.open > .ndr-sub { max-height: 1800px; }

.ndr-grp {
  padding: 9px 22px 4px 28px;
  font-size: 0.58rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--p200);
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px;
}
.ndr-grp:first-child { border-top: none; padding-top: 10px; }

.ndr-link {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 22px 9px 28px;
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem; font-weight: 400;
  transition: background var(--ease), color var(--ease), padding-left var(--ease);
}
.ndr-link::before { content: '›'; color: var(--p200); font-size: 1.1rem; flex-shrink: 0; }
.ndr-link:hover { background: rgba(255,255,255,0.07); color: #fff; padding-left: 34px; }

/* Bottom CTA buttons in drawer */
.ndr-ctas {
  padding: 16px 16px 8px;
  display: flex; flex-direction: column; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ndr-ctas .nbtn { justify-content: center; padding: 12px 20px; font-size: 0.78rem; }
.ndr-ctas .nbtn-p { background: #fff; color: var(--p600); }
.ndr-ctas .nbtn-p:hover { background: var(--p100); }
.ndr-ctas .nbtn-o { border-color: rgba(255,255,255,0.5); color: #fff; }
.ndr-ctas .nbtn-o:hover { background: rgba(255,255,255,0.12); }

/* ═══════════════════════════════════════════
   ANNOUNCEMENT BAR
   ═══════════════════════════════════════════ */
.ann-bar {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e8dff5;
  overflow: hidden;
  position: relative;
}
.ann-inner {
  display: flex;
  align-items: stretch;
  min-height: 40px;
}
.ann-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px;
  background: var(--p600);
  white-space: nowrap; flex-shrink: 0;
  font-size: 0.67rem; font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.ann-badge .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-lt);
  animation: ann-pulse 1.8s ease-out infinite;
  flex-shrink: 0;
}
@keyframes ann-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(251,191,36,0.6); }
  70%  { box-shadow: 0 0 0 7px rgba(251,191,36,0); }
  100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); }
}
.ann-track {
  flex: 1; overflow: hidden;
  display: flex; align-items: center;
}
.ann-ticker {
  display: flex; gap: 0;
  white-space: nowrap;
  animation: ticker 34s linear infinite;
}
.ann-ticker:hover { animation-play-state: paused; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ann-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 30px;
  font-size: 0.77rem; font-weight: 600;
  color: #333;
  border-right: 1px solid #e8dff5;
}
.ann-item:last-child { border-right: none; }
.ann-item .tag {
  display: inline-flex; padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; flex-shrink: 0;
}
.tag-new  { background: var(--p600); color: #fff; }
.tag-imp  { background: #ef4444; color: #fff; }
.tag-info { background: #e0e7ff; color: #3730a3; }
.tag-evt  { background: var(--gold); color: #1a0040; }

@media (max-width: 640px) {
  .ann-badge { padding: 0 10px; font-size: 0.6rem; }
  .ann-item  { padding: 0 18px; font-size: 0.71rem; }
}