/* Certifications page: one clickable card per badge */
.certs {
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cert {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  color: var(--navy);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cert:hover {
  border-color: var(--navy);
  box-shadow: 0 6px 18px rgba(15, 27, 45, 0.10);
  color: var(--navy);
}

.cert:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.cert__badge {
  width: 140px;
  height: 140px;
}

.cert__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cert__meta {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--link);
}

.cert h2 {
  font-size: 28px;
  line-height: 1.15;
}

.cert__body p:not(.cert__meta) {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 760px;
}

.cert__link {
  font-weight: 600;
  color: var(--link);
}

.cert:hover .cert__link {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .cert {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }

  .cert__badge {
    width: 120px;
    height: 120px;
  }
}

/* "Verify" link under the credentials card on the home page */
.card__more {
  margin-top: 16px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .cert {
    transition: none;
  }
}
