/* ============================================================
   PRIMARY (DESKTOP) NAV
   ============================================================ */
   #primaryNav li.nav-item a.nav-link {
    color: #65635C;
    font-size: 1rem;
    font-weight: bold;              /* ⚠ leaked from the old theme — see note below */
    text-transform: uppercase;      /* ⚠ leaked from the old theme — see note below */
    text-decoration: none;
    border-bottom: 2px solid #fff;
    font-family: 'Roboto Condensed', Arial, sans-serif;
}

#primaryNav li.nav-item.active a,
#primaryNav li.nav-item a.nav-link.active,
#primaryNav li.nav-item a.nav-link:hover {
    border-bottom: 2px solid #329BB3;
}

#primaryNav .navbar-nav .nav-link {
    padding-right: .5rem;
    padding-left: .5rem;
    margin-right: 0;
    margin-left: 0;
}

#primaryNav .dropdown-item.active,
#primaryNav .dropdown-item:active {
    color: #A5917E;
    text-decoration: none;
    background-color: #fff;
}

#primaryNav .dropdown-item:focus,
#primaryNav .dropdown-item:hover {
    color: #fff;
    background: #65635C;
}

/* ============================================================
   HEADER: LOGIN + LOGO
   ============================================================ */
#dnn_uxHeader_dnnLogin_loginGroup a {
    color: #173D6E;
    font-weight: bold;
    text-decoration: none;
}

#dnn_uxHeader_dnnLOGO_imgLogo {
    width: 250px;
    margin-bottom: 10px;
}

/* ============================================================
   NAVBAR + BRAND
   ============================================================ */
.navbar { padding: 1rem 0 0; }

.navbar .brand { max-width: 250px; }

.navbar-brand {
    padding-left: 19px !important;
    margin-top: 4px;
    z-index: 99;
}

.navbar-expand-lg .navbar-collapse { justify-content: center; }

.navbar-nav li {
    list-style: none;
    margin-bottom: 0;
}

/* ============================================================
   DROPDOWN MENU (desktop)
   ============================================================ */
body .dropdown-menu {
    background: #fff;
    border: none;
    box-shadow: 0 4px 0 1px rgba(0, 0, 0, .1);
    padding: 0;
}

body .dropdown-menu li {
    min-width: 250px;
    margin-bottom: 0;
}

body .dropdown-menu li a {
    color: #333;
    font-weight: normal;
    font-size: .9rem;
    text-decoration: none !important;
    padding: .5rem 1rem;
}

/* Show submenu on hover (desktop only) */
@media all and (min-width: 992px) {
    .navbar .nav-item .dropdown-menu { display: none; margin-top: 0; }
    .navbar .nav-item:hover .dropdown-menu { display: block; }
}

/* ============================================================
   DESKTOP / MOBILE VISIBILITY
   ============================================================ */
.navbar-dark.bg-dark,
#mobileNav { background: #fff !important; }

@media (min-width: 991px) {
    #mobileNav { display: none !important; }
    .desktop-logo,
    .primary-nav { display: block !important; }
}

@media (max-width: 991px) {
    #mobileNav { display: block !important; }
    .desktop-logo,
    .primary-nav { display: none !important; }
    #navMini { float: left; margin-left: 0; }
}

/* ============================================================
   MOBILE NAV
   ============================================================ */
.mobile-wrapper { padding: 0; }
.mobile-wrapper .navbar { padding: 1rem; }
.mobile-logo { max-width: 200px; }

#mobileNav .nav,
#mobileNav .navbar-nav { background: #329BB3; }

#mobileNav .navbar-nav { margin-left: 0; }

#mobileNav .mobile-navbar { padding: 1rem .5rem .5rem; }

#mobileNav a { color: #fff; }

#mobileNav li {
    margin: 0 0 .5rem;
    padding: .25rem .5rem .25rem .75rem;
    background: rgba(255, 255, 255, .1);
    border-radius: 4px;
}

#mobileNav .nav-item a {
    display: inline-block;
    height: 35px;
    line-height: 35px;
    padding-top: 0;
}

#mobileNav .navbar-collapse ul {
    margin: 0;
    padding: 10px 0;
}

/* Mobile dropdowns */
#mobileNav .dropdown-menu,
#mobileNav .nav .dropdown-menu {
    background: #333;
    padding: 1rem 0;
    border-radius: 0;
    margin: 0 0 0 10px !important;
    width: 100%;
}

#mobileNav .nav .dropdown-menu a {
    color: #fff;
    font-weight: normal;
    background: #333;
    line-height: 35px;
    padding: 0 1rem;
    width: 100%;
}

#mobileNav .nav .custom-dropdown-menu {
    border: none;
    padding: 0 0 15px;
    margin: 0;
    width: 100%;
}

#mobileNav .custom-dropdown-toggle {
    float: right;
    opacity: .7;
    font-size: 2rem;
}

#mobileNav .dropdown-toggle { float: right; }

#mobileNav .caret { padding-left: 7px; }

#mobileNav .third-tier {
    margin-left: .5rem;
    margin-bottom: 2rem;
}

#mobileNav .third-tier a {
    font-size: .9rem;
    font-weight: 300 !important;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1200px) {
    .nav-desktop > .container { max-width: 100%; }
    #primaryNav li.nav-item a.nav-link { font-size: .8rem; }
}

@media (max-width: 990px) {
    .nav-desktop { display: none; }
}