/**
 * Card tin — chuyên mục / hub tin (.nh-news-list, .nh-archive-cards).
 * Load sau sunny.css.
 */

/* Gỡ khung .news-section kiểu trang chủ */
.news-hub .nh-feed .news-section.nh-news-list,
.news-hub .nh-feed .news-section.nh-archive-cards,
.news-hub .nh-feed .nh-article-related .news-section.nh-news-list,
.news-hub .nh-feed .nh-article-related .news-section.nh-archive-cards,
.resource-scope .resource-main-section .news-section.nh-news-list,
.resource-scope .resource-main-section .news-section.nh-archive-cards,
.resource-scope .resource-detail-main .nh-article-related .news-section.nh-news-list,
.resource-scope .resource-detail-main .nh-article-related .news-section.nh-archive-cards {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.news-hub .nh-feed .news-section.nh-news-list::before,
.news-hub .nh-feed .news-section.nh-news-list::after,
.news-hub .nh-feed .news-section.nh-archive-cards::before,
.news-hub .nh-feed .news-section.nh-archive-cards::after,
.resource-scope .resource-main-section .news-section.nh-news-list::before,
.resource-scope .resource-main-section .news-section.nh-news-list::after,
.resource-scope .resource-main-section .news-section.nh-archive-cards::before,
.resource-scope .resource-main-section .news-section.nh-archive-cards::after,
.news-hub .nh-feed .nh-article-related .news-section.nh-news-list::before,
.news-hub .nh-feed .nh-article-related .news-section.nh-news-list::after,
.news-hub .nh-feed .nh-article-related .news-section.nh-archive-cards::before,
.news-hub .nh-feed .nh-article-related .news-section.nh-archive-cards::after,
.resource-scope .resource-detail-main .nh-article-related .news-section.nh-news-list::before,
.resource-scope .resource-detail-main .nh-article-related .news-section.nh-news-list::after,
.resource-scope .resource-detail-main .nh-article-related .news-section.nh-archive-cards::before,
.resource-scope .resource-detail-main .nh-article-related .news-section.nh-archive-cards::after {
  display: none !important;
  content: none !important;
}

.news-hub .nh-article-related__head h2,
.resource-scope .nh-article-related__head h2 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  color: #141110;
  letter-spacing: -0.02em;
}

.news-hub .nh-news-list .news-block,
.news-hub .nh-archive-cards .news-block,
.resource-scope .nh-news-list .news-block,
.resource-scope .nh-archive-cards .news-block {
  padding: 0;
}

/* —— Card —— */
.news-hub .nh-news-list .card.news-card,
.news-hub .nh-archive-cards .card.news-card,
.resource-scope .nh-news-list .card.news-card,
.resource-scope .nh-archive-cards .card.news-card {
  position: relative;
  display: flex !important;
  flex-direction: column;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #ecd9cc !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 10px 32px rgba(45, 31, 25, 0.08) !important;
  overflow: hidden;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.news-hub .nh-news-list .card.news-card::before,
.news-hub .nh-archive-cards .card.news-card::before,
.resource-scope .nh-news-list .card.news-card::before,
.resource-scope .nh-archive-cards .card.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 3px;
  background: linear-gradient(90deg, #ff8a15, #ff5d00 60%, #ffb347);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.news-hub .nh-news-list .card.news-card:hover,
.news-hub .nh-archive-cards .card.news-card:hover,
.resource-scope .nh-news-list .card.news-card:hover,
.resource-scope .nh-archive-cards .card.news-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(255, 116, 24, 0.45) !important;
  box-shadow: 0 22px 48px rgba(255, 116, 24, 0.16) !important;
}

.news-hub .nh-news-list .card.news-card:hover::before,
.news-hub .nh-archive-cards .card.news-card:hover::before,
.resource-scope .nh-news-list .card.news-card:hover::before,
.resource-scope .nh-archive-cards .card.news-card:hover::before {
  opacity: 1;
}

/* Ảnh full-width — không inset 12px như trang chủ */
.news-hub .nh-news-list figure.news-card-img,
.news-hub .nh-archive-cards figure.news-card-img,
.resource-scope .nh-news-list figure.news-card-img,
.resource-scope .nh-archive-cards figure.news-card-img {
  display: block;
  flex-shrink: 0;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  aspect-ratio: 16 / 10;
  border-radius: 0 !important;
  background: #fff4eb;
  overflow: hidden;
}

.news-hub .nh-news-list .news-card__img-link,
.news-hub .nh-archive-cards .news-card__img-link,
.resource-scope .nh-news-list .news-card__img-link,
.resource-scope .nh-archive-cards .news-card__img-link {
  display: block !important;
  position: static !important;
  width: 100%;
  height: 100%;
  border-radius: 0 !important;
  text-decoration: none;
}

.news-hub .nh-news-list .news-card-img img,
.news-hub .nh-archive-cards .news-card-img img,
.resource-scope .nh-news-list .news-card-img img,
.resource-scope .nh-archive-cards .news-card-img img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-hub .nh-news-list .news-card:hover .news-card-img img,
.news-hub .nh-archive-cards .news-card:hover .news-card-img img,
.resource-scope .nh-news-list .news-card:hover .news-card-img img,
.resource-scope .nh-archive-cards .news-card:hover .news-card-img img {
  transform: scale(1.05);
}

.news-hub .nh-news-list .news-card-body,
.news-hub .nh-archive-cards .news-card-body,
.resource-scope .nh-news-list .news-card-body,
.resource-scope .nh-archive-cards .news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px !important;
}

.news-hub .nh-news-list .news-meta,
.news-hub .nh-archive-cards .news-meta,
.resource-scope .nh-news-list .news-meta,
.resource-scope .nh-archive-cards .news-meta {
  gap: 8px 12px;
  margin-bottom: 12px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #6f625b !important;
}

.news-hub .nh-news-list .news-category,
.news-hub .nh-archive-cards .news-category,
.resource-scope .nh-news-list .news-category,
.resource-scope .nh-archive-cards .news-category {
  min-height: 26px;
  padding: 0 11px !important;
  color: #b84e00 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fff4eb !important;
  border: 1px solid rgba(255, 116, 24, 0.32) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

.news-hub .nh-news-list .news-date,
.news-hub .nh-archive-cards .news-date,
.resource-scope .nh-news-list .news-date,
.resource-scope .nh-archive-cards .news-date {
  gap: 5px;
  color: #8a7d76 !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
}

.news-hub .nh-news-list .news-date i,
.news-hub .nh-archive-cards .news-date i,
.resource-scope .nh-news-list .news-date i,
.resource-scope .nh-archive-cards .news-date i {
  color: #ff8a15;
  font-size: 13px;
}

.news-hub .nh-news-list .news-card h3,
.news-hub .nh-archive-cards .news-card h3,
.resource-scope .nh-news-list .news-card h3,
.resource-scope .nh-archive-cards .news-card h3 {
  margin: 0 !important;
  font-size: clamp(16px, 1.25vw, 19px) !important;
  line-height: 1.38 !important;
  font-weight: 600 !important;
  color: #141110 !important;
}

.news-hub .nh-news-list .news-card h3 .news-card__title-link,
.news-hub .nh-archive-cards .news-card h3 .news-card__title-link,
.resource-scope .nh-news-list .news-card h3 .news-card__title-link,
.resource-scope .nh-archive-cards .news-card h3 .news-card__title-link {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #141110 !important;
  text-decoration: none;
}

.news-hub .nh-news-list .news-card h3 .news-card__title-link:hover,
.news-hub .nh-archive-cards .news-card h3 .news-card__title-link:hover,
.resource-scope .nh-news-list .news-card h3 .news-card__title-link:hover,
.resource-scope .nh-archive-cards .news-card h3 .news-card__title-link:hover {
  color: var(--sunny, #ff7418) !important;
}

.news-hub .nh-news-list .news-card-excerpt,
.news-hub .nh-news-list .news-card p,
.news-hub .nh-archive-cards .news-card-excerpt,
.news-hub .nh-archive-cards .news-card p,
.resource-scope .nh-news-list .news-card-excerpt,
.resource-scope .nh-news-list .news-card p,
.resource-scope .nh-archive-cards .news-card-excerpt,
.resource-scope .nh-archive-cards .news-card p {
  margin: 10px 0 0 !important;
  color: #5c5552 !important;
  font-size: 13.5px !important;
  line-height: 1.58 !important;
  font-weight: 400 !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.news-hub .nh-news-list .news-card-footer,
.news-hub .nh-archive-cards .news-card-footer,
.resource-scope .nh-news-list .news-card-footer,
.resource-scope .nh-archive-cards .news-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f0e4dc;
}

.news-hub .nh-news-list .news-link--cta,
.news-hub .nh-news-list .news-link,
.news-hub .nh-archive-cards .news-link--cta,
.news-hub .nh-archive-cards .news-link,
.resource-scope .nh-news-list .news-link--cta,
.resource-scope .nh-news-list .news-link,
.resource-scope .nh-archive-cards .news-link--cta,
.resource-scope .nh-archive-cards .news-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 16px 0 0 !important;
  padding: 16px 0 0 !important;
  border-top: 1px solid #f0e4dc;
  color: #141110 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.news-hub .nh-news-list .news-card-footer .news-link,
.news-hub .nh-archive-cards .news-card-footer .news-link,
.resource-scope .nh-news-list .news-card-footer .news-link,
.resource-scope .nh-archive-cards .news-card-footer .news-link {
  margin: 0 !important;
  padding: 0 !important;
  border-top: none;
}

.news-hub .nh-news-list .news-link--cta:hover,
.news-hub .nh-news-list .news-link:hover,
.news-hub .nh-archive-cards .news-link--cta:hover,
.news-hub .nh-archive-cards .news-link:hover,
.resource-scope .nh-news-list .news-link--cta:hover,
.resource-scope .nh-news-list .news-link:hover,
.resource-scope .nh-archive-cards .news-link--cta:hover,
.resource-scope .nh-archive-cards .news-link:hover {
  color: var(--sunny, #ff7418) !important;
}

.news-hub .nh-news-list .news-link--cta .news-link__icon,
.news-hub .nh-archive-cards .news-link--cta .news-link__icon,
.resource-scope .nh-news-list .news-link--cta .news-link__icon,
.resource-scope .nh-archive-cards .news-link--cta .news-link__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff !important;
  font-size: 14px;
  background: linear-gradient(135deg, #ff8a15, #ff5d00) !important;
  box-shadow: 0 5px 14px rgba(255, 93, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-hub .nh-news-list .news-link:not(.news-link--cta) svg,
.news-hub .nh-archive-cards .news-link:not(.news-link--cta) svg,
.resource-scope .nh-news-list .news-link:not(.news-link--cta) svg,
.resource-scope .nh-archive-cards .news-link:not(.news-link--cta) svg {
  display: none !important;
}

.news-hub .nh-news-list .news-link:not(.news-link--cta)::after,
.news-hub .nh-archive-cards .news-link:not(.news-link--cta)::after,
.resource-scope .nh-news-list .news-link:not(.news-link--cta)::after,
.resource-scope .nh-archive-cards .news-link:not(.news-link--cta)::after {
  content: "\F138";
  font-family: "bootstrap-icons";
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(135deg, #ff8a15, #ff5d00);
  box-shadow: 0 5px 14px rgba(255, 93, 0, 0.3);
}

.news-hub .nh-news-list .news-grid,
.news-hub .nh-archive-cards .news-grid,
.resource-scope .nh-news-list .news-grid,
.resource-scope .nh-archive-cards .news-grid {
  --bs-gutter-y: 1.5rem;
  --bs-gutter-x: 1.5rem;
}

@media (max-width: 767.98px) {
  .news-hub .nh-news-list .news-card-body,
  .news-hub .nh-archive-cards .news-card-body,
  .resource-scope .nh-news-list .news-card-body,
  .resource-scope .nh-archive-cards .news-card-body {
    padding: 14px 16px 16px !important;
  }

  .news-hub .nh-news-list figure.news-card-img,
  .news-hub .nh-archive-cards figure.news-card-img,
  .resource-scope .nh-news-list figure.news-card-img,
  .resource-scope .nh-archive-cards figure.news-card-img {
    aspect-ratio: 16 / 9;
  }
}
