﻿
/*new style for header by samira.h*/

/* Mega menu styles */
.mega-menu {
    position: static;
}

    .mega-menu:hover, .header-new .nav-link:hover {
        background-color: rgba(249,202,36,.17) !important;
        background: rgba(249,202,36,.17) !important;
    }

@media screen and (max-width: 991px) {
    .mega-menu .dropdown-menu {
        width: 100%;
        left: 0;
        top: 60px;
        flex-wrap: wrap;
        justify-content: center;
        /* padding: 20px; */
        background-color: #f9f9f9;
        border: none;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0s 0.3s;
    }

        .mega-menu .dropdown-menu.show {
            opacity: 1;
            visibility: visible;
            transition-delay: 0s;
            display: flex;
        }

    .navbar-brand img {
        height: 35px;
        width: auto;
    }

    .dropdown:hover .dropdown-toggle::after,
    .dropdown.show .dropdown-toggle::after {
        position: absolute;
        top: 31px;
        right: auto;
        left: 0;
        /*margin: 0 auto;*/
        display: inline-table;
        opacity: 1;
    }

    .dropdown-toggle::after {
        display: none;
        opacity: 0;
    }
}

@media screen and (min-width: 992px) {
    .offcanvas-body .mega-menu .dropdown-menu {
        width: 100%;
        left: 8px;
        top: 70px;
        flex-wrap: wrap;
        justify-content: center;
        /* padding: 20px; */
        background-color: #f9f9f9;
        border: none;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0s 0.3s;
    }

        .offcanvas-body .mega-menu .dropdown-menu.show,
        .offcanvas-body .dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transition-delay: 0s;
            display: flex;
            transition: display 0.3s !important;
        }

    .navbar-brand img {
        height: 75px;
        width: auto;
    }

    .offcanvas-body .dropdown:hover .dropdown-toggle::after,
    .offcanvas-body .dropdown.show .dropdown-toggle::after {
        content: '';
        position: absolute;
        top: 31px;
        right: 0;
        left: 0;
        margin: 0 auto;
        display: inline-table;
        opacity: 1;
    }

    .offcanvas-body .dropdown-toggle::after {
        display: none;
        opacity: 0;
    }
}

.mega-menu .nav-link {
    color: #333;
    font-weight: bold;
    padding: 10px 20px;
}

    .mega-menu .nav-link:hover, .dropdown.show {
        background-color: rgba(249,202,36,.17) !important;
    }

.mega-menu .dropdown-menu > .row {
    margin-bottom: 20px;
}

    .mega-menu .dropdown-menu > .row:last-child {
        margin-bottom: 0;
    }

.mega-menu .col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mega-menu .col-title {
    font-weight: bold;
    margin-bottom: 10px;
    text-align: right;
    font-size: 12pt;
}

.mega-menu .col-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: right;
    font-size: 10pt;
}

    .mega-menu .col-links .nav-link {
        padding: 5px;
        width: 100%;
        display: block;
    }

.dropdown-toggle {
    position: relative;
}

.offcanvas-header, .offcanvas-body {
    background-color: #fff !important;
}

.offcanvas-end {
    right: -14px;
}

.header-new .navbar {
    /*right: -12px !important;*/
    background-color: #fff !important;
    height: 100px;
}

.header-new {
    /*margin-right: -12px !important;*/
    height: 100px;
}

    .header-new .navbar-light .navbar-toggler {
        /*top: -12px;*/
        position: relative;
        left: 0px;
        margin-right: auto;
    }

.drop-lang {
    position: absolute;
    right: -115px;
    left: auto;
}
