.sticky-wrapper {
  position: sticky;
  top: 0;
  z-index: 9999;
  font-family: "Kantumruy Pro";
  background-color: #fff;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.9375rem 1.875rem;
  background-color: #fff;
  z-index: 1001;
  position: sticky;
  top: 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;

  box-sizing: border-box;
}

/* Left side (logo + brand name) */
.left {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 3.75rem;
  width: 3.75rem;
  object-fit: cover;
  border-radius: 50%;
}

.brand-name {
  font-family: "Kantumruy Pro"; /* Apply globally */
  font-size: 1.75rem;
  font-weight: 900;
  color: #000000;
  white-space: nowrap;
}

/* Right side (auth links) */
.right.auth {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  white-space: nowrap;
}

/* Auth buttons */
.auth a {
  text-decoration: none;
  font-weight: bold;
  padding: 0.375rem 0.75rem;
  border-radius: 1.25rem;
  border: 1px solid #ffffff;
  color: #000;
  transition: background 0.3s, color 0.3s;
}

.auth a:hover {
  background-color: #000;
  color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .right.auth {
    justify-content: flex-start;
    width: 100%;
  }
}

/* Prevent Horizontal Scroll on Zoom-Out */
body {
  overflow-x: hidden;
}
/*  Navbar Container  */
nav {
  background: #f1c40f;
  font-family: "Kantumruy Pro", sans-serif;
  margin: 10px auto;
  padding: 10px 30px;
  border-radius: 50px;
  max-width: 1200px;
  z-index: 1000;
  position: relative;
}
body,
nav,
.dropdown > a,
.dropdown-menu a {
  font-family: "Kantumruy Pro", sans-serif;
}

/*  Navbar List  */
.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

/*  Left Item (Home)  */
.left-item {
  margin-right: auto;
}

.left-item a {
  text-decoration: none;
  font-weight: bold;
  color: black;
  display: flex;
  align-items: center;
  gap: 6px;
}

.left-item i {
  margin-right: 4px;
}

.left-item:hover a,
.left-item:hover i {
  color: white;
}

/*  Right Group  */
.right-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

/*  Right Nav Items  */
.right-group li a {
  text-decoration: none;
  font-weight: bold;
  color: black;
}

.right-group li a:hover {
  color: white;
}

/*  Dropdown  */
.dropdown {
  position: relative;
}
ul,
li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown > a::after {
  content: "";
  display: inline-block; /* Important to show width & height */
  font-size: 12px;
  width: 15px;
  height: 15px;
  margin-left: 5px;
  background-image: url("../image/down.png");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}
.dropdown:hover > a,
.dropdown > a:hover {
  color: #ffffff; /* change Services text color */
}
.dropdown:hover > a::after,
.dropdown > a:hover::after {
  filter: brightness(0) invert(1); /* invert colors on hover */
}
.dropdown-menu {
  display: none;

  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  z-index: 1001;
  padding: 10px 0;
  flex-direction: column;
}

.dropdown-menu li {
  padding: 8px 20px;
}

.dropdown-menu li a {
  color: black;
  text-decoration: none;
  display: block;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-menu li a:hover {
  background: #f1c40f;
  color: white;
  border-radius: 5px;
}

/*  Hamburger / Toggle  */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: black;
  position: absolute;
  top: 15px;
  right: 30px;
  z-index: 1002;
}

/*  Responsive Styles  */
@media (max-width: 768px) {
  /* Stack nav vertically */
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    display: none;
    background: #f1c40f;
    padding: 20px;
    border-radius: 15px;
    margin-top: 10px;
  }

  /* Show nav when toggled */
  .nav-menu.show {
    display: flex;
  }

  /* Right group becomes column */
  .right-group {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: #fff7d6;
    border-radius: 8px;
    padding: 0;
    width: 100%;
  }

  .dropdown-menu li {
    padding: 10px 15px;
  }

  .dropdown:hover .dropdown-menu {
    display: none; /* hover not suitable on mobile */
  }

  .dropdown.open .dropdown-menu {
    display: flex;
  }

  .dropdown > a::after {
    content: " ▼";
    float: right;
  }

  /* Toggle button shows */
  .nav-toggle {
    display: block;
  }
}
