/* ================================================================
   TRANG CHI TIẾT TIN TỨC  —  layout tham khảo autobike-light
================================================================ */

/* ================================================================
   TRANG DANH SÁCH TIN TỨC  —  layout 2 cột
================================================================ */
.news-list-banner {
  position: relative;
  background-color: #1a1a1a;
  color: #fff;
  padding: 90px 0 70px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 260px;
}
.news-list-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.75));
}
.news-list-banner .vlb-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  text-align: center;
  margin: 0 auto;
}
.news-list-banner .vlb-breadcrumb { font-size: 14px; margin-bottom: 14px; color: #ddd; }
.news-list-banner .vlb-breadcrumb a { color: #ddd; text-decoration: none; }
.news-list-banner .vlb-breadcrumb a:hover { color: #ff2626; }
.news-list-banner .vlb-breadcrumb span { margin: 0 6px; color: #888; }
.news-list-banner .vlb-breadcrumb strong { color: #ff2626; }
.news-list-banner .vlb-title {
  font-size: 40px; margin: 0 0 12px; text-transform: uppercase; line-height: 1.2; color: #fff;
}
.news-list-banner .vlb-meta { font-size: 14px; color: #ccc; }
.news-list-banner .vlb-count { color: #ff2626; font-weight: 700; font-size: 22px; margin-right: 6px; }

/* Grid 2 cột */
.news-list-section { padding: 50px 0 30px; }
.news-list-section > .container-fluid { max-width: 1200px; margin: 0 auto; }
.nl-empty { text-align: center; padding: 60px 20px; color: #777; }

.nl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.nl-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.nl-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  transform: translateY(-3px);
}
.nl-img {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.nl-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.nl-card:hover .nl-img img { transform: scale(1.08); }
.nl-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.nl-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.nl-meta i { color: #ff2626; }
.nl-meta .nl-sep { color: #ccc; }
.nl-title {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 12px;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 56px;
}
.nl-title a { color: #121212; text-decoration: none; transition: color .2s; }
.nl-title a:hover { color: #ff2626; }
.nl-summary {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}
.nl-readmore {
  font-size: 13px;
  letter-spacing: .5px;
  color: #ff2626;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .25s;
}
.nl-readmore:hover { gap: 12px; color: #c80000; }
.nl-readmore i { font-size: 12px; }

/* Pagination */
.nl-pager {
  display: flex;
  justify-content: center;
  margin: 40px 0 20px;
}
.nl-pager ul {
  display: flex;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.nl-pager li a,
.nl-pager li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #444;
  text-decoration: none;
  border-radius: 3px;
  font-size: 14px;
  transition: all .2s;
}
.nl-pager li a:hover { background: #ff2626; color: #fff; border-color: #ff2626; }
.nl-pager li.active span { background: #ff2626; color: #fff; border-color: #ff2626; font-weight: 600; }

/* Responsive */
@media (max-width: 991px) {
  .news-list-banner .vlb-title { font-size: 30px; }
  .nl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .nl-title { font-size: 19px; min-height: 49px; }
}
@media (max-width: 600px) {
  .news-list-banner { padding: 60px 16px 50px; min-height: 200px; }
  .news-list-banner .vlb-title { font-size: 22px; }
  .news-list-section { padding: 30px 16px 20px; }
  .nl-grid { grid-template-columns: 1fr; gap: 18px; }
  .nl-title { min-height: 0; }
}

/* ================================================================
   TRANG CHI TIẾT TIN TỨC  —  layout tham khảo autobike-light
================================================================ */

/* ---------- BANNER TOP ---------- */
.news-detail-banner {
  position: relative;
  background-color: #1a1a1a;
  color: #fff;
  padding: 90px 0 70px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 260px;
  margin-top: 0;
}
.news-detail-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.75));
}
.news-detail-banner .vlb-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  text-align: center;
  margin: 0 auto;
}
.news-detail-banner .vlb-breadcrumb {
  font-size: 14px;
  margin-bottom: 14px;
  color: #ddd;
}
.news-detail-banner .vlb-breadcrumb a {
  color: #ddd;
  text-decoration: none;
}
.news-detail-banner .vlb-breadcrumb a:hover { color: #ff2626; }
.news-detail-banner .vlb-breadcrumb span { margin: 0 6px; color: #888; }
.news-detail-banner .vlb-breadcrumb strong { color: #ff2626; }
.news-detail-banner .vlb-title {
  font-size: 36px;
  margin: 0 0 18px 0;
  text-transform: uppercase;
  line-height: 1.3;
  color: #fff;
}
.news-detail-banner .nd-meta {
  font-size: 14px;
  color: #ddd;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.news-detail-banner .nd-meta i { color: #ff2626; }
.news-detail-banner .nd-meta .sep { color: #666; }

/* ---------- MAIN CONTENT ---------- */
.news-detail-section {
  padding: 50px 0 40px;
}
.news-detail-section > .container-fluid {
  max-width: 920px;
  margin: 0 auto;
}

/* Featured image */
.nd-featured {
  width: 100%;
  margin-bottom: 30px;
  text-align: center;
}
.nd-featured img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

/* Summary */
.nd-summary {
  font-size: 18px;
  line-height: 1.6;
  color: #121212;
  border-left: 4px solid #ff2626;
  padding: 4px 0 4px 16px;
  margin-bottom: 28px;
  font-style: italic;
}

/* Body content */
.nd-body {
  font-size: 16px;
  line-height: 1.75;
  color: #333;
}
.nd-body p { margin: 0 0 18px; }
.nd-body h2 {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 26px;
  color: #121212;
  text-transform: uppercase;
  margin: 36px 0 16px;
  line-height: 1.3;
}
.nd-body h3 {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #121212;
  margin: 28px 0 14px;
}
.nd-body img,
.nd-body iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 22px auto;
  border-radius: 4px;
}
.nd-body blockquote {
  border-left: 4px solid #ff2626;
  background: #f6f6f6;
  padding: 22px 26px;
  margin: 26px 0;
  font-style: italic;
  font-size: 18px;
  color: #444;
}
.nd-body blockquote p { margin: 0 0 8px; }
.nd-body blockquote cite,
.nd-body blockquote footer {
  display: block;
  font-style: normal;
  font-size: 14px;
  color: #ff2626;
  font-weight: 600;
  margin-top: 10px;
}
.nd-body ul,
.nd-body ol {
  padding-left: 24px;
  margin: 0 0 22px;
}
.nd-body li { margin-bottom: 10px; }
.nd-body strong { color: #121212; }
.nd-body a { color: #ff2626; text-decoration: none; }
.nd-body a:hover { text-decoration: underline; }

/* Footer: Tags + Share */
.nd-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  padding: 22px 0;
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
}
.nd-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nd-tags i { color: #ff2626; margin-right: 4px; }
.nd-tags a {
  font-size: 13px;
  text-transform: uppercase;
  color: #555;
  background: #f3f3f3;
  padding: 5px 12px;
  border-radius: 3px;
  text-decoration: none;
  transition: all .2s;
}
.nd-tags a:hover { background: #ff2626; color: #fff; }
.nd-share {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nd-share .share-label {
  font-size: 14px;
  color: #555;
  margin-right: 4px;
}
.nd-share a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #f3f3f3;
  color: #555;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all .25s;
  font-size: 14px;
}
.nd-share .share-fb:hover { background: #1877f2; color: #fff; }
.nd-share .share-tw:hover { background: #1da1f2; color: #fff; }
.nd-share .share-ln:hover { background: #0a66c2; color: #fff; }
.nd-share .share-cp:hover { background: #ff2626; color: #fff; }

/* ---------- RELATED POSTS ---------- */
.news-detail-related {
  padding: 30px 0 60px;
}
.news-detail-related .container-fluid:not(.section-title-container) {
  max-width: 1200px;
  margin: 0 auto;
}
.ndr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.ndr-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: box-shadow .25s, transform .25s;
  display: flex;
  flex-direction: column;
}
.ndr-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  transform: translateY(-3px);
}
.ndr-img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.ndr-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.ndr-card:hover .ndr-img img { transform: scale(1.08); }
.ndr-info {
  padding: 16px 18px 18px;
}
.ndr-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}
.ndr-date i { color: #ff2626; }
.ndr-title {
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
  text-transform: uppercase;
  /* clamp 3 dòng */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ndr-title a {
  color: #121212;
  text-decoration: none;
  transition: color .2s;
}
.ndr-title a:hover { color: #ff2626; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
  .news-detail-banner .vlb-title { font-size: 28px; }
  .nd-body { font-size: 15px; }
  .ndr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .news-detail-banner { padding: 60px 16px 50px; min-height: 200px; }
  .news-detail-banner .vlb-title { font-size: 22px; }
  .news-detail-banner .nd-meta { font-size: 13px; gap: 6px; }
  .news-detail-banner .nd-meta .sep { display: none; }
  .news-detail-section { padding: 30px 16px 20px; }
  .nd-summary { font-size: 16px; }
  .nd-body h2 { font-size: 22px; }
  .nd-body h3 { font-size: 18px; }
  .nd-footer { flex-direction: column; align-items: flex-start; }
  .ndr-grid { grid-template-columns: 1fr; gap: 20px; }
  .news-detail-related { padding: 20px 16px 40px; }
}
