.hover-btn {
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  overflow: hidden;
  border: 3px solid #3E6FF4;
  z-index: 1;
  transition: color 0.3s ease;
  border-radius: 6px;
}

.hover-btn a{
    text-decoration: none;
    color: lightsalmon;
}

/* Before pseudo-element for background effect */
.hover-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #3E6FF4;   /* fill color */
  z-index: -1;
  transition: width 0.4s ease;
}

/* On hover → expand background */
.hover-btn:hover::before {
  width: 100%;
}

/* Change text color when background fills */
.hover-btn:hover {
  color: #fff;
}
