.resource-item {
  position: relative;
  width: calc(25% - 15px);
  padding: 20px;
  background: white;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  cursor: pointer;

  @media screen and (max-width: 1860px) {
    & {
      width: calc(33.33% - 13.33px);
    }
  }

  &:hover {
    border-color: @primary-color;
    box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.1);
  }

  &__name {
    position: relative;
    display: inline-block;
    height: 24px;
    margin: 0 10px 0 0 !important;
    color: @text-color;
    font-weight: 500;
    font-size: 16px;

    &::after {
      position: absolute;
      top: 14px;
      left: 0;
      width: 100%;
      height: 6px;
      background: linear-gradient(
        to right,
        .addAlpha(@primary-color, 0.3) [] 0,
        .addAlpha(@primary-color, 0) [] 100%
      );
      content: '';
    }
  }

  &:hover &__name {
    color: @primary-color;
  }

  &__description {
    height: 44px;
    margin-bottom: 20px;
    color: @text-color-secondary;
    font-size: 14px;
    .multiLine(2);
  }
  &__time {
    display: flex;
    flex: 0 1 content;
    align-items: center;
    width: 100%;
    color: #808080;
    font-size: 13px;
  }
}
