@media (min-width: 992px) {
    .megamenu-level-1 > .megamenu > ul li {
        font-size: 13px !important;
        line-height: 26px !important;
    }

    .megamenu-level-2 > .megamenu > ul li {
        font-size: 13px !important;
        line-height: 28px !important;
    }

    .megamenu-level-2 > .megamenu > ul li:before {
        margin-top: 8px !important;
    }
}

@media screen and (min-width: 992px) {
    .megamenu-level-1 > .megamenu > ul {
        min-height: 410px !important;
    }
}

@media (min-width: 1152px) {
    .megamenu-level-1 > .megamenu > ul {
        left: 20px !important;
    }
}

@media screen and (min-width: 992px) {
    .megamenu-level-2 > .megamenu > h4 {
        padding: 10px 40px !important;
    }
}

@media screen and (min-width: 992px) {
    .megamenu__contact {
        font-size: 16px !important;
    }
}


/* Mobile search menu 
 
*/

    li {
  --purple: #5b1f69;
  --textgrey: #333;
  --sDisplay: none;
  --borderGrey: #d8d8d8;
}
@media (max-width: 991px) {
  li {
    --sDisplay:block;
  }
}
li.search {
  display: var(--sDisplay) !important;
}
li.search form {
  display: flex;
  flex-direction: row;
  height: 40px;
  width: max(320px, 95%);
  margin: auto;
  margin-bottom: 20px;
}
li.search form input {
  height: auto;
  display: block;
}
li.search form input[type=submit] {
  width: 50px;
  overflow: hidden;
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--purple) !important;
  text-indent: -9999px;
  background-image: url(assets/img/search-icon.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size:20px;
  border-radius: 0;
  flex: 0 0 50px;
  aspect-ratio: 1;
  border-color: var(--textgrey);
  border-width: 1px;
  border-style: solid solid solid none;
}
li.search form input[type=search] {
  border-color: var(--borderGrey);
  border-width: 1px;
  border-style: solid none solid solid;
  border-radius:0;
  padding:10px;
  border-right:none;
}
li.search + li {
  border-left: none !important;
}


.page-template-page-homepage .stay-informed--small .box--post__image img {
  aspect-ratio:4/3;
}