.mega-nav {
  list-style-type: none;
  display: flex;
  margin: 0;
  flex-direction: column;
}

.mega-nav__container {
  display: block;
  padding: 0 20px;
  margin-right: auto;
  margin-left: auto;
  background: white;
  height: 80px;
}

/* Column Links */
.mega-nav__column-links {
  list-style-type: none;
}

/* Icon */
.mega-nav__icon-link {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 0;
}

.mega-nav__icon-link a {
  display: block;
  position: relative;
}

.mega-nav__icon-link a:hover {
  color: #076EFD;
}

.mega-nav__icon-link a:focus {
  color: #076EFD;
}

.mega-nav__icon {
  display: flex;
  flex-direction: column;
}

.mega-nav__icon-title {
  display: flex;
  position: relative;
  z-index: 2;
  padding-right: 15px;
  margin-bottom: 0;
  font-weight: 500;
  font-size: 16px;
  line-height: normal;
}

.mega-nav__icon-title img {
  margin-right: 16px;
  position: relative;
  z-index: 2;
  width: 25px;
  height: auto;
}

.mega-nav__icon-title span {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.mega-nav__icon-title a {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Featured Block */

.mega-nav__featured {
  padding: 26px 0 0;
  position: relative;
  z-index: 100;
  display: none;
}

.mega-nav__featured:hover h3 {
  color: #076EFD;
}

.mega-nav__featured img {
  margin-bottom: 10px;
  width: 100%;
  border-radius: 6px;
  margin-top: 10px;
  height: auto;
}

.mega-nav__featured h3 {
  font-size: 14px;
  color: #385274;
  transition: 0.5s;
}

.mega-nav__mask {
  position: absolute;
  top: 80px;
  left: 0;
  background: transparent;
  height: calc(100vh - 80px);
  width: 100vw;
  display: none;
}

.mega-nav__parent {
  margin-top: 80px;
  transition: all 0.5s ease-in-out;
}

.mega-nav__parent.is-active .mega-nav__mask {
  display: block;
  z-index: -2;
}

.mega-nav__parent.is-active .mega-nav__sub {
  display: block;
}

.mega-nav__parent.is-active button {
  background: #F7F8F8;
  background-image: url("../svg/mega-nav-arrow-up.svg");
  background-position: right 20px center;
  background-repeat: no-repeat;
}

.mega-nav__parent.is-active button:hover, .mega-nav__parent.is-active button:active, .mega-nav__parent.is-active button:focus {
  background-image: url("../svg/mega-nav-arrow-up.svg");
  background-position: right 20px center;
  background-repeat: no-repeat;
}

.mega-nav__parent__link {
  border: 0;
  background-color: transparent;
  font-size: 16px;
  font-weight: 600;
  height: 80px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}

.mega-nav__parent button, .mega-nav__parent .mega-nav__parent-link {
  display: flex;
  border: 0;
  background-color: transparent;
  background-image: url("../svg/mega-nav-arrow.svg");
  background-position: right 18px center;
  background-repeat: no-repeat;
  height: 80px;
  font-size: 18px;
  font-weight: 700;
  width: 100%;
  text-align: left;
  padding: 20px;
  align-items: center;
}

.mega-nav__parent button:hover, .mega-nav__parent button:focus, .mega-nav__parent button:active, .mega-nav__parent .mega-nav__parent-link:hover, .mega-nav__parent .mega-nav__parent-link:focus, .mega-nav__parent .mega-nav__parent-link:active {
  background: #F7F8F8;
  background-image: url("../svg/mega-nav-arrow.svg");
  background-position: right 18px center;
  background-repeat: no-repeat;
}

.mega-nav__sub {
  position: relative;
  background: white;
  width: 100%;
  list-style-type: none;
  display: none;
}

.mega-nav__container {
  background: #fff;
  position: relative;
}

.mega-nav__sub-container {
  margin-right: auto;
  margin-left: auto;
}

.mega-nav h2,
.mega-nav .h2 {
  padding-bottom: 12px;
  font-size: 14px;
  font-weight: 450;
  color: rgba(16, 47, 56, 0.5);
    line-height: 1.2;
}

.mega-nav__columns__column {
  width: 100%;
  margin-bottom: 20px;
}

.mega-nav__columns {
  padding: 26px;
}

.mega-nav.nav {
  position: absolute;

}

.nav.nav-button {
  top: 205px;
}

@media screen and (min-width: 992px) {

  /* This is required so the sub menu is in the right place when the Banner Advert is present */
  /*nav:has(.banner-announcement.open) .mega-nav__sub {*/
  /*  top: 131px;*/
  /*}*/

  .mega-nav.nav {
    position: initial;
  }

  .mega-nav__container {
    position: initial;
  }

  .mega-nav__parent button:hover, .mega-nav__parent button:focus, .mega-nav__parent button:active, .mega-nav__parent .mega-nav__parent-link:hover, .mega-nav__parent .mega-nav__parent-link:focus, .mega-nav__parent .mega-nav__parent-link:active {
    background-position: right 10px center;
  }

  .mega-nav__parent.is-active button {
    background-position: right 10px center;
    background-image: url("../svg/mega-nav-arrow-up.svg");
  }

  .mega-nav__parent.is-active button:hover, .mega-nav__parent.is-active button:active, .mega-nav__parent.is-active button:focus {
    background-position: right 10px center;
    background-image: url("../svg/mega-nav-arrow-up.svg");
  }

  .mega-nav__parent__link {
    font-size: 14px;
  }

  .mega-nav__parent button, .mega-nav__parent .mega-nav__parent-link {
    padding: 20px 30px 20px 10px;
    font-size: 13px;
    font-weight: 600;
    background-position: right 10px center;
  }

  .mega-nav__parent.is-active .mega-nav__sub {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mega-nav__parent {
    margin-top: 0;
  }

  .mega-nav__container {
    width: 970px;
  }

  .mega-nav {
    flex-direction: row;
  }

  .mega-nav__sub {
    display: block;
    position: absolute;
    top: 81px;
    left: 0;
    box-shadow: 0px 21px 24px -25px rgba(0,0,0,0.1);
    border-radius: 0px 0px 8px 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-148px);
    transition: all 0.5s ease-in-out;
    z-index: -1;
  }

  .mega-nav__featured {
    display: block;
    width: 360px;
    margin-left: auto;
    padding-bottom: 36px;
  }

  .mega-nav__sub-container {
    width: 970px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    padding-left: 262px;
  }

  .mega-nav h2,
  .mega-nav .h2 {
    font-weight: 700;
    font-size: 16px;
    color: #102F38;
  }

  .mega-nav__columns {
    width: 100%;
    flex-direction: row;
    flex: 1;
    display: flex;
    justify-content: flex-start;
    padding: 26px 0;
  }

  .mega-nav__columns__column {
    margin-bottom: 0;
    max-width: 205px;
    flex: 1;
  }

  .mega-nav__columns__column--featured {
    max-width: initial;
    width: 360px;
    margin-left: auto;
    flex: initial;
  }

  /* One Col */
  .mega-nav__columns--one-col {
    flex-direction: column;
  }

  .mega-nav__columns--one-col .mega-nav__columns__column {
    max-width: initial;
  }

  .mega-nav__columns--one-col .mega-nav__column-links {
    display: grid;
    grid-template-columns: 1fr; /* Default to one column */
  }

  .mega-nav__columns--one-col .mega-nav__column-links:has(.mega-nav__icon-link:nth-child(5)) {
    grid-template-columns: 1fr 1fr; /* Switch to two columns if more than 4 items */
  }

  .mega-nav__columns--one-col .mega-nav__column-links:has(.mega-nav__icon-link:nth-child(9)) {
    grid-template-columns: 1fr 1fr 1fr; /* Switch to three columns if more than 8 items */
  }

  /* Two Col */
  .mega-nav__columns--two-col {
    max-width: initial;
  }

  .mega-nav__columns--two-col .mega-nav__columns__column:nth-child(2) {
    max-width: initial;
  }

  .mega-nav__columns--two-col .mega-nav__column-links {
    display: grid;
    grid-template-columns: 1fr; /* Default to one column */
  }


  .mega-nav__columns--two-col .mega-nav__columns__column:nth-child(2) .mega-nav__column-links:has(.mega-nav__icon-link:nth-child(5)) {
    grid-template-columns: 1fr 1fr; /* If 2 column layout selected, the 2nd column should go to more than 2 cols if more than 4 items */
  }

  .mega-nav__columns--two-col .mega-nav__columns__column:nth-child(2) .mega-nav__column-links:has(.mega-nav__icon-link:nth-child(9)) {
    grid-template-columns: 1fr 1fr 1fr; /* Switch to three columns if more than 8 items */
  }

  .mega-nav__columns--two-col .mega-nav__columns__column:nth-child(3) {
    display: none; /* Hide the 3rd column, if 2 column layout is selected */
  }

  /* Three Col */
  .mega-nav__columns--three-col {
    max-width: initial;
  }

  .mega-nav__columns--three-col .mega-nav__columns__column:nth-child(3) {
    max-width: initial;
  }

  .mega-nav__columns--three-col .mega-nav__column-links {
    display: grid;
    grid-template-columns: 1fr; /* Default to one column */
  }


  .mega-nav__columns--three-col .mega-nav__columns__column:nth-child(3) .mega-nav__column-links:has(.mega-nav__icon-link:nth-child(5)) {
    grid-template-columns: 1fr 1fr; /* If 3 column layout selected, the 3rd column should go to more than 2 cols if more than 4 items */
  }

  .mega-nav__columns--three-col .mega-nav__columns__column:nth-child(3) .mega-nav__column-links:has(.mega-nav__icon-link:nth-child(9)) {
    grid-template-columns: 1fr 1fr 1fr; /* Switch to three columns if more than 8 items */
  }
}



@media screen and (min-width: 1200px) {

  .mega-nav__parent__link {
    font-size: 16px;
  }

  .mega-nav__parent button, .mega-nav__parent .mega-nav__parent-link {
    font-size: 16px;
    padding: 20px 40px 20px 20px;
  }

  .mega-nav__sub-container {
    width: 1170px;
  }

  .mega-nav__container {
    width: 1170px;
  }
}

/* Banner Announcement */

.banner-announcement {
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #F7F8F8;
  max-height: 200px;
  height: auto;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);

  transition: opacity .5s ease 0s,
  max-height .5s ease 0s,
  transform .5s ease 0s;
  will-change: opacity, max-height, transform;
  position:relative;
}

.banner-announcement:before {
  content: '';
  position: absolute;
  top: -13px;
  left: 0;
  width: 100%;
  height: 30px;
  background-color: inherit;
  z-index: -1;

  transition: opacity .5s ease 0s,
  max-height .5s ease 0s,
  transform .5s ease 0s;
  will-change: opacity, max-height, transform;
}

.banner-announcement .inner {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  height: auto;
  max-height: 200px;
  max-width: 1135px;
  align-self: center;
  padding: 7px 20px 12px;
}

.banner-announcement .inner a:hover p {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.banner-announcement .content {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  @media screen and (max-width: 1023px) {
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }
}

.banner-announcement .bubble {
  padding: 0 15px;
  background-color: #FAC967;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 30px;
  transform: translateY(3px);
}

.banner-announcement .bubble span {
  color: black;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.banner-announcement .banner {
  padding: 0 2px 0 15px;
}

.banner-announcement .banner p {
  color: black;
  font-size: 16px;
  margin-bottom: 0;
  font-weight: 700;
  line-height: 1.3;
  transform: translateY(6px);
}

.banner-announcement .follow-up {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  padding: 0 15px 0 0;
}

.banner-announcement .follow-up .space {
  padding: 0 7px 0 5px;
  color: black;
  font-size: 16px;
  margin-bottom: 0;
  transform: translateY(3px);
}

.banner-announcement .follow-up p {
  color: black;
  font-size: 16px;
  margin-bottom: 0;
  line-height: 1.3;
  transform: translateY(7px);
}

.banner-announcement .chevron-mobile {
  display: inline-flex;
  @media screen and (min-width: 1024px) {
    display: none;
  }
}

.banner-announcement .chevron {
  transform: translate(-11px, 6px);
  @media screen and (max-width: 1023px) {
    display: none;
  }
}

.banner-announcement .close {
  cursor: pointer;
  align-self: flex-end;
  width: 20px;
  height: 20px;
}

.banner-announcement .close svg {
  transform: translateY(-6px);
}

.banner-announcement .close svg path {
  /* stroke: black; */
  /* stroke-width: 2px; */
}

body.hide-banner .banner-announcement {
  max-height: 0px;
  opacity: 0;
}

body.hide-banner .banner-announcement:before {
  max-height: 0px;
  opacity: 0;
}

@media screen and (max-width: 1023px) {
  .banner-announcement .follow-up .space {
    display: none;
  }

  .banner-announcement .bubble span {
    font-size: 10px;
  }


  .banner-announcement .banner p,
  .banner-announcement .follow-up p {
    font-size: 13px;
    width: 70%;
    margin: 0 auto;
  }

  .banner-announcement .follow-up p {
    width: 100%;
  }

  .banner-announcement .close {
    position: absolute;
    top: 22px;
    right: 21px;
  }

  .banner-announcement .chevron {
    transform: translate(-11px, 7px);
  }

  .banner-announcement .chevron svg {
    transform: scale(0.9) translateX(-6px);
  }

  .banner-announcement .bubble {
    margin: 0 10px 0 0;
  }

  .banner-announcement .follow-up {
    padding: 9px 15px 3px 0;
    transform: translateY(-6px);
  }

  .banner-announcement .banner {
    margin: 7px 0 5px 0;
    padding: 0;
    /*order: 4;*/
    width: 100%
  }
}