/*-------------------------------- navbar------------------------------------  */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Lexend", sans-serif;
  scroll-behavior: smooth;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  overflow-x: hidden;
}

body {
  width: 100%;
  height: 100vh;
  background-color: #161616;
}

/*------------------------------- navbar two----------------------------- */
.nav-two {
  padding: 0 7.8rem;
  height: 8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #161616;
  position: fixed;
  top: 0;
  /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
  z-index: 100;
  width: 100%;
}

.nav-two .logo {
  height: 17rem; /* Adjusted the logo height to fit better within the navbar */
}

.navbar-list {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.navbar-link {
  display: inline-block;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  color: #ffffff;
  transition: all 0.3s;
}
.navbar ul li a {
  margin-top: 10px;
}

.navbar-link:hover {
  color: #006b02;
}

.drop-one:hover {
  color: #006b02;
}

.mobile-navbar-btn {
  display: flex;
  background: transparent;
  cursor: pointer;
}

.mobile-nav-icon {
  font-size: 3rem;
  cursor: pointer;
  color: #ffffff;
  display: none;
}

.mobile-navbar-btn.open .mobile-nav-icon[name="menu-outline"] {
  display: none;
}

.mobile-navbar-btn.open .mobile-nav-icon[name="close-outline"] {
  display: block; /* Changed from flex to block to ensure proper display */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-two {
    padding: 0 2.4rem;
    z-index: 99;
  }

  .nav-two .logo {
    height: 17rem; /* Reduced height for smaller screens */
  }

  .navbar {
    height: 100%;

    position: absolute;
    top: 8rem;
    left: 0;
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .navbar-list {
    flex-direction: column;
    align-items: flex-start; /* Changed from left to flex-start for consistency */
    gap: 0.5rem;
  }

  .active .navbar {
    display: block; /* Added to ensure the navbar shows up when active */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    top: 7.9rem;
    right: 0;
    width: 75%;
    height: 1000px;
    background-color: #161616;
    padding: 2rem 1rem; /* Adjusted padding for better spacing */
    z-index: 10;
  }

  .active .navbar ul {
    flex-flow: column;
    padding: 1rem;
  }
  .active .navbar ul li {
    text-align: center;
    width: 100%;
    margin: 1rem 0;
    border-radius: 0.5rem;
    width: 26rem;
  }
  .active .navbar ul li a {
    display: block;
    padding: 1rem;
    text-align: left;
    color: #fff;
    font-size: 2rem;
  }
  .active .navbar ul li a.active,
  .active .navbar ul li a:hover {
    padding: 1rem;
    color: #fff;
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid #006b02;
  }

  .mobile-navbar-btn {
    display: block;
    z-index: 8;
  }

  .mobile-nav-icon[name="menu-outline"] {
    display: block;
  }

  .mobile-nav-icon[name="close-outline"] {
    display: none;
  }
  .navbar-button .custom-button {
    font-size: 2rem;
    margin-right: 50px;
  }
  .navbar-button .custom-button p {
    margin-left: 2px;
    font-size: 2rem;
  }
}

/* Button styling inside navbar */
.navbar-button .custom-button {
  padding: 6px 16px;
  /* background-color: #273239; */
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-size: 1.5rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-left: 20px;
}
.navbar-button .custom-button p {
  font-size: 1.5rem;
  text-decoration: none;
  display: inline;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Button hover effect */
/* .navbar-button .custom-button:hover {
      background-color: #45a049;
    } */
