.seooc-certs {
  scroll-margin-top: 5rem;
  border-block: 1px solid #dfe3e6;
  background: #fff;
  color: #1b1b1b;
}

.seooc-certs * {
  box-sizing: border-box;
}

.seooc-certs-header {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}

.seooc-certs-kicker {
  margin: 0 0 0.5rem;
  color: #005ea8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.seooc-certs-header h2 {
  margin: 0;
  color: #162e51;
}

.seooc-certs-header > p:last-child {
  margin: 1rem auto 0;
  color: #454545;
  line-height: 1.65;
}

.seooc-certs-group {
  max-width: 68rem;
  margin: 2rem auto 0;
}

.seooc-certs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.seooc-cert {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  margin: 0;
  border: 1px solid #dfe3e6;
  border-radius: 0.25rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(22, 46, 81, 0.06);
}

/* One shared aspect ratio keeps every row flush even though Semrush/Google
   scans are 600x424 and LinkedIn ones are 600x464 (letterboxed by contain). */
.seooc-cert-frame {
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  aspect-ratio: 600 / 424;
  border-bottom: 1px solid #dfe3e6;
  background: #eef1f7;
}

.seooc-cert-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 150ms ease;
}

.seooc-cert-frame:hover img {
  opacity: 0.92;
}

.seooc-cert figcaption {
  display: grid;
  gap: 0.25rem;
  padding: 0.6rem 0.75rem 0.7rem;
}

.seooc-cert figcaption strong {
  color: #162e51;
  font-size: 0.85rem;
  line-height: 1.3;
}

.seooc-cert figcaption a {
  width: fit-content;
  color: #005ea8;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.seooc-certs-note {
  max-width: 58rem;
  margin: 2rem auto 0;
  color: #71767a;
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 64rem) {
  .seooc-certs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  .seooc-certs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .seooc-cert figcaption {
    padding: 0.5rem 0.6rem 0.6rem;
  }
}

/* Google Partner badge card: small vector logo on white, not a full-bleed scan */
.seooc-cert--badge .seooc-cert-frame {
  background: #fff;
}

.seooc-cert--badge .seooc-cert-frame img {
  width: auto;
  height: 72%;
}
