/* ==============================
   News List Page - Dedicated Styles
   ============================== */

/* Page banner variant (extends V5 shared banner styles) */
.page-banner--news-list .breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}
.page-banner--news-list .breadcrumb a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}
.page-banner--news-list .breadcrumb a:hover { color: #fff; }
.page-banner--news-list .breadcrumb span { margin: 0 8px; }

/* Section wrapper */
.news-list-section {
  padding: 72px 0 100px;
  background: linear-gradient(180deg, #fff 0%, #f7fafc 100%);
}

/* Filter / toolbar */
.news-list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px 20px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dde5ee;
  box-shadow: 0 8px 24px rgba(21,32,53,0.05);
}
.news-list-toolbar .total {
  font-size: 0.92rem;
  color: #5b6678;
}
.news-list-toolbar .total strong {
  color: #0095b3;
  font-weight: 800;
  margin: 0 3px;
}

/* Grid */
.news-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

/* Card */
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #dde5ee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(21,32,53,0.06);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
}
.news-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,149,179,0.4);
  box-shadow: 0 22px 48px rgba(21,32,53,0.12);
}
.news-card .thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #eef4f7, #d7e5ec);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #0095b3;
  overflow: hidden;
}
.news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card:hover .thumb img { transform: scale(1.04); }

.news-card .body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card .meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: #7a8699;
}
.news-card .tag {
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(0,149,179,0.1);
  color: #007a99;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  display: none; /* categories removed */
}
.news-card .date::before {
  content: "📅";
  margin-right: 4px;
}
.news-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  color: #152035;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card:hover h3 { color: #0095b3; }
.news-card.is-hidden { display: none; }
.news-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #5b6678;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.news-card .readmore {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0095b3;
  align-self: flex-start;
}
.news-card:hover .readmore { color: #007a99; }

/* Pagination */
.news-list-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}
.news-list-pagination a,
.news-list-pagination span {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid #dde5ee;
  background: #fff;
  color: #152035;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.news-list-pagination a:hover {
  color: #0095b3;
  border-color: rgba(0,149,179,0.5);
  background: rgba(0,149,179,0.06);
}
.news-list-pagination .current {
  background: #0095b3;
  border-color: #0095b3;
  color: #fff;
}
.news-list-pagination .disabled {
  color: #b0b8c4;
  background: #f7fafc;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 900px) {
  .news-list-section { padding: 52px 0 72px; }
  .news-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .news-list-toolbar {
    padding: 14px 16px;
  }
}

@media (max-width: 560px) {
  .news-list-grid {
    grid-template-columns: 1fr;
  }
  .news-list-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}