/* ── ThemeLab News/Blog widget ───────────────────────────────── */

.tl-news {
  display: grid;
  gap: 28px;
}

.tl-news--grid,
.tl-news--cards {
  grid-template-columns: repeat(var(--tl-news-cols, 3), 1fr);
}

@media (max-width: 900px) {
  .tl-news--grid, .tl-news--cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tl-news--grid, .tl-news--cards { grid-template-columns: 1fr; }
}

.tl-news--list {
  grid-template-columns: 1fr;
}

.tl-news--carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 24px;
  padding-bottom: 8px;
}

.tl-news--carousel .tl-news-item {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

.tl-news-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #eee);
  border-radius: var(--r-lg, 12px);
  box-shadow: var(--s-sm, 0 2px 12px rgba(0, 0, 0, 0.06));
  transition: transform .2s ease, box-shadow .2s ease;
}

.tl-news-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--s-md, 0 4px 6px rgba(0, 0, 0, 0.1));
}

.tl-news--list .tl-news-item {
  flex-direction: row;
  align-items: stretch;
  gap: 20px;
}

.tl-news-item-media {
  display: block;
  overflow: hidden;
  background: #f2f2f2;
  aspect-ratio: 16 / 10;
}

.tl-news--list .tl-news-item-media {
  flex: 0 0 220px;
  aspect-ratio: 4 / 3;
}

.tl-news-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.tl-news-item:hover .tl-news-item-media img {
  transform: scale(1.04);
}

.tl-news-item-body {
  padding: 18px 20px 22px;
  flex: 1;
}

.tl-news-item-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-primary, #3B82F6);
  margin-bottom: 8px;
}

.tl-news-item-title {
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.tl-news-item-title a {
  color: inherit;
  text-decoration: none;
}

.tl-news-item-title a:hover {
  text-decoration: underline;
}

.tl-news-item-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--color-muted, #8a8a8a);
  margin-bottom: 10px;
}

.tl-news-item-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted, #555);
  margin-bottom: 12px;
}

.tl-news-item-readmore {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary, #3B82F6);
  text-decoration: none;
}

.tl-news-item-readmore:hover {
  text-decoration: underline;
}
