.visited-link {
    color: #CD1B20 !important;
}


/* change the color on scroll */
.scrolled {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: background-color 0.3s ease;
}

nav {
    position: fixed;
    z-index: 99;
    width: 100%;
    background: #F7F7FA;

}

nav .wrapper {
    position: relative;
    max-width: 1300px;
    padding: 0px 30px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wrapper .logo a {
    color: #000000;
    font-size: 30px;
    font-weight: 600;
    text-decoration: none;
}

.wrapper .nav-links {
    display: inline-flex;
}

.nav-links li {
    list-style: none;
}

.nav-links li a {
    font-family: 'Swiss 721', sans-serif;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 9px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.megaItem-Data h6 {
    font-weight: 400 !important;
    font-size: 16px !important;
    padding: 0 !important;
    line-height: 18px !important;
}

.megaItem-Data p{
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 15px;
    font-weight: 400;

}




.nav-links li a:hover {
    /* background: #3A3B3C; */
}

.nav-links .mobile-item {
    display: none;
}



.clicked-nav.active-dropdown {
    background-color: #fff;
}



.nav-links li:hover .mega-box {
    transition: all 0.3s ease;
    top: 70px;
    opacity: 1;
    visibility: visible;
}


.mega-box {
    position: absolute;
    /* bootstrap problem */
    /* margin-top: -10px; */
    /*  */
    left: 0;
    width: 100%;
    padding: 0 30px;
    top: 85px;
    opacity: 0;
    visibility: hidden;
}

.mega-box-2column{
    left: 25%;
    width: 50%;
}

.mega-box .content {
    background: #fff;
    border-radius: 5px;
    padding: 25px 20px;
    display: flex;
    width: 100%;
    justify-content: space-between;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

.mega-box .content .megaItem {
    width: calc(25% - 30px);

}

.mega-box-2column .content .megaItem {
    width: calc(50% - 30px);

}

.content .megaItem header {
    color: #f2f2f2;
    font-size: 20px;
    font-weight: 500;
}

.content .megaItem .mega-links {
    margin-left: -40px;
    border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.megaItem .mega-links li {
    padding: 0 20px;
}

.megaItem .mega-links li a {
    padding: 0px;
    padding: 0 20px;
    color: #000000;
    font-size: 17px;
    display: block;
}

.megaItem .mega-links li a:hover {
    color: #f2f2f2;
}

.wrapper .labelBtn {
    color: #000000;
    font-size: 20px;
    cursor: pointer;
    display: none;
}

.wrapper .labelBtn.close-btn {
    position: absolute;
    right: 30px;
    top: 10px;
}

@media screen and (max-width: 970px) {

    .mega-box {

        /* bootstrap problem */
        margin-top: 0px;
        /*  */

    }



    .wrapper .labelBtn {
        display: block;
    }

    .wrapper .nav-links {
        position: fixed;
        height: 100vh;
        width: 100%;
        max-width: 350px;
        top: 40px;
        left: -100%;
        background: #fff;
        display: block;
        padding: 50px 10px;
        line-height: 50px;
        overflow-y: auto;
        box-shadow: 0px 15px 15px rgba(0, 0, 0, 0.18);
        transition: left 0.3s ease;
    }


    #menu-btn:checked~.nav-links {
        left: 0%;
    }

    #menu-btn:checked~.labelBtn.menu-btn {
        display: none;
    }

    #close-btn:checked~.labelBtn.menu-btn {
        display: block;
    }

    .nav-links li {
        margin: 15px 10px;
    }

    .nav-links li a {
        padding: 0 20px;
        display: block;
        font-size: 20px;
    }

    .megaItem-Data p{
        font-size: 14px;
        line-height: 15px;
    }



    #showMegaPlatform:checked~.mega-box {
        max-height: 100%;
    }

    #showMegaResources:checked~.mega-box {
        max-height: 100%;
    }

    .nav-links .desktop-item {
        display: none;
    }

    .nav-links .mobile-item {
        font-family: 'Swiss 721', sans-serif;
        display: block;
        font-size: 20px;
        font-weight: 500;
        padding-left: 20px;
        cursor: pointer;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    .nav-links .mobile-item:hover {
        /* background: #3A3B3C; */
    }



    .mega-box {
        position: static;
        top: 65px;
        opacity: 1;
        visibility: visible;
        padding: 0 20px;
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    #showMegaPlatform:checked~.mega-box,
    #showMegaResources:checked~.mega-box {
        max-height: auto;
    }

    .mega-box .content {
        box-shadow: none;
        flex-direction: column;
        padding: 0 !important;
    }

    .mega-box .content .megaItem {
        width: 100%;
        margin-bottom: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mega-box-2column{
        width: 100%;
    }


    .mega-box .content .megaItem:nth-child(1),
    .mega-box .content .megaItem:nth-child(2) {
        border-top: 0px;
    }

    .content .megaItem .mega-links {
        border-left: 0px;
        padding-left: 15px;
    }

    .megaItem .mega-links li {
        margin: 0;
    }

    .content .megaItem header {
        font-size: 19px;
    }
}

nav input {
    display: none;
}
