/* ===== GLOBAL ===== */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f4f8f6;
  margin: 0;
  color: #1b2b28;
}

/* ===== HEADER ===== */
.article-header {
  background: linear-gradient(180deg, #00A859, #006B3F);
  color: #fff;
  text-align: center;
  margin-bottom:10px;
  border-radius: 14px;
  padding: 18px;
  font-weight: 600;
  font-size: 16px;
}

/* ===== CONTAINER ===== */
.article-container {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 12px;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.tab {
  padding: 6px 14px;
  border-radius: 20px;
  background: #e8f6ef;
  color: #006B3F;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.tab:hover {
  background: #d9f1e6;
}

.tab.active {
  background: #006B3F;
  color: #fff;
}

/* ===== TAB CONTENT ===== */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ===== CARD LIST ===== */
.news-card {
	position: relative;
  display: flex;
  gap: 14px;
  background: #fff;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #e6eee9;
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* ===== IMAGE ===== */
.news-img {
  width: 120px;
  height: 90px;
  overflow: hidden;
  border-radius: 6px;
  flex-shrink: 0;
  background: #ddd;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== CONTENT ===== */
.news-content {
  flex: 1;
}

/* TITLE */
.news-content h3 {
  font-size: 15px;
  margin: 0 0 6px;
  color: #006B3F;
  line-height: 1.4;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* SUMMARY */
.news-content p {
  font-size: 13px;
  color: #555;
  margin: 0;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* META */
.meta {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta .dot {
  color: #ccc;
}

.meta i {
  font-size: 11px;
  margin-right: 2px;
}

/* ===== EMPTY ===== */
.empty-state {
  background: #fff;
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  border: 1px dashed #ccc;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 6px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.pagination a {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #006B3F;
  font-size: 13px;
  transition: all 0.2s;
}

.pagination a:hover {
  background: #e8f6ef;
}

.pagination a.active {
  background: #006B3F;
  color: #fff;
  border-color: #006B3F;
}

.pagination a.disabled {
  pointer-events: none;
  opacity: 0.4;
}

/* ===== MOBILE OPTIMIZE ===== */
@media (max-width: 600px) {

  .news-card {
    gap: 10px;
    padding: 10px;
  }

  .news-img {
    width: 90px;
    height: 70px;
  }

  .news-content h3 {
    font-size: 14px;
  }

  .news-content p {
    display: none; /* mobile ẩn summary cho gọn */
  }

}

/* ===== FEATURED ===== */
.news-card.featured {
  border-left: 4px solid #00A859;
  background: #f9fdfb;
}

/* badge featured */
.news-card.featured::before {
  content: "NỔI BẬT";
  position: absolute;
  top: 8px;
  left: 8px;
  background: #00A859;
  color: #fff;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 4px;
}

.news-card.hot::after {
  content: "HOT";
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff5722;
  color: #fff;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 4px;
}