.infolio-brand-item{
  text-align: center;
  position: relative;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  .img,.text {
    position: relative;
    z-index: 2;
    img{
      width: 100px;
    }
  }
  .top-left, .top-right, .bottom-left, .bottom-right{
    position: absolute;
    svg{
      rect{
        fill: #1a1a1a;
      }
    }
    &::after{
      z-index: 1;
      content: '';
      position: absolute;
      top: -20px;
      left: -20px;
      right: -20px;
      bottom: -20px;
      background: #ffffff;
    }
  }
  .top-left{
    top: -0.8rem;
    left: -0.8rem;
  }
  .top-right {
    top: -0.8rem;
    right: -0.8rem;
  }
  .bottom-left {
    bottom: -0.8rem;
    left: -0.8rem;
  }
  .bottom-right {
    bottom: -0.8rem;
    right: -0.8rem;
  }
  .text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    span{
      display: inline-block;
    }
    .numb{
      margin-top: 0;
      color: #1a1a1a;
      line-height: 1.3;
      margin-bottom: 0.2rem;
      font-weight: 400;
      font-size: 80px;
    }
    .unit{
      color: #1a1a1a;
      font-size: 30px;
      font-weight: 400;
    }
    .sub-title{
      color: #1a1a1a;
      font-weight: 400;
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: 2px;
      line-height: 1.3;
      margin-bottom: 0.2rem;
    }
  }
  svg {
    width: 1.6rem;
    position: relative;
    z-index: 3;
    opacity: .4;
    height: auto;
  }
  &::after {
    content: '';
    position: absolute;
    top: 35px;
    left: 35px;
    right: 35px;
    bottom: 35px;
    background: linear-gradient(130deg, transparent, #14cf93);
    opacity: 0;
    transition: all .4s;
  }
  &:hover::after {
    opacity: 1;
  }
}

@media screen and (max-width: 768px) {
  .infolio-brand-item .item .top-left:after, .infolio-brand-item .item .top-right:after, .infolio-brand-item .item .bottom-left:after, .infolio-brand-item .item .bottom-right:after {
    top: -10px;
    left: -10px;
    bottom: -10px;
    right: -10px;
  }
  .infolio-brand-item svg {
    transform: scale(0.5);
  }
}

body.tcg-dark-mode {
  .infolio-brand-item{
    border: 1px solid rgba(255, 255, 255, 0.08);
    .top-left, .top-right, .bottom-left, .bottom-right{
      svg{
        rect{
          fill: #ffffff;
        }
      }
      &::after{
        z-index: 1;
        content: '';
        position: absolute;
        top: -20px;
        left: -20px;
        right: -20px;
        bottom: -20px;
        background: #1a1a1a;
      }
    }
    .text {
      .numb{
        color: #ffffff;
      }
      .unit{
        color: #ffffff;
      }
      .sub-title{
        color: #ffffff;
      }
    }
  }
}

@media (prefers-color-scheme: dark) {
  body.tcg-auto-mode {
    .infolio-brand-item{
      border: 1px solid rgba(255, 255, 255, 0.08);
      .top-left, .top-right, .bottom-left, .bottom-right{
        svg{
          rect{
            fill: #ffffff;
          }
        }
        &::after{
          z-index: 1;
          content: '';
          position: absolute;
          top: -20px;
          left: -20px;
          right: -20px;
          bottom: -20px;
          background: #1a1a1a;
        }
      }
      .text {
        .numb{
          color: #ffffff;
        }
        .unit{
          color: #ffffff;
        }
        .sub-title{
          color: #ffffff;
        }
      }
    }
  }
}