.document-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease;
}

.document-card::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(7, 21, 33, .12);
  border-radius: 50%;
  transition: transform .5s ease, border-color .3s ease;
}

.document-card:hover {
  z-index: 2;
  background: #0c2736;
  color: #fff;
  transform: translateY(-7px);
  box-shadow: 0 24px 48px rgba(7, 21, 33, .18);
}

.document-card:hover::after {
  transform: scale(1.35);
  border-color: rgba(255, 255, 255, .18);
}

.document-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.document-card .document-type {
  width: max-content;
  padding: 6px 8px;
  background: #071521;
  color: #fff;
  font-size: 8px;
}

.document-meta small {
  color: #718084;
  font-size: 9px;
  letter-spacing: .08em;
  text-align: right;
  text-transform: uppercase;
  transition: color .3s;
}

.document-meta b { font-weight: 700; }

.document-card h3 {
  position: relative;
  z-index: 1;
  transition: transform .3s ease;
}

.document-card:hover h3 { transform: translateX(5px); }

.document-card .document-link {
  position: relative;
  z-index: 1;
  display: flex;
  width: auto;
  justify-content: space-between;
  margin-top: auto;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.document-link b {
  font-size: 15px;
  font-weight: 400;
  transition: transform .3s;
}

.document-card:hover .document-link b { transform: translate(4px, -4px); }
.document-card:hover .document-meta small { color: #afbdc2; }
.document-card:hover .document-type { background: #fff; color: #071521; }

@media (prefers-reduced-motion: reduce) {
  .document-card,
  .document-card::after,
  .document-card h3,
  .document-link b { transition: none; }
}
