/* Stable gallery rhythm for honor cards with titles of different lengths. */
.honor-grid {
  align-items: stretch;
  gap: 18px 16px;
}

.honor-card-cmp {
  height: 100%;
  min-width: 0;
}

.honor-card-inner {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 8px 22px rgba(55, 100, 68, 0.08);
  transition:
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.honor-card-cmp:hover .honor-card-inner {
  background: rgba(247, 243, 223, 0.66);
  box-shadow: 0 14px 30px rgba(55, 100, 68, 0.16);
}

.honor-card-img,
.honor-card-no-img {
  flex: 0 0 auto;
}

.honor-card-info {
  display: flex;
  min-height: 88px;
  flex: 1;
  flex-direction: column;
  padding: 11px 16px 13px;
}

.honor-card-name {
  display: -webkit-box;
  min-height: 43.5px;
  margin-bottom: 8px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.honor-card-meta {
  min-height: 21px;
  margin-top: auto;
  align-content: flex-end;
}

@media (max-width: 768px) {
  .honor-grid {
    gap: 14px;
  }

  .honor-card-info {
    min-height: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .honor-card-cmp,
  .honor-card-inner {
    transition: none;
  }
}
