/* ======== 1. Start Menu Styling [Theme Setup Steps - Customise Styles per Theme Design] =========== */
.hs-tools-menu.hs-collapsed {
  top:50px;
}

.menu__outer-container {
  width: 100%;
  margin: 0 0 0 32px;
}

.menu-item__content {
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 28px;
  right:28px;
  height: auto;
  padding: 32px 32px;
  background: var(--megamenu-background-color);
  border-radius: 0px;
  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.25);
  /*overflow: hidden;  this is stop the before below appearing*/
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 9;
}

.menu-item__content:before{
  /*UX improvment, allows diagonal rollover to megamenu items from primary trigger element */
  content: '';
  display:block;
  height:35px;
  width:100%;
  background-color:transparent;
  position:absolute;
  top: -35px;
  left:0;
}

.menu-item__content .content-wrapper {
  width: 100%;
  /* max-width:1200px;*/
  display: flex;
  justify-content: center;
  /*column-gap:120px;*/
  position: relative;
  padding: 0;
  transform: translateY(-15px);
  transition: 0.3s ease;
}

/*Mega Menu with Image style*/ 
.menu-item__content .content-wrapper.has_image {
  max-width:1760px;
}  
  
/*Mega Menu with Image width fix*/


.menu-item__content .content-wrapper:after {
  content: '';
  display: table;
  clear: both;
}

.menu-item__navigation_container {
  display: flex;
  justify-content: flex-start;
  gap:32px;
}

.menu-item__navigation_container .menu-item__info-wrapper .menu-item__intro-cta a.cta-item {
  padding: 0px;
  font-family: inherit;
  color: inherit;
  text-decoration: none;
}

.content-wrapper.has_image .menu-item__navigation_container {
  align-items: center;
}

/*Mega Menu with Image style*/

.menu-item__intro {
  /*width:340px;min-width:300px;*/
  font-size: 16px;
  color: var(--megamenu-text-color);
  max-width:400px;
 /* min-height:300px;*/
}

/*.menu-item__intro-bodytext{color: var(--grey-900)}*/
.menu-item__intro-cta {
  margin-top: 16px;
}

/*In case richtext don't encapsule text in <p>*/
.menu-item__intro-bodytext {
  font-size:16px;
  line-height: var(--standard-line-height)
}

.menu-item__intro-cta a.simple_link,
.menu-item__intro-cta a.simple_link:hover {
  color: var(--primary-1);
}

.menu-item__intro-cta>a.simple_link:first-child {
  padding-left: 0;
}

.menu__content-wrapper .menu__list-wrapper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  width: 100%;
  color: var(--menu-text-color)
}

.menu__content-wrapper .menu__list-wrapper .menu-item {
  display: inline-block;
  padding: 32px 16px;
  position: relative;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: normal;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:0.3s ease;
}

.menu__content-wrapper .menu__list-wrapper .menu-item.menu-item--link.button {
  padding: .8rem 2rem;
  margin:22px 10px 22px 22px;
}

.menu__content-wrapper .menu__list-wrapper .menu-item.menu-item--link:focus-visible {
  outline: 2px solid var(--focus-outline-color);
  outline-offset: 6px;
}

.menu__content-wrapper .menu__list-wrapper a.menu-item {
  color: var(--menu-text-color)
}

.menu__content-wrapper {
  display: flex;
  align-items: center;
  /* justify-content: flex-end; */
}

.menu__cta-items-wrapper {
  margin-top: 0;
  display:flex;
  gap:16px;
  margin-left:auto;
}

/* ======== Start Menu Open/Close Behaviour ============ */
@media screen and (min-width:1024px) {
  .menu__outer-wrapper.mobile-nav {
    display: none;
  }

  li.hs-item-has-children:hover .menu-item__content,
  li.hs-item-has-children:focus-within .menu-item__content  {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  li.hs-item-has-children:hover .menu-item__content .content-wrapper,
  li.hs-item-has-children:focus-within .menu-item__content .content-wrapper {
    /* visibility: visible;
    opacity: 1; */
    transform: translateY(0);
    transition:0.3s ease;
  }

  .menu__list-wrapper .simple-menu-opener:focus-within>.menu-simple-item__content,
  .menu__list-wrapper .simple-menu-opener:hover>.menu-simple-item__content {
    opacity: 1;
    visibility: visible;
    height:auto !important;
  }

  .menu__list-wrapper .simple-menu-opener .menu-simple-item__content__inner,
  .menu__list-wrapper .simple-menu-opener .menu-simple-item__content__inner {
    transform: translateY(-15px);
    transition:0.3s ease;
  }

  .menu__list-wrapper .simple-menu-opener:focus-within .menu-simple-item__content__inner,
  .menu__list-wrapper .simple-menu-opener:hover .menu-simple-item__content__inner {                                                                        
    transform: translateY(0px);
    height:auto !important;
  }

  .menu__list-wrapper:not(:has(.menu__list-item--search)) .menu__cta-items-wrapper {
    margin-left: auto;
  }

  .menu-item__chevron {
    display: flex;
    margin-left: 8px;
    transition: transform 0.3s;
  }

  .menu__content-wrapper .menu__list-wrapper>.hs-item-has-children:hover .menu-item__chevron {
    transform: rotate(180deg);
  }
}

/* ======== End Menu Open/Close Behaviour ============ */

.menu__list-wrapper .simple-menu-opener .menu-simple-item__content {
  /*display:none;*/
  transition: 0.3s ease;
  position: absolute;
  /* top: 100%; */
  /*min-width: 250px;*/
  background: var(--submenu-background-color);
  border-radius: 0px 0px 10px 10px;
  border: var(--submenu-border);
  box-shadow: 0 5px 15px 0 rgba(0, 0, 0, .25);
  opacity: 0;
  padding: 32px;
  visibility: hidden;
  top:100%;
}

.menu__list-wrapper .simple-menu-opener .menu-simple-item__content .hs-menu-wrapper ul {
  display: block;
}

.menu__list-wrapper .simple-menu-opener .menu-simple-item__content .hs-menu-wrapper ul>li a {
  text-decoration: none;
  font-size: 16px;
  color: var(--submenu-text-color);
}

.menu__list-wrapper .simple-menu-opener .menu-simple-item__content .hs-menu-wrapper ul>li a:hover {
  color: var(--submenu-text-color);
}

.menu__list-wrapper .simple-menu-opener .menu-simple-item__content .hs-menu-wrapper ul>li+li {
  margin-top: 16px;
}

.menu__list-wrapper .simple-menu-opener>.menu-simple-item__content li.menu__list-item .hs-menu-depth-1 a {
  text-decoration:none;
}

.menu-item__content .menu-item__intro>.menu-item__intro-heading {
  color: var(--megamenu-text-color);
  position: relative;
  margin-bottom: 12px;
}

.menu-item__content .menu-item__intro>.menu-item__intro-heading:hover:after {
  transform: rotate(90deg) translateY(0px);
  opacity: 1;
}

.menu-item__content .menu-item__intro>.menu-item__intro-heading+.menu-item__intro-heading {
  margin-top: 32px;
}

.menu-item__content .menu-item__navigation {
  width:100%;
}

.menu-item__content .menu-item__navigation .hs-menu-wrapper ul {
  gap: 0;
  flex-direction:column;
}

.menu-simple-item__content .hs-menu-wrapper ul {
  flex-direction:column;
}

.menu-item__content .menu-item__navigation .hs-menu-wrapper ul>li {
  width: 33.33%;
  margin-bottom: 30px;
}

.menu-item__content .menu-item__navigation .hs-menu-wrapper ul>li a {
  text-decoration: none;
  font-size: 16px;
  color: var(--submenu-text-color);
}

.menu-item__menu_items {
  color: var(--megamenu-text-color);
  list-style-type: none;
  margin:0;
  width:30%;
}

.menu-item__menu_items-depth-0 {
  /* margin-bottom: 24px; */
  margin: 0;
  font-weight: bold;
}

.menu-item__menu_items-depth-1 {
 /* margin-bottom: 16px; */
   margin: 16px 0 0 16px;
  line-height: 1.4;
  display:block;
  width:100%;
}

.menu-item__menu_items-depth-0 a,
.menu-item__menu_items-depth-1 a {
  text-decoration:none !important;
  color: var(--megamenu-text-color) !important; 
}

.menu-item__menu_items-depth-1 p,
.menu-item__menu_items-depth-1 a {
  line-height: 1.4;
}


.menu-item__menu_items a:hover {
  color: var(--megamenu-text-color) !important;
}

.menu-item__menu_items a:focus-visible {
  outline: 2px solid var(--focus-outline-color);
  outline-offset: 6px;
}

nav.menu__content-wrapper .menu__list-wrapper .menu-simple-item__content li.menu__list-item  {
  margin-bottom:6px;
}

nav.menu__content-wrapper .menu__list-wrapper .menu-simple-item__content li.menu__list-item a {
  text-decoration:none;
  color: var(--submenu-text-color)
}

nav.menu__content-wrapper .menu__list-wrapper .menu-simple-item__content li.menu__list-item a:focus-visible {
  outline: 2px solid var(--focus-outline-color);
  outline-offset: 6px;
}

/* Hamburger Menu Style */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: none; /* Hidden by default */
  flex-direction: column;
  height: 30px;
  justify-content: space-around;
  min-height: 20px !important;
  padding: 0;
  width: 30px;
  position: relative;
  transition: transform 0.3s ease; /* Animation for rotation */
}

.hamburger:hover,.hamburger:focus,.hamburger:active {
  background:transparent;
}

.hamburger .bar {
  width: 100%;
  height: 3px;
  background-color: var(--menu-text-color);
  border-radius: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease; /* Animation for transform and opacity */
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg);
  position: absolute;
  top: 50%;
  left: 0;
  transform-origin: center;
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0; /* Hide the middle bar */
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg);
  position: absolute;
  top: 50%;
  left: 0;
  transform-origin: center;
}

.menu__content-wrapper .menu__list-wrapper .menu-item.nolink > .nolink_flag {
  display:none;
  width:30px;
  text-align:center;
}

.menu__list-item--button {
  display:flex;
}

.menu__content-wrapper .menu__list-wrapper .menu__list-item--button .menu-item--link {
  padding-top:0 ;
  padding-bottom:0 ;
}
/*
@media screen and (max-width: 1280px) {
  .menu__content-wrapper .menu__list-wrapper .menu-item {
    padding: 32px 10px;
  }

  .menu__outer-container {
    margin: 0 0 0 20px;
  }
}
*/
/* MOBILE SCREEN SIZE STYLES*/

@media (max-width: 1023px) {
  /*
  .menu--full-height {
    height: 66px !important;
  }
  */
  header .content-wrapper{
    padding: 9px 16px !important;
    min-height:100px;
  }
  header .content-wrapper.super-header__content-wrapper{
    padding:0 !important;
    min-height:0;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
    margin-right:60px;
  }

  .menu__outer-wrapper {
    position: absolute !important;
    top: 100px; 
    left: 0;
    width: 100%;
    background-color: var(--primary-1); 
    color:white;
    /* opacity:0; */
    height:0px;
  }
  .menu__outer-wrapper.active {
    display: block;
    height: calc(100dvh - 100px);
    max-height:100vh;
    overflow-y:auto;
  }

    /* width */
  .menu__outer-wrapper.active::-webkit-scrollbar {
    width: 5px;
  }

  /* Track */
  .menu__outer-wrapper.active::-webkit-scrollbar-track {
    background: #f1f1f1; 
  }
  
  /* Handle */
  .menu__outer-wrapper.active::-webkit-scrollbar-thumb {
    background: #888; 
  }

  /* Handle on hover */
  .menu__outer-wrapper.active::-webkit-scrollbar-thumb:hover {
    background: #555; 
  }

  .menu__outer-wrapper.expanded {
    opacity:1;
  }

  .menu__outer-wrapper.active a:not(.button),
  .menu__list-wrapper .simple-menu-opener .menu-simple-item__content .hs-menu-wrapper ul>li a,
  .menu-item__menu_items__item,
  .menu-item__menu_items-depth-0 p,
  .menu-item__menu_items-depth-1 p {
    font-size: 1rem;
    font-weight:500;
    display: block;
    padding: 0px;
    text-align: left;
    color: var(--submenu-mobile-text-color);
  }

  .menu-item__menu_items-depth-0 p {
    color:var(--megamenu-mobile-text-color);
    font-weight:600;
    font-size:1.25rem;
  }

  .menu-item__menu_items-depth-0 p,
  .menu-item__menu_items-depth-1 p {
    margin-bottom: 16px;
  }

  .menu-item__menu_items.manual_loop > p > a {
    color:inherit;
  }

  .menu__outer-wrapper.active .menu__content-wrapper {
    display:block;
    padding: 16px 32px 32px;
  }

  .menu__content-wrapper ul {
    list-style-type: none;
  }

  /*Mega Menu Lists Styles*/
  .menu-item__content {
    background: transparent;
    box-shadow:none;
    /*height:0px !important;*/
    padding:0px;
    pointer-events:all;
    position: relative;
    opacity: 1;
    top:0px;
    left:18px;
    transition:0.3s ease;
    visibility: visible;
  }

  .menu-item__content.visible {
    margin-bottom:50px;
  }

  .menu__content-wrapper:has(.menu__list-wrapper--hidden) .menu__cta-items-wrapper {
    display: none;
  }

  .menu__cta-items-wrapper {
    order: 3;
    margin:32px auto;
    justify-content: center;
    gap: 32px;
  }
  

  .menu-item__content .content-wrapper {
    width: auto;
    padding:0!important;
  }

  .menu-item__menu_items:first-child .menu-item__menu_items-depth-0 {
    margin-top:30px;
  }

  .menu-item__menu_items .menu-item__menu_items-depth-0 {
    margin-top:16px;
  }


  .menu-item__menu_items:last-child  {
    padding-bottom:16px;
  }
  /*Dropdown list styling*/

  /* MM */
  .menu__list-item.menu--opener.hs-item-has-children.collapsed .menu-item__content {
    opacity:0;
    transition:0.3s ease;
    margin-bottom:0px;
  }

  .menu__list-item.menu--opener.hs-item-has-children .menu-item__content {
    opacity:1;
  }

  /* DD */ 
  .menu__list-wrapper .simple-menu-opener.collapsed .menu-simple-item__content {
    background: none;
    box-shadow: none;
    opacity: 0;
    padding:0px;
    position: relative;
    transition: height 0.3s ease, opacity 0.3s ease;
    padding-left:15px;
  }

  .menu__list-wrapper .simple-menu-opener .menu-simple-item__content {
    opacity: 1;
    background: none;
    box-shadow: none;
    position: relative;
    transition: height 0.3s ease, opacity 0.3s ease;
    visibility:visible;
    padding:0px;
    padding-left:16px;
    border:none;
  }

  .menu__list-item.simple-menu-opener.hs-item-has-children.collapsed .menu-simple-item__content {
    margin-bottom:0px;
  }

  .menu__list-item.simple-menu-opener.hs-item-has-children:not(.collapsed) .menu-simple-item__content {
    margin-top:16px;
  }

  .menu__list-wrapper .simple-menu-opener .menu-simple-item__content.visible {
    opacity: 1 !important;
  }

  .menu__content-wrapper .menu__list-wrapper .menu-item.menu-item--link{
    padding:0px;
    font-weight:600;
    font-size:1.5rem;
     /* margin-bottom:32px;
   display:block; */
  }

  .menu__content-wrapper .menu__list-wrapper .menu-item.nolink {
    font-weight:600;
    font-size:24px;
   /* margin-bottom:24px;*/
    display: flex;
    justify-content: space-between;
    color: var(--submenu-mobile-text-color)
  }


  .menu__content-wrapper .menu__list-wrapper .menu-item.nolink > .nolink_flag {
    display:block;
  }

  .menu__content-wrapper .menu__list-wrapper {
    display: flex;
    flex-direction: column;
  }

  .menu__list-item {
    width: 100%;
    order: 2;
    padding: 16px 0;
    border-bottom: 1px solid #fff;
  }

  .menu__content-wrapper .menu__list-wrapper .menu-item__navigation_container {
    display:block;
  }

  .menu__content-wrapper .menu__list-wrapper .menu-item__navigation_container .menu-item__image-wrapper,   .menu__content-wrapper .menu__list-wrapper .menu-item__navigation_container .menu-item__info-wrapper  {
    display:none;
  }
  
  /*DropDown elements styles for mobile*/

  .menu-item.nolink {
    padding:0px !important;
  }

  .menu-item.nolink .nolink_flag > svg{
    fill: var(--submenu-mobile-text-color);
  }

  /* Collapse / Expand icons animations */

  .nolink_flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 17px; 
    height: 17px; 
  }
  
  .nolink_flag svg {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease; 
  }
  
  .nolink_flag svg:first-child {
    opacity: 1;
    transform: rotate(0deg);
  }
  
  .nolink_flag.active svg:first-child {
    opacity: 0; 
    transform: rotate(180deg); 
  }
  
  .nolink_flag svg:last-child {
    opacity: 0; 
  }
  
  .nolink_flag.active svg:last-child {
    opacity: 1; 
  }

  .menu-item__chevron {
    display: flex;
    margin-left: 8px;
    transition: transform 0.3s;
    transform: rotate(180deg);
  }
  .menu-item__chevron svg polyline {
    stroke:#fff;
  }

  .collapsed .menu-item__chevron {
    transform: rotate(0deg);
  }

/*
  .menu-item__chevron {
     display: none;
  }
  */
  /*Fix for mobile Chrome*/

  /* .hs-menu-wrapper .active-branch, .hs_cos_wrapper_type_simple_menu, .hs-menu-wrapper.active-branch {
    
    background-color: var(--header-background);
  } */

    /* Initially hide minus icon */
  .minus-icon {
    display: none;
  }

  /* Collapsed state */
  .hs-item-has-children.collapsed .menu-item__content, .hs-item-has-children.collapsed .menu-simple-item__content {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
  }

  /* Expanded state */
  .hs-item-has-children.expanded .menu-item__content, .hs-item-has-children.expanded .menu-simple-item__content {
    /* height: auto; */
    transition: height 0.3s ease;
  }

  /* Overlay styles */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--header-background); 
    z-index: 999;
    display: none;
    opacity:0;
    transition:0.3s ease;
  }

  .mobile-menu-overlay.visible {
    display: block;
    opacity:1;
  }

  /* MegaMenu Mobile link text color */

  .menu-item__menu_items a{

    color: var(--megamenu-mobile-text-color) !important; 
  }
  
  .menu-item__menu_items a:hover {
    color: var(--megamenu-mobile-text-color) !important;
  }

  /*DDMenu mobile links text color*/

  nav.menu__content-wrapper .menu__list-wrapper .menu-simple-item__content li.menu__list-item a {
    color: var(--submenu-mobile-text-color)
  }
  
  nav.menu__content-wrapper .menu__list-wrapper .menu-simple-item__content li.menu__list-item a:hover {
    color: var(--submenu-mobile-text-color) !important;
  }

  .menu__content-wrapper .menu__list-wrapper--hidden {
    display: none;
  }
}
@media (max-width: 767px) {

  header .content-wrapper{
    min-height:70px;
  }

  .menu__outer-wrapper {
    top: 70px; 
  }

  .menu__outer-wrapper.active {
    height: calc(100dvh - 70px);
  }

}

/* search */
.menu__search-button {
  background: none;
  padding: unset;
  margin: auto 4px;
  margin-left:16px;
  width: 80px;
  height: 48px;
  text-align: center;
  display: flex;
  justify-content: center;
  color: var(--primary-1);
  fill: var(--primary-1);
  border:none;
	border-radius: 0;
  z-index:60;
}

.menu__search-button.menu__search-input-icon{
  border-left: 1px solid var(--menu-text-color);
}


.menu__search-button:focus,
.menu__search-button:hover {
  background-color:unset;
}

.menu__search-wrapper,
.menu__search-input,
.menu__search-form {
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

input[type=text].menu__search-input {
  font-size: 3rem;
  line-height: 1;
  text-align: center;
  color:var(--grey-900);
  background-color: var(--grey-100);
  padding: 10px;12px;
  font-weight: bold;
  width:100%!important;
  border: none!important;
  border-radius:0;
  height:fit-content;

}
input[type=text].menu__search-input:focus {
  border: none;
  outline:none;
}

input[type=text].menu__search-input::placeholder {
  color:var(--grey-900);
  text-transform: uppercase;
  opacity: 1;
}





.menu__search-form {
  display:flex;
  width: 100%;
  margin: 0 auto;
  height: fit-content;
  gap: 24px;
}

.menu__search-form-button {
  fill: var(--grey-000);
}

.menu__search-form-button svg {
  width: 24px;
  height: 24px;
}


.menu__search-results-wrapper {
  opacity: 0;
  border: 1px solid var(--grey-300);
  background-color: var(--grey-000);
  padding: 16px 32px;
  box-shadow: var(--shadow-medium);
  list-style-type: disc;
  margin: 0;
}

.menu__search-results-title {
  font-weight: bold;
  list-style-type: none;
  padding: 4px 8px;
  display: block;
  color: var(--grey-900);
}

.menu__search-results-item-link {
  display: block;
  padding: 4px 8px;
}

.menu__search-results-item-link:hover {
  background-color: var(--secondary-100);
  width: fit-content;
}

.menu__search-wrapper--hidden,
.menu__list-item--search:has(.menu__search-wrapper--hidden) {
  opacity: 0;
  visibility: hidden;
  height: 0;
}



.menu__list-item--search {
  display: flex;
  flex-direction: row;
  right: 0;
  left: 0;
  top: 0;
  position: absolute;
  z-index: 55;
  width: 100%;
  background-color: var(--sitesearch-background-color);
  box-shadow: 0 5px 15px 0 rgba(0,0,0,.25);
  transition: 0.3s ease;
  opacity: 1;
  visibility: visible;
}

.nav-standard__search-icon--hidden,
.menu__search-x--hidden {
  display: none;
}


.menu__search-wrapper {
  transition: 0.3s ease;
  transform: translateY(0);
  width: 100vw;
  height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.menu__search-wrapper--hidden {
  transform: translateY(-15px);
}


@media screen and (max-width: 1023px) {
  .menu__search-results-wrapper {
    opacity: 0;
  }

  .menu__search-button {
    /* display: none; */
    position: fixed;
    top: 28px;
    right: 0px;
    margin:0;
    width:48px;
  }
    
  .header-partials__inner-wrapper--super-header .menu__search-button {
    top: 72px;
  }
  
  .menu__search-button.menu__search-input-icon{
    width:52px;
    padding: 0 12px;
  }

  .menu__list-item--search {
    top: -100px;
    margin: 0;
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  
  .menu__search-button{
    top:10px!important;
  }
   .menu__list-item--search {
    top:-70px;
   }

}


/* search end */