/* ========================= DROPDOWN HOVER FIX ========================= */

.dropdown-menu {
    /* 1. Remove the margin that was killing the hover */
    margin-top: 0 !important; 
    
    /* 2. Move it down using 'top' instead */
    top: 100% !important; 
    
    /* 3. Add an invisible 'bridge' so the mouse doesn't lose contact */
    border-top: 5px solid transparent !important; 
    
    background-color: #0099e6 !important;
    border-left: 1px solid #0099e6 !important;
    border-right: 1px solid #0099e6 !important;
    border-bottom: 1px solid #0099e6 !important;
    border-radius: 0px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7) !important;
    padding: 0 !important;
}

/* Ensure the background only starts AFTER the invisible bridge */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -5px; /* Matches the bridge size */
    left: 0;
    width: 100%;
    height: 5px;
    background: transparent;
}

/* Fix individual item spacing */
.dropdown-menu .dropdown-item {
    padding: 12px 20px !important;
    color: #9aa3af !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #0099e6 !important;
    color: #ffffff !important;
}

/* 4. THE SLEDGEHAMMER: Force display on hover if JS is being flaky */
.nav-item.dropdown:hover > .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/**********************/

/* ========================= HAMBURGER MENU BUTTON FIX ========================= */

/* 1. Style the button border to match JPR Blue */
.navbar-toggler {
    border: 1px solid #0099e6 !important;
    border-radius: 0 !important;
    padding: 6px 10px !important;
    background-color: transparent !important;
}

/* 2. Color the 3 lines (SVG icon) to exactly match JPR Blue */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230099e6' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    opacity: 1 !important;
}

/* 3. Add a faint blue glow when tapped/focused instead of Bootstrap's default gray */
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 153, 230, 0.25) !important;
}