.has-mega-menu {
    position: relative;
}

.mega-menu {
    background-color: var(--bs-body-bg);
    position: relative;
    display: block;
    width: 700px;
    box-shadow: -5px 5px 5px rgba(var(--bs-primary-rgb), 0.2);
    margin: 0 auto;
    border: 1px solid var(--bs-secondary-bg)
}

.mega-menu:before {
    content: "";
    width:20px;
    height:20px;
    border: 10px solid transparent;
    border-bottom-color: var(--bs-secondary-bg);
    position: absolute;
    top: -20px;
    right: 0;
    left:0;
    margin: auto;
    z-index: 1;
}

.has-mega-menu .mega-menu {
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%) translateY(10%);
    visibility: hidden;
    opacity: 0;
    z-index: -1;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.has-mega-menu:hover .mega-menu,
.has-mega-menu:active .mega-menu{
    visibility: visible;
    opacity: 1;
    transform: translateX(50%) translateY(15px);
    z-index: 999;
}

.has-mega-menu .sub-menu{
    display: none !important;
}

.mega-menu img {
    max-width: 100%;
}

.mega-menu,
.mega-menu .mega-menu-content {
    border-radius: var(--bs-border-radius);
}

.mega-menu .mega-menu-content {
    position: relative;
    overflow: hidden;
}