/* =========================================================================
   News hub + category pages — matches toyota.com.vn /tin-tuc/ layout.
   ========================================================================= */

.tdt-news-hub { background: #fff; padding: 40px 0 80px; }
.tdt-news-hub__container {
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Category tabs */
.tdt-news-hub__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid #E5E5E5;
  margin-bottom: 40px;
}
.tdt-news-hub__tab {
  padding: 14px 24px;
  margin-bottom: -1px;
  font-size: 14px;
  font-weight: 600;
  color: #808080;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  letter-spacing: 0.04em;
  transition: color .2s, border-color .2s;
}
.tdt-news-hub__tab:hover { color: #EB0A1E; }
.tdt-news-hub__tab.is-active {
  color: #EB0A1E;
  border-bottom-color: #EB0A1E;
}

/* Main section title */
.tdt-news-hub__title {
  font-family: 'Toyota Type', 'Toyota Type Book', Inter, system-ui, sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: #1A1A1A;
  text-transform: uppercase;
  margin: 0 0 32px;
  text-align: center;
  letter-spacing: 0.04em;
}

/* Sub-section label (Tin nổi bật / Tin tức) */
.tdt-news-hub__subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #EB0A1E;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 3px solid #EB0A1E;
  line-height: 1;
  padding-top: 2px;
  padding-bottom: 2px;
}

/* Featured block */
.tdt-news-hub__featured { margin-bottom: 56px; }
.tdt-news-hub__featured-grid { position: relative; }
.tdt-news-hub__featured-main {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  text-decoration: none;
}
.tdt-news-hub__featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.tdt-news-hub__featured-main:hover .tdt-news-hub__featured-img { transform: scale(1.02); }
.tdt-news-hub__featured-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 32px;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.7) 100%);
}
.tdt-news-hub__featured-title {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  margin: 0;
}

/* News grid */
.tdt-news-hub__list { margin-bottom: 48px; }
.tdt-news-hub__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tdt-news-hub__card { background: #fff; }
.tdt-news-hub__card-img {
  display: block;
  aspect-ratio: 16/10;
  background: #F5F5F5;
  overflow: hidden;
}
.tdt-news-hub__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.tdt-news-hub__card:hover .tdt-news-hub__card-img img { transform: scale(1.04); }

.tdt-news-hub__card-body { padding: 16px 0; }
.tdt-news-hub__card-meta {
  font-size: 12px;
  color: #808080;
  margin-bottom: 8px;
}
.tdt-news-hub__card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
}
.tdt-news-hub__card-title a {
  color: #1A1A1A;
  text-decoration: none;
}
.tdt-news-hub__card-title a:hover { color: #EB0A1E; }

.tdt-news-hub__empty {
  text-align: center;
  color: #808080;
  padding: 48px 0;
}

/* Pagination */
.tdt-news-hub__pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.tdt-news-hub__pagination .page-numbers {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  color: #1A1A1A;
  text-decoration: none;
  font-size: 14px;
}
.tdt-news-hub__pagination .page-numbers:hover { color: #EB0A1E; }
.tdt-news-hub__pagination .page-numbers.current {
  background: #EB0A1E;
  color: #fff;
}

@media (max-width: 1024px) {
  .tdt-news-hub__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .tdt-news-hub { padding: 24px 0 48px; }
  .tdt-news-hub__tab { padding: 10px 14px; font-size: 12px; }
  .tdt-news-hub__title { font-size: 22px; }
  .tdt-news-hub__grid { grid-template-columns: 1fr; }
  .tdt-news-hub__featured-main { aspect-ratio: 16/10; }
  .tdt-news-hub__featured-title { font-size: 16px; }
  .tdt-news-hub__featured-overlay { padding: 16px; }
}
