/* Trang Tin tức theo bố cục blog Anika: danh sách cột lớn + thanh bên, bài viết cột đọc căn giữa */

.tv-blog__container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 30px;
  box-sizing: border-box;
}

/* ===== Danh sách ===== */
.tv-blog {
  padding-block: 150px 120px;
  background-color: var(--tv-kem);
}

.tv-blog__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 80px;
  align-items: start;
}

/* Bài nổi bật: ảnh trái, chữ phải */
.tv-blog-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--tv-vien);
}

.tv-blog-thumb {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 740 / 480;
  background: var(--tv-hong-phan);
}

.tv-blog-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tv-blog-featured:hover .tv-blog-thumb img,
.tv-blog-card:hover .tv-blog-thumb img {
  transform: scale(1.05);
}

.tv-blog-featured .entry-title {
  margin: 18px 0 16px;
  font-family: var(--tv-font-tieu-de);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.3vw, 2.4rem);
  line-height: 1.2;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-blog-featured .excerpt-content {
  margin: 0 0 26px;
  color: var(--tv-chu);
  font-size: 15px;
  line-height: 1.7;
}

/* Lưới bài con: 3 cột, thiếu 3 bài thì 2 cột */
.tv-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 30px;
}

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

.tv-blog-card {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.tv-blog-card .post-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding-top: 22px;
}

.tv-blog-card .tv-blog-meta {
  justify-content: center;
}

.tv-blog-card .entry-title {
  margin: 12px 0 18px;
  font-family: var(--tv-font-tieu-de);
  font-weight: 300;
  font-size: clamp(1.1rem, 1.35vw, 1.35rem);
  line-height: 1.3;
  text-transform: uppercase;
}

.tv-blog-card .tv-blog-more {
  margin-top: auto;
}

.tv-blog-featured .entry-title a,
.tv-blog-card .entry-title a {
  color: var(--tv-nau-toi);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tv-blog-featured .entry-title a:hover,
.tv-blog-card .entry-title a:hover {
  color: var(--tv-nau);
}

/* Dòng meta: NGÀY • CHUYÊN MỤC */
.tv-blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-family: var(--tv-font-noi-dung);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tv-chu-mo);
}

.tv-blog-meta a {
  color: var(--tv-nau);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tv-blog-meta a:hover {
  color: var(--tv-do);
}

.tv-blog-meta__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tv-vang-dong);
}

.tv-blog-meta--center {
  justify-content: center;
}

/* Liên kết "Đọc tiếp →" gạch chân */
.tv-blog-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-family: var(--tv-font-noi-dung);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tv-nau-toi);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tv-blog-more i {
  font-size: 10px;
  transition: transform 0.25s ease;
}

.tv-blog-more:hover {
  color: var(--tv-do);
}

.tv-blog-more:hover i {
  transform: translateX(3px);
}

.tv-blog-filter-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--tv-vien);
}

.tv-blog-filter-note p {
  margin: 0;
  font-family: var(--tv-font-tieu-de);
  font-weight: 300;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--tv-nau-toi);
}

.tv-blog-filter-note a {
  font-size: 13px;
  font-weight: 600;
  color: var(--tv-nau);
}

.tv-blog-empty {
  padding: 48px 32px;
  border-radius: 12px;
  background: var(--tv-hong-phan);
  text-align: center;
  color: var(--tv-chu);
}

/* Phân trang tròn */
.tv-blog-pagination {
  margin-top: 56px;
}

.tv-blog-pagination ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tv-blog-pagination a,
.tv-blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--tv-vien);
  font-family: var(--tv-font-noi-dung);
  font-size: 15px;
  font-weight: 600;
  color: var(--tv-nau-toi);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tv-blog-pagination a:hover {
  border-color: var(--tv-nau);
}

.tv-blog-pagination .is-current {
  background: var(--tv-nau-toi);
  border-color: var(--tv-nau-toi);
  color: #fff;
}

.tv-blog-pagination__nav i {
  font-size: 12px;
}

.tv-blog-pagination__nav.is-prev i {
  transform: rotate(180deg);
}

/* ===== Thanh bên ===== */
.tv-blog-sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.tv-blog-widget__title {
  margin: 0 0 22px;
  font-family: var(--tv-font-tieu-de);
  font-weight: 300;
  font-size: 2rem;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--tv-nau-toi);
}

.tv-blog-search {
  display: flex;
  align-items: center;
  border-radius: 10px;
  background: var(--tv-hong-phan);
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.tv-blog-search:focus-within {
  border-color: var(--tv-vang-dong);
}

.tv-blog-search input {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 0 0 22px;
  border: 0;
  background: transparent;
  font-family: var(--tv-font-noi-dung);
  font-size: 14px;
  color: var(--tv-nau-toi);
  outline: none;
}

.tv-blog-search input::placeholder {
  color: var(--tv-chu-mo);
}

.tv-blog-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tv-nau-toi);
  cursor: pointer;
}

.tv-blog-search button:hover {
  color: var(--tv-do);
}

.tv-blog-cats {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tv-blog-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--tv-vien);
  font-family: var(--tv-font-noi-dung);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--tv-nau-toi);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.25s ease;
}

.tv-blog-cats li:first-child a {
  padding-top: 0;
}

.tv-blog-cats a:hover,
.tv-blog-cats a.is-active {
  color: var(--tv-do);
  padding-left: 6px;
}

.tv-blog-cats__count {
  min-width: 28px;
  font-size: 12px;
  color: var(--tv-chu-mo);
  text-align: right;
}

.tv-blog-recent {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tv-blog-recent li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--tv-vien);
}

.tv-blog-recent li:last-child {
  margin-bottom: 0;
}

.tv-blog-recent__thumb {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
}

.tv-blog-recent__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tv-blog-recent li:hover .tv-blog-recent__thumb img {
  transform: scale(1.08);
}

.tv-blog-recent time {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tv-chu-mo);
}

.tv-blog-recent h3 {
  margin: 6px 0 0;
  font-family: var(--tv-font-noi-dung);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.tv-blog-recent h3 a {
  color: var(--tv-nau-toi);
  text-decoration: none;
}

.tv-blog-recent h3 a:hover {
  color: var(--tv-do);
}

.tv-blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tv-blog-tags a {
  display: inline-flex;
  padding: 6px 14px;
  border: 1px solid var(--tv-vien);
  border-radius: 999px;
  font-size: 13px;
  color: var(--tv-chu);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tv-blog-tags a:hover,
.tv-blog-tags a.is-active {
  background: var(--tv-nau-toi);
  border-color: var(--tv-nau-toi);
  color: #fff;
}

/* ===== Chi tiết bài viết ===== */
.tv-tieu-de-trang--compact .elementor-122 .elementor-element.elementor-element-2f366f9 {
  min-height: 310px;
  --min-height: 310px;
  padding-top: 150px;
  padding-bottom: 60px;
}

.tv-tieu-de-trang--compact .breadcrumb-listItem {
  margin-top: 0;
}

.tv-post {
  padding-block: 120px 100px;
  background-color: var(--tv-kem);
}

.tv-post__header {
  max-width: 1020px;
  text-align: center;
}

.tv-post__title {
  margin: 24px 0 0;
  font-family: var(--tv-font-tieu-de);
  font-weight: 300;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--tv-nau-toi);
}

.tv-post__cover {
  margin: 64px auto 0;
}

.tv-post__cover img {
  display: block;
  width: 100%;
  aspect-ratio: 1380 / 770;
  object-fit: cover;
  border-radius: 14px;
}

.tv-post__body {
  max-width: 990px;
  margin: 56px auto 0;
  padding-inline: 30px;
  box-sizing: border-box;
}

.tv-post__lead {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--tv-nau-toi);
}

.tv-post__prose {
  color: var(--tv-chu);
  font-size: 15px;
  line-height: 1.8;
}

.tv-post__prose p {
  margin: 0 0 1.4em;
}

.tv-post__prose h2,
.tv-post__prose h3 {
  margin: 1.8em 0 0.6em;
  font-family: var(--tv-font-tieu-de);
  font-weight: 300;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--tv-nau-toi);
}

.tv-post__prose h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
}

.tv-post__prose h3 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.tv-post__prose ul {
  margin: 0 0 1.4em;
  padding-left: 0;
  list-style: none;
}

.tv-post__prose li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 0.6em;
}

.tv-post__prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.75em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tv-vang-dong);
}

.tv-post__prose blockquote {
  position: relative;
  margin: 2.2em 0;
  padding: 36px 40px 36px 108px;
  border-radius: 12px;
  background: var(--tv-hong-phan);
}

.tv-quote-mark {
  position: absolute;
  left: 40px;
  top: 22px;
  font-family: var(--tv-font-tieu-de);
  font-size: 88px;
  line-height: 1;
  color: var(--tv-vang-dong);
}

.tv-post__prose blockquote p {
  margin: 0;
  font-family: var(--tv-font-tieu-de);
  font-weight: 300;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--tv-nau-toi);
}

.tv-post__prose blockquote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 14px;
  color: var(--tv-chu-mo);
}

.tv-post-figure {
  margin: 2em 0;
}

.tv-post-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.tv-post-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--tv-chu-mo);
  text-align: center;
}

.tv-post__updated {
  margin: 0;
  font-size: 13px;
  color: var(--tv-chu-mo);
}

.tv-post__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--tv-vien);
}

.tv-post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 13px;
}

.tv-post-share__title {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tv-nau-toi);
  font-size: 12px;
}

.tv-post-share a,
.tv-post-share__copy {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--tv-nau);
  text-decoration: none;
  cursor: pointer;
}

.tv-post-share a:hover,
.tv-post-share__copy:hover {
  color: var(--tv-do);
}

/* Bài trước / bài sau */
.tv-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-block: 40px;
  border-bottom: 1px solid var(--tv-vien);
}

.tv-post-nav__item {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
}

.tv-post-nav__item.is-next {
  flex-direction: row-reverse;
  text-align: right;
}

.tv-post-nav__item img {
  flex: 0 0 110px;
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
}

.tv-post-nav__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tv-chu-mo);
}

.tv-post-nav__item.is-prev .tv-post-nav__label::before {
  content: "‹";
  font-size: 15px;
}

.tv-post-nav__item.is-next .tv-post-nav__label {
  justify-content: flex-end;
}

.tv-post-nav__item.is-next .tv-post-nav__label::after {
  content: "›";
  font-size: 15px;
}

.tv-post-nav__title {
  display: block;
  margin-top: 8px;
  font-family: var(--tv-font-tieu-de);
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--tv-nau-toi);
  transition: color 0.2s ease;
}

.tv-post-nav__item:hover .tv-post-nav__title {
  color: var(--tv-do);
}

/* Bài liên quan (section bai-viet-luoi) */
.tv-news-related {
  background-color: var(--tv-hong-phan);
}

.tv-news-related .post-meta-group {
  flex-wrap: wrap;
  gap: 4px 8px;
}

html[lang="en"] .tv-news-related .entry-button .elementor-button-text {
  display: none;
}

html[lang="en"] .tv-news-related .entry-button .elementor-button-content-wrapper::before {
  content: "Read article";
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .tv-blog__layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
  }

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

@media (max-width: 1024px) {
  .tv-blog {
    padding-block: 90px 80px;
  }

  .tv-blog__layout {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .tv-blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .tv-blog-widget--search {
    grid-column: 1 / -1;
  }

  .tv-post {
    padding-block: 80px 72px;
  }
}

@media (max-width: 767px) {
  .tv-blog__container,
  .tv-post__body {
    padding-inline: 16px;
  }

  .tv-blog {
    padding-block: 56px 64px;
  }

  .tv-blog-featured {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 40px;
    margin-bottom: 40px;
  }

  .tv-blog-grid,
  .tv-blog-grid--2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tv-blog-sidebar {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .tv-blog-widget__title {
    font-size: 1.6rem;
  }

  .tv-tieu-de-trang--compact .elementor-122 .elementor-element.elementor-element-2f366f9 {
    min-height: 220px;
    --min-height: 220px;
    padding-top: 110px;
    padding-bottom: 36px;
  }

  .tv-tieu-de-trang--compact .hfe-breadcrumbs-last,
  .tv-tieu-de-trang--compact .breadcrumbs-separator:has(+ .hfe-breadcrumbs-last) {
    display: none;
  }

  .tv-tieu-de-trang .anika-title {
    font-size: clamp(1.45rem, 5.5vw, 2.2rem) !important;
    line-height: 1.24 !important;
  }

  .tv-post {
    padding-block: 56px 56px;
  }

  .tv-post__cover {
    margin-top: 36px;
  }

  .tv-post__body {
    margin-top: 36px;
  }

  .tv-post__lead {
    font-size: 16px;
  }

  .tv-post__prose blockquote {
    padding: 64px 22px 24px;
  }

  .tv-quote-mark {
    left: 22px;
    top: 12px;
    font-size: 64px;
  }

  .tv-post-nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tv-post-nav__title {
    font-size: 1rem;
  }

  .tv-post-nav__item img {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }
}
