/* ===========================================================
   Mobile navigation — hamburger + side drawer (NAFSA-ready)
   Visible only at <900px. Desktop nav (>=900px) untouched.
   =========================================================== */

/* Hamburger button */
.uc-hamburger {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.uc-hamburger__lines {
  position: relative;
  width: 24px;
  height: 18px;
  display: inline-block;
}
.uc-hamburger__lines::before,
.uc-hamburger__lines::after,
.uc-hamburger__lines > span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #002F56;
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}
.uc-hamburger__lines::before { top: 0; }
.uc-hamburger__lines > span { top: 8px; }
.uc-hamburger__lines::after  { top: 16px; }

/* Animated to X when open */
.uc-hamburger[aria-expanded="true"] .uc-hamburger__lines::before {
  top: 8px;
  transform: rotate(45deg);
}
.uc-hamburger[aria-expanded="true"] .uc-hamburger__lines > span {
  opacity: 0;
}
.uc-hamburger[aria-expanded="true"] .uc-hamburger__lines::after {
  top: 8px;
  transform: rotate(-45deg);
}

/* Drawer */
.uc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #ffffff;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.uc-drawer.is-open { transform: translateX(0); }

.uc-drawer__overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,47,86,0.45);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.uc-drawer__overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer header (logo + close) */
.uc-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e8ee;
  flex-shrink: 0;
}
.uc-drawer__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.uc-drawer__brand img {
  height: 36px;
  width: auto;
  display: block;
}
.uc-drawer__close {
  width: 48px;
  height: 48px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #002F56;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.uc-drawer__close svg {
  width: 24px;
  height: 24px;
}

/* Drawer nav list */
.uc-drawer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.uc-drawer__nav > li {
  border-bottom: 1px solid #d4d4d4;
}
.uc-drawer__nav > li > a,
.uc-drawer__nav > li > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 22px;
  font: 600 20px/1.3 -apple-system, "PT Sans", "Open Sans", Helvetica, Arial, sans-serif;
  color: #002F56;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  letter-spacing: 0.01em;
}
.uc-drawer__nav > li > a:active,
.uc-drawer__nav > li > button:active { background: #f5f6f8; }

/* Caret */
.uc-drawer__caret {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 12px;
  border-right: 2px solid #002F56;
  border-bottom: 2px solid #002F56;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-bottom: 4px;
}
.uc-drawer__nav > li.is-open > button .uc-drawer__caret {
  transform: rotate(-135deg);
  margin-bottom: 0;
  margin-top: 4px;
}

/* Sub-list (accordion content) */
.uc-drawer__sub {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fafbfc;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.uc-drawer__nav > li.is-open .uc-drawer__sub {
  max-height: 1200px; /* large enough to fit any sub-menu */
}

.uc-drawer__sub > li.uc-drawer__cat {
  font: 600 12px/1.2 -apple-system, "PT Sans", "Open Sans", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #666;
  padding: 14px 22px 6px;
}
.uc-drawer__sub > li > a {
  display: block;
  padding: 16px 22px 16px 16px;
  font: 400 16px/1.35 -apple-system, "PT Sans", "Open Sans", sans-serif;
  color: #1a1a1a;
  text-decoration: none;
  border-top: 1px solid transparent;
}
.uc-drawer__sub > li > a:active { background: #eef2f7; color: #0050C8; }

.uc-drawer__foot {
  margin-top: auto;
  padding: 22px 22px 32px;
  border-top: 1px solid #e5e8ee;
  font: 400 13px/1.5 -apple-system, "PT Sans", sans-serif;
  color: #666;
}
.uc-drawer__foot a { color: #002F56; text-decoration: none; font-weight: 600; }

/* Activate hamburger on mobile only */
@media (max-width: 899px) {
  .uc-hamburger { display: inline-flex; }
  /* Hide desktop top nav on mobile */
  .uc-nav { display: none !important; }
}

/* Lock body scroll when drawer open */
body.uc-drawer-open { overflow: hidden; }
