/* Navbar container */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 50px;
  background-color: #111;
  color: #fff;
  z-index: 1000;
}

/* Logo */
.navbar .logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.navbar i {
font-size: 1.3rem;
z-index:9;
}

/* Menu */
.navbar ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
}

.navbar ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 5px 0;
  display: inline-block;
  transition: color 0.3s;
}

.navbar ul li a:hover {
  color: #fff;
}
.navbar > ul > li > a:hover {
color: var(--cyan-blue); 
}
/* Mega Menu */
/*.navbar ul li ul {*/
/*  position: absolute;*/
/*  top: 100%;*/
/*  left: 0;*/
/*  width: 100vw;*/
/*  background: #111;*/
/*  display: flex;*/
/*  opacity: 0;*/
/*  visibility: hidden;*/
/*  transform: translateY(-20px);*/
/*  transition: all 0.3s ease;*/
/*  padding: 40px 50px;*/
/*  gap: 50px;*/
/*}*/

/*.navbar ul li:hover ul {*/
/*  opacity: 1;*/
/*  visibility: visible;*/
/*  transform: translateY(0);*/
/*}*/

/* Mega Menu */
.navbar ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  background: #111;
  display: flex;

  max-height: 0;
  overflow: hidden;

  opacity: 0;
  transform: translateY(-10px);

  transition: 
    max-height 0.5s cubic-bezier(.4,0,.2,1),
  opacity 0.3s ease,
  transform 0.35s ease;

  padding: 0 50px;
  gap: 50px;
}

/* Show on hover */
.navbar ul li:hover ul {
  max-height: 600px; /* enough to fit menu */
  opacity: 1;
  transform: translateY(0);
  padding: 40px 50px;
}




/* Left column - main heading */
.navbar ul li ul .mega-left {
  flex: 1;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  padding-right: 50px;
  border-right: 1px solid #333;
}

/* Right column - submenus */
.navbar ul li ul .mega-right {
  flex: 2;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

/* Submenu items */
.navbar ul li ul .mega-right .submenu-item {
  display: flex;
  flex-direction: column;
  max-width: calc(50% - 40px / 2);
  width: calc(50% - 40px / 2);
}

.navbar ul li ul .mega-right .submenu-item a {
  color: #fff;
  font-weight: 600;
  margin-bottom: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  line-height: 1.6;
  position: relative;
}
.navbar ul li ul .mega-right .submenu-item a:before {
    content: "";
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 5px;
    transition: all 0.4s ease;
    background-color: var(--cyan-blue);
    position:absolute;
}
.navbar ul li ul .mega-right .submenu-item a:hover {
    padding-left: 5px;
    color: var(--cyan-blue);
}
.navbar ul li ul .mega-right .submenu-item a:hover:before {
    width: 40px;
    left: 5px;
}

.navbar ul li ul .mega-right .submenu-item p {
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 400;
}

/* Dropdown arrow */
.navbar ul li > a i {
  margin-left: 5px;
  font-size: 0.8rem;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.mega-left h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #fff;
}

.mega-left p {
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.4;
  max-width: 300px;
}

.no-scroll {
  overflow: hidden;
}

.navbar > ul > li {
    padding: 40px 0;
}

@media (max-width: 992px) {
  .navbar ul {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 100%;
    background: #111;
    flex-direction: column;
    gap: 0;
    margin-top: 100px;
    padding-top: 40px;
    transition: right 0.3s ease;
    padding-left: 20px;
    padding-right: 20px;
  }

  .navbar ul.active {
    right: 0;
  }

  .navbar ul li {
    width: 100%;
  }

  .navbar ul li ul {
    position: static;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .navbar ul li.active > ul {
    display: block;
  }

  .menu-toggle {
    display: block;
    color: #fff;
  }
  
  .navbar ul li ul {
      width: 100%;
      margin: 0;
  }
    .navbar ul li.active > ul {
        height: auto;
        margin-top: 20px;
        padding-top: 15px;
    }
    
.navbar > ul > li {
    padding: 0 0;
}
}

@media (max-width: 767px) {
    .navbar ul li ul .mega-left {
        display: none;
    }
    .navbar ul li.active > ul {
        height: auto;
        margin-top: 0;
    }
    .navbar ul li ul .mega-right {
        flex-direction: column;
        gap : 0;
        /*background: #ffffff1f;*/
        width: 85%;
        margin: auto;
        padding: 5px 20px 0;
        border-radius: 20px;
    }
    .navbar ul li ul .mega-right .submenu-item {
        width: 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
    .navbar ul li ul .mega-right .submenu-item p {
        display: none;
    }
    .navbar ul li ul .mega-right .submenu-item a {
        font-weight: 400;
        /*border-bottom: 1px solid #eeeeee17;*/
        margin-bottom: 0;
        padding-bottom: 0;
    }
    .navbar ul.active {
        text-align: center;
    }
    .navbar ul.active > li > a {
        font-size: 1.6rem;
        line-height: calc(1.8rem * 1.3);
    }
    .navbar ul.active > li > a i {
    font-size: 16px;
}
    
}



