/* premium hover style */
.navbar-nav .nav-link {
    position: relative;
    transition: color .25s ease, transform .25s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: transparent;
    background: linear-gradient(90deg, #ffd700 0%, #ffb347 100%);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 600;
    letter-spacing: 0.35px;
    transform: translateY(-3px);
    text-shadow: 0 4px 18px rgba(255, 215, 0, 0.12);
}

/* underline accent */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffb347);
    border-radius: 3px;
    transition: width .28s ease, left .28s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after {
    width: 56%;
    left: 22%;
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .navbar-nav .nav-link,
    .navbar-nav .nav-link::after {
        transition: none;
        transform: none;
    }
}

.navbar-nav .nav-link {
    font-size: 14px;
}

/* ---------- Navbar ---------- */
.navbar {
    background: linear-gradient(90deg, var(--primary), #0e8a72);
    border-bottom: 1px solid rgba(0, 150, 0, 0.25);
    backdrop-filter: blur(10px);
    margin: 0;
    padding: 5px 20px;
}

.navbar-brand img {
    height: 50px;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}

/* Dropdown hover effect */
.nav-item.dropdown:hover>.dropdown-menu {
    display: block;
    margin-top: 0;
    padding: 0;
}

/* Submenu style */
.dropdown-menu {
    background: #fff;
    border: none;
    border-radius: 8px 0px 8px 0px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-menu .dropdown-item {
    color: #0e8a72;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 20px;
}

.dropdown-menu .dropdown-item:hover {
    background: linear-gradient(90deg, #0e8a72, #12b396);
    color: #fff;
}

/* Submenu positioning */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: 0;
    padding: 0;
    display: none;
}

.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

.dropdown-submenu .dropdown-menu {
    background: #fff;
    border-radius: 0 8px 0px 8px;
}