/* --- CSS TRANG TIN TỨC --- */

#news-container {
  width: 85%;
  margin: 40px auto;
}

.news-page-title {
  font-size: 26px;
  color: #3e2723;
  border-bottom: 2px solid #6f5946;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

/* Lưới hiển thị các bài viết ngang hàng */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Chia đều 3 cột trên một hàng */
  gap: 30px;
}

/* Khung bọc bài viết */
.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
}

/* Hình ảnh bài viết */
.news-img-box {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.news-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Nội dung chữ trong bài viết */
.news-info {
  padding: 20px;
}

.news-date {
  font-size: 12px;
  color: #888;
  display: block;
  margin-bottom: 8px;
}

.news-info h3 {
  font-size: 16px;
  color: #3e2723;
  margin: 0 0 10px 0;
  line-height: 1.4;
  height: 44px; /* Giới hạn chiều cao tiêu đề để các thẻ luôn bằng nhau */
  overflow: hidden;
}

.news-info p {
  font-size: 13.5px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 15px 0;
  height: 64px; /* Giới hạn phần mô tả ngắn */
  overflow: hidden;
}

.news-readmore {
  font-size: 14px;
  color: #6f5946;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

.news-readmore:hover {
  color: #3e2723;
}