/*======================================
=            Mega Menu CSS            =
======================================*/

/*========================
=  Base Dropdown Setup  =
========================*/

.dropdown.dropdown-megamenu{
    position: relative;
}

/*========================
=  Toggle Link Desktop  =
========================*/

.dropdown.dropdown-megamenu .dropdown-toggle{
    font-size: 14px;
    padding: 2.3rem 18px;
    font-weight: 700;
    color: #000000 !important;
    text-transform: uppercase;
    opacity: 1 !important;

    display: flex;
    align-items: center;
    gap: 8px;

    text-decoration: none;
    transition: all 0.3s ease;
}

/* Bootstrap arrow disable */
.dropdown-toggle::after{
    display: none !important;
}

/* Hover */
.dropdown.dropdown-megamenu .dropdown-toggle:hover{
    color: #48a934 !important;
}

/*========================
=      Desktop Arrow    =
========================*/

.mega-arrow{
    width: 7px;
    height: 7px;

    border-right: 2px solid #000;
    border-bottom: 2px solid #000;

    transform: rotate(45deg);
    transition: 0.3s ease;

    display: inline-block;
    margin-left: 6px;
}

/* Rotate on open */
.dropdown.dropdown-megamenu.show .mega-arrow{
    transform: rotate(-135deg);
}

/*========================
=    Mega Menu Box     =
========================*/

.dropdown.dropdown-megamenu .dropdown-menu{
    position: absolute;
    top: 100%;
    left: 0;

    width: 900px;
    max-width: 95vw;

    background: #fff;

    border: none;
    border-radius: 12px;

    padding: 30px;

    box-shadow: 0 15px 45px rgba(0,0,0,0.18);

    opacity: 0;
    visibility: hidden;

    transform: translateY(18px);

    transition: all 0.35s ease;

    z-index: 999;
}

/* Open on desktop hover */
@media (min-width: 992px){
    .dropdown.dropdown-megamenu:hover .dropdown-menu{
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/*========================
=  Mega Menu Content    =
========================*/

/* Columns */
.header-navigation-col{
    padding: 0 18px;
}

/* Titles */
.header-navigation-col h4{
    font-size: 16px;
    font-weight: 700;
    color: #222;

    margin-bottom: 14px;
    padding-bottom: 8px;

    border-bottom: 2px solid #48a934;
}

/* List reset */
.header-navigation-col ul{
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Items */
.header-navigation-col ul li{
    margin-bottom: 8px;
}

/* Links */
.header-navigation-col ul li a{
    display: block;

    font-size: 14px;
    color: #555;

    padding: 6px 8px;
    border-radius: 6px;

    text-decoration: none;

    transition: all 0.25s ease;
}

/* Hover effect */
.header-navigation-col ul li a:hover{
    color: #48a934;
    background: rgba(72, 169, 52, 0.08);
    padding-left: 12px;
}

/*========================
=        Mobile         =
========================*/

@media (max-width: 991px){

    /* Hide desktop arrows */
    .mega-arrow,
    .dropdown-toggle::after{
        display: none !important;
    }

    /* Toggle button */
    .dropdown.dropdown-megamenu .dropdown-toggle{
        width: 100%;
        padding: 15px;

        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* + icon */
    .dropdown.dropdown-megamenu .dropdown-toggle::before{
        content: "+";
        font-size: 22px;
        font-weight: 700;
        color: #000;

        margin-left: auto;
    }

    /* - icon */
    .dropdown.dropdown-megamenu.show .dropdown-toggle::before{
        content: "-";
    }

    /* Menu closed state */
    .dropdown.dropdown-megamenu .dropdown-menu{
        position: static;
        width: 100%;

        max-height: 0;
        overflow: hidden;

        opacity: 1;
        visibility: visible;
        transform: none;

        background: #f9f9f9;

        box-shadow: none;
        border-radius: 0;

        padding: 0 15px;

        transition: max-height 0.4s ease;
    }

    /* Open state */
    .dropdown.dropdown-megamenu.show .dropdown-menu{
        max-height: 1000px;
        padding: 20px 15px;
    }

    .header-navigation-col{
        margin-bottom: 25px;
    }
}

