.cmn-button {
    padding: 15px 30px !important;
    background: #0e7a31!important;
    border-radius: 5px!important;
    color: var(--white) !important;
    font-weight: bold !important;
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden !important;
    transition: var(--transition) !important;
    border: 1px solid transparent !important;
}
a, .cmn-button {
    font-size: 18px;
    line-height: 24px;
    color: var(--theme-color);
    font-weight: 500;
    font-family: var(--theme-font);
    cursor: pointer;
}
.cmn-button::after {
    left: unset;
    border-radius: 0px 5px 5px 0px;
}

.cmn-button::before, .cmn-button::after {
    content: "";
    position: absolute;
    inset: 0px;
    width: 50%;
    background-color: var(--primary-color);
    z-index: -1;
    transition: var(--transition);
    border-radius: 5px 0px 0px 5px;
    transform: scale(4) rotate(0deg);
}



.cmn-button {
  position: relative;
  padding: 15px 30px;
  background: #0e7a31;
  color: #fff;
  border: 1px solid #fff;
  font-weight: bold;
  border-radius: 5px;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s ease;
}

.cmn-button::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: #fff;
  z-index: 0;
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.cmn-button:hover::before {
  top: 0;
  left: 0;
}

.cmn-button span {
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

.cmn-button:hover span {
  color: #000; /* Text turns black */
}