/* =========================================================
   KNOWLEDGE LIST PAGE — ONLY CONTENT STYLES
   (Header/Hero/Footer vin din landing.css)
   ========================================================= */

html, body { overflow-x: hidden; }

/* Subtitlul din afara hero = negru */
.title-sm { margin-bottom: .25rem; color: #0f172a; }
.subtitle { margin-bottom: 1rem; }
.subtitle.subtitle-dark { color: #0f172a; }

/* Grid listare */
.cards-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: .75rem;
}
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

/* Card */
.test-card {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  background: var(--card, #fff);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.test-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.07);
  border-color: rgba(59,130,246,.35);
}

.test-card-link {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Thumb */
.test-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  overflow: hidden;
}
.test-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Body (negru) */
.test-body { padding: 0.95rem 1rem 1.05rem; color: #0f172a; }
.test-body h3 { font-size: 1.08rem; line-height: 1.35; margin: 0 0 .4rem; color: #0f172a; font-weight: 700; }
.test-body p  { margin: 0 0 .7rem; color: #0f172a; font-size: .96rem; }

.test-cta {
  display: inline-block; font-weight: 600; font-size: .95rem;
  color: var(--brand, #2563eb);
  transition: color .15s ease, transform .15s ease;
}
.test-card:hover .test-cta { color: var(--brand-strong, #1d4ed8); }
