/* ---------------------BASE--------------------- */
ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.fa-angle-down {
    margin-right: 5px;
}

.text-center {
    text-align: center;
}

.p-0 {
    padding: 0 !important;
}

.pb-20 {
    padding-bottom: 20px;
}

.img-container {
    height: 140px;
}

.img-fit {
    height: 130px;
    width: 240px;
    /* transition: 0.3s; */
}

.hover\:contrast:hover {
    filter: brightness(1.2);
    transition: 0.3s;
}

.mobile-menu-head,
.burger-icon {
    display: none;
}

/* ---------------------Main CSS--------------------- */
.container {
    position: relative;
    max-width: 1200px;
    margin: auto;
}

.aic {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* ---------------------Header--------------------- */
.header {
    background-image: linear-gradient(#90A96F, #B3CC85);
    position: relative;
    display: block;
    width: 100%;
    z-index: 99;
    padding: 15px;
    box-shadow: 0 0 20px rgb(0 0 0 / 50%);
}

.item-right {
    flex: 0 0 17%;
}

.item-center {
    flex: 0 0 66%;
}

.item-left {
    flex: 0 0 17%;
    display: flex;
    column-gap: 15px;
    justify-content: flex-end;
}

/* ---------------------Main Menu--------------------- */
.main-menu {
    display: flex;
    flex-direction: row-reverse;
    justify-content: start;
    align-items: center;
    column-gap: 20px;
}

.main-menu>li>a {
    padding: 5px 10px;
    font-weight: 600;
    color: white;
    transition: color 0.3s;
}

.main-menu li:hover>a {
    color: #605d5d;
}

/* ---------------------SubMenu--------------------- */
.sub-menu {
    position: absolute;
    padding: 20px 30px;
    margin-top: 25px;
    background: white;
    box-shadow: 2px 50px 100px -20px rgb(0 0 0 / 50%);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

@media only screen and (min-width: 992px) {
    .menu-with-submenu:hover .sub-menu {
        margin-top: 0px;
        opacity: 1;
        visibility: visible;
    }
}

.sub-menu a {
    position: relative;
    display: block;
    padding: 7px 15px;
    font-weight: 500;
    color: rgb(70 70 70);
}

.single-column {
    min-width: 280px;
    max-width: 350px;
}

/* ---------------------Mega Menu--------------------- */
.mega-menu {
    right: 50%;
    transform: translateX(50%);
}

.mega-menu-column-4 {
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    max-width: 1100px;
    width: 100%;
    flex-direction: row-reverse;
}

.mega-menu-column-4 .mega-item {
    flex: 20%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.mega-col-title, .mega-col-title a {
    padding: 0px;
    font-size: 16px;
    width: 240px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    margin: 5px 0;
    text-align: left;
    font-weight: bold;
}

.mega-col-title a { 
    margin: 0px;
}

.mega-col-subtitle>a {
    padding: 0px;
    font-size: 14px;
    width: 240px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    margin: 5px 0;
    text-align: left !important;
}

/* ---------------------Media--------------------- */
@media only screen and (max-width: 992px) {
    .item-center {
        order: 3;
        flex: 0 0 100%;
    }

    .container {
        justify-content: center;
    }

    .aic>a, .simple>a {
        color: black !important;
    }

    .aic {
        color: black !important;
        justify-content: space-between;
    }

    .main-menu {
        justify-content: center;
    }

    .burger-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 30px;
        width: 30px;
        background: white;
        color: #4e4e4e;
        font-size: 17px;
        border: 2px solid;
        border-radius: 5px;
        cursor: pointer;
    }

    .item-left {
        align-items: center;
    }

    .item-left a {
        display: flex;
    }

    .main-menu {
        flex-wrap: wrap;
        align-content: flex-start;
        row-gap: 20px;
        column-gap: 0;
        width: 320px;
        height: 100%;
        position: fixed;
        top: 0;
        right: 0;
        overflow-x: hidden;
        background: white;
        transform: translateX(100%);
        transition: 0.5s;
    }

    .main-menu.active {
        transform: translateX(0);
        box-shadow: 0 0 15px rgb(138, 138, 138);
    }

    .main-menu>li {
        width: 100%;
    }

    .main-menu>li>a {
        position: relative;
        display: flex;
        padding-right: 30px;
        border-bottom: 1px solid rgb(0 0 0 / 10%);
    }

    .main-menu>li>a i {
        transform: rotate(90deg);
    }

    .mobile-menu-head {
        position: sticky;
        top: 0px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 50px;
        width: 100%;
        background: white;
        border-bottom: 1px solid rgb(0 0 0 / 10%);
        z-index: 100;
    }

    .mobile-menu-head.active .go-back {
        display: flex;
    }

    .go-back {
        display: none;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        cursor: pointer;
        border-left: 1px solid rgb(0 0 0 / 10%);
    }

    .mobile-menu-close {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        font-size: 20px;
        cursor: pointer;
        border-right: 1px solid rgb(0 0 0 / 10%);
    }

    .sub-menu {
        display: none;
        position: absolute;
        top: 0;
        right: 0;
        max-width: auto;
        min-width: auto;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 70px 20px 20px 20px;
        overflow-y: auto;
        box-shadow: none;
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
        z-index: 1;
    }

    .sub-menu.active {
        display: block;
    }

    .mega-menu {
        flex-direction: column !important;
    }

    .mega-item {
        flex: 0 0 100% !important;
        margin-bottom: 20px;
    }

    .single-column {
        min-width: auto;
        max-width: auto;
    }

    .menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgb(0 0 0 / 50%);
        z-index: 0;
        opacity: 0;
        visibility: hidden;
        transition: 0.5s;
    }

    .menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ===================================Sliding animation */
@keyframes slideRight {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideLeft {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-100%);
    }
}