/* ==========================================================================
   DABACO OIL - News Listing Page Stylesheet
   Applies to /vi/tin-tuc and /en/news.
   Brand Colors: Dabaco Blue (#1D75BD) and Dabaco Orange (#F15A29).
   Typography: Harmonized fs/fw scale matching article detail and standard headings.
   Sidebar: Shares identical component styles from article.css.
   ========================================================================== */

.news-page-root {
  background-color: #faf9f6;
  min-height: 85vh;
  padding-bottom: 0;

}

.news-page-root h1 {
  font-size: var(--fs-h1);
}

.news-page-root h2 {
  font-size: var(--fs-h2);
}

/* ==========================================================================
   DYNAMIC PAGE BANNER & CAROUSEL (API type: tin-tuc)
   ========================================================================== */
.news-page-root .page-banner {
  width: 100%;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: #f8fafc;
}

.news-page-root .page-banner__image {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.news-page-root .page-banner__prev,
.news-page-root .page-banner__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--dabaco-orange, #f15a24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--dabaco-orange, #f15a24);
  font-size: var(--fs-h2);
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.news-page-root .page-banner__prev { left: 24px; }
.news-page-root .page-banner__next { right: 24px; }

.news-page-root .page-banner__prev:hover,
.news-page-root .page-banner__next:hover {
  background: var(--dabaco-orange, #f15a24);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.news-page-root .page-banner__indicators {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.news-page-root .page-banner__indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: var(--dabaco-orange, #f15a24);
  opacity: 0.45;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-page-root .page-banner__indicators .active {
  width: 32px;
  opacity: 1;
}

/* ==========================================================================
   0. TOP HERO BANNER FALLBACK (Sleek, Proportional, Balanced Height)
   ========================================================================== */
.news-hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 185px;
  display: flex;
  align-items: center;
  background: #0b1a30;
}

.news-hero-banner__bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.news-hero-banner__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  transform: translate3d(0, var(--hero-parallax, 0), 0) scale(1.05);
  transition: transform 0.1s linear;
  will-change: transform;
}

.news-hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 26, 48, 0.92) 0%, rgba(29, 117, 189, 0.80) 55%, rgba(11, 20, 36, 0.90) 100%);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

.news-hero-banner__container {
  position: relative;
  z-index: 2;
  padding-top: 1.85rem;
  padding-bottom: 2rem;
}

.news-hero-banner__content {
  max-width: 720px;
}

.news-hero-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(241, 90, 41, 0.22);
  border: 1.5px solid rgba(241, 90, 41, 0.85);
  color: #ffffff;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 9px;
  box-shadow: 0 0 14px rgba(241, 90, 41, 0.28);
  animation: badgePopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.news-hero-banner__badge svg {
  color: var(--dabaco-orange);
  fill: currentColor;
}

.news-hero-banner__title {
  font-family: var(--do-font-heading, "Be Vietnam Pro", system-ui, sans-serif);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  animation: titleSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
}

.news-hero-banner__lead {
  font-size: var(--fs-body);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  animation: leadFadeIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

/* ==========================================================================
   UNIFIED HEADER NAVIGATION (Breadcrumb + Capsule Category Pills in ONE Bar)
   Replaces the separate chopped-up white bars.
   ========================================================================== */

/* Sticky Glassmorphism State on Scroll */

.news-category-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 8px 2px;
}

.news-category-pills::-webkit-scrollbar {
  height: 5px;
}

.news-category-pills::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}

.news-category-pills::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.news-category-pills::-webkit-scrollbar-thumb:hover {
  background: #00609C;
}

.news-cat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 24px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-family: var(--do-font-heading, "Be Vietnam Pro", system-ui, sans-serif);
  font-size: var(--fs-body);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  user-select: none;
  cursor: pointer;
  line-height: 1.4;
}

.news-cat-pill:hover {
  border-color: #cbd5e1;
  color: #1e293b;
  background: #f8fafc;
  transform: translateY(-1px);
  text-decoration: none;
}

.news-cat-pill.is-active {
  background: #00609C;
  border-color: #00609C;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 96, 156, 0.25);
}

.news-cat-pill.is-active:hover {
  background: #025783;
  border-color: #025783;
  color: #ffffff;
  transform: translateY(-1px);
  text-decoration: none;
}

.news-cat-pill__name {
  line-height: 1;
}

/* Section Header styling */
.news-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1rem;
}

.news-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-indicator-bar {
  display: inline-block;
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background-color: var(--dabaco-orange);
  flex-shrink: 0;
}

.news-section-title {
  font-family: var(--do-font-heading, "Be Vietnam Pro", system-ui, sans-serif);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 0;
}

.news-page-root .news-breadcrumb,
.news-page-root .article-breadcrumb-bar {
  background: transparent;
  border-bottom: none;
  padding: var(--space-5, 1.25rem) 0 0;
  margin-bottom: 0;
}

.news-page-root .news-breadcrumb .breadcrumb-dabaco,
.news-page-root .article-breadcrumb-bar .breadcrumb-dabaco {
  font-size: var(--text-small-size, 0.875rem);
  line-height: 1.5;
  margin: 0;
}

.news-page-root .news-breadcrumb .breadcrumb-dabaco__list,
.news-page-root .article-breadcrumb-bar .breadcrumb-dabaco__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-page-root .news-breadcrumb .breadcrumb-dabaco__item,
.news-page-root .article-breadcrumb-bar .breadcrumb-dabaco__item {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: #64748b;
  font-size: var(--fs-small);
  line-height: 1.45;
}

.news-page-root .news-breadcrumb .breadcrumb-dabaco__item:not(:first-child)::before,
.news-page-root .article-breadcrumb-bar .breadcrumb-dabaco__item:not(:first-child)::before {
  content: "›";
  color: #94a3b8;
  font-size: 1em;
  line-height: 1;
  height: 1.45em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  margin: 0 1px 0 0;
  flex-shrink: 0;
  transform: translateY(-1.5px);
}

.news-page-root .news-breadcrumb .breadcrumb-dabaco__item a,
.news-page-root .article-breadcrumb-bar .breadcrumb-dabaco__item a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.18s ease;
}

.news-page-root .news-breadcrumb .breadcrumb-dabaco__item a:hover,
.news-page-root .article-breadcrumb-bar .breadcrumb-dabaco__item a:hover {
  color: var(--dabaco-orange);
}

.news-page-root .news-breadcrumb .breadcrumb-home-icon,
.news-page-root .article-breadcrumb-bar .breadcrumb-home-icon {
  width: 15px;
  height: 15px;
  color: #64748b;
  stroke: currentColor;
  stroke-width: 1.8;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  margin-top: -1px;
}

.news-page-root .news-breadcrumb .breadcrumb-dabaco__item a:hover .breadcrumb-home-icon,
.news-page-root .article-breadcrumb-bar .breadcrumb-dabaco__item a:hover .breadcrumb-home-icon {
  color: var(--dabaco-orange);
}

.news-page-root .news-breadcrumb .breadcrumb-dabaco__item [aria-current="page"],
.news-page-root .article-breadcrumb-bar .breadcrumb-dabaco__item [aria-current="page"] {
  color: var(--dabaco-orange);
  font-weight: 600;
}

/* ==========================================================================
   1. TOP SPOTLIGHT SECTION (Tiêu điểm nổi bật)
   Clean spacing & refined border-bottom separator before main catalogue
   ========================================================================== */
.news-spotlight-section {
  padding: 1.4rem 0 1.6rem 0;
  border-bottom: 1px solid #eef2f6;
  margin-bottom: 1.75rem;
}

.news-spotlight-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
}

.news-spotlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.news-spotlight-card:not(:has(.news-spotlight-card__media-wrap)) {
  display: block;
  grid-template-columns: 1fr;
}

.news-spotlight-card__media-wrap {
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
  height: 100%;
  min-height: 260px;
  display: flex;
  align-items: stretch;
}

.news-spotlight-card__media {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

.news-spotlight-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-spotlight-card:hover .news-spotlight-card__media img {
  transform: scale(1.04);
}

.news-spotlight-card__media-wrap.is-logo-placeholder {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.news-spotlight-card__media.is-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  width: 100%;
  height: 100%;
}

.news-spotlight-card__media.is-logo-placeholder img,
.news-spotlight-card__media img.news-spotlight-card__logo-img {
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 85px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.05));
  transition: transform 0.4s ease;
}

.news-spotlight-card:hover .news-spotlight-card__media.is-logo-placeholder img {
  transform: scale(1.05);
}

.news-spotlight-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--dabaco-orange) 0%, var(--dabaco-orange-hover) 100%);
  color: var(--bg-white);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(241, 90, 41, 0.35);
}

.news-spotlight-card__badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.news-spotlight-card__body {
  padding: 1.65rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-spotlight-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--fs-small);
  color: #6b7280;
  margin-bottom: 8px;
}

.news-spotlight-card__cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(29, 117, 189, 0.08);
  color: var(--dabaco-blue);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.news-spotlight-card__dot {
  color: #cbd5e1;
}

.news-spotlight-card__date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6b7280;
}

.news-spotlight-card__date svg {
  width: 12px;
  height: 12px;
  color: #94a3b8;
}

.news-spotlight-card__title {
  font-family: var(--do-font-heading, "Be Vietnam Pro", system-ui, sans-serif);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}

.news-spotlight-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-spotlight-card__title a:hover {
  color: var(--dabaco-blue);
}

.news-spotlight-card__excerpt {
  font-size: var(--fs-body);
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-spotlight-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.news-spotlight-card__more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--dabaco-blue);
  font-weight: 700;
  font-size: var(--fs-small);
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.news-spotlight-card__more-btn:hover {
  color: var(--dabaco-blue-hover);
  transform: translateX(3px);
  text-decoration: none;
}

.news-spotlight-card__more-btn svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.news-spotlight-card__actions {
  display: flex;
  gap: 8px;
}

.news-action-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-action-btn:hover {
  border-color: var(--dabaco-blue);
  color: var(--dabaco-blue);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(29, 117, 189, 0.15);
}

.news-action-btn svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   2. MAIN 2-COLUMN SECTION (Left: Posts list, Right: Detail sidebar)
   Generous grid gap & comfortable vertical rhythm
   ========================================================================== */
.news-main-section {
  padding: 0 0 2.25rem 0;
}

/* Smooth transition wrapper for Category Switching */
.news-articles-container {
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.news-articles-container.is-transitioning-out {
  opacity: 0.45;
  filter: grayscale(15%);
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.news-articles-container.is-transitioning-in {
  opacity: 1;
  filter: none;
  animation: listSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   CATEGORY FILTER BAR & SORT TOOLBAR (Matches Reference Layout)
   ========================================================================== */
.news-filter-bar {
  display: block;
  margin-bottom: 0;
  padding-bottom: 2px;
}

.news-filter-bar .news-category-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 10px 2px;
  margin: 0;
  width: 100%;
}

.news-filter-bar .news-category-pills::-webkit-scrollbar {
  height: 5px;
}

.news-filter-bar .news-category-pills::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}

.news-filter-bar .news-category-pills::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.news-filter-bar .news-category-pills::-webkit-scrollbar-thumb:hover {
  background: #00609C;
}

.news-filter-divider {
  border: 0;
  border-top: 1px solid #e2e8f0;
  opacity: 1;
  height: 0;
  background: transparent;
  margin: 6px 0 20px 0;
}

.news-section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.news-section-toolbar__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-main-heading {
  font-family: var(--do-font-heading, "Be Vietnam Pro", system-ui, sans-serif);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.3;
}

.news-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  background: #eef2f6;
  border: 1px solid #e2e8f0;
  font-size: var(--fs-small);
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  line-height: 1.4;
}

/* Horizontal Cards List */
.news-horizontal-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-post-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 22px;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 14px;
  padding: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.news-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.news-post-card:not(:has(.news-post-card__thumb-wrap)) {
  display: block;
  grid-template-columns: 1fr;
  padding: 18px 22px;
}

.news-post-card__thumb-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: 16 / 10;
  width: 100%;
  height: 100%;
  min-height: 135px;
}

.news-post-card__thumb {
  display: block;
  width: 100%;
  height: 100%;
}

.news-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-post-card:hover .news-post-card__thumb img {
  transform: scale(1.04);
}

.news-post-card__thumb-wrap.is-logo-placeholder {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-post-card__thumb.is-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
}

.news-post-card__thumb.is-logo-placeholder img,
.news-post-card__thumb img.news-post-card__logo-img {
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.04));
  transition: transform 0.4s ease;
}

.news-post-card:hover .news-post-card__thumb.is-logo-placeholder img {
  transform: scale(1.05);
}

.news-post-card__cat-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(29, 117, 189, 0.92);
  color: #ffffff;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.news-post-card__body {
  padding: 2px 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-post-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-small);
  color: #6b7280;
  margin-bottom: 6px;
}

.news-post-card__meta svg {
  width: 12px;
  height: 12px;
  color: #94a3b8;
}

.news-post-card__date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-post-card__title {
  font-family: var(--do-font-heading, "Be Vietnam Pro", system-ui, sans-serif);
  font-size: var(--fs-h5);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-dark, #1D1D1B);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-post-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-post-card__title a:hover {
  color: var(--dabaco-blue);
}

.news-post-card__excerpt {
  font-size: var(--fs-body);
  color: #4b5563;
  line-height: 1.55;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-post-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: var(--fs-small);
  padding-top: 6px;
}

.news-post-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--dabaco-blue);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.news-post-card__readmore:hover {
  color: var(--dabaco-blue-hover);
  transform: translateX(3px);
  text-decoration: none;
}

.news-post-card__readmore svg {
  width: 12px;
  height: 12px;
}

.news-post-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #94a3b8;
  font-size: var(--fs-small);
}

.news-post-card__tag svg {
  width: 11px;
  height: 11px;
}

/* Empty State */
.news-empty-state-card {
  padding: 3.5rem 2rem;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  text-align: center;
}

.news-empty-state-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem auto;
  border-radius: 50%;
  background: rgba(29, 117, 189, 0.08);
  color: var(--dabaco-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-empty-state-card__title {
  font-size: var(--fs-h5);
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.news-empty-state-card__desc {
  font-size: var(--fs-body);
  color: #6b7280;
  margin: 0 auto 1.25rem auto;
  max-width: 440px;
}

/* Sticky Sidebar alignment */
.article-sidebar-col .sidebar-wrapper {
  position: sticky;
  top: calc(var(--header-height, 78px) + 20px);
}

.article-sidebar-col .sidebar-widget {
  margin-bottom: 1.75rem;
}

.article-sidebar-col .sidebar-widget:last-child {
  margin-bottom: 0;
}

/* Pagination container */
.news-pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* ==========================================================================
   SCROLL REVEAL "CÁC KHỐI CHẠY LÊN" (SLIDE-UP REVEAL ON SCROLL & LOAD)
   ========================================================================== */

/* Base class for any block that slides up */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Stagger delay utilities */
.reveal-up[data-reveal-delay="1"] { transition-delay: 0.06s; }
.reveal-up[data-reveal-delay="2"] { transition-delay: 0.12s; }
.reveal-up[data-reveal-delay="3"] { transition-delay: 0.18s; }
.reveal-up[data-reveal-delay="4"] { transition-delay: 0.24s; }
.reveal-up[data-reveal-delay="5"] { transition-delay: 0.30s; }

/* Initial un-revealed states */
.news-spotlight-card.reveal-up:not(.is-revealed) {
  transform: translateY(28px);
}

.news-post-card.reveal-up:not(.is-revealed) {
  transform: translateY(28px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.article-sidebar-col .sidebar-widget.reveal-up:not(.is-revealed),
.article-sidebar-col .sidebar-banner-card.reveal-up:not(.is-revealed) {
  transform: translateY(28px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active revealed state — must be strictly translateY(0) and opacity: 1 */
.reveal-up.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* When switching categories in SPA mode (tab change cascade slide-up) */
.news-articles-container.is-transitioning-in .news-post-card {
  animation: cardRunUp 0.48s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--card-index, 0) * 0.055s) backwards !important;
}

@keyframes cardRunUp {
  0% {
    opacity: 0;
    transform: translateY(36px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   ANIMATION KEYFRAMES
   ========================================================================== */
@keyframes badgePopIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes titleSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes leadFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pillSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes listSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
