﻿/* ==================== */
/* NAVBAR STYLES */
/* ==================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: white;
}

    .navbar .container-fluid {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

.navbar-collapse {
    width: 100%;
}

.navbar-nav {
    margin-left: 0;
    padding-left: 0;
}

/* ==================== */
/* DROPDOWN AND MEGA MENU STYLES */
/* ==================== */

.dropdown-menu {
    width: 100%;
}

.mega-menu {
    width: 100%;
    display: none;
}

    .nav-item.dropdown:hover > .dropdown-menu,
    .dropdown:hover > .dropdown-menu,
    .mega-menu:hover {
        display: block;
    }

.dropdown-item:hover + .mega-menu {
    display: block;
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.dropdown-item.active {
    background-color: #f2f2f2;
    color: #007bff;
}

.nav-item .dropdown-menu.mega-menu {
    left: auto;
    right: 0;
    top: 2rem;
}

/* ==================== */
/* RESPONSIVE STYLES */
/* ==================== */

@media (max-width: 767.98px) {
    .dropdown-menu {
        position: static !important;
    }

    .mega-menu {
        position: static !important;
    }

    .navbar-collapse {
        width: 100%;
        left: 0 !important;
        right: 0 !important;
        text-align: left !important;
    }

    .dropdown-menu {
        width: 100%;
        left: 0 !important;
        right: 0 !important;
        text-align: left !important;
        margin-top: 0;
        max-height: 50vh;
        overflow-y: auto;
    }

    .navbar-brand {
        left: 100% !important;
        right: 0 !important;
        text-align: left !important;
    }

    .navbar-nav {
        margin-left: 0;
        padding-left: 0;
    }

    .container {
        max-width: 100%;
    }
}

/* ==================== */
/* SUB MENU STYLES */
/* ==================== */

.totalis-sub, .legalis-sub {
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 10px;
    margin: 5px;
}

    .totalis-sub h5,
    .legalis-sub h5 {
        margin: 0 0 10px 0;
        font-size: 16px;
    }

    .totalis-sub p,
    .legalis-sub p {
        margin: 0;
        font-size: 14px;
    }

.container-legalis {
    display: flex;
    flex-wrap: wrap;
}

/* ==================== */
/* LINK STYLES */
/* ==================== */

.custom-link {
    color: black;
    text-decoration: none;
}

    .custom-link:hover {
        color: #0c151aa1;
        cursor: pointer;
        text-decoration: underline;
    }

.custom-pointer {
    cursor: pointer;
}

/* ==================== */
/* MISCELLANEOUS STYLES */
/* ==================== */

.no-caret::after {
    display: none;
}

/* Styles for the popout */
.language-popout {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.5);
    transition: bottom 0.3s ease;
    z-index: 1000;
    padding: 20px;
}

    .language-popout.active {
        bottom: 0;
    }

.language-popout-content h4 {
    margin-bottom: 20px;
}

.language-popout-content .dropdown-item {
    display: block;
    padding: 10px 0;
    font-size: 18px;
}

#closeLanguagePopout {
    width: 100%;
    padding: 10px;
    font-size: 18px;
}

@media (min-width: 768px) {
    .language-popout {
        width: 300px;
        right: -300px;
        left: auto;
        bottom: 0;
        height: 100%;
        box-shadow: -2px 0 5px rgba(0,0,0,0.5);
    }

        .language-popout.active {
            right: 0;
            bottom: 0;
        }
}