﻿

@media only screen and (min-width: 992px) {
    /* Now .dropdown-menu gets the fullscreen mega menu styles */
    .dropdown-menu.dropdown-product {
        width: 100vw !important;
        height: 100vh !important;
        position: fixed !important;
        left: 0 !important;
        background-color: #f8f9fa;
        display: none;
    }


        /* And .dropdown-menu.dropdown-support gets the simpler dropdown styles */
        .dropdown-menu.dropdown-support {
            width: 30vw !important;
            /*height: auto !important;*/
            position: absolute !important;
            right: 0 !important; /* align to the right of the parent */
            left: auto !important; /* optional: ensure left is overridden */
            background-color: #f8f9fa;
        }

        /* And .dropdown-menu.dropdown-support gets the simpler dropdown styles */
        .dropdown-menu.dropdown-services {
            width: auto !important;
            height: auto !important;
            position: absolute !important;
            /*start menu from left side*/
            /*right: 0 !important;
            left: auto !important;*/
            /*start menu from right side*/
            /*right: auto !important;
            left: 0 !important;*/
            /*start menu from center*/
            left: 50% !important;
            transform: translateX(-50%) !important;

            background-color: #f8f9fa;
        }

    /* Show on hover */
    .dropdown:hover .dropdown-menu {
        display: flex;
    }

    /* Optional: override hidden via JS */
    .dropdown-menu.hidden-by-click {
        display: none !important;
    }

    /*Problem my dropdown-services menu show horizontaly*/
    /*By default, flex-direction is row, which makes child items align horizontally.*/
    /*Solution: Set flex-direction: column*/
    .dropdown-menu.dropdown-services {
        flex-direction: column;
    }
}

/*Change the anchor tag color and set the text-decoration to none.*/

.dropdown-menu.dropdown-product a {
    text-decoration: none;
    color: #000000;
}


.dropdown-menu.dropdown-support a {
    text-decoration: none;
    color: #000000;
}


    /*for megamenu background for the entire flexbox.*/
.dropdown-menu.dropdown-product a:hover .d-flex {
    background-color: var(--bs-primary-bg-subtle, #cfe2ff);
}

.dropdown-menu.dropdown-support a:hover .d-flex {
    background-color: var(--bs-primary-bg-subtle, #cfe2ff);
}



    /*Lastly, add a transition.*/

.dropdown-menu.dropdown-product a .d-flex {
    transition: all 0.2s;
}
    .dropdown-menu.dropdown-support a .d-flex {
        transition: all 0.2s;
    }

