/* VSW-TC-06 · VSW-TT · Tin tức: thẻ bài, khối trang chủ, trang danh sách */
.tt-dau {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--vs-k4);
  margin-bottom: var(--vs-k6);
  padding-bottom: var(--vs-k5);
  border-bottom: 1px solid var(--vs-line);
}

.tt-xem-tat-ca {
  flex-shrink: 0;
}

.tt-luoi {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--vs-k5);
}

.tt-the {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--vs-trang);
  border: 1px solid var(--vs-line);
  border-radius: var(--vs-bo-the);
}

.tt-the-anh {
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--vs-ice);
}

.tt-the-anh img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tt-the-than {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--vs-k3);
  padding: var(--vs-k4);
}

.tt-the-tieu-de {
  font-family: var(--vs-font-tieu-de);
  font-size: var(--vs-co-h3);
  font-weight: 600;
  line-height: 1.45;
  color: var(--vs-blue);
  overflow-wrap: anywhere;
}

.tt-the-lien-ket {
  color: inherit;
  text-decoration: none;
}

.tt-the-lien-ket::after {
  content: "";
  position: absolute;
  inset: 0;
}

.tt-the:hover {
  border-color: var(--vs-vien-hover);
}

.tt-the:hover .tt-the-lien-ket {
  text-decoration: underline;
}

.tt-the:focus-within {
  outline: 3px solid var(--vs-action);
  outline-offset: 3px;
}

.tt-the-lien-ket:focus-visible {
  outline: none;
  text-decoration: underline;
}

.tt-the-tom-tat {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-family: var(--vs-font-noi-dung);
  font-size: var(--vs-co-noi-dung);
  line-height: 1.65;
  color: var(--vs-muted);
}

.tt-the-chan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--vs-k2);
  margin-top: auto;
  padding-top: var(--vs-k3);
  border-top: 1px solid var(--vs-line);
  font-family: var(--vs-font-nhan);
  font-size: var(--vs-co-nhan);
  font-weight: 500;
  line-height: var(--vs-dong-nhan);
  color: var(--vs-muted);
}

.tt-the-doc {
  font-family: var(--vs-font-noi-dung);
  font-size: var(--vs-co-nho);
  font-weight: 600;
  color: var(--vs-action);
}

.tt-dau-trang {
  padding-block: var(--vs-k6);
  background: var(--vs-ice);
  border-bottom: 1px solid var(--vs-line);
}

.tt-duong-dan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--vs-k2);
  margin-bottom: var(--vs-k4);
  font-family: var(--vs-font-nhan);
  font-size: var(--vs-co-nhan);
  font-weight: 500;
  line-height: var(--vs-dong-nhan);
  color: var(--vs-muted);
}

.tt-duong-dan a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--vs-cham-toi-thieu);
  min-height: var(--vs-cham-toi-thieu);
  color: var(--vs-action);
}

.tt-h1 {
  margin-bottom: var(--vs-k3);
  font-size: var(--vs-co-h2);
  line-height: var(--vs-dong-tieu-de);
  color: var(--vs-blue);
}

.tt-mo-ta,
.tt-trong {
  font-family: var(--vs-font-noi-dung);
  font-size: var(--vs-co-noi-dung);
  color: var(--vs-muted);
}

.tt-mo-ta {
  max-width: 60ch;
}

.tt-trong {
  padding: var(--vs-k7);
  text-align: center;
}

@media (min-width: 768px) {
  .tt-dau {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .tt-luoi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tt-the-than {
    padding: var(--vs-k5);
  }

  .tt-dau-trang {
    padding-block: var(--vs-k7);
  }
}

@media (min-width: 1024px) {
  .tt-luoi {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tt-dau-trang {
    padding-block: var(--vs-k8);
  }
}
