.nav-custom {
    display: flex;
    gap: 3rem;
    margin-left: 2rem;
    padding-right: 0;
}

.navbar.fixed-top {
    position: fixed;
}

.nav-custom .nav-link {
    margin-top: 0.5rem;
    color: #0d6efd !important;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease-in-out;
}

    .nav-custom .nav-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -16px;
        height: 10px;
        width: 0;
        background-color: #025383;
        transition: width 0.3s ease-in-out;
    }

    .nav-custom .nav-link.active::after {
        width: 100%;
    }

    .nav-custom .nav-link:hover::after {
        width: 100%;
    }

.navbar {
    display: block;
    align-items: right;
    gap: 4rem;
    margin-left: auto;
    padding-right: 1rem;
    position: relative;
    height: 71px;
}

.logo {
    margin-left: 5rem;
    height: 50px;
    object-fit: contain;
    transition: height 0.3s ease;
}

.custom-menu li {
    white-space: nowrap;
    line-height: 0.6rem;
}

@media (max-width: 768px) {

    .navbar {
        background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
        z-index: 1000;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }

    .logo {
        height: 50px;
        margin-left: 0rem;
    }

    .custom-menu {
        position: absolute;
        top: 71px;
        left: 0;
        width: 100%;
        background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
        z-index: 999;
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        padding: 1rem 1rem;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.05);
    }

        .custom-menu .nav-link {
            padding-top: 0.10rem;
            padding-bottom: 0.10rem;
        }
}

/* Tablets landscape (769px–1024px) */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {

    .navbar {
        background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
        z-index: 1000;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        height: 55px;
    }

    .logo {
        height: 40px;
        margin-left: 0rem;
    }

    .custom-menu {
        background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
        display: flex;
        flex-direction: column;
        padding: 0.65rem 0.8rem;
        gap: 0.4rem;
        position: absolute;
        top: 55px;
        left: 0;
        width: 100%;
        z-index: 999;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        height: auto;
    }

        .custom-menu .nav-link {
            padding-top: 0.15rem;
            padding-bottom: 0.15rem;
            line-height: 0.8rem;
        }
}

/* Celulares landscape (até 768px) */
@media (max-width: 915px) and (orientation: landscape) {

    .navbar {
        background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
        z-index: 1000;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        height: 48px;
    }

    .logo {
        height: 36px;
        margin-left: 0;
    }

    .custom-menu {
        background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
        display: flex;
        flex-direction: column;
        padding: 0.5rem 0.8rem;
        gap: 0.3rem;
        position: absolute;
        top: 48px;
        left: 0;
        width: 100%;
        z-index: 999;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        height: auto;
        max-height: 60vh;
        overflow-y: auto;
    }

        .custom-menu .nav-link {
            padding-top: 0.1rem;
            padding-bottom: 0.1rem;
            line-height: 1rem;
            font-size: 0.9rem;
        }
}
