
.underline-effect {
  position: relative;
  color: black;
  text-decoration: none;
  display: inline-block;
}

.underline-effect::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0; /* начинаем с правого края */
  width: 0;
  height: 1px;
  background-color: white;
  transition: width 0.3s ease-in-out, right 0.3s ease-in-out;
}

.underline-effect:hover::after {
  width: 100%;
  right: auto; /* сбрасываем right, чтобы ширина могла расти слева направо */
  left: 0; /* фиксируем левый край для роста линии */
}

.underline-effect:hover {
  color: white;
}


</style>