/* ========================================
   YOYAGE Certifications Page Styles
   Purpose: certificate & patent credential wall
   Loaded only on /certifications/index.html
   ======================================== */

/* Page hero, breadcrumb, spec-tag, explore cards & CTA styles live in components.css (shared cross-page). */

/* ---------- 2. Credential Wall ---------- */
.cert-group + .cert-group {
  margin-top: 56px;
}

.cert-group-title {
  margin: 0 0 24px;
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--color-title);
}

/* Credential wall: fixed 210×280 document thumbnails, auto-fill centered */
.cert-patent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 236px); /* 210 img + 24 padding + 2 border */
  justify-content: center;
  gap: 20px;
}

/* Framed document style: white mat + thin border + soft shadow */
.cert-frame {
  margin: 0;
  padding: 12px 12px 14px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 8px rgba(16, 24, 45, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cert-frame:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand);
  box-shadow: var(--shadow-md);
}

.cert-frame img {
  display: block;
  width: 210px;
  height: 280px;
  margin-inline: auto;
  object-fit: cover;
  border-radius: var(--radius-tag);
  background-color: var(--color-bg-alt);
}

/* Archive caption strip below each document */
.cert-frame-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  text-align: center;
}

.cert-frame-name {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-title);
  line-height: 1.4;
}

/* ---------- 3. Responsive ---------- */
@media (max-width: 767px) {
  .cert-group + .cert-group {
    margin-top: 32px;
  }

  .cert-patent-grid {
    gap: 12px;
  }

  .cert-frame {
    padding: 8px 8px 10px;
  }

  .cert-frame-caption {
    padding-top: 8px;
  }
}
