#main_menu * {
  font-family: Lato, sans-serif;
}

#main_menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#main_menu .main_menu {
  display: flex;
  flex-direction: column;
}

.main_menu_item {
  position: relative;
  padding: 26px 20px;
  position: relative;
  margin-bottom: auto;
  margin-top: auto;
}

.main_menu_item::before {
  content: "";
  display: none;
  width: 100%;
  max-width: calc(100% - 40px);
  height: 2px;
  background: #005695;
  transition: width 0.3s;
  left: 9px;
  transform: none;
  position: absolute;
  bottom: 2px;
}

.main_menu_item_link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 16px;
  color: #2d2342 !important;
  font-weight: 400;
}

/* Mega menu */
.megamenu {
  position: absolute;
  right: -232px;
  width: 232px;
  background: #fff;
  top: 0;
  opacity: 0;
  visibility: hidden;
  margin-top: 30px;
  transition: all 0.3s ease-in-out;
}

.inner_details {
  position: relative;
}

.inner_details > a {
  color: #2d2342;
  font-size: 16px;
  font-weight: 500;
  width: 100%;
  padding: 10px 15px;
  display: inline-block;
}

.hasMegaMenu .clickToggle {
  width: 130px;
  height: 40px;
}

/* Mega menu content */
.megamenu_content a {
  padding: 0;
  display: flex;
  align-items: center;
  position: relative;
  padding-bottom: 1.5rem;
  color: #005695 !important;
  transition: 0.2s ease;
}

.megamenu_content a:hover {
  color: #9dc860 !important;
}

.heading_img {
  position: relative;
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-right: 1.5rem;
}

.heading_title {
  position: relative;
  left: unset;
  bottom: unset;
  width: 100%;
  max-width: 300px;
}

.heading_title h5 {
  line-height: 1.3;
  font-weight: 600 !important;
  letter-spacing: 0px;
  margin-top: 0;
  margin-bottom: 0;
  font-family: "Raleway", sans-serif !important;
}

.megamenu_content a::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 1.1px;
  background-color: #d9d9d9;
  max-width: 430px;
}

.megamenu_content:hover a::after {
  background-color: #9dc860;
  transition: 0.2s ease;
}

.megamenu_subcontent p {
  color: #6a6a6a;
  font-size: 14px;
  line-height: 22px;
  margin-bottom: 1rem;
  letter-spacing: 0px;
}

.inner_menu_item {
  max-width: 100%;
  background: 0 0;
  text-align: left;
  margin-bottom: 0;
  padding: 0;
  margin-bottom: 9px;
  border-bottom: none;
  border-radius: 0;
  line-height: 20px;
}

.megamenu_subcontent {
  padding: 16px 24px 16px 0;
}

/* Mobile menu */
@media (max-width: 1023px) {
  .hamburger_menu {
    display: block;
    z-index: 3;
    width: 41px;
    margin-left: auto;
    position: relative;
    height: 41px;
  }
  .hamburger_menu .ham {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.4s;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 100%;
    height: 100%;
  }

  .hamburger_menu .line {
    fill: none;
    transition: stroke-dasharray 0.4s, stroke-dashoffset 0.4s;
    stroke: #000;
    stroke-width: 5.5;
    stroke-linecap: round;
  }

  .hamburger_menu .top {
    stroke-dasharray: 40 139;
  }

  .hamburger_menu .bottom {
    stroke-dasharray: 40 180;
  }

  .ham.active {
    transform: rotate(45deg);
  }

  .ham.active .top {
    stroke-dashoffset: -98px;
  }

  .ham.active .bottom {
    stroke-dashoffset: -138px;
  }
  #main_menu {
    display: block !important;
    padding: 150px 30px;
    height: 100vh;
    width: 320px;
    height: 100vh;
    display: block;
    margin-bottom: 0;
    position: fixed;
    overflow: auto;
    right: -321px;
    top: 0;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    background: #fff;
    z-index: 2;
    padding-top: 100px;
  }

  #main_menu.show {
    right: 0;
  }
  .main_menu_item {
    border-bottom: 1px solid #eaf3ff;
    padding: 0.8rem 0;
    opacity: 1;
    visibility: visible;
    font-size: 16px;
    line-height: 16px;
  }
  .main_menu_item_link {
    font-size: 16px;
    line-height: 16px;
    font-family: "Raleway", sans-serif !important;
    color: #005695 !important;
    font-weight: 700;
    padding: 8px 0;
  }

  .submenu_first {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    visibility: visible;
    height: auto;
    margin-top: 0;
    opacity: 1;
    display: none;
    transition: none;
    width: 100%;
    border-left: 1px solid #eaf3ff;
    padding-left: 0.6rem;
  }
  .hasMegaMenu .clickToggle {
    position: absolute;
    right: 0;
    width: 60px !important;
    z-index: 200;
  }
  .inner_details {
    position: relative;
    border-bottom: 1px solid #eaf3ff;
    padding: 0.5rem 0;
  }

  .inner_details:last-child {
    border-bottom: none !important;
  }
  .submenu_item_link {
    position: relative !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    width: 100% !important;
    padding: 10px 15px !important;
    font-family: "Raleway", sans-serif !important;
    color: #005695 !important;
  }
  .hasMegaMenu .submenu_item_link:before {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 111;
  }
  .megamenu {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    margin-top: 0;
    display: none;
    padding-left: 15px;
    transition: none;
  }
  .megamenu_content,
  .megamenu_subcontent p {
    display: none;
  }
  .inner_menu a {
    font-weight: 500;
    font-size: 14px;
    width: 100%;
    padding: 10px 15px;
    font-family: "Raleway", sans-serif !important;
    color: #005695 !important;
    display: inline-block;
  }
  .inner_menu_item {
    margin-bottom: 0 !important;
    line-height: unset !important;
  }
  .megamenu_subcontent {
    padding: 0 !important;
  }
  .login_button {
    width: auto;
    padding: 7px 15px;
    height: auto;
    line-height: 1.7;
    padding-left: 0;
    padding-right: 0;
    display: block;
    border: 2px solid #005aa5;
    border-radius: 5px;
    font-size: 1rem;
    font-family: "Raleway", sans-serif !important;
    color: #005695 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    transition: 0.2s ease;
    text-align: center !important;
    margin: 0.8rem 0;
  }
  .login_button:hover {
    background: #005aa5 !important;
    color: #fff !important;
  }
  .rd_button {
    display: block;
    text-align: center !important;
    transition: 0.2s ease;
    background-color: #92c657 !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    font-size: 1rem;
    font-family: "Raleway", sans-serif !important;
    background: #b7dc48;
    border-radius: 5px;
    padding: 6px 25px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border: 2px solid #92c657 !important;
    color: #000 !important;
    cursor: pointer;
    text-decoration: none;
    margin:.8rem 0;
  }
  .rd_button:hover {
    border-color: #b7dc48 !important;
    background-color: #b6db4b !important;
  }
}

/* Media Querie */
@media (min-width: 992px) {
  #main_menu .main_menu {
    flex-direction: row;
    justify-content: end;
  }
}

@media (min-width: 1024px) {
  .hamburger_menu,
  .action_buttons {
    display: none;
  }
  .clickToggle {
    display: none;
  }
  .main_menu_item_link {
    font-weight: 700;
  }
  .main_menu_item:hover > a {
    color: #005695 !important;
  }
  .submenu_first {
    position: absolute;
    height: auto;
    background: #fff;
    left: unset !important;
    top: 73px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    margin-top: 30px;
    padding-top: 0;
    
    box-shadow: 20px 10px 13px -5px rgb(0 0 0 / 10%);
    transition-delay: 0s;
    width: 280px;
  }
  .megamenu {
    height: 100%;
    display: flex;
    right: unset;
    margin-top: 0 !important;
    transition: none !important;
    border-left: 2px solid #eee;
    display: block;
    padding: 1rem;
    min-width: 465px;
    left: 280px !important;
    padding-top: 1rem;
    overflow: hidden;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  .inner_details {
    position: unset;
    border-bottom: 1px solid #eee;
    padding: 0.45rem 0;
  }
  .inner_details > a {
    position: relative;
    font-family: "Raleway", sans-serif !important;
    font-weight: 800 !important;
    color: #005695;
    text-transform: uppercase;
    font-size: 13px;
    padding: 0;
    padding: 3px 9px;
  }
  .hasMegaMenu > a:before {
    content: "\f105";
    font: normal normal normal 14px/1 "Font Awesome 5 Free" !important;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    right: 10px;
    font-weight: 900 !important;
  }
  .main_menu_item:hover::before {
    display: block;
  }
  
  .main_menu_item:hover .submenu_first {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
    z-index: 1;
  }

  .inner_details:hover .megamenu {
    margin-top: 0 !important;
    transition: none !important;
    box-shadow: 12px 12px 13px -5px rgb(0 0 0 / 10%);
    opacity: 1 !important;
    visibility: visible !important;
  }

  .inner_details:hover {
    background-color: #005695;
  }

  .inner_details:hover a {
    color: #fff;
  }
  .inner_menu_item a {
    font-family: "Raleway", sans-serif !important;
    font-weight: 800 !important;
    color: #6a6a6a !important;
    text-transform: uppercase;
    font-size: 13px;
    padding: 0;
    padding-left: 16px;
    position: relative;
  }

  .inner_menu_item a:before {
    content: "\f105";
    font: normal normal normal 14px/1 "Font Awesome 5 Free" !important;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 3px;
    font-weight: 900 !important;
  }

  .inner_menu_item:hover a {
    color: #9dc860 !important;
  }
}

@media (min-width: 1200px) {
  .main_menu_item:before {
    left: unset;
  }
  .main_menu_item {
    padding: 15px 20px;
  }
  .main_menu_item_link {
    font-size: 16px;
    padding-left: 0;
    padding-right: 0;
  }
}
