/* ═══════════════════════════════
   NEWS SECTION
   ═══════════════════════════════ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

@media (max-width: 740px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.news-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.news-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.news-card:hover .news-card-img-wrap img {
  transform: scale(1.03);
}

.news-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.news-card-img-placeholder svg {
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  opacity: .25;
}

.news-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  backdrop-filter: blur(8px);
}

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

.news-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-card-time {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-card-time svg {
  width: 13px;
  height: 13px;
}

.news-card-actions {
  display: flex;
  gap: 4px;
}

.news-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

.news-count-badge svg {
  width: 14px;
  height: 14px;
}

.news-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.news-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 16px;
}

.news-empty-icon svg {
  width: 28px;
  height: 28px;
}

.news-empty h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.news-empty p {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 300px;
}

.news-img-preview {
  margin-top: 8px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  max-height: 160px;
  display: none;
}

.news-img-preview.active {
  display: block;
}

.news-img-preview img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  display: block;
}

/* ── Poll Image Preview ── */
.poll-img-preview {
  margin-top: 6px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  max-height: 120px;
  display: none;
}

.poll-img-preview.active {
  display: block;
}

.poll-img-preview img {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  display: block;
}

