.category-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 2rem;
  aspect-ratio: 2; }
  @media (max-width: 991px) {
    .category-card {
      aspect-ratio: auto;
      height: 180px; } }
  .category-card:hover .category-card__bg {
    transform: scale(1.1); }
  .category-card:hover .category-card__content:before {
    top: 0; }
  .category-card:hover .category-card__content .icon {
    transform: none;
    opacity: 1; }
  .category-card__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    transition: transform 0.3s; }
    .category-card__bg img {
      height: 100%;
      width: 100%;
      object-fit: cover; }
  .category-card__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 3rem 2.4rem;
    position: relative; }
    @media (max-width: 991px) {
      .category-card__content {
        padding: 24px; } }
    .category-card__content:before {
      background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.5) 100%);
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      top: 30%;
      opacity: .7;
      transition: all ease .3s; }
  .category-card__title {
    position: relative;
    z-index: 2;
    color: #fff;
    display: flex;
    font-weight: 600;
    justify-content: space-between;
    gap: 2rem;
    align-items: center; }
    .category-card__title .icon {
      transition: all ease .3s;
      transform: translateX(-10px);
      opacity: 0; }
      @media (max-width: 991px) {
        .category-card__title .icon {
          opacity: 1;
          transform: none; } }
