/* =========================================
   1. NAVBAR BACKGROUNDS (From your snippet)
   ========================================= */

/* Mobile Navbar Background (Primary) */

@media (max-width: 767.98px) {
  .navbar {
    background-color: var(--bs-primary) !important;
  }
}

/* Desktop Navbar Background (Secondary) */

@media (min-width: 768px) {
  .navbar {
    background-color: var(--bs-secondary) !important;
  }
}

/* =========================================
   2. MOBILE MENU LAYOUT & OUTLINING
   ========================================= */

/* --- A. Main Menu Container --- */

@media (max-width: 767.98px) {
  #navcol-5.collapse, #navcol-5.collapsing, #navcol-5.collapse.show {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    width: 60% !important;
    height: auto !important;
    max-height: 100vh;
    overflow-y: auto !important;
    background: var(--bs-secondary);
    border: 5px solid rgba(255, 255, 255, 1);
    border-radius: 0px !important;
    border-bottom: 3px solid var(--bs-success);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 2000;
    padding: 0;
  }
}

/* --- B. Nav List Structure --- */

@media (max-width: 767.98px) {
  #navcol-5 .nav {
    flex-direction: column;
    align-items: stretch;
    width: 100% !important;
  }
}

/* --- C. Dropdown Reset (Accordion Style) --- */

@media (max-width: 767.98px) {
  #navcol-5 .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
}

/* Ensure collapse drives visibility */

@media (max-width: 767.98px) {
  #navcol-5 .dropdown-menu.collapse:not(.show) {
    display: none;
  }
}

/* --- D. Item Styling --- */

@media (max-width: 767.98px) {
  #navcol-5 .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  }
}

@media (max-width: 767.98px) {
  #navcol-5 .nav-link {
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
  }
}

/* Submenu links indentation */

@media (max-width: 767.98px) {
  #navcol-5 .dropdown-menu .dropdown-item {
    display: block;
    padding: 0.75rem 2.25rem;
    background: transparent;
  }
}

/* =========================================
   3. DESKTOP LOGIC & COLORS
   ========================================= */

/* Open on Hover (Desktop Only) */

@media (min-width: 768px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* Green Hover/Focus Colors */

.navbar .nav-link:hover, .navbar .nav-link:focus, .navbar .nav-link.show {
  color: var(--bs-success) !important;
  background-color: transparent !important;
}

.navbar .dropdown-item:hover, .navbar .dropdown-item:focus {
  color: var(--bs-success) !important;
  background-color: transparent !important;
}

/* =========================================
   4. HIDE-ON-SCROLL BEHAVIOR
   ========================================= */

#site-navbar {
  transition: transform 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}

#site-navbar.nav-hidden {
  transform: translateY(-110%);
}

