.mdf-category {
  width: calc(100% - 30px);
  margin: 2rem auto;
}
.mdf-category .box-category {
  background-color: #fff;
  border-radius: 20px;
  padding: 2rem 0.5rem;
  margin: 0.5rem 0;
  text-align: center;
}
.mdf-category .box-category p {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 10px;
}
.mdf-category .box-category span {
  font-size: 10px;
  font-weight: 700;
  color: #636060;
}
.mdf-category .box-category a {
  text-decoration: none;
}
.mdf-category .box-category a:hover i {
  transform: translateX(-5px);
}
.mdf-category .box-category span i {
  font-size: 7px;
  position: relative;
  transition: all 0.2s linear;
}
.mdf-category .box-category span i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 0.5px;
  width: 10px;
  background-color: #636060;
  transform: translateX(5px) translateY(-50%);
  opacity: 0;
  transition: all 0.2s linear;
}
.mdf-category .box-category a:hover i::after {
  transform: translateX(2px) translateY(-50%);
  opacity: 1;
}
@media (min-width: 586px) {
  .mdf-category .box-category {
    text-align: right;
  }
  .mdf-category .box-category p {
    font-size: 18px;
  }
  .mdf-category .box-category span {
    font-size: 13px;
  }
  .mdf-category .box-category span i {
    font-size: 10px;
  }
}
@media (min-width: 992px) {
  .mdf-category {
    width: calc(100% - 8rem);
  }
}
