.HeaderButton {
  position: relative;
  display: inline-block;
}

@media (max-width: 768px) {
  .HeaderButton::after {
    display: none;
  }
}

@media (min-width: 769px) {
  .HeaderButton::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 1.5px;
    background-color: #2E2522FF;
    transition: width 0.75s ease;
  }

  .HeaderButton:hover::after {
    width: 100%;
    left: 0;
    right: auto;
  }
}