/* ===== Filter Bar ===== */
.filter-bar { padding: 2rem 0; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.filter-tabs { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.filter-tab {
  padding: 0.5rem 1.25rem; border-radius: 9999px;
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
  border: 1px solid #e5e7eb; background: white; color: #6b7280;
  transition: all 0.3s;
}
.filter-tab:hover  { border-color: #0891b2; color: #0369a1; }
.filter-tab.active { background: linear-gradient(135deg, #0369a1, #0891b2); color: white; border-color: transparent; }

/* ===== News Grid (list page) ===== */
.news-section { padding: 4rem 0; }
.news-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px)  { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card {
  background: white; border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #f3f4f6; overflow: hidden;
  transition: all 0.3s; text-decoration: none; color: inherit; display: block;
}
.news-card:hover { box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15); transform: translateY(-4px); }

.news-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  position: relative; overflow: hidden;
}
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; color: #9ca3af;
}

.news-content { padding: 1.5rem; }
.news-meta    { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.news-category {
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 500; border: 1px solid;
}

/* Category colors */
.cat-news     { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.cat-product  { background: #d1fae5; color: #047857; border-color: #a7f3d0; }
.cat-partner  { background: #e0e7ff; color: #4338ca; border-color: #c7d2fe; }
.cat-industry { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.cat-default  { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }

.news-date { display: flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: #9ca3af; }

.news-title {
  font-size: 1.125rem; font-weight: 600; color: #111827;
  margin-bottom: 0.625rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card:hover .news-title { color: #0369a1; }

.news-summary {
  font-size: 0.875rem; color: #6b7280; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 1.25rem;
}

.news-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid #f3f4f6;
}
.read-more {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.875rem; font-weight: 500; color: #0369a1; transition: all 0.3s;
}
.news-card:hover .read-more { gap: 0.625rem; }
.news-views { display: flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: #9ca3af; }

/* Featured card */
.news-card.featured { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .news-card.featured .news-card-inner { display: grid; grid-template-columns: 1fr 1fr; }
  .news-card.featured .news-image { aspect-ratio: auto; min-height: 300px; }
}

/* ===== Pagination ===== */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 0.5rem; margin-top: 3rem;
}
.page-btn {
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.5rem; border: 1px solid #e5e7eb;
  background: white; color: #6b7280; font-size: 0.875rem;
  cursor: pointer; transition: all 0.3s;
}
.page-btn:hover        { border-color: #0891b2; color: #0369a1; }
.page-btn.active       { background: linear-gradient(135deg, #0369a1, #0891b2); color: white; border-color: transparent; }
.page-btn:disabled     { opacity: 0.4; cursor: not-allowed; }
