/* ============================================================
   visamon-news.css - Trang danh sach tin tuc
   ============================================================ */

/* HERO */
.vm-news-hero {
  background: linear-gradient(135deg, #003D20 0%, #005C2E 60%, #007A40 100%);
  padding: 40px 0 36px;
  position: relative;
  overflow: hidden;
}
.vm-news-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'%3E%3Cpolygon points='30,2 58,17 58,35 30,50 2,35 2,17' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 52px;
  pointer-events: none;
}
.vm-news-hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  position: relative; z-index: 1;
}
.vm-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,.55);
  margin-bottom: 14px;
}
.vm-breadcrumb a { color: rgba(255,255,255,.6); transition: color .2s; }
.vm-breadcrumb a:hover { color: #fff; }
.vm-breadcrumb-sep { opacity: .4; }
.vm-news-hero-title {
  font-family: 'Fraunces', 'Plus Jakarta Sans', serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700; color: #fff; margin: 0 0 8px;
}
.vm-news-hero-sub { font-size: 14px; color: rgba(255,255,255,.6); margin: 0; }

/* LAYOUT */
.vm-news-wrap { background: #F7F8FA; padding: 36px 0 60px; }
.vm-news-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start;
}

/* FILTER BAR */
.vm-news-filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid #E8EAF0;
}
.vm-news-count { font-size: 13.5px; color: #64748B; }
.vm-news-sort {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 500; color: #5A6478;
}

/* NEWS GRID */
.vm-nl-grid { display: flex; flex-direction: column; gap: 16px; }

.vm-nl-card {
  background: #fff; border-radius: 12px;
  border: 1px solid #E8EAF0;
  display: grid; grid-template-columns: 220px 1fr;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.vm-nl-card:hover { box-shadow: 0 4px 20px rgba(0,164,86,.10); transform: translateY(-1px); }

.vm-nl-thumb {
  display: block; overflow: hidden; position: relative;
  background: #E6F7EE; aspect-ratio: 16/10;
}
.vm-nl-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.vm-nl-card:hover .vm-nl-thumb img { transform: scale(1.04); }
.vm-nl-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #E6F7EE, #FDF3D0);
}
.vm-nl-cat {
  position: absolute; top: 10px; left: 10px;
  background: #00A456; color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 50px;
}

.vm-nl-body { padding: 18px 20px; display: flex; flex-direction: column; }
.vm-nl-title {
  font-size: 15px; font-weight: 600; line-height: 1.45;
  color: #0F1923; margin: 0 0 8px;
}
.vm-nl-title a { color: inherit; transition: color .2s; }
.vm-nl-title a:hover { color: #00A456; }
.vm-nl-summary {
  font-size: 13.5px; color: #64748B; line-height: 1.6;
  margin: 0 0 12px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vm-nl-meta {
  display: flex; align-items: center; gap: 14px;
  margin-top: auto;
}
.vm-nl-date, .vm-nl-views {
  display: flex; align-items: center; gap: 4px;
  font-size: 12.5px; color: #9AA3B2;
}
.vm-nl-readmore {
  display: flex; align-items: center; gap: 3px;
  font-size: 12.5px; font-weight: 600; color: #00A456;
  margin-left: auto; transition: gap .2s;
}
.vm-nl-readmore:hover { gap: 6px; }

/* PAGINATION */
.vm-nl-pagination {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid #E8EAF0;
  display: flex; justify-content: center;
}
.vm-nl-pagination .pagination { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.vm-nl-pagination .pagination li a,
.vm-nl-pagination .pagination li span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500;
  border: 1px solid #E8EAF0; color: #5A6478;
  background: #fff; transition: all .2s;
}
.vm-nl-pagination .pagination li.active a,
.vm-nl-pagination .pagination li.active span,
.vm-nl-pagination .pagination li a:hover {
  background: #00A456; border-color: #00A456; color: #fff;
}

/* SIDEBAR */
.vm-news-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 80px; }

/* CTA box */
.vm-sidebar-cta {
  background: linear-gradient(135deg, #003D20, #005C2E);
  border-radius: 14px; padding: 24px; text-align: center;
}
.vm-sidebar-cta-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,164,86,.25); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; color: #4ADE80;
}
.vm-sidebar-cta-title { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.vm-sidebar-cta-desc { font-size: 13px; color: rgba(255,255,255,.6); margin: 0 0 18px; }
.vm-sidebar-cta-btn {
  display: block; padding: 11px 20px;
  background: #D4A017; color: #fff;
  border-radius: 50px; font-size: 14px; font-weight: 700;
  margin-bottom: 10px; transition: background .2s, transform .15s;
}
.vm-sidebar-cta-btn:hover { background: #A97B23; transform: translateY(-1px); color: #fff; }
.vm-sidebar-cta-phone {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,.8);
  transition: color .2s;
}
.vm-sidebar-cta-phone:hover { color: #fff; }

/* Sidebar menu */
.vm-sidebar-menu {
  background: #fff; border: 1px solid #E8EAF0;
  border-radius: 12px; overflow: hidden;
}
.vm-sidebar-menu-title {
  font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: #D4A017; padding: 14px 18px; margin: 0;
  border-bottom: 1px solid #E8EAF0;
}
.vm-sidebar-menu ul { list-style: none; margin: 0; padding: 8px 0; }
.vm-sidebar-menu ul li a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 18px; font-size: 13.5px; color: #5A6478;
  transition: color .2s, background .2s;
}
.vm-sidebar-menu ul li a::before { content: '•'; color: #00A456; font-size: 10px; }
.vm-sidebar-menu ul li a:hover { color: #00A456; background: #F0FAF5; }
.vm-sidebar-menu ul li.active a { color: #00A456; font-weight: 600; }

/* Ads */
.vm-sidebar-ads { display: flex; flex-direction: column; gap: 12px; }
.vm-sidebar-ad-img { width: 100%; border-radius: 10px; }

/* Empty state */
.vm-news-empty {
  grid-column: 1 / -1; text-align: center;
  padding: 80px 24px; color: #9AA3B2;
}
.vm-news-empty p { font-size: 15px; margin-top: 12px; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .vm-news-container { grid-template-columns: 1fr; }
  .vm-news-sidebar { position: static; }
  .vm-nl-card { grid-template-columns: 160px 1fr; }
}
@media (max-width: 640px) {
  .vm-nl-card { grid-template-columns: 1fr; }
  .vm-nl-thumb { aspect-ratio: 16/9; }
  .vm-nl-body { padding: 14px; }
  .vm-news-hero { padding: 28px 0 24px; }
}

/* FILTER BAR */
.vm-nl-filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px;
}
.vm-nl-filter-btn {
  padding: 7px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 500; font-family: inherit;
  background: #fff; color: #5A6478;
  border: 1.5px solid #E8EAF0; cursor: pointer;
  transition: all .2s;
}
.vm-nl-filter-btn:hover { border-color: #00A456; color: #00A456; }
.vm-nl-filter-btn.active {
  background: #00A456; color: #fff;
  border-color: #00A456;
}
.vm-news-count-bar { margin-bottom: 16px; }
.vm-news-count { font-size: 13.5px; color: #64748B; }
