/* Certificates / documents page */
.document-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.04);
  transition:
    border-color 250ms ease-out,
    box-shadow 250ms ease-out,
    transform 250ms ease-out;
}

.document-card:hover {
  border-color: rgba(0, 114, 55, 0.3);
  box-shadow: 0 12px 28px rgba(23, 23, 23, 0.08);
  transform: translateY(-2px);
}

.document-card:focus-visible {
  outline: none;
  border-color: rgba(0, 114, 55, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 114, 55, 0.12);
}

.document-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 725 / 1028;
  object-fit: cover;
  background: #f8f8f5;
}

.document-card-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--color-border, #e5e7eb);
  padding: 0.85rem 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .document-card {
    transition-duration: 0.01ms;
  }

  .document-card:hover {
    transform: none;
  }
}

.elementor-widget-db-documents,
.elementor-widget-db-documents > .elementor-widget-container {
  width: 100%;
  max-width: none !important;
}

.elementor-widget-db-documents > .elementor-widget-container {
  padding: 0 !important;
}
