/* =========================================================
   FUNNY LIST PAGE — ONLY CONTENT STYLES
   (Header/Hero/Footer vin din landing.css)
   ========================================================= */

html, body { overflow-x: hidden; }

/* Distanță coerentă între masthead și prima secțiune */
.masthead + main .section { padding-top: 1.8rem; }

/* Container secțiune */
.section .container { max-width: 1180px; }

/* Titluri + subtitluri */
.title-sm { margin-bottom: .25rem; }
.subtitle { margin-bottom: 1rem; color: var(--muted-dark, #64748b); }
.subtitle.subtitle-dark { color: var(--text, #0f172a); }

/* ===========================
   GRID
   =========================== */
.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;
  will-change: transform;
}

.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;
}

/* Thumbnail */
.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 */
.test-body { padding: 0.95rem 1rem 1.05rem; }
.test-body h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 0 0 .4rem 0;
  color: var(--text, #0f172a);
  font-weight: 700;
}
.test-body p {
  margin: 0 0 .7rem 0;
  color: var(--muted-dark, #475569);
  font-size: .96rem;
}

/* CTA text */
.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); }

/* Safety */
.section ul { list-style: none; padding: 0; margin: 0; }
.cards-grid, .test-card, .test-card-link, .test-thumb, .test-body { min-width: 0; }
