/* News cards (djangocms_blog/includes/blog_item.html) and the news sidebar categories (post_list.html). */
.cfu-news-col {
  margin-bottom: 24px;
}

.cfu-news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
}

.cfu-news-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef4f7;
}

.cfu-news-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cfu-news-card-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 42px;
  color: #8fb3bf;
  background: radial-gradient(circle at 80% 20%, rgba(29, 185, 167, 0.18), transparent 45%),
    linear-gradient(135deg, #eef6f8, #dfeef2);
}

.cfu-news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 16px;
}

.cfu-news-card .cfu-news-card-body h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
}

.cfu-news-card-subtitle {
  margin: 0;
  color: #47657a;
  font-size: 13px;
  font-weight: 700;
}

.cfu-news-card-abstract {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: #708194;
  font-size: 13px;
  line-height: 2.1;
}

.cfu-news-card-abstract p {
  margin: 0;
}

.cfu-news-card .news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: auto 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #edf2f5;
  list-style: none;
  color: #8a9aab;
  font-size: 12px;
}

.cfu-news-card .news-meta li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}

/* Sidebar: news categories */
.cfu-news-categories {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cfu-news-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  transition: background 0.2s;
}

.cfu-news-categories a:hover {
  background: #f1f8f9;
}

.cfu-news-categories .count {
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e6f5f3;
  color: #0b7d71;
  font-size: 12px;
  text-align: center;
}

.cfu-news-sidebar-header h3 i {
  margin-left: 8px;
}
