.topmenu{
  padding: 5px;
  background-color: #f5f5f5;
  // background-color: #353535;
  
  .whatsicon{
    position: relative;
    right: 42px;
    display: flex;
    align-items: center;
    justify-content: end;
    font-size: 14px;
    text-decoration: none;
    color: #000;
    font-weight: 300;
    letter-spacing: 0.5px;
    img{
      height: 20px;
    }
  }
 
  .nav{
    display: flex;
    justify-content: flex-end;
  }
    .nav-link {
    color: #fff;
    font-size: 12px;
    padding: 0 10px 0 0;
    margin: 0 5px;
    border-right: 1px solid #fff;
    line-height: 0.8;
    
}
}
.topmenu .nav-item:last-child .nav-link {
  border-right: none;
}

 .certificate{
   img {margin-left: 30px; height: 69px;}
 }

 .logo-box {
    width: 185px;
  }
  
 
@media (max-width: 1023px) {
  .logo-box {
    // width: 200px;
    width: 130px;
  }
  .mega-links .dropdown-item, .mega-submenu a {font-size: 14px !important;}

 .certificate img {height: 55px;}
}

.navbar-toggler {
  padding: 0;
  border: none;
  background: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: none !important;
  width: 30px;
  height: 30px;
  position: relative;
}

.navbar-toggler.collapsed .navbar-toggler-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("../images/hamburger.png") center/contain no-repeat;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("../images/close.png") right/contain no-repeat;
}

.navbar .nav-link {
  font-size: 15px !important;
}
 
.main-menu .nav-link {
  color: #000 !important;
  font-weight: 600;
  padding: 34px 0;
  margin: 0 7px;

  
}

 

.right-menu .nav-link {
  color: #353535 !important;
  padding: 34px 0;
   font-weight: 600;
       margin: 0 5px;

  &.loginbtn {
  background: #e31e24;
  border: none;
  padding: 10px 45px !important;
  color: #fff !important;
  transition: all 0.5s ease-out;
 &:hover{
  color: #000 !important;
  border:1px solid #000;
  background: transparent;
}
  }

}
.navbar{
  padding: 0;
  height: 80px;
}
.navbar .nav-link:hover, .navbar .nav-link.active {
  //  border-bottom: 2px solid #e31e24;
      //  height: 89px;
}

.navbar-expand-lg .navbar-nav .nav-link i{padding-left: 3px;}

.right-menu .nav-link.loginbtn:hover{height: auto;}

@media (min-width: 1024px) {

  .dropdown-toggle::after {
    margin-left: 6px;
    color: #e31e24;
  }

  .right-menu .nav-link.dropdown-toggle {
    position: relative;
    padding-right: 10px;
    font-weight: 600; 
  }

  .right-menu .nav-link.dropdown-toggle::after {
    content: '';
    width: 12px;
    height: 12px;
    background: url("../images/down-arrow.png") center/contain no-repeat;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    transition: transform 0.2s ease;
  }

  .dropdown.show > .nav-link.dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg);
  }

  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
  }

  .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    display: block;
    transition: 0.2s ease;
  }

  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 1023px) {

  .mega-links {
    height: auto !important;
}

  .navbar-collapse .navbar-nav > .nav-item {
    width: 100%;
  }

  .right-menu {
    align-items: flex-start;
    text-align: left;
    margin-top: 0;
  }

  

  .right-menu .nav-link {
  padding: 0 2px;
  border-bottom: none;  
  
}

.right-menu .nav-item:first-child .nav-link {
  border-bottom: 1px solid #eee;
   padding-left: 2px;
     height: 100%;
}

.main-menu .nav-link {
         border-bottom: 1px solid #eee;
         width: 98% !important;
    }

  .navbar-collapse .nav-link.dropdown-toggle {
     width: 100%;
    padding-right: 0;
    }
   
  .navbar-collapse .nav-link.dropdown-toggle::after {
    content: '';
    width: 12px;
    height: 12px;
    background: url("../images/down-arrow.png") center/contain no-repeat;
    border: none;
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }

  .dropdown.show > .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    border: none;
     padding-left: 15px;
  }
  .navbar-nav .dropdown-menu {
    position: fixed; 
    top: 105px;
    right: 0;
}
 .topmenu .whatsicon {right: 0px;}

  #mainNavbar.collapse.show {
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;          
    background: #fff;      
    z-index: 1050;          
    overflow-y: auto;    
    border-top: 1px solid #ddd !important;  
   }
   .mega-menu {
    //  padding: 40px 20px !important;
     padding: 10px 0 !important;
     height: 100vh;
   }
    
   .navbar-collapse {
    position: fixed;
    top: 105px !important;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    overflow: hidden;
    z-index: 9999;
    transition: .5s;
}

  #mainNavbar .navbar-nav > .nav-item {
    width: 100%;
    margin-bottom: 15px;
  }

  #mainNavbar .navbar-nav>.nav-item:last-child{
    margin-bottom: 0;
  }

  .right-menu .nav-link {
    color: #000 !important;
    font-weight: 600;
    width: 97% !important;
    margin: 0 12px;
  }
  #mainNavbar .nav-link {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 5px;
    // padding-bottom: 0;
   }
   .mobarr i {
    transform: rotate(270deg);
}
   .mobarr {
    display: flex;
    justify-content: space-between;
}

  #mainNavbar .navbar-nav.main-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 7px;
    width: 100%;
  }

  .navbar-nav {
    width: 100% !important;
    padding: 7px 0;
}

}


.navbar-nav {
 width:380px;
}
   

/* Mega Menu */
.mega-menu {
  width: 100%;
  left: 0;
  right: 0;
  top: 100%;
  padding: 50px 60px;
  background: #fff;
  border-top: 1px solid #ddd !important;
 

}

/* Left */
.mega-left h3 {
  color: #e60023;
  font-weight: 700;
   
}

.mega-left p {
  max-width: 320px;
  line-height: 1.6;
}

/* Links */
.mega-links .dropdown-item {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  color: #000;
  font-size: 13px; 
  font-weight: 600;
   &:last-child{
    border-bottom: none;
  }
}

.mega-links .dropdown-item:hover {
  color: #e60023;
  background: #f5f5f5;
  padding-left: 6px;
}

/* Image box */
.mega-image-box {
  position: relative;
  min-height: 220px;
}

/* Images */
.mega-img {
  width: 100%;
  border-radius: 8px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: 0.4s;
}

/* Active image */
.mega-img.active {
  opacity: 1;
  position: relative;
}

/* Caption */
.mega-caption {
  margin-top: 10px;
  font-size: 14px;
}

/* Remove arrow */
.navbar .dropdown-toggle::after {
  display: none;
}

 


.mega-submenu a:hover {
  color: #e60023;
  font-weight: 600;
  background: #f5f5f5;
    padding-left: 3px;
}
 

.mega-links {
  position: relative;
 // height: 300px;
  height: 270px;
}

/* Right panel */
.mega-submenu {
  position: absolute;
  top: -32px;
  left: 100%;
  height: 100%;
  //min-height: 350px;
  min-height: 320px;
  width: 280px;
  background: #fff;
  padding: 10px;
  display: none;
  border-left: 1px solid #ddd;
  z-index: 1;
  margin-left: 10px;
  transition: 0.3s;
}

/* show active */
.mega-submenu.active {
    display: block;
  // left: 0;
  &.dropdown-item{
    border:none;
  }
}

/* links */
.mega-submenu a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
  border-top:none;
  color: #000;
  font-size: 13px;
  text-decoration: none; 
      font-weight: 600;

  &:last-child{
    border-bottom: none;
  }
   
} 
 
  
.megaCaption{padding-top: 10px;font-size: 13px;}
.dropdown-menu[data-bs-popper] {
    margin-top: 0;
}
.dropdown-toggle::after {
  margin-left: 6px;
  color: #e31e24;
}

.martop{margin-top: 28px;}

// .mega-links .mega-submenu .dropdown-item{border-bottom: none;}

 


@media (max-width: 768px) {

  /* Navbar full screen */
  .navbar-collapse {
    position: fixed;
    top: 0; /* FIX: remove 110px */
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: 0.4s ease;
    overflow-y: auto;
    padding: 10px;
  }

  .navbar-collapse.show {
    left: 0;
  }

  /* Main links */
  .main-menu .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }

  /* Arrow alignment */
  .mobarr {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .mobarr i {
    transform: rotate(-90deg); /* cleaner direction */
  }

  /* Remove hover border */
  .navbar .nav-link:hover {
    border-bottom: none;
  }

  /* Mega menu becomes normal */
  .mega-menu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background: #fff;
    padding: 30px 10px !important;
    transition: 0.3s ease;
    overflow-y: auto;
    z-index: 2;
  }

  /* ACTIVE LEVEL */
  .mega-menu.active {
    left: 0;
  }

  /* SUBMENU LEVEL (2nd level) */
  .mega-submenu {
    position: fixed;
    top: 120px;
    left: 200%;
    width: 100%;
    height: 100%;
    background: #fff;
    border-top: 1px solid #ddd !important;
    padding: 20px;
    transition: 0.3s ease;
    z-index: 3;
    margin-left: 0;
    display: block;
  }

  .mega-submenu.active {
    left: 0;
  }

  .martop {
    margin-top: 0;
}


  /* IMPORTANT: override bootstrap */
  .dropdown-menu {
    display: block !important;
    border: none;
    position: static;
  }

  /* Back button */
  .mobile-back {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    cursor: pointer;
  }

  /* Hide desktop image */
  .megaMainImg,
  .megaCaption {
    display: none !important;
  }

  /* Login button */
  .right-menu .nav-link.loginbtn {
    width: 95%;
    margin: 20px auto;
    justify-content: center;
  }

  /* Top menu center */
  .topmenu .nav {
    justify-content: center;
  }

  /* Search */
  .header-search .searchTerm {
    width: 85% !important;
    font-size: 14px !important;
  }

  .searchButton img {
    max-width: 30px;
  }
  .mobile-back1, .mobile-back2{
    font-size: 13px !important;
    margin-bottom: 10px;
    background: rgba(231,233,238,.6);
    width: 60px;
    padding: 3px;
    border-radius: 5px;
    font-weight: 500;
  }
  .mobile-back1, .mobile-back2 p{
    font-size: 15px;
  }
  .topmenu .whatsicon { right: 0;}

}


@media (min-width: 1920px) and (max-width: 2560px) {
.navbar-nav {
    width: 410px;
}

}

@media only screen and (min-width: 1400px) and (max-width: 1599px) {
.main-menu .nav-link, .right-menu .nav-link {
    font-size: 14px !important;
}
.mega-submenu {width: 250px;}
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .mega-submenu {width: 230px;}
}

/* Search */
.serachQuery{ font-size: 30px; font-weight: 300; letter-spacing: normal;}
.overlay-search-main { display: none; position: fixed; width: 100%; height: calc(100vh - 0px); background-color: rgba(0, 0, 0, 0.9); z-index: 9999; }
.overlay-search-main.search-open { display: block; }
.overlay-search-main .container-1440-wrp { display: flex; height: 100%; align-items: center; justify-content: center; position: relative; }
.overlay-search-main .container-1440-wrp .close-search { position: absolute; right: 10px; top: 10px; }
.overlay-search-main .container-1440-wrp .header-search { width: 80%; margin: 0 auto; }
.overlay-search-main .container-1440-wrp .header-search .searchTerm { background-color: transparent; border-top: none; border-left: none; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.5); color: #fff; font-weight: 300; font-size: 30px; height: 65px; width: calc(100% - 60px); }
.overlay-search-main .container-1440-wrp .header-search .searchTerm:focus-visible { outline: none; outline-style: none; }
.overlay-search-main .container-1440-wrp .header-search .searchButton { background-color: transparent; border: none; }
 

.mega-links .dropdown-item:first-child {
  border-bottom: none;
  }
//   .mega-submenu a:first-child {
//     border-bottom: none;
//     }

.mega-submenu a:first-child {
  border-bottom: none !important;
}

