/* ===================================================== */
/* NAVBAR (CABIUNAS) — Bootstrap-pure + active underline */
/* ===================================================== */

:root {
    --nav-bg: #06063d;
    --nav-text: rgba(255, 255, 255, .92);
    --nav-text-hover: #3578f6;
    --nav-accent: #3578f6;
    --nav-underline-h: 3px;
}

/* ===================================================== */
/* BASE */
/* ===================================================== */

.navbar-cabiunas {
    background: var(--nav-bg) !important;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-cabiunas .navbar-nav {
    align-items: center;
}

/* ===================================================== */
/* LINKS */
/* ===================================================== */

.navbar-cabiunas .navbar-brand,
.navbar-cabiunas .nav-link {
    color: var(--nav-text) !important;
    font-weight: 500;
    text-decoration: none;
}

.navbar-cabiunas .nav-link:hover,
.navbar-cabiunas .nav-link:focus {
    color: var(--nav-text-hover) !important;
}

/* ===================================================== */
/* ACTIVE UNDERLINE — TOP LEVEL ONLY */
/* (uses ::before to NOT break Bootstrap caret) */
/* ===================================================== */

.navbar-cabiunas .navbar-nav>.nav-item>.nav-link {
    position: relative;
    padding-bottom: 10px;
}

/* underline ONLY when active */
.navbar-cabiunas .navbar-nav>.nav-item>.nav-link.link-ativo::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    background: #3578f6;
}

/* ===================================================== */
/* DROPDOWN — BOOTSTRAP DEFAULT (CLICK ONLY) */
/* ===================================================== */

/* keep Bootstrap caret visible */
.navbar-cabiunas .dropdown-toggle::after {
    margin-left: .4rem;
}

/* dropdown menu look */
.navbar-cabiunas .dropdown-menu {
    margin-top: 0;
    border-radius: 10px;
    border: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    padding: 8px 0;
}

/* dropdown items */
.navbar-cabiunas .dropdown-menu .dropdown-item {
    color: #0a0f30 !important;
    font-weight: 500;
    padding: .55rem 1rem;
}

.navbar-cabiunas .dropdown-menu .dropdown-item:hover,
.navbar-cabiunas .dropdown-menu .dropdown-item:focus {
    background: rgba(53, 120, 246, .12);
    color: #0a0f30 !important;
}

/* ===================================================== */
/* MOBILE / ICON BUTTONS */
/* ===================================================== */

.navbar-cabiunas .navbar-toggler {
    padding: .25rem .5rem;
}

/* mobile dots button */
.navbar-cabiunas .nav-dots {
    color: rgba(255, 255, 255, .90) !important;
}

.navbar-cabiunas .nav-dots svg {
    fill: currentColor;
}

.navbar-cabiunas .nav-dots:hover,
.navbar-cabiunas .nav-dots:focus,
.navbar-cabiunas .nav-dots:active {
    color: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
}

/* never underline dots */
.navbar-cabiunas .nav-dots::before {
    display: none !important;
}
