﻿@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

.ubuntu-light {
    font-family: "Ubuntu", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.ubuntu-regular {
    font-family: "Ubuntu", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.ubuntu-medium {
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.ubuntu-bold {
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.ubuntu-light-italic {
    font-family: "Ubuntu", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.ubuntu-regular-italic {
    font-family: "Ubuntu", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.ubuntu-medium-italic {
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
    font-style: italic;
}

.ubuntu-bold-italic {
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-style: italic;
}


:root {
    --navy: #150e6e; /* Variable for main color */
    --blue: #47b9de; /* Variable for main color */
    --red: #d10d17;
}


/*------------Desktop Nav-----------*/

.nav-disabled {
    cursor: default; /* no hand cursor */
    opacity: 0.7; /* optional visual cue */
}


.navbar,
.container-fluid {
    position: relative;
}


/* Tier 1 menu horizontal */
/* Style the li */
.navbar-nav > li.nav-item.dropdown {
    /*background-color: #f0f0f0;*/
    padding: 10px 15px;
    border-radius: 0px !important;
    transition: background-color 0.3s ease;
    cursor: pointer; /* makes it clear it's interactive */
}

    /* Hover effect on the li */
    .navbar-nav > li.nav-item.dropdown:hover {
        background-color: var(--navy); /* your highlight color */
        color: white;
    }

        /* If you want to also change the link color on li hover */
        .navbar-nav > li.nav-item.dropdown:hover > a.nav-link.dropdown-toggle {
            color: white;
        }


/* Tier 2 menu horizontal */
/* Tier 2 menu horizontal - hidden by default */
.navbar-nav > .dropdown {
    position: static;
}

    .navbar-nav > .dropdown > .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw; /* or use 100% for container relative */
        max-width: 1120px; /* match your container max width */
        background-color: #e5effa; /* ensure the background is visible */
        display: none; /* hidden by default */
        /*padding: 2rem;*/
        /*border-top: 3px solid var(--navy);*/
        z-index: 1000;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        flex-wrap: wrap;
        justify-content: flex-start;
        border-radius:0;
    }

@media (max-width: 1330px) {
    .navbar-nav > .dropdown > .dropdown-menu {
        max-width: 992px;
    }
    }

/*@media (max-width: 1200px) {
    .navbar-nav > .dropdown > .dropdown-menu {
        max-width: 902px;
    }
}*/

    /* Hide Tier 2 menu by default */
    .navbar-nav > .dropdown > .dropdown-menu.tier2 {
        display: none; /* Hidden initially */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        position: absolute;
        top: 90%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
    }

    /* Show Tier 2 menu on hover of Tier 1 */
    .navbar-nav > .dropdown:hover > .dropdown-menu.tier2 {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr);
        /*gap: 1rem;*/
        opacity: 1;
        visibility: visible;
        margin: 0 !important;
    }



    /* Each Tier 2 item in horizontal row */
    .navbar-nav > .dropdown > .dropdown-menu > li {
        /*flex: 1 1 auto;
        list-style: none;
        position: relative;*/
        flex: 0 0 25%; /* 4 columns */
        /*max-width: 25%;*/
    }

    .dropdown-submenu {
        /*position: relative;*/
    }

        .dropdown-submenu > .dropdown-menu::before {
            content: "";
            position: absolute;
            top: -10px; /* extend hover area upwards */
            left: 0;
            width: 100%;
            height: 10px;
        }


        /* Tier 3 dropdown styling (mega menu) */
        .dropdown-submenu > .dropdown-menu {
            top: 100% !important;
            left: 50% !important;
            transform: translateX(-50%);
            position: absolute;
            display: flex;
            flex-wrap: wrap;
            /*gap: 1rem;*/
            width: 100%;
            max-width: 1120px; /* or your container width */
            /*padding: 1rem 2rem;*/
            background: white;
            /*border: 3px solid var(--navy);*/ /*rgba(0,0,0,.15);*/
            box-shadow: 0 .5rem 1rem rgba(0,0,0,.175);
            border-radius: 0;
            z-index: 1050;
            visibility: hidden;
            opacity: 0;
            transition: opacity 0.3s ease;
            display: grid !important;
            grid-template-columns: repeat(6, 1fr);
        }


        /* Show Tier 3 on hover */
        .dropdown-submenu:hover > .dropdown-menu {
            visibility: visible;
            opacity: 1;
        }

        /* Tier 3 items */
        .dropdown-submenu > .dropdown-menu > li {
            flex: 0 0 25%;
        }

    /*.dropdown-submenu > .dropdown-menu > li {
    flex: 1 1 auto;
    white-space: normal;
}*/

    /* Show Tier 2 menu on hover for desktop */
    @media (min-width: 992px) {
        .nav-item.dropdown:hover > .dropdown-menu {
            display: flex !important;
        }

        .dropdown-toggle::after {
            visibility: hidden;
        }
    }

    /* Ensure Tier 2 items (submenus) align horizontally in 4 columns */
.dropdown-menu.tier2 {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr);
    /*gap: 1rem;*/
    /*padding: 2rem;*/
    width: 100%;
    max-width: 1120px;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    top: 100%;
    background-color: #e5effa;
    /*border-top: 3px solid #df7217;*/
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 999;
}

        /* Optional: all submenu li's fill column space evenly */
        .dropdown-menu.tier2 > li {
            width: 100%;
        }

        /* Style hover for Tier 2 links */
        .dropdown-menu.tier2 .dropdown-item {
            display: block;
            width: 100%;
            padding: 0.75rem 1rem;
            background: none;
            transition: background 0.3s ease, color 0.3s ease;
        }

            .dropdown-menu.tier2 .dropdown-item:hover {
                background-color: var(--navy);
                color: white;
                border-radius: 0px;
            }





/* Mobile Nav */


/* Burger button styles */
.burger-btn {
    width: 30px;
    height: 22px;
    position: fixed;
    right: 20px;
    top: 120px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    z-index: 10010;
}

    .burger-btn .bar {
        display: block;
        width: 100%;
        height: 4px;
        background-color: var(--navy);
        border-radius: 2px;
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
    }

.bar1 {
    top: 0;
}

.bar2 {
    top: 9px;
}

.bar3 {
    bottom: 0;
}

/* When open, transform bars into an X */
.burger-btn.open .bar1 {
    transform: rotate(45deg);
    top: 9px;
}

.burger-btn.open .bar2 {
    opacity: 0;
}

.burger-btn.open .bar3 {
    transform: rotate(-45deg);
    bottom: 9px;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10000;
}

    .overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

/* Mobile menu container */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    padding-top:20px;
    height: 100%;
    width: 100vw;
    max-width: 400px;
    background: white;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 10005;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
}

    .mobile-menu.active {
        transform: translateX(0);
    }

   /* .mobile-menu a, .mobile-menu a:link, .mobile-menu a:visited {
        color: var(--navy);
        font-family: "Ubuntu", sans-serif;
        font-weight:400;
        
    }*/
/* Each menu level (screen) */
.menu-level {
    min-width: 100%;
    padding: 1em;
    overflow-y: auto;
    transition: transform 0.3s ease;
    position: absolute;
    top: 100px;
    bottom: 0;
    background: white;
    left: 0;
    transform: translateX(100%);
    /* Hide offscreen by default */
    visibility: hidden;
}

    .menu-level.active {
        transform: translateX(0);
        visibility: visible;
        position: relative;
    }

    /* When going forward, slide left */
    .menu-level.slide-in {
        animation: slideIn 0.3s forwards;
    }

    /* When going back, slide right */
    .menu-level.slide-out {
        animation: slideOut 0.3s forwards;
    }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        visibility: visible;
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(100%);
        visibility: hidden;
    }
}

/* Back button */
.back-btn {
    background: none;
    border: none;
    font-size: 1.1em;
    cursor: pointer;
    margin-bottom: 1em;
    color: var(--navy);
    position: fixed;
    left: 10px;
    top: 0px;
    transition: color 0.3s ease;
}

    .back-btn:hover {
        color: var(--blue);
    }

        /* Arrow animation only */
        .back-btn:hover .back-arrow {
            animation: arrowWiggleLeft 1s ease infinite;
            display: inline-block; /* Needed to animate properly */
        }
@keyframes arrowWiggleLeft {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-5px);
    }
    /* Wiggle left for back arrow */
    100% {
        transform: translateX(0);
    }
}



/* Lists */
.menu-level ul {
    list-style: none;
    padding: 0;
    margin: 40px 0 0 0;
}

.menu-level li {
    display: flex; /* Make children (e.g. link and button) line up horizontally */
    align-items: center; /* Vertically center content */
    justify-content: space-between; /* Push button to the right */
    /*margin-bottom: 0.5em;*/
    border-bottom: solid 1px var(--navy);
    text-align: left;
    padding: 0.5em ;
    min-height:50px;
}

    /* Hover effect on the entire li */
    .menu-level li:hover {
        background-color: var(--navy);
    }

        /* Change link and button text to white when li is hovered */
        .menu-level li:hover a,
        .menu-level li:hover .submenu-btn {
            color: white;
        }

.menu-level li,
.menu-level a,
.menu-level .submenu-btn {
    transition: background-color 0.3s ease, color 0.3s ease;
}


.menu-level a {
    color: var(--navy);
    font-family: "Ubuntu", sans-serif;
    font-weight: 400;
    text-decoration: none;
    flex: 1; /* Allow the link to take up available space */
}

/* Submenu buttons */
.submenu-btn {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: var(--navy);
    font-weight: bold;
    padding-left: 1em;
    display: inline-block; /* So transform affects it properly */
    transition: color 0.3s ease;
}


.menu-level li:hover .submenu-btn {
    animation: arrowWiggle 1s ease infinite;
}

@keyframes arrowWiggle {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(0);
    }
}



