.resource-cards {
  display: flex;
  flex-flow: wrap;
  width: 100%;
}

.resource-card {
  position: relative;
  display: flex;
  width: ~'calc(50% - 24px)';
  min-width: 400px;
  max-width: 500px;
  height: 130px;
  margin: 24px 24px 0 0;
  overflow: hidden;
  color: #777;
  font-size: 12px;
  border: 1px solid @border-color-base;
  border-radius: @border-radius-base;
  transition: all 0.3s ease;
}

.resource-card:hover {
  border-color: transparent;
  box-shadow: 0 3px 8px #d3ddeb;
}

.resource-card:hover .resource-card-title {
  color: @primary-color;
}

.resource-card.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.resource-card-cover,
.resource-card-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 130px;
}

.resource-card-cover img {
  width: 68px;
}

.resource-card-content {
  display: flex;
  flex-flow: column;
  justify-content: center;
}

.resource-card-title {
  display: block;
  margin-bottom: 6px;
  overflow: hidden;
  color: @site-text-color;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.resource-card-hot-badge {
  margin-left: 2px;
  padding: 0 3px;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  vertical-align: top;
  background: #f50;
  border-radius: 2px;
}

.resource-card-description {
  display: block;
  padding-right: 16px;
  color: #697b8c;
}
