/* Custom Button Styles added for Single Page Sidebars */
.vl-btn-main-reverse {
  color: var(--ztc-text-text-1) !important;
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s16);
  font-style: normal;
  font-weight: var(--ztc-weight-bold);
  line-height: 16px;
  display: inline-block;
  transition: all 0.4s;
  border-radius: 50px;
  background: none; /* Let pseudo-elements handle the background */
  padding: 10px 24px;
  position: relative;
  z-index: 1;
  text-decoration: none;
  overflow: hidden;
}

/* Base background */
.vl-btn-main-reverse::before {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  background: var(--ztc-bg-bg-11);
  border-radius: 50px;
  z-index: -2; /* Behind the fill */
  transition: all 0.4s;
}

/* Hover fill background */
.vl-btn-main-reverse::after {
  position: absolute;
  content: "";
  height: 100%;
  left: 50%;
  top: 0;
  transition: all 0.4s;
  width: 0; /* Start with 0 width */
  background: var(--ztc-bg-bg-10);
  border-radius: 50px;
  z-index: -1; /* Between base and text */
  visibility: hidden;
  opacity: 0;
}

.vl-btn-main-reverse:hover {
  color: var(--ztc-text-text-1) !important;
  border-color: var(--ztc-bg-bg-11);
  transform: translateY(-5px);
}

.vl-btn-main-reverse:hover::after {
  width: 100%;
  left: 0;
  visibility: visible;
  opacity: 1;
}

.vl-btn-main-reverse.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}
