/* Top utility bar outside .main-header (inc/um-top-bar.php → .um-topbar-wrap). Mirrors the homepage bar exactly:
   34px, white, 2px teal top border, slate 13px/600 links, gold-free dropdowns with soft shadow. Self-contained:
   works on static college pages without Bootstrap or style.css. Hidden below 992px like on the homepage. */
.um-topbar-wrap { position: relative; z-index: 1001; direction: inherit; font-family: inherit; }
.um-topbar-wrap *, .um-topbar-wrap *::before, .um-topbar-wrap *::after { box-sizing: border-box; }
.um-topbar-wrap .top-bar { display: flex; align-items: center; height: 34px; margin: 0; padding: 0; background: #fff; border-top: 2px solid #008C95; border-bottom: 1px solid #E2E8F0; font-size: 13px; font-weight: 500; }
.um-topbar-wrap .top-bar > .container { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: 12px; }
.um-topbar-wrap .top-bar-right, .um-topbar-wrap .top-bar-left { display: flex; align-items: center; gap: 16px; }
.um-topbar-wrap .top-bar-link { display: inline-flex; align-items: center; gap: 4px; padding: 0; color: #4D6176 !important; font-size: 13px; font-weight: 600; line-height: normal; text-decoration: none !important; background: none; transition: color .2s ease; }
.um-topbar-wrap .top-bar-link:hover, .um-topbar-wrap .top-bar-link:focus-visible { color: #00A2B2 !important; }
.um-topbar-wrap .top-bar-link:focus-visible { outline: 2px solid #253E85; outline-offset: 3px; border-radius: 4px; }
.um-topbar-wrap .top-bar-link.dropdown-toggle::after { display: none; }
.um-topbar-wrap .dropdown { position: relative; }
.um-topbar-wrap .dropdown-menu { position: absolute; top: 100%; inset-inline-start: 0; z-index: 1050; display: none; min-width: 160px; margin: 6px 0 0 !important; padding: 7px; list-style: none; background: #fff; border: 1px solid #DBE7F1; border-radius: 8px; box-shadow: 0 12px 30px rgba(37, 62, 133, .07); text-align: start; }
.um-topbar-wrap .dropdown-menu.show { display: block; animation: umTopbarFade .16s ease-out; }
.um-topbar-wrap .dropdown-menu li { margin: 0; padding: 0; }
.um-topbar-wrap .dropdown-item { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 36px; padding: 8px 12px; border-radius: 5px; color: #4D6176 !important; font-size: 13px; font-weight: 400; white-space: nowrap; text-decoration: none !important; transition: background-color .18s ease, color .18s ease; }
.um-topbar-wrap .dropdown-item:hover, .um-topbar-wrap .dropdown-item:focus { background: #F1F5F8; color: #253E85 !important; }
.um-topbar-wrap .bi { font-family: bootstrap-icons !important; font-style: normal; line-height: 1; }
@keyframes umTopbarFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 991.98px) { .um-topbar-wrap { display: none; } }
@media (prefers-reduced-motion: reduce) { .um-topbar-wrap .dropdown-menu.show { animation: none; } }
.um-topbar-wrap .top-bar-left .dropdown-menu { inset-inline-start: auto; inset-inline-end: 0; }

/* University main menu inside the college-style header (.college-unified-header #collegeHeaderNav) — colleges,
   graduate studies & research, accreditations. Same items as the homepage menu; collapses into the existing
   hamburger panel when one row no longer fits (AR < 1440px, EN < 1600px). */
.college-unified-header .college-header-nav { gap: 2px; }
.college-unified-header .college-header-nav a.um-main-link { padding: .5rem .55rem; font-size: .86rem; }
.college-unified-header .college-header-nav a.college-home-return span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.college-unified-header .college-header-nav a.college-home-return { padding-inline: .7rem; }
@media (max-width: 1439.98px) {
    .college-unified-header .college-header-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 6px; background: #fff; padding: 16px 24px; border-top: 1px solid #E2E8F0; box-shadow: 0 15px 30px rgba(0, 0, 0, .12); }
    .college-unified-header .college-header-nav.open { display: flex; }
    .college-unified-header .college-header-nav a.um-main-link { padding: .7rem .9rem; font-size: .95rem; }
    .college-unified-header .college-header-nav a.college-home-return span { position: static; width: auto; height: auto; clip: auto; }
    .college-unified-header .college-hamburger { display: block; }
    .college-unified-header .college-site-home { display: none; }
    .college-unified-header .college-mobile-home-link { display: block; }
}
@media (min-width: 1440px) and (max-width: 1599.98px) {
    html[dir="ltr"] .college-unified-header .college-header-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 6px; background: #fff; padding: 16px 24px; border-top: 1px solid #E2E8F0; box-shadow: 0 15px 30px rgba(0, 0, 0, .12); }
    html[dir="ltr"] .college-unified-header .college-header-nav.open { display: flex; }
    html[dir="ltr"] .college-unified-header .college-header-nav a.um-main-link { padding: .7rem .9rem; font-size: .95rem; }
    html[dir="ltr"] .college-unified-header .college-hamburger { display: block; }
    html[dir="ltr"] .college-unified-header .college-site-home { display: none; }
    html[dir="ltr"] .college-unified-header .college-mobile-home-link { display: block; }
}
html[dir="ltr"] .college-unified-header .college-home-return .ar, html[dir="rtl"] .college-unified-header .college-home-return .en { display: none !important; }
