/* News Page Specific Styles */
a {
  text-decoration: none !important;
}

.news-page {
  background: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  /* Ngăn scroll ngang toàn page */
}

.news-header {
  background: white;
  padding: 2rem 0;
  border-bottom: 1px solid #e9ecef;
}

.news-container {
  max-width: var(--container-max-width, 1440px);
  margin: 0 auto;
  padding: 0 !important;
  overflow-x: hidden;
  /* Ngăn scroll ngang */
}

.news-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.5rem;
}

.news-subtitle {
  font-size: 1.125rem;
  color: #6c757d;
  margin-bottom: 2rem;
}

/* Breadcrumb */
.news-breadcrumb {
  background: #FFFFFF;
  padding: 16px 0;
  border-bottom: 1px solid #E7E7E7;
}

.news-breadcrumb .news-container {
  padding: 0 32px !important;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666666;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item a {
  color: #666666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--color-primary, #40C706);
}

.breadcrumb-item.active {
  color: #3D3D3D;
  font-weight: 500;
}

.breadcrumb-separator {
  color: #CCCCCC;
  margin: 0 4px;
  user-select: none;
  font-weight: 400;
}

.breadcrumb-current {
  color: #3D3D3D;
  font-weight: 590;
}

/* News Grid Layout */
.news-content {
  padding: 2rem 0;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

/* Main Content */
.news-main {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Category Tabs Section */
.category-tabs-section {
  background: #FFFFFF;
  border-bottom: 1px solid #E7E7E7;
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Ngăn overflow ra ngoài */
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #3D3D3D;
  background: transparent;
  border: none;
  padding: 20px 4px;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease;
  font-variation-settings: 'wdth' 100;
  text-decoration: none;
  flex-shrink: 0;
  /* Không cho tab bị squeeze */
}

.category-tab:hover {
  color: var(--color-primary);
}

.category-tab.active {
  color: #3D3D3D;
  border-bottom: 4px solid var(--color-primary);
}

.category-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
}

/* Featured Article */
.featured-article {
  padding: 2rem;
}

.featured-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.featured-image {
  border-radius: 8px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.featured-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #212529;
  line-height: 1.3;
}

.featured-info p {
  color: #6c757d;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #adb5bd;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.read-more {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover {
  color: #FF2881;
}

/* Articles Grid */
.articles-grid {
  padding: 0 2rem 2rem;
}

.articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.article-image {
  height: 200px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}


.article-category {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.article-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #212529;
  line-height: 1.4;
}

.article-title a {
  color: inherit;
  text-decoration: none;
}

.article-title a:hover {
  color: var(--color-primary);
}

.article-excerpt {
  color: #6c757d;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #adb5bd;
  font-size: 0.75rem;
}

/* Sidebar */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #212529;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-primary);
}

/* Popular Articles Widget */
.popular-articles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popular-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.popular-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-image {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.popular-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-content h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #212529;
  line-height: 1.4;
}

.popular-content h4 a {
  color: inherit;
  text-decoration: none;
}

.popular-content h4 a:hover {
  color: #FF2881;
}

.popular-date {
  font-size: 0.75rem;
  color: #adb5bd;
}

/* Tags Widget */
.tags-widget .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 8px 4px;
  background: #f8f9fa;
  border-radius: 15px;
  color: #6c757d;
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  padding: 48px 0;
  margin-top: 48px;
}

.pagination {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Default - Plain text numbers */
.pagination a,
.pagination span {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  background: transparent;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Hover state for plain numbers */
.pagination a:hover {
  color: #3D3D3D;
}

/* Active page - White with border */
.pagination .current,
.pagination .active {
  background: #FFFFFF;
  color: #3D3D3D;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Previous/Next arrow buttons - Gray background */
.pagination a[rel="prev"],
.pagination a[rel="next"] {
  background: #F7F7F8;
  border-radius: 8px;
  color: #6B7280;
  font-weight: 400;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
}

.pagination a[rel="prev"]:hover,
.pagination a[rel="next"]:hover {
  background: #E5E7EB;
  color: #3D3D3D;
  border-color: #E5E7EB;
}

/* Disabled state */
.pagination .disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Ellipsis */
.pagination .dots {
  color: #9CA3AF;
  pointer-events: none;
  cursor: default;
}

/* Mobile */
@media (max-width: 768px) {
  .pagination-container {
    padding: 32px 0;
    margin-top: 32px;
  }

  .pagination {
    gap: 8px;
  }

  .pagination a,
  .pagination span {
    min-width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .pagination a[rel="prev"],
  .pagination a[rel="next"] {
    width: 40px;
    height: 40px;
  }
}

/* Responsive Design */
@media (max-width: 1199px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .news-sidebar {
    order: -1;
  }

  .featured-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .news-container {
    padding: 0 !important;
  }
}

@media (min-width: 1024px) {
  .news-container {
    padding: 0 !important;
  }
}

@media (min-width: 1440px) {
  .news-container {
    padding: 0 !important;
  }
}

@media (max-width: 767px) {
  .news-container {
    padding: 0 !important;
  }

  .news-title {
    font-size: 2rem;
  }

  .articles-container {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll trên iOS */
    justify-content: flex-start;
    /* Thay vì center */
  }

  .featured-article {
    padding: 1.5rem;
  }
}

/* ========================================
           POST DETAIL PAGE - ARTICLE LAYOUT
           Mobile-first, proper typography for readability
           ======================================== */

/* Main wrapper */
.main-wrapper {
  width: 100%;
}

/* Section container */
.sec--news-detail {
}

/* News detail container - Matches header/footer alignment */
.news-detail-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
}

/* Main content container - Two column layout on desktop */
.main-toc-contain {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Author info */
.toc-author {
  font-family: 'SF Pro Display', -apple-system, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #888888;
}

.toc-author .public-date {
  color: #888888;
}

/* Article content - Optimized for reading */
.article-toc {
  border-radius: 12px;
  padding: 16px;
  width: 100%;
}

/* Article content inner - No max-width constraint on mobile */
.article-toc>div {
  width: 100%;
}

/* Article title */
.toc--label-head {
  font-family: 'SF Pro Display', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 36px;
  color: #3D3D3D;
  margin-bottom: 16px;
  text-align: left;
}

/* Article subtitle */
.toc--sub-title {
  font-family: 'SF Pro Display', -apple-system, sans-serif;
  font-weight: 510;
  font-size: 18px;
  line-height: 26px;
  color: #888888;
  margin-bottom: 16px;
  text-align: left;
}

/* Article body content - Typography optimized for reading */
.article-toc>div:nth-child(2) {
  font-family: 'SF Pro Display', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 28px;
  /* 1.75 for better readability */
  color: #3D3D3D;
  margin-bottom: 32px;
}

/* Body paragraphs */
.article-toc p {
  margin-bottom: 20px;
  text-align: justify;
}

/* Body headings */
.article-toc h2 {
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  color: #3D3D3D;
  margin-top: 32px;
  margin-bottom: 16px;
}

.article-toc h3 {
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  color: #3D3D3D;
  margin-top: 24px;
  margin-bottom: 12px;
}

/* Body lists */
.article-toc ul,
.article-toc ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-toc li {
  margin-bottom: 8px;
  line-height: 28px;
}

/* Body images */
.article-toc img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
  display: block;
}

/* Body links */
.article-toc a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.article-toc a:hover {
  border-bottom-color: var(--color-primary);
}

/* Body blockquotes */
.article-toc blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: #6c757d;
}

/* Tags section */
.news-tagsearch {
  margin-top: 32px;
  padding-top: 24px;
  margin-bottom: 32px;
  border-top: 1px solid #E7E7E7;
}

.news-tagsearch .category-label {
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: #3D3D3D;
  margin-bottom: 12px;
}

.news-tagsearch .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-tagsearch .tags li {
  margin: 0;
}

.news-tagsearch .tags a {
  display: inline-block;
  padding: 6px 12px;
  background: #F7F7F8;
  border-radius: 16px;
  font-size: 14px;
  line-height: 20px;
  color: #3D3D3D;
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-tagsearch .tags a:hover {
  background: var(--color-primary);
  color: #FFFFFF;
}

/* Sidebar - Share and related products */
.toc-wrap.chapter-list {
  display: flex;
  flex-direction: column;
}

/* Share block */
.block-share {
  margin-bottom: 32px;
}

.block-share .share-label {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #3D3D3D;
  margin-bottom: 16px;
}

.block-share .share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-right: 12px;
  transition: all 0.3s ease;
}

.block-share .share-fb {
  background: #1877F2;
}

.block-share .share-fb:hover {
  background: #145dbf;
}

.block-share .share-link-text {
  background: #E7E7E7;
}

.block-share .share-link-text:hover {
  background: #D1D1D1;
}

/* ========================================
           POST HIGHLIGHT WIDGET - Featured Posts Section
           From: front-end-multisite-4/assets/css/pages/news.css
           ======================================== */

.news-features-section {
  padding: var(--spacing-8) 0;
}

.news-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Main Article */
.main-article {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-article>a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.main-article img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-normal) ease;
}

.main-article>a:hover img {
  transform: scale(1.05);
}

.main-article .author {
  font-size: var(--font-size-14);
  color: var(--color-gray-400);
  font-family: var(--font-primary);
  text-decoration: none;
}

.main-article .title {
  font-size: 24px;
  font-weight: 590;
  line-height: 32px;
  color: var(--color-gray-600);
  text-decoration: none;
  transition: color var(--duration-normal) ease;
  display: block;
}

.main-article .title:hover {
  color: var(--color-primary);
}

.main-article .summary {
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-regular);
  line-height: 24px;
  color: var(--color-gray-400);
  margin: 0;
}

/* Tags */
.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: var(--font-size-12);
  text-decoration: none;
  transition: all var(--duration-normal) ease;
  margin-right: 4px;
  margin-bottom: 4px;
}

.tag-blue {
  background: var(--color-primary-10, rgba(244, 200, 80, 0.1));
  color: var(--color-primary, #F56011);
}

.tag-blue:hover {
  background: var(--color-primary-20, rgba(64, 199, 6, 0.2));
}

.tag-red {
  background: rgba(255, 0, 0, 0.1);
  color: var(--color-error);
}

.tag-green {
  background: rgba(64, 199, 6, 0.1);
  color: var(--color-primary);
}

.tag-orange {
  background: rgba(255, 165, 0, 0.1);
  color: var(--color-warning);
}

/* ========================================
           RESPONSIVE BREAKPOINTS - Mobile-First
           ======================================== */

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .news-detail-container {
    padding: 0 20px;
    /* Tablet: 20px */
  }

  .article-toc {
    padding: 16px;
  }

  .toc--label-head {
    font-size: 32px;
    line-height: 40px;
  }

  .toc--sub-title {
    font-size: 20px;
    line-height: 28px;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .news-detail-container {
    padding: 0 24px;
    /* Desktop: 24px */
  }

  /* Two column layout on desktop */
  .main-toc-contain {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
  }

  /* Article takes remaining space */
  .article-toc {
    flex: 1;
    padding: 16px;
    min-width: 0;
    /* Allow flex shrink */
  }

  /* Article content - max-width for readability on desktop */
  .article-toc>div {
    max-width: 800px;
    /* Optimal reading width on large screens */
    margin: 0 auto;
  }

  /* Sidebar fixed width */
  .toc-wrap.chapter-list {
    flex: 0 0 320px;
    /* Fixed 320px width */
    width: 320px;
  }

  .toc--label-head {
    font-size: 36px;
    line-height: 44px;
  }

  .sec--news-detail {
  }
}

/* Wide: 1440px+ */
@media (min-width: 1440px) {
  .news-detail-container {
    padding: 0 32px;
    /* Wide: 32px */
  }

  .article-toc {
    /* padding: 56px 64px; */
    /* Maximum padding on very wide screens */
  }

  /* Allow wider reading area on very large screens */
  .article-toc>div {
    max-width: 900px;
  }
}

/* ========================================
   POST HIGHLIGHT WIDGET - Featured Posts Section
   From: front-end-multisite-4/assets/css/pages/news.css
   ======================================== */

.news-features-section {
  padding: var(--spacing-8) 0;
}

.news-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Main Article */
.main-article {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-article>a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.main-article img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-normal) ease;
}

.main-article>a:hover img {
  transform: scale(1.05);
}

.main-article .author {
  font-size: var(--font-size-14);
  color: var(--color-gray-400);
  font-family: var(--font-primary);
  text-decoration: none;
}

.main-article .title {
  font-size: 24px;
  font-weight: 590;
  line-height: 32px;
  color: var(--color-gray-600);
  text-decoration: none;
  transition: color var(--duration-normal) ease;
  display: block;
}

.main-article .title:hover {
  color: var(--color-primary);
}

.main-article .summary {
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-regular);
  line-height: 24px;
  color: var(--color-gray-400);
  margin: 0;
}

/* Tags */
.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: var(--font-size-12);
  text-decoration: none;
  transition: all var(--duration-normal) ease;
  margin-right: 4px;
  margin-bottom: 4px;
}

.tag-blue {
  background: var(--color-primary-20);
  color: var(--color-primary);
}

.tag-blue:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.tag-red {
  background: rgba(255, 0, 0, 0.1);
  color: var(--color-error);
}

.tag-green {
  background: rgba(64, 199, 6, 0.1);
  color: var(--color-primary);
}

.tag-orange {
  background: rgba(255, 165, 0, 0.1);
  color: var(--color-warning);
}

/* Side Articles */
.side-articles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.side-articles .article {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.side-articles .thumb-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: var(--radius-md);
}

.side-articles .thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-normal) ease;
}

.side-articles .thumb-link:hover .thumb-img {
  transform: scale(1.05);
}

.side-articles .article>div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px 12px 12px;
}

.side-articles .author {
  font-size: var(--font-size-12);
  color: var(--color-gray-400);
  text-decoration: none;
}

.side-articles .title {
  font-size: 18px;
  font-weight: var(--font-weight-regular);
  line-height: 1.4;
  color: var(--color-gray-600);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--duration-normal) ease;
}

.side-articles .title:hover {
  color: var(--color-primary);
}

.div-smartads {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tag.smartads {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: var(--font-weight-bold);
}

@media (max-width: 1024px) {
  .news-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .side-articles {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .side-articles .article {
    flex-direction: row;
    gap: 12px;
    padding: 0;
    border-radius: 0;
  }

  .side-articles .thumb-link {
    width: 120px;
    min-width: 120px;
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .side-articles .article>div {
    flex: 1;
    padding: 0;
    gap: 8px;
    justify-content: flex-start;
  }

  .main-article .title {
    font-size: 20px;
  }

  .side-articles .title {
    font-size: var(--font-size-16);
    line-height: 22px;
  }
}

/* ========================================
   CATEGORY NAVIGATION - Horizontal Tabs
   From: front-end/assets/css/news.css
   ======================================== */

.nav-news {
  position: relative;
  width: 100%;
  display: block;
  margin-bottom: 56px;
}

.nav-news .scroll--horizontal::-webkit-scrollbar {
  height: 0px !important;
  width: 0px !important;
}

.nav-news .scroll--horizontal::-webkit-scrollbar-track {
  background-color: rgba(209, 213, 219, 0);
}

.nav-news .scroll--horizontal:hover::-webkit-scrollbar-thumb {
  background: rgb(228, 228, 228);
  border-radius: 12px;
}

@media screen and (max-width: 820px) {
  .nav-news {
    margin-bottom: 40px;
  }
}

.nav-news .rowfull-margin {
  padding: 0;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.nav-news .rowfull-margin::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
  background: #E7E7E7;
  bottom: 10%;
  z-index: -1;
}

.nav-news ul {
  display: flex;
  align-items: center;
  height: 60px;
  overflow: auto;
  white-space: nowrap;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.nav-news ul li {
  position: relative;
  display: inline-flex;
}

.nav-news ul li a {
  color: var(--color-text-dark);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 16px 4px;
  margin-right: 12px;
  position: relative;
  text-decoration: none;
  transition: color var(--duration-normal) ease;
}

.nav-news ul li a:hover {
  color: var(--color-primary);
}

.nav-news ul li:nth-last-child(1) a {
  margin-right: 0;
}

.nav-news ul li.active::after {
  position: absolute;
  content: "";
  width: calc(100% - 12px);
  height: 2px;
  background: var(--color-primary);
  bottom: 2px;
}

.nav-news ul li.active::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
  background: #E7E7E7;
  bottom: 2px;
}

.nav-news ul li.active:nth-last-child(1)::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  bottom: 2px;
}

.nav-news ul li::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
  background: #E7E7E7;
  bottom: 2px;
}

/* Mobile: 16px padding */
@media (max-width: 767px) {
  .nav-news ul {
    padding: 0 16px;
  }
}

/* Tablet: 20px padding */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-news ul {
    padding: 0 20px;
  }
}

/* Desktop: No padding (aligned with container padding) */
@media (min-width: 1024px) {
  .nav-news ul {
    padding: 0;
  }
}


@media (min-width: 1440px) {
  .nav-news ul {
    padding: 0;
    /* Match header: 32px */
  }
}

/* Category Label - Section Title */
.category-label {
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-bold);
  font-size: 22px;
  line-height: 1.3;
  color: var(--color-text-dark);
  margin-bottom: var(--spacing-md);
  padding-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .category-label {
    font-size: 32px;
  }
}

@media (min-width: 1024px) {
  .category-label {
    font-size: 48px;
  }
}

/* =============================================
 * BREADCRUMB NAVIGATION
 * ============================================= */

.breadcrumb-news {
  position: relative;
  width: 100%;
  display: block;
  background: var(--color-gray-100, #F5F5F5);
}

.breadcrumb-news .rowfull-margin {
  padding: 0;
  max-width: var(--container-max-width, 1440px);
  margin: 0 auto;
}

.breadcrumb-news ul {
  display: flex;
  height: 60px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0 var(--spacing-4, 16px);
}

.breadcrumb-news ul li {
  margin-right: 20px;
  position: relative;
  list-style: none;
}

.breadcrumb-news ul li a {
  color: var(--color-gray-400, #888888);
  font-size: var(--font-size-14, 14px);
  font-weight: var(--font-weight-semibold, 600);
  line-height: 20px;
  padding: 0 8px;
  text-decoration: none;
}

.breadcrumb-news ul li a:hover {
  color: var(--color-primary, #40C706);
}

.breadcrumb-news ul li span {
  color: var(--color-gray-400, #888888);
  font-size: var(--font-size-14, 14px);
  font-weight: var(--font-weight-semibold, 600);
  line-height: 20px;
  padding: 0 8px;
}

.breadcrumb-news ul li.active a,
.breadcrumb-news ul li.active span {
  color: var(--color-gray-600, #3D3D3D);
}

.breadcrumb-news ul li::after {
  content: "";
  position: absolute;
  left: 100%;
  width: 20px;
  height: 22px;
  background: url("../images/arrow-breadcrumb.png") no-repeat center;
  background-size: 12px;
}

.breadcrumb-news ul li:last-child {
  margin-right: 0;
}

.breadcrumb-news ul li:last-child::after {
  display: none;
}

.breadcrumb-news ul li.home-news-text span:first-child {
  background: url("../images/icon-home-news.svg") 0 0 no-repeat;
  background-size: 13px;
  width: 13px;
  height: 13px;
  display: none;
}

/* Mobile */
@media (max-width: 991px) {
  .breadcrumb-news ul li.home-news-text span:first-child {
    display: inline-block;
  }

  .breadcrumb-news ul li.home-news-text span:nth-of-type(2) {
    display: none;
  }
}

/* Tablet and below */
@media (max-width: 1440px) {
  .breadcrumb-news .rowfull-margin {
    width: calc(100% - 30px);
  }
}

@media (min-width: 768px) {
  .breadcrumb-news ul {
    padding: 0 var(--spacing-5, 20px);
  }
}

@media (min-width: 1024px) {
  .breadcrumb-news ul {
    padding: 0 var(--spacing-5, 20px);
    /* Match header: 20px */
  }
}

@media (min-width: 1440px) {
  .breadcrumb-news ul {
    padding: 0 var(--spacing-8, 32px);
    /* Match header: 32px */
  }
}

/* Mobile scrolling */
@media (max-width: 768px) {
  .breadcrumb-news ul {
    overflow: auto;
    white-space: nowrap;
  }

  .breadcrumb-news ul::-webkit-scrollbar {
    height: 5px;
    width: 5px;
  }

  .breadcrumb-news ul::-webkit-scrollbar-track {
    background-color: rgba(209, 213, 219, 0);
  }

  .breadcrumb-news ul:hover::-webkit-scrollbar-thumb {
    background: rgb(228, 228, 228);
    border-radius: 12px;
  }
}

/* =============================================
 * CATEGORY PAGE LAYOUT
 * From: front-end/assets/css/news.css (lines 598-964)
 * ============================================= */

.news--category-block {
  display: flex;
  gap: 32px;
  max-width: 100%;
  margin: auto;
}

.news--category-block .news--category-contains {
  flex: 1;
  display: grid;
  grid-template-columns: 3.2fr 1fr;
  gap: 32px;
}

/* Block Left - Main Content Area */
.news--category-block .news--category-contains .block-left .block-items {
  display: flex;
  gap: 32px;
  max-width: 100%;
}

/* Large Item - Featured Post */
.news--category-block .news--category-contains .block-left .block-items .large-item {
  flex: 2.1;
  display: flex;
  flex-direction: column;
}

.news--category-block .news--category-contains .block-left .block-items .large-item img {
  width: 100%;
  height: 419px;
  border-radius: var(--radius-md, 8px);
  object-fit: cover;
  object-position: 50% 50%;
}

.news--category-block .news--category-contains .block-left .block-items .large-item .author {
  color: var(--color-gray-400, #888888);
  font-size: var(--font-size-14, 14px);
  font-weight: var(--font-weight-semibold, 600);
  margin-top: 24px;
  margin-bottom: 12px;
}

.news--category-block .news--category-contains .block-left .block-items .large-item .title {
  font-size: 24px;
  font-weight: var(--font-weight-semibold, 600);
  line-height: 32px;
  color: var(--color-gray-600, #3D3D3D);
  margin-bottom: 12px;
  max-height: 64px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news--category-block .news--category-contains .block-left .block-items .large-item .summary {
  font-size: var(--font-size-16, 16px);
  line-height: 22px;
  color: var(--color-gray-500, #666666);
  margin-bottom: 0;
  max-height: 66px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Medium Items - Side Posts */
.news--category-block .news--category-contains .block-left .block-items .medium-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.news--category-block .news--category-contains .block-left .block-items .medium-item .article {
  padding: 0;
}

.news--category-block .news--category-contains .block-left .block-items .medium-item .article .thumb-link {
  display: inline-block;
  width: 100%;
  /* margin-bottom: 20px; */
}

.news--category-block .news--category-contains .block-left .block-items .medium-item .article .thumb-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: var(--radius-md, 8px);
}

.news--category-block .news--category-contains .block-left .block-items .medium-item .article .author {
  color: var(--color-gray-400, #888888);
  font-size: var(--font-size-14, 14px);
  font-weight: var(--font-weight-semibold, 600);
  line-height: 20px;
  display: block;
}

.news--category-block .news--category-contains .block-left .block-items .medium-item .article .title {
  font-size: var(--font-size-16, 16px);
  font-weight: var(--font-weight-semibold, 600);
  line-height: 22px;
  color: var(--color-gray-600, #3D3D3D);
  margin: 8px 0 0;
  display: block;
  height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Block Right - Most Viewed */
.news--category-block .news--category-contains .block-right .category-label-small {
  color: var(--color-black, #000000);
  font-weight: var(--font-weight-bold, 700);
  font-size: 20px;
  line-height: 1;
  height: 44px;
  padding-top: 17px;
}

.news--category-block .news--category-contains .block-right .best-view--items {
  margin-top: 16px;
}

.news--category-block .news--category-contains .block-right .best-view--items .item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.news--category-block .news--category-contains .block-right .best-view--items .item:last-of-type {
  margin-bottom: 0;
}

.news--category-block .news--category-contains .block-right .best-view--items .item img {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

.news--category-block .news--category-contains .block-right .best-view--items .item .author-small {
  color: var(--color-gray-400, #888888);
  font-weight: var(--font-weight-semibold, 600);
  font-size: var(--font-size-12, 12px);
  line-height: 16px;
}

.news--category-block .news--category-contains .block-right .best-view--items .item .title-small {
  color: var(--color-gray-600, #3D3D3D);
  font-weight: var(--font-weight-semibold, 600);
  font-size: var(--font-size-14, 14px);
  line-height: 20px;
  max-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================
 * RESPONSIVE - TABLET
 * ============================================= */

@media (max-width: 1200px) {
  .news--category-block .news--category-contains {
    grid-template-columns: 2.8fr 1fr;
  }

  .news--category-block .news--category-contains .block-left .block-items .large-item {
    flex: 1.9;
  }

  .news--category-block .news--category-contains .block-left .block-items .large-item img {
    height: 350px;
  }

  .news--category-block .news--category-contains .block-left .block-items .medium-item .article .thumb-img {
    height: 176px;
  }

  .news--category-block .news--category-contains .block-right .best-view--items .item img {
    width: 140px;
    height: 84px;
  }
}

@media (max-width: 820px) {
  .news--category-block .news--category-contains {
    grid-template-columns: 1fr;
  }

  .news--category-block .news--category-contains .block-left .block-items .large-item img {
    height: 300px;
  }

  .news--category-block .news--category-contains .block-left .block-items .large-item .title {
    font-size: 20px;
    line-height: 30px;
    max-height: 57px;
  }

  .news--category-block .news--category-contains .block-left .block-items .medium-item {
    gap: 24px;
  }

  .news--category-block .news--category-contains .block-left .block-items .medium-item .article .thumb-img {
    height: 150px;
  }

  .news--category-block .news--category-contains .block-right .category-label-small {
    font-size: 24px;
    line-height: 32px;
    padding-top: 0;
  }

  .news--category-block .news--category-contains .block-right .best-view--items {
    grid-template-columns: 1fr 1fr;
    display: grid;
    gap: 15px 20px;
    margin-top: 0;
  }

  .news--category-block .news--category-contains .block-right .best-view--items .item {
    margin-bottom: 0;
  }
}

/* =============================================
 * RESPONSIVE - MOBILE
 * ============================================= */

@media (max-width: 540px) {
  .news--category-block .news--category-contains {
    gap: 40px;
  }

  .news--category-block .news--category-contains .block-left .block-items {
    display: block;
  }

  .news--category-block .news--category-contains .block-left .block-items .large-item {
    margin-bottom: 24px;
  }

  .news--category-block .news--category-contains .block-left .block-items .large-item img {
    height: 236px;
  }

  .news--category-block .news--category-contains .block-left .block-items .medium-item {
    grid-template-columns: 1fr;
    display: grid;
    gap: 15px 20px;
  }

  .news--category-block .news--category-contains .block-left .block-items .medium-item .article {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 15px;
  }

  .news--category-block .news--category-contains .block-left .block-items .medium-item .article .thumb-link {
    margin-bottom: 0;
  }

  .news--category-block .news--category-contains .block-left .block-items .medium-item .article .thumb-img {
    height: 96px;
  }

  .news--category-block .news--category-contains .block-left .block-items .medium-item .article .author {
    font-size: var(--font-size-12, 12px);
    line-height: 16px;
  }

  .news--category-block .news--category-contains .block-left .block-items .medium-item .article .title {
    font-size: var(--font-size-14, 14px);
    line-height: 20px;
  }

  .news--category-block .news--category-contains .block-right .best-view--items {
    grid-template-columns: 1fr;
  }

  .news--category-block .news--category-contains .block-right .best-view--items .item {
    align-items: center;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 15px;
  }

  .news--category-block .news--category-contains .block-right .best-view--items .item img {
    width: 100%;
    height: 96px;
  }
}

/* =============================================
 * SECTION NEWS LIST
 * ============================================= */

.sec--news-list.rowfull-margin {
  padding-bottom: 40px;
}

.public-date {
  color: var(--color-gray-400, #888888);
  font-size: var(--font-size-13, 13px);
}

@media (max-width: 1024px) {
  .sec--news-list.rowfull-margin {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 820px) {
  .sec--news-list.rowfull-margin {
    padding-bottom: 40px;
  }
}

/* =============================================
 * Tin mới Section - Alignment with Header
 * ============================================= */

.sec-hotnews {
  background: #ffffff;
  padding: 40px 0;
}

.hotnews-container {
  max-width: var(--container-max-width, 1440px);
  margin: 0 auto;
  padding: 0 var(--spacing-4, 16px);
}

.hotnews-container .category-label {
  font-size: var(--font-size-32, 32px);
  font-weight: 700;
  color: var(--color-text-dark, #3D3D3D);
  margin-bottom: 24px;
}

/* Tablet */
@media (min-width: 768px) {
  .hotnews-container {
    padding: 0 var(--spacing-5, 20px);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hotnews-container {
    padding: 0 var(--spacing-5, 20px);
  }
}

/* Wide Desktop */
@media (min-width: 1440px) {
  .hotnews-container {
    padding: 0 var(--spacing-8, 32px);
  }
}

/* =============================================
 * Tin mới Items - Larger Cards, Less Radius
 * ============================================= */

/* Add bottom spacing for section */
.sec-hotnews {
  padding-bottom: var(--spacing-10, 64px) !important;
  margin-bottom: var(--spacing-6, 32px);
}

/* Hotnews content grid */
.hotnews-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 24px;
}

/* Individual hotnews item card */
.hotnews-item {
  background: var(--color-white, #FFFFFF);
  border-radius: 6px !important;
  overflow: hidden;
  box-shadow: var(--shadow-card, 0 2px 8px rgba(0, 0, 0, 0.08));
  transition: all 0.3s ease;
}

.hotnews-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover, 0 8px 24px rgba(0, 0, 0, 0.12));
}

/* Image */
.hotnews-item .img {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.hotnews-item .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hotnews-item:hover .img img {
  transform: scale(1.05);
}

/* Text content */
.hotnews-item .text {
  padding: 20px !important;
}

.hotnews-item .public-date {
  font-size: 13px;
  color: var(--color-gray-400, #888888);
  margin-bottom: 8px;
}

.hotnews-item .title p {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-gray-600, #3D3D3D);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hotnews-item .title span {
  font-size: 14px;
  color: var(--color-gray-400, #888888);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hotnews-item .title:hover p {
  color: var(--color-primary, #40C706);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .sec-hotnews {
    padding-bottom: var(--spacing-8, 48px) !important;
    margin-bottom: var(--spacing-5, 24px);
  }

  .hotnews-content {
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .hotnews-item .text {
    padding: 16px !important;
  }
}

/* =============================================
 * Hotnews Pagination
 * ============================================= */

#hotnews-pagination {
  display: flex;
  justify-content: center;
  padding: 48px 0;
  margin-top: 48px;
}

#hotnews-pagination .pagination {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* News Pagination (used by hotnews) */
.news-pagination {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* Page buttons - Default plain text numbers */
.news-pagination .page-btn {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  background: transparent;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 0;
}

/* Hover state for plain numbers */
.news-pagination .page-btn:hover:not(.disabled):not(.arrow-left):not(.arrow-right) {
  color: #3D3D3D;
}

/* Active page - White with border */
.news-pagination .page-btn.active {
  background: #FFFFFF;
  color: #3D3D3D;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Previous/Next arrow buttons - Gray background */
.news-pagination .page-btn.arrow-left,
.news-pagination .page-btn.arrow-right {
  background: #F7F7F8;
  border-radius: 8px;
  color: #6B7280;
  font-weight: 400;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  position: relative;
}

/* Arrow icons using ::before */
.news-pagination .page-btn.arrow-left::before {
  content: '<';
  font-size: 18px;
}

.news-pagination .page-btn.arrow-right::before {
  content: '>';
  font-size: 18px;
}

.news-pagination .page-btn.arrow-left:hover:not(.disabled),
.news-pagination .page-btn.arrow-right:hover:not(.disabled) {
  background: #E5E7EB;
  color: #3D3D3D;
  border-color: #E5E7EB;
}

/* Disabled state */
.news-pagination .page-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Ellipsis */
.news-pagination .dots {
  color: #9CA3AF;
  pointer-events: none;
  cursor: default;
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  height: 44px;
  justify-content: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .news-pagination {
    gap: 8px;
  }

  .news-pagination .page-btn {
    min-width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .news-pagination .page-btn.arrow-left,
  .news-pagination .page-btn.arrow-right {
    width: 40px;
    height: 40px;
  }

  .news-pagination .page-btn.arrow-left::before,
  .news-pagination .page-btn.arrow-right::before {
    font-size: 16px;
  }

  .news-pagination .dots {
    min-width: 40px;
    height: 40px;
  }
}

/* Default - Plain text numbers */
#hotnews-pagination .pagination a,
#hotnews-pagination .pagination span {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  background: transparent;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Hover state for plain numbers */
#hotnews-pagination .pagination a:hover {
  color: #3D3D3D;
}

/* Active page - White with border */
#hotnews-pagination .pagination .current,
#hotnews-pagination .pagination .active {
  background: #FFFFFF;
  color: #3D3D3D;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Previous/Next arrow buttons - Gray background */
#hotnews-pagination .pagination a[rel="prev"],
#hotnews-pagination .pagination a[rel="next"] {
  background: #F7F7F8;
  border-radius: 8px;
  color: #6B7280;
  font-weight: 400;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
}

#hotnews-pagination .pagination a[rel="prev"]:hover,
#hotnews-pagination .pagination a[rel="next"]:hover {
  background: #E5E7EB;
  color: #3D3D3D;
  border-color: #E5E7EB;
}

/* Disabled state */
#hotnews-pagination .pagination .disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Ellipsis */
#hotnews-pagination .pagination .dots {
  color: #9CA3AF;
  pointer-events: none;
  cursor: default;
}

/* Mobile */
@media (max-width: 768px) {
  #hotnews-pagination {
    padding: 32px 0;
    margin-top: 32px;
  }

  #hotnews-pagination .pagination {
    gap: 8px;
  }

  #hotnews-pagination .pagination a,
  #hotnews-pagination .pagination span {
    min-width: 40px;
    height: 40px;
    font-size: 14px;
  }

  #hotnews-pagination .pagination a[rel="prev"],
  #hotnews-pagination .pagination a[rel="next"] {
    width: 40px;
    height: 40px;
  }
}

/* =============================================
 * BREADCRUMB NAVIGATION (Ported from Basic Theme)
 * ============================================= */

.breadcrumb-news {
  position: relative;
  width: 100%;
  display: block;
  background: var(--color-gray-100, #F5F5F5);
}

.breadcrumb-news .rowfull-margin {
  padding: 0;
  max-width: var(--container-max-width, 1440px);
  margin: 0 auto;
}

.breadcrumb-news ul {
  display: flex;
  height: 60px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0 var(--spacing-4, 16px);
}

.breadcrumb-news ul li {
  margin-right: 20px;
  position: relative;
  list-style: none;
}

.breadcrumb-news ul li a {
  color: var(--color-gray-400, #888888);
  font-size: var(--font-size-14, 14px);
  font-weight: var(--font-weight-semibold, 600);
  line-height: 20px;
  padding: 0 8px;
  text-decoration: none;
}

.breadcrumb-news ul li a:hover {
  color: var(--color-primary, #40C706);
}

.breadcrumb-news ul li span {
  color: var(--color-gray-400, #888888);
  font-size: var(--font-size-14, 14px);
  font-weight: var(--font-weight-semibold, 600);
  line-height: 20px;
  padding: 0 8px;
}

.breadcrumb-news ul li.active a,
.breadcrumb-news ul li.active span {
  color: var(--color-gray-600, #3D3D3D);
}

.breadcrumb-news ul li::after {
  content: "";
  position: absolute;
  left: 100%;
  width: 20px;
  height: 22px;
  background: url("../images/arrow-breadcrumb.png") no-repeat center;
  background-size: 12px;
}

.breadcrumb-news ul li:last-child {
  margin-right: 0;
}

.breadcrumb-news ul li:last-child::after {
  display: none;
}

.breadcrumb-news ul li.home-news-text span:first-child {
  background: url("../images/icon-home-news.svg") 0 0 no-repeat;
  background-size: 13px;
  width: 13px;
  height: 13px;
  display: none;
}

/* Mobile */
@media (max-width: 991px) {
  .breadcrumb-news ul li.home-news-text span:first-child {
    display: inline-block;
  }

  .breadcrumb-news ul li.home-news-text span:nth-of-type(2) {
    display: none;
  }
}

.breadcrumb-news ul li:first-child a {
  padding-left: 0;
}

/* Tablet and below */

@media (min-width: 768px) {
  .breadcrumb-news ul {
    padding: 0 var(--spacing-5, 20px);
  }
}

@media (min-width: 1024px) {
  .breadcrumb-news ul {
    padding: 0;
    /* Match nav-news: 0px */
  }
}

@media (min-width: 1440px) {
  .breadcrumb-news ul {
    padding: 0;
    /* Match nav-news: 0px */
  }
}

/* Mobile scrolling */
@media (max-width: 768px) {
  .breadcrumb-news ul {
    overflow: auto;
    white-space: nowrap;
  }

  .breadcrumb-news ul::-webkit-scrollbar {
    height: 5px;
    width: 5px;
  }

  .breadcrumb-news ul::-webkit-scrollbar-track {
    background-color: rgba(209, 213, 219, 0);
  }

  .breadcrumb-news ul:hover::-webkit-scrollbar-thumb {
    background: rgb(228, 228, 228);
    border-radius: 12px;
  }
}
