/* News List Page - Masonry Layout */
.news-grid {
  column-count:4;
  column-gap: var(--space-6);
}

.news-card {
  break-inside: avoid;
  margin-bottom: var(--space-6);
  display: block;
}

.news-card {
  background: var(--color-bg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--color-border);
}

.news-card:hover {
  transform: translateY(-2px);
}

.news-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-image {
  position: relative;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding-top: var(--space-4);
}

.news-title {
  margin: 0 0 var(--space-2);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-fg);
}

.news-summary {
  margin: 0 0 var(--space-3);
  color: var(--color-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--color-muted);
}

.news-meta time {
  font-style: normal;
}



/* News Detail Page - Sidebar News List */
.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.news-item {
  padding: 0 ;
  border: none ;
}

.news-item:hover {
  box-shadow: none ;
}

.news-item .news-link {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.news-item .news-link:hover {
  opacity: 0.8;
}

.news-item .news-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: var(--radius-1);
  overflow: hidden;
}

.news-item .news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item .news-info {
  flex: 1;
  min-width: 0;
}

.news-item .news-title {
  margin: 0 0 var(--space-1);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item .news-date {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Responsive */
@media (max-width: 1200px) {
  .news-grid {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .news-grid {
    column-count: 2;
    column-gap: .5rem;
  }
  
  .news-image img {
    height: 180px;
  }
  
  .news-content {
    padding: 0;
  }
  
  .news-title {
    font-size: 0.9rem;
    margin-bottom: 0;
  }
  .news-summary{
    font-size: 0.6rem;
    margin-bottom: 0;
  }
  .news-meta{
    font-size: 0.7rem;
  }
} 
