.vs-header__top {
  padding-top: 10px;
  margin-bottom: 10px;
}

.sticky-active {
  transition: all 0.3s ease;
}

.vs-header {
  position: relative;
}

/* When fixed */
.sticky-active.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #ffffff; /* change if your header bg is different */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Prevent content jump */
body.has-sticky-header {
  padding-top: 110px; /* adjust to header height */
}

/* Main menu base */
.main-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 10px;
}

.main-menu ul li {
  position: relative;
}

/* Menu link */
.main-menu ul li a {
  position: relative;
  display: inline-block;
  padding: 12px 20px;  /* controls selector width */
  font-weight: 600;
  color: #000;
  text-decoration: none;
  z-index: 1;
  transition: color 0.3s ease;
}

/* Dynamic selector */
.main-menu ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9px;
  transform: translateX(-50%);
  width: 0;
  height: 32px; /* fixed height */
  background: #70167E;
  border-radius: 6px;
  z-index: -1;
  transition: width 0.3s ease;
}

/* Hover & active */
.main-menu ul li a:hover::after,
.main-menu ul li a.active::after {
  width: 100%;
}

.main-menu ul li a:hover,
.main-menu ul li a.active {
  color: #fff;
}

/* Hide old SVG selector */
.main-menu ul li a svg {
  display: none;
}

.vs-header__top.hide-preheader {
  display: none;
}

.vs-header__top {
  transition: all 0.3s ease;
}

.vs-header__top.preheader-hidden {
  transform: translateY(-100%);
  opacity: 0;
  height: 0;
  padding: 0;
  margin: 0;
}
