/* HEADER SECTION */

/* navbar megamenu */
.dropdown-menu {
    --bs-dropdown-border-color: unset;
}

.megamenu a {
    color: black;
    font-size: 14px;
}

.right-hover {
    transition: transform 0.3s ease;
    font-weight: 300;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.right-hover:hover {
    transform: translateX(0.5rem);
}



/* line and hover */
@media (min-width: 992px) {
    #nav-menu .nav-item {
        padding-bottom: 4rem;
        padding-top: 4rem;
    }

    #nav-menu .nav-link {
        position: relative;
        text-decoration: none;
        transition: transform 0.3s ease;
        padding: 0;
        color: #29327b;
    }

    .navbar-nav .nav-link.active,
    .navbar-nav .nav-link.show,
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link:hover {
        color: #29327b;
    }


    .underline::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        margin-bottom: -15px;
        height: 1.5px;
        background-color: #29327b;
        /* Highlight color */
        transition: width 1s ease;
    }

    .nav-item:hover .underline::before {
        width: 100%;
    }

    .underline-lang::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        margin-bottom: -5px;
        height: 1.5px;
        background-color: #29327b;
        transition: width 0.8s ease;
    }

    .underline-lang:hover::before {
        width: 30px;
    }

    .lift-hover {
        transition: transform 0.3s ease;
    }


    /* .nav-item:hover>.nav-link, */
    .lift-hover:hover {
        transform: translateY(-5px);
    }
}

/* \line and hover */

.navbar .megamenu {
    padding: 0 5% 3%;
}

/* ============ desktop view ============ */
@media all and (min-width: 992px) {

    .navbar.desktop {
        height: 120px;
        padding-left: 5%;
        padding-right: 5%;
    }

    .navbar .has-megamenu {
        position: static !important;
    }

    .navbar .megamenu {
        left: 0;
        right: 0;
        width: 100%;
        margin-top: 40px;
    }

    /* .dropdown:hover>.dropdown-menu {
        display: inline-block;
    } */

    .dropdown:hover>.dropdown-menu:not(#dashboard):not(#year) {
        display: inline-block;
    }

    .dropdown>.nav-link:active {
        /*Without this, clicking will make it sticky*/
        pointer-events: none;
    }

    .navbar-collapse.show {
        display: none;
    }

    .head-title {
        font-weight: 700;
        font-size: 20px;
        color: #29327b;
    }
}

/* ============ desktop view .end// ============ */

/* ============ mobile view ============ */
@media(max-width: 991px) {

    .navbar.fixed-top .navbar-collapse,
    .navbar.sticky-top .navbar-collapse {
        overflow-y: auto;
        max-height: 90vh;
        margin-top: 10px;
    }

    .head-title {
        font-weight: 700;
        font-size: 16px;
    }

    .nav-link.head-title::after {
        content: url('/img/chevron-down.svg');
        
        display: inline-block;
        margin-left: 10px;
        width: 16px;
        height: 16px;
        transition: transform 0.3s ease;
    }
}

/* ============ mobile view .end// ============ */

nav {
    font-family: 'Roboto', sans-serif;
}

.right-hover .text-decoration-none{
    font-weight: 400;
}

.nav-link {
    text-transform: uppercase;
}

.vertical-line {
    background-color: #29327b;
    width: 1px;
    height: 20px;
}

.vertical-line-bold {
    background-color: #29327b;
    width: 3px;
    height: 20px;
}

.dropdown-menu>li:hover>.dropdown-submenu {
    display: block;
}

.chevron-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 400;
}

.chevron-dropdown-toggle::after {
    content: url('/img/chevron-down.svg');
    display: inline-block;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

/* Rotate the SVG arrow when dropdown is open */
.show.chevron-dropdown-toggle::after, .nav-link.show::after {
    transform: rotate(180deg);
}

/* Define the fade-in animation */
@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Dropdown sliding and fading animation */
.fade-in>ul {
    animation: fade-in 0.3s ease-in-out;
}

.dropdown-item:hover {
    background-color: rgba(188, 190, 192, 0.3);
}

.dropdown-item:has(.show) {
    background-color: unset;
}

/* FOOTER SECTION */

.footer-title {
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.footer-text-bold {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.footer-text-medium {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.footer-text-light {
    display: block;
    font-size: 13px;
    font-weight: 50;
    letter-spacing: 0;
    color: white;
}

@media (min-width:650px) and (max-width: 991px) {
    .chevron-dropdown-toggle {
        margin-right: 70%;
    }
}