/* ========== CERTIFICATIONS ==========
   Sits at the end of the About page: certificate preview on the left, what it
   covers on the right. Clicking the preview opens the full-resolution file.
   ==================================== */

.about-values-h.cert-h {
  margin-top: 72px;
  /* Anchored via #sertifikalar — keep the heading clear of the fixed nav. */
  scroll-margin-top: 100px;
}
.cert-lead {
  margin-top: 12px;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-3);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 1000px) { .cert-grid { grid-template-columns: 1fr; } }

.cert-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.cert-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 18px 36px -20px rgba(30,94,255,.32);
}
@media (max-width: 520px) {
  .cert-card { grid-template-columns: 1fr; gap: 18px; }
}

/* ---- preview ---- */
.cert-thumb {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 596 / 842;
}
.cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .35s var(--ease);
}
.cert-thumb:hover img { transform: scale(1.03); }
@media (max-width: 520px) {
  .cert-thumb { max-width: 200px; }
}

.cert-zoom {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 0;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(10,10,20,.86), rgba(10,10,20,0));
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.cert-thumb:hover .cert-zoom,
.cert-thumb:focus-visible .cert-zoom { opacity: 1; }

/* ---- text ---- */
.cert-body { display: flex; flex-direction: column; min-width: 0; }
.cert-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--brand);
  margin-bottom: 8px;
  word-break: break-word;
}
.cert-body h4 {
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -.012em;
  margin-bottom: 9px;
}
.cert-body p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-3);
  flex: 1;
}

.cert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.cert-meta > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cert-meta-l {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.cert-meta-v { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.cert-meta-v.mono { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 500; }
