@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap");

html,
body {
  font-family: "Montserrat", sans-serif;
}
* {
    border: 0;
    font: inherit;
    font-style: normal;
    font-size: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    quotes: none;
    text-decoration: none;
    vertical-align: baseline;
}

.btn2 {
  width: 50%;
  font-size:16px;
  font-weight: 600;
  /* background-color:#154633; */
  padding:24px 24px 24px 32px;
  display:flex;
  align-items:center;
  border-radius:99px;
  position:relative;
  transition: all .5s cubic-bezier(.77,0,.175,1);
  
  .text{
    color:#481B79;
    line-height:1;
    position:relative;
    z-index:5;
    margin-right:32px;
  }
  
  svg{
    display:inline-block;
    position:relative;
    z-index:5;
    transform: rotate(0deg) translateX(0);
    transform-origin: left;
    transition: all .5s cubic-bezier(.77,0,.175,1);
  }
  
  &::before{
    content:'';
    background-color:#95C11F;
    width:32px;
    height:32px;
    display:block;
    position:absolute;
    z-index:1;
    border-radius:99px;
    top:50%;
    right:16px;
    transform:translateY(-50%);
    transition: all .5s cubic-bezier(.77,0,.175,1);
  }
  
  &.light{
    background-color: #e5d4ef;
    
    &::before{
      background-color: #481B79;
    }
  }
}

.btn2:hover{
  
  svg{
    transform: rotate(45deg) translateX(-8px);
  }
  
   .text {
    color: rgb(255, 255, 255);
    transition: all .5s cubic-bezier(.77,0,.175,1);
  }
  &::before{
    content:'';
    width:100%;
    height:100%;
    right:0;
  }
}