/* ==========================================================================
   DABACO OIL — Editorial content (Góc bếp / Tin tức)
   Premium FMCG magazine feel. Reuses tokens + cards + sections + buttons.
   Two identities share this system:
     .editorial--recipe  → food / lifestyle (warm, image-forward)
     .editorial--news     → brand / editorial (structured, restrained)
   ========================================================================== */

/* --- Shared editorial hero ----------------------------------------------- */
.editorial-hero { padding-bottom: 0; }

.editorial-hero__inner { max-width: 720px; }

.editorial-hero__title { margin: 0.5rem 0 1rem; }

.editorial-hero__intro {
  color: var(--text-muted);
  font-size: var(--fs-h5);
  margin: 0;
}

/* Recipe hero: warm neutral wash. News hero: clean white with rule below. */
.editorial-hero--recipe { background: var(--bg-light); }

/* --- Category filter (editorial) ----------------------------------------- */
.editorial-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* --- Editorial empty state ----------------------------------------------- */

.editorial-empty {
  max-width: 42rem;
  margin-inline: auto;
  color: var(--text-muted);
  text-align: center;
}

.editorial-empty h2 {
  margin: 0.75rem 0 0;
  overflow-wrap: anywhere;
}

/* --- Editorial placeholders (reserve ratio, no layout shift) ------------- */
.media-placeholder--recipe {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  background: linear-gradient(135deg, #f3efe8 0%, var(--bg-light) 100%);
}

.media-placeholder--feature {
  aspect-ratio: 4 / 3;
  border: none;
  background: linear-gradient(135deg, #f3efe8 0%, var(--bg-light) 100%);
}

/* ==========================================================================
   GÓC BẾP — Recipe featured (asymmetrical editorial)
   ========================================================================== */
.recipe-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

.recipe-feature__media {
  display: block;
  border-radius: var(--radius-max);
  overflow: hidden;
  background: var(--bg-light);
}

.recipe-feature__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.recipe-feature__eyebrow { margin: 0 0 0.5rem; }

.recipe-feature__title { margin: 0 0 1rem; }

.recipe-feature__title a { color: var(--text-dark); text-decoration: none; }

.recipe-feature__title a:hover { color: var(--dabaco-orange); }

.recipe-feature__desc {
  color: var(--text-primary);
  font-size: var(--body-font-size);
  margin: 0 0 1.5rem;
}

/* --- Recipe card (food/lifestyle) ---------------------------------------- */
.recipe-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-max);
  overflow: hidden;
  height: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
}

.recipe-card:hover {
  box-shadow: 0 10px 28px rgba(29, 29, 27, 0.10);
  transform: translateY(-2px);
}

/* No detail page yet: static card, no "clickable" lift. */
.recipe-card--static:hover {
  box-shadow: none;
  transform: none;
}

.recipe-card__media {
  display: block;
  position: relative;
  background: var(--bg-light);
}

.recipe-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Food category label sits on the image — lifestyle magazine cue. */
.recipe-card__category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--dabaco-orange);
  font-size: var(--text-caption-size);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.recipe-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1 1 auto;
}

.recipe-card__title { font-size: var(--fs-h4); margin: 0; }

.recipe-card__title a { color: var(--text-dark); text-decoration: none; }

.recipe-card__title a:hover { color: var(--dabaco-orange); }

.recipe-card__excerpt { color: var(--text-muted); margin: 0; }

.recipe-card__cta { margin-top: auto; align-self: flex-start; }

/* --- Recipe detail ------------------------------------------------------- */
.recipe-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.recipe-info__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.recipe-info__label {
  font-size: var(--text-caption-size);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.recipe-info__value {
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
}

.recipe-detail__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.recipe-detail__block-title { margin: 0 0 1rem; }

.recipe-ingredients {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-primary);
}

.recipe-ingredients li { margin-bottom: 0.5rem; }

.recipe-steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-primary);
  counter-reset: step;
}

.recipe-step { margin-bottom: 1.5rem; }

.recipe-step__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-max);
  margin-bottom: 0.75rem;
}

.recipe-step__text { margin: 0; }

/* ==========================================================================
   TIN TỨC — News featured (horizontal split, brand/editorial)
   ========================================================================== */

/* Muted band behind related-news to separate it from the article body. */
.editorial-grid-section {
  padding: 2.75rem 0 3.75rem;
}

.editorial-grid-section--muted {
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
}

.editorial-grid-section .section-title,
.editorial-related-products .section-title {
  margin-bottom: 1.35rem;
}

.editorial-grid-section .section-title__heading,
.editorial-related-products .section-title__heading {
  font-family: var(--do-font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
}

/* --- Related Articles Slider / Carousel ----------------------------------- */
.related-articles-section {
  padding: 2.75rem 0 3.5rem;
  overflow: hidden;
}

.related-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.related-slider-header .section-title {
  margin-bottom: 0;
}

.related-slider-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.related-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.related-nav-btn:hover:not(.swiper-button-disabled) {
  background: var(--dabaco-orange);
  border-color: var(--dabaco-orange);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(241, 90, 41, 0.25);
}

.related-nav-btn:active:not(.swiper-button-disabled) {
  transform: translateY(0);
}

.related-nav-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.related-news-swiper.swiper {
  width: 100%;
  overflow: hidden;
  padding: 6px 4px 10px 4px;
}

/* Graceful fallback before Swiper JS initializes */

.related-slide {
  height: auto;
  display: flex;
  box-sizing: border-box;
}

.related-slide .article-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-slide .article-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-slide .article-card__title {
  margin-bottom: 0.5rem;
}

.related-slide .article-card__excerpt {
  margin-top: auto;
}

/* Pagination bullets */
div.swiper-pagination.related-slider-pagination {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  margin: 1.75rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  z-index: 2;
}

/* ==========================================================================
   Editorial detail (shared hero + cover + reading measure)
   ========================================================================== */
.editorial-detail__hero { padding-top: var(--section-padding); }

.editorial-detail__hero-inner { max-width: 820px; }

.editorial-detail__title { margin: 0.5rem 0 1rem; }

.editorial-detail__lead {
  font-size: var(--fs-h4);
  color: var(--text-muted);
  margin: 1rem 0 0;
}

.editorial-detail__cover {
  margin-top: 2rem;
  border-radius: var(--radius-max);
  overflow: hidden;
  background: var(--bg-light);
}

.editorial-detail__cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.editorial-detail--recipe .editorial-detail__cover img { aspect-ratio: 3 / 2; }

/* News article meta row */

.article-detail__author { font-weight: var(--font-weight-medium); }

/* Long-form reading measure — comfortable line length for body copy. */

.article-body { color: var(--text-primary); font-size: var(--body-font-size); line-height: 1.75; }

.article-body h2 { margin: 2rem 0 0.75rem; }
.article-body h3 { margin: 1.75rem 0 0.5rem; }
.article-body p { margin: 0 0 1.25rem; }

.article-body img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-max);
  margin: 1.5rem 0;
}

.article-body ul,
.article-body ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-left: 3px solid var(--dabaco-orange);
  color: var(--text-dark);
  font-style: italic;
}

/* ==========================================================================
   Responsive — tablet / desktop editorial composition
   Breakpoints align with Bootstrap grid + design tokens.
   ========================================================================== */

/* ==========================================================================
   TIN TỨC — Modern News Detail Page with Sidebar System
   ========================================================================== */

/* --- Shared Breadcrumb Bar ------------------------------------------------ */
.news-breadcrumb,
.article-breadcrumb-bar {
  background: transparent;
  border-bottom: none;
  padding: var(--space-5, 1.25rem) 0 0;
  margin-bottom: 0;
}

.article-breadcrumb-bar .breadcrumb-dabaco__item {
  display: inline-flex;
  align-items: flex-start;
}

.article-breadcrumb-bar .breadcrumb-dabaco__item:not(:first-child)::before {
  font-size: 1em;
  line-height: 1;
  height: 1.45em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: translateY(-1.5px);
}

/* --- News Detail Header & Typography (Integrated in Left Column) ---------- */
.article-header {
  margin-bottom: 0.5rem;
}

.editorial-detail__badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.article-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-meta-size);
  font-weight: var(--font-weight-semibold);
  background: rgba(241, 90, 41, 0.1);
  color: var(--dabaco-orange);
  text-decoration: none;
  transition: all var(--transition);
}

.article-category-badge:hover {
  background: var(--dabaco-orange);
  color: #ffffff;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dabaco-orange);
  display: inline-block;
  transition: background var(--transition);
}

.article-category-badge:hover .badge-dot {
  background: #ffffff;
}

.editorial-detail__title,
.article-header .editorial-detail__title {
  font-size: var(--fs-h3);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  line-height: 1.32;
  margin: 0 0 1.15rem;
  letter-spacing: -0.015em;
  font-family: var(--do-font-heading);
}

.article-detail__meta-bar {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin: 0 0 1.25rem;
}

.article-detail__meta-left {
  color: var(--text-muted);
  font-size: var(--text-meta-size);
}

.article-share-top {
  margin-left: auto;
}

.share-label {
  font-size: var(--text-caption-size);
  color: var(--text-muted);
  font-weight: var(--font-weight-medium);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.share-btn--fb:hover {
  background: #1877F2;
  color: #ffffff;
  border-color: #1877F2;
  transform: translateY(-2px);
}

.share-btn--zalo {
  font-weight: var(--font-weight-bold);
  font-size: var(--fs-small);
  color: #0068FF;
}

.share-btn--zalo:hover {
  background: #0068FF;
  color: #ffffff;
  border-color: #0068FF;
  transform: translateY(-2px);
}

.share-btn--copy:hover {
  background: var(--dabaco-orange);
  color: #ffffff;
  border-color: var(--dabaco-orange);
  transform: translateY(-2px);
}

.editorial-detail__lead-box {
  margin: 0 0 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-light);
  border-left: 3.5px solid var(--dabaco-orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.editorial-detail__lead-box .editorial-detail__lead {
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-dark);
  font-weight: var(--font-weight-medium);
  margin: 0;
}

/* --- Main Layout Section (8 cols article + 4 cols sidebar) ---------------- */
.section-dabaco--detail {
  padding-top: 1.85rem;
  padding-bottom: 3.5rem;
}

.article-main-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-main-col .editorial-detail__cover {
  margin-top: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.article-main-col .editorial-detail__cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* --- Table of Contents (Mục lục bài viết) -------------------------------- */
.article-toc {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  transition: all var(--transition);
}

.article-toc__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.article-toc__title {
  font-size: var(--fs-body);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.article-toc__title svg {
  color: var(--dabaco-orange);
}

.toc-chevron {
  transition: transform var(--transition);
  color: var(--text-muted);
}

.article-toc__header.is-collapsed .toc-chevron {
  transform: rotate(-90deg);
}

.article-toc__content.is-collapsed {
  display: none;
}

.toc-list {
  list-style: none;
  padding: 0.65rem 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 0.65rem;
}

.toc-item--h2 {
  padding-left: 0.5rem;
  font-weight: var(--font-weight-medium);
  font-size: var(--text-small-size);
}

.toc-item--h3 {
  padding-left: 1.5rem;
  font-size: var(--text-meta-size);
  color: var(--text-muted);
}

.toc-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition);
  display: inline-block;
  line-height: 1.45;
  position: relative;
  padding-left: 0.85rem;
}

.toc-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
  transition: all var(--transition);
}

.toc-link:hover {
  color: var(--dabaco-orange);
}

.toc-link:hover::before {
  background: var(--dabaco-orange);
  opacity: 1;
}

.toc-link.is-active {
  color: var(--dabaco-orange);
  font-weight: var(--font-weight-bold);
}

.toc-link.is-active::before {
  background: var(--dabaco-orange);
  width: 6px;
  height: 6px;
  opacity: 1;
  box-shadow: 0 0 6px rgba(243, 112, 33, 0.5);
}

/* --- Article Body Typography Enhancements -------------------------------- */
#article-body-content {
  font-size: var(--fs-h6);
  line-height: 1.72;
  color: #27272a;
  transition: font-size 0.2s ease-out;
}

#article-body-content.font-size--sm {
  font-size: var(--fs-small);
}

#article-body-content.font-size--lg {
  font-size: var(--fs-h5);
}

#article-body-content h2 {
  font-size: var(--fs-h3);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  line-height: 1.25;
  margin: 1.5rem 0 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(241, 90, 41, 0.15);
  font-family: var(--do-font-heading);
}

#article-body-content h3 {
  font-size: var(--fs-h4, 1.44rem);
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
  line-height: 1.3;
  margin: 1.2rem 0 0.5rem;
  font-family: var(--do-font-heading);
}

#article-body-content p {
  margin-bottom: 0.95rem;
}

#article-body-content ul,
#article-body-content ol {
  margin-bottom: 0.95rem;
  padding-left: 1.5rem;
}

#article-body-content li {
  margin-bottom: 0.35rem;
}

#article-body-content blockquote {
  background: var(--bg-light);
  border-left: 3.5px solid var(--dabaco-orange);
  padding: 0.85rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
  font-style: italic;
  color: var(--text-dark);
  font-size: var(--fs-body);
  line-height: 1.65;
}

#article-body-content blockquote cite {
  display: block;
  font-style: normal;
  font-size: var(--fs-small);
  color: var(--text-muted);
  font-weight: var(--font-weight-semibold);
  margin-top: 0.5rem;
  text-align: right;
}


/* --- Article Tables (Responsive & Styled) -------------------------------- */
#article-body-content table,
.article-body table {
  border-collapse: collapse;
  margin: 1rem 0;
  max-width: 100%;
}

#article-body-content :is(th, td),
.article-body :is(th, td) {
  padding: 0.4rem;
  border: 1px solid #ccc;
}

#article-body-content table[border="0"] :is(th, td),
.article-body table[border="0"] :is(th, td) {
  border: 0;
}

#article-body-content iframe,
.article-body iframe {
  max-width: 100%;
  border-radius: var(--do-radius-sm, 12px);
  margin: 1rem auto;
  display: block;
}

#article-body-content img,
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--do-radius-sm, 12px);
  margin: 1rem auto;
  display: block;
}

/* --- Article Tags -------------------------------------------------------- */
.article-tags-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  margin-top: 1.5rem;
}

.tags-title {
  font-size: var(--text-small-size);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tags-title svg {
  color: var(--dabaco-orange);
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-pill {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  font-size: var(--text-meta-size);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}

.tag-pill:hover {
  background: var(--dabaco-orange);
  color: #ffffff;
  border-color: var(--dabaco-orange);
  transform: translateY(-1px);
}

/* --- Bottom Social Share Bar --------------------------------------------- */
.article-bottom-bar {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}

.article-bottom-share {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.share-title {
  font-weight: var(--font-weight-bold);
  font-size: var(--text-reading-size);
  color: var(--text-dark);
}

.share-buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-small-size);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-share--fb {
  background: #1877F2;
  color: #ffffff;
}

.btn-share--fb:hover {
  background: #0c63d4;
  color: #ffffff;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-share--zalo {
  background: #0068FF;
  color: #ffffff;
}

.btn-share--zalo:hover {
  background: #0052cc;
  color: #ffffff;
  transform: translateY(-2px);
  text-decoration: none;
}

.zalo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #ffffff;
  color: #0068FF;
  font-size: var(--text-caption-size);
  font-weight: var(--font-weight-bold);
}

.btn-share--copy {
  background: var(--bg-white);
  color: var(--text-dark);
  border-color: var(--border-light);
}

.btn-share--copy:hover {
  border-color: var(--dabaco-orange);
  color: var(--dabaco-orange);
  transform: translateY(-2px);
}

/* --- Author & Source Card ------------------------------------------------ */
.article-source-box {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  margin-top: 0.5rem;
}

.source-box__icon {
  flex-shrink: 0;
  width: 100px;
}

.source-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.source-box__title {
  font-size: var(--fs-h6);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  margin: 0 0 0.35rem;
}

.source-box__desc {
  font-size: var(--text-small-size);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* --- Prev & Next Article Navigation -------------------------------------- */
.article-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.article-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition);
}

.article-nav:hover {
  border-color: var(--dabaco-orange);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.article-nav--prev {
  text-align: left;
}

.article-nav--next {
  text-align: right;
}

.nav-direction {
  font-size: var(--text-caption-size);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  color: var(--dabaco-orange);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.article-nav--next .nav-direction {
  justify-content: flex-end;
}

.nav-title {
  font-size: var(--text-reading-size);
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

/* ==========================================================================
   SIDEBAR SYSTEM — Modular & Sticky Widgets
   ========================================================================== */
.article-sidebar-col {
  position: relative;
}

.sidebar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-widget {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-subtle);
  transition: box-shadow var(--transition);
}

.sidebar-widget:hover {
  box-shadow: var(--shadow-card);
}

.sidebar-widget__title {
  font-size: var(--fs-body);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--dabaco-orange);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--do-font-heading);
}

.widget-title-icon {
  color: var(--dabaco-orange);
  flex-shrink: 0;
}

/* 1. Search Widget */
.search-input-group {
  position: relative;
  display: flex;
}

.sidebar-search-input {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  padding: 0.65rem 3rem 0.65rem 0.85rem;
  font-size: var(--text-reading-size);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.sidebar-search-input:focus {
  border-color: var(--dabaco-orange);
  box-shadow: 0 0 0 3px rgba(241, 90, 41, 0.15);
  outline: none;
}

.sidebar-search-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 38px;
  border: none;
  background: var(--dabaco-orange);
  color: #ffffff;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.sidebar-search-btn:hover {
  background: var(--dabaco-orange-hover);
}

/* 2. Categories Widget */
.sidebar-category-list {
}

.sidebar-category-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-category-item:last-child {
  border-bottom: none;
}

.sidebar-category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.4rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: var(--text-reading-size);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-xs);
  transition: all var(--transition);
}

.category-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cat-chevron {
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.category-count {
  font-size: var(--text-caption-size);
  font-weight: var(--font-weight-semibold);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  transition: all var(--transition);
}

.sidebar-category-link:hover {
  color: var(--dabaco-orange);
  padding-left: 0.65rem;
  background: rgba(241, 90, 41, 0.04);
  text-decoration: none;
}

.sidebar-category-link:hover .cat-chevron {
  transform: translateX(3px);
  color: var(--dabaco-orange);
}

.sidebar-category-item.is-active .sidebar-category-link {
  color: var(--dabaco-orange);
  font-weight: var(--font-weight-bold);
  background: rgba(241, 90, 41, 0.08);
  padding-left: 0.65rem;
}

.sidebar-category-item.is-active .category-count {
  background: var(--dabaco-orange);
  color: #ffffff;
}

/* 3. Recent News Widget */
.sidebar-post-list {
}

.sidebar-post-item {
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-light);
}

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

.sidebar-post-thumb {
  flex-shrink: 0;
  width: 75px;
  height: 55px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-light);
  text-decoration: none;
}

.sidebar-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.sidebar-post-thumb:hover img {
  transform: scale(1.08);
}

.sidebar-post-thumb.is-logo-placeholder {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
}

.sidebar-post-thumb.is-logo-placeholder img,
.sidebar-post-thumb img.sidebar-post-thumb-logo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 32px;
  object-fit: contain;
  transition: transform var(--transition);
}

.sidebar-post-thumb.is-logo-placeholder:hover img {
  transform: scale(1.06);
}

.sidebar-post-content {
  flex: 1;
  min-width: 0;
}

.sidebar-post-date {
  font-size: var(--text-caption-size);
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.sidebar-post-title {
  font-size: var(--fs-body);
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sidebar-post-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--transition);
}

.sidebar-post-title a:hover {
  color: var(--dabaco-orange);
}

/* 4. Trending / Most Viewed Widget */
.sidebar-trending-list {
}

.sidebar-trending-item {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

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

.trending-rank {
  font-size: var(--fs-h4);
  font-weight: 800;
  font-family: var(--do-font-heading);
  color: var(--dabaco-orange);
  min-width: 28px;
  line-height: 1.2;
  opacity: 0.85;
}

.trending-info {
  flex: 1;
  min-width: 0;
}

.trending-title {
  font-size: var(--text-small-size);
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
  margin: 0 0 0.25rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.trending-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--transition);
}

.trending-title a:hover {
  color: var(--dabaco-orange);
}

.trending-date {
  font-size: var(--text-caption-size);
  color: var(--text-muted);
}

/* 5. Product Spotlight Widget */

/* 6. Hotline Widget */
.sidebar-widget--hotline {
  background: linear-gradient(145deg, var(--dabaco-blue) 0%, var(--dabaco-blue-hover) 100%);
  color: var(--bg-white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.75rem 1.35rem;
  box-shadow: 0 8px 24px rgba(29, 117, 189, 0.16);
  text-align: center;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-widget--hotline:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(29, 117, 189, 0.24);
}

.hotline-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
  color: #ffffff;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.sidebar-widget--hotline:hover .hotline-icon-wrap {
  transform: translateY(-2px) scale(1.05);
  background: rgba(255, 255, 255, 0.24);
}

.hotline-card__title {
  color: #ffffff;
  font-size: var(--fs-h5);
  font-weight: var(--font-weight-bold);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.hotline-card__sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-body);
  margin: 0 0 0.85rem;
  line-height: 1.5;
}

.hotline-card__phone {
  display: inline-block;
  font-size: var(--fs-h3);
  font-weight: 800;
  color: #FFD200;
  text-decoration: none;
  margin-bottom: 0.65rem;
  font-family: var(--do-font-heading);
  letter-spacing: 0.5px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hotline-card__phone:hover {
  color: #ffffff;
  transform: translateY(-2px) scale(1.04);
  text-shadow: 0 0 18px rgba(255, 210, 0, 0.7);
  text-decoration: none;
}

.hotline-card__email {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hotline-card__email a {
  color: #ffffff;
  text-decoration: none !important;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hotline-card__email a:hover {
  background: var(--bg-white);
  color: var(--dabaco-blue);
  border-color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  text-decoration: none;
}

.btn-hotline-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: var(--bg-white);
  text-decoration: none;
  font-size: var(--text-small-size);
  font-weight: var(--font-weight-semibold);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hotline-outline:hover {
  background: var(--bg-white);
  color: var(--dabaco-blue);
  border-color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

/* 7. Tags Cloud Widget */

/* --- Toast Notification -------------------------------------------------- */
.article-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1D1D1B;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--text-small-size);
  font-weight: var(--font-weight-medium);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.article-toast svg {
  color: #10B981;
  flex-shrink: 0;
}

/* --- Reading Progress Bar ------------------------------------------------ */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5px;
  background: rgba(0, 0, 0, 0.05);
  z-index: 9999;
  pointer-events: none;
}

.reading-progress-bar__indicator {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f37021 0%, #ff9800 60%, #e53935 100%);
  box-shadow: 0 0 10px rgba(243, 112, 33, 0.7);
  transition: width 0.1s ease-out;
}

/* --- Reading Tools & Action Bar ------------------------------------------- */

.font-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-caption-size);
  font-weight: var(--font-weight-semibold);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.2;
}

.font-btn:hover {
  color: var(--text-dark);
}

.font-btn.is-active {
  background: #ffffff;
  color: var(--dabaco-orange);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* --- Article Comments & Discussion Section -------------------------------- */

@keyframes commentFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767.98px) {
  #article-body-content table,
  .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
