body.modal-active {
  overflow: hidden; 
}

#header-main {
  background: transparent;
  box-shadow: none;
  transition: background-color 0.2s ease-in-out;
  z-index: 200;
  width: 100%;
  border-radius: 0 0 60px 60px;
}

body.modal-active #header-main {
  z-index: 1; 
}

#header-main.scrolled {
  background-color: hsla(0, 0%, 100%, 0.9);
}

#header-main a.blue-logo {
   display: none;
}

#header-main a.white-logo img {
  width: 112px; 
}

#header-main.scrolled a.white-logo {
  display: none; 
}

#header-main.scrolled a.blue-logo {
  display: block; 
}

#header-main .kl-navbar.content-wrapper {
  padding: 30px 10px 15px; 
  height: unset;
}

.kl-header.cend-header .kl-navbar__logo {
  width: 112px;
}

.kl-header.cend-header .kl-navbar {
  justify-content: space-between;
}

.kl-header.cend-header .kl-navbar__content {
  visibility: hidden;
  opacity: 0;
  background-color: #fff;
  bottom: 0;
  flex-direction: column;
  height: calc(100% - 82px);
  justify-content: space-between;
  left: 0;
  overflow-y: auto;
  padding: 45px 10%;
  position: fixed;
  transition: transform .25s ease-in-out, opacity .25s ease-in-out;
  width: 100%;
}

.kl-header.cend-header .kl-navbar--active .kl-navbar__content {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.kl-header.cend-header .kl-navbar .hamburger {
  display: block; 
}

.kl-header.cend-header .kl-navbar__menu {
  display: block;
  margin: 0 0 24px;
  width: 100%;
}

.kl-header.cend-header .kl-navbar__button {
  font-size: 1rem;
}

#header-main .kl-navbar__mobile {
  gap: 20px; 
  align-items: center;
}

.call-button {
  display: block;
}

.call-button-link {
  font-weight: bold;
  line-height: 1;
  padding: 14px 24px;
  transition: all 0.3s ease;
  padding-left: 48px;
  position: relative;
  border: 2px solid #2D5CA8;
  color: #2D5CA8;
  border-radius: 40px;
  background: #fff;
}

.call-button-link:hover {
  color: #fff;
  background: #2D5CA8;
  text-decoration: none; 
}


.call-button-link svg {
  left: 10px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
}

.menu-toggle .menu-icon {
  background-color: #fff;
  border: 2px solid #80bc00;
  border-radius: 80px;
  display: block;
  padding: 16px 20px;
  position: relative;
  transition-duration: 0.5s;
}

.menu-icon:hover {
  background-color: #80BC00 !important;
  color: #ffffff;
}

.menu-icon:hover > span:after, .menu-icon:hover > span:before {
  background-color: #ffffff !important;
}

.menu-icon > span {
    display: block;
    pointer-events: none;
    position: relative;
    top: 0;
    transition-duration: 0.5s;
}

.menu-icon > span:after, .menu-icon > span:before {
    background-color: #598200;
    border-radius: 2px;
    content: "";
    display: block;
    height: 2px;
    margin-left: auto;
    top: 0;
    transition-duration: 0.5s;
    width: 22px;
}

.menu-icon > span:after {
    margin-top: 5px;
}

.menu-icon > span:nth-child(2):before {
    height: 0;
}

.menu-icon > span:nth-child(2):after {
    width: 30px;
}

/* Basic styles for the modal */
#header-modal {
  display: none;
  position: fixed;
  background-color: #243746;
  top: 0;
  right: 0;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 100;
  height: 100%;
  width: 100%;
}

body.modal-active #header-modal {
  display: block; 
  -webkit-overflow-scrolling: touch;
  animation: background-fade 0.3s ease-in-out;
  overflow-y: hidden;
}

#header-modal:after {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzk1IiBoZWlnaHQ9IjUwNiIgdmlld0JveD0iMCAwIDM5NSA1MDYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0zMzcuMzMyIDE4Mi4xNzdMMzM2LjM0MyAxODAuOTFMMTk4LjE1OSAwSDQ5Ljc1OTVMMTUyLjYyOSAxMzEuNDA4QzY1LjE5MjYgMTUwLjkzNSAwIDIyNi4yNDMgMCAzMTYuMjI0QzAgNDIxLjAzMyA4OC40MjQ2IDUwNiAxOTcuNSA1MDZDMzA2LjU3NSA1MDYgMzk1IDQyMS4wMzMgMzk1IDMxNi4yMjRDMzk1IDI2My45MjQgMzc0LjczNCAyMjguNzc3IDMzNy4zMzIgMTgyLjIzVjE4Mi4xNzdaTTE5Ny41IDQxMC42MzdDMTQzLjIzNyA0MTAuNjM3IDk5LjI0NDMgMzY4LjM2NSA5OS4yNDQzIDMxNi4yMjRDOTkuMjQ0MyAyNjQuMDgzIDE0My4yMzcgMjIxLjgxIDE5Ny41IDIyMS44MUMyMTguOTc1IDIyMS44MSAyMzguODAxIDIyOC41MTMgMjU0Ljk0OSAyMzkuNzU0QzI3OS42MDkgMjU2LjkwNSAyOTUuNzU2IDI4NC43MTcgMjk1Ljc1NiAzMTYuMjI0QzI5NS43NTYgMzY4LjM2NSAyNTEuNzYzIDQxMC42MzcgMTk3LjUgNDEwLjYzN1oiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+Cg==);
  background-position: top left 1rem;
  background-repeat: no-repeat;
  background-size: auto 100%;
  content: "";
  height: 100%;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1; 
}

#header-modal .menu-close {
  appearance: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
  position: fixed;
  top: 25px;
  right: 10px;
  outline: none;
}

#header-modal .menu-close .menu-icon {
  padding: 16px 20px;
  border: 2px solid #80bc00;
  position: relative;
  transition-duration: 0.5s;
  display: block;
  border-radius: 80px;
  background: #fff;
}

#header-modal .menu-close .menu-icon span:before {
  background-color: #80bc00;
  margin-left: auto;
  margin-right: auto;
  transform: rotate(45deg) scaleX(1.25) translate(1px, 5px);
  width: 22px;
  border-radius: 2px;
  height: 2px;
  transition-duration: 0.5s;
  display: block;
}

#header-modal .menu-close .menu-icon span:after {
  background-color: #598200;
  margin-left: auto;
  margin-right: auto;
  margin-top: 7px;
  transform: rotate(-45deg) scaleX(1.25) translate(1px, -5px);
  width: 22px; 
  height: 2px;
  transition-duration: 0.5s;
}

#header-modal .logo-area a {
  color: #fff; 
}

#header-modal .logo-area a svg {
  height: 40px; 
  display: block;
  max-width: 100%;
}

#header-modal .logo-area a svg path {
  fill: #fff; 
}

#header-modal .kl-navbar {
  display: block; 
}

#header-modal .logo-area {
  height: 70px;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

#header-modal .logo-area .menu-line {
  width: calc(100% - 150px);
  border: 1px solid #fff;
}

#header-modal .modal-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  max-width: 830px;
  align-items: flex-start;
  flex-direction: row;
  margin-left: auto;
  margin-right: auto;
}

#header-modal .modal-menu li.kl-navbar__item {
  flex-basis: 50%;
  margin: 0;
  padding: 0;
}

#header-modal .modal-menu li.kl-navbar__item a {
  font-size: 40px;
  color: #fff;
  line-height: 64px;
  padding: 10px 10px;
  font-weight: 400;0
}

#header-modal .modal-menu li.kl-navbar__item a:hover {
  font-weight: 700; 
}

#header-modal .kl-navbar__button>span:after {
  background-color: #fff; 
}

.modal-footer {
  background-color: #ffd100;
  background-color: #ffd100;
  border-radius: 40px 40px 0 0;
  bottom: 0;
  left: 0;
  padding: 20px 10px;
  position: fixed;
  width: 100%;
}

body.modal-active .modal-footer {
  animation: footer-fade 0.7s ease-in-out;
}

.container-mf {
  display: flex;
  max-width: 860px;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  column-gap: 20px;
  margin: 0 auto;
}

.modal-footer a.mfb {
  border: 2px solid #ffd100;
  box-shadow: 0 5px 0 -1px #dab300, 0 7px 0 0 #ffd100;
  text-transform: uppercase;
  color: #0d171c;
}

.modal-footer .social-menu {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: center;
  list-style: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-top: 0; 
}

.modal-footer .social-menu li {
  display: flex; 
}

.modal-footer .social-menu a {
  display: inline-block;
  transition: all 0.3s ease-in-out;
  font-size: 24px;
  padding: 10px;
}

.modal-footer .social-menu a svg {
  display: block;
  height: auto;
  max-width: 100%;
  width: 24px;
  fill: #243746;
}

@media (max-width: 767px) {
  
  #header-modal .modal-menu {
    max-width: 280px; 
  }
  
  #header-modal .modal-menu li.kl-navbar__item {
    flex-basis: 100%; 
  }
  #header-modal .modal-menu li.kl-navbar__item a {
    font-size: 24px;
    padding: 0;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .kl-navbar__mobile .call-button {
    display: none;
  }
}

@keyframes background-fade {
  0% {
    opacity: 0; 
  }
  100% {
    opacity: 1; 
  }
}

@keyframes footer-fade {
  0% {
    opacity: 0;
    transform: translateY(40%) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 768px){
  .menu-icon {
    padding: 1rem 1rem 1rem 1.2rem !important;
  }
}

