/* =============================================
   BLOG STYLES — In Thành Trung
   Extends styles-v2.css design system
   ============================================= */

/* --- Blog Hero Banner --- */
.blog-hero {
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f7f5 0%, #e8e6e0 100%);
}

.blog-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200, 150, 62, .08), transparent 70%),
              radial-gradient(ellipse at 80% 80%, rgba(27, 42, 74, .05), transparent 50%);
}

.blog-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.blog-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 18px;
}

.blog-hero-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* --- Blog Search --- */
.blog-search-wrap {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.blog-search-input {
  width: 100%;
  padding: 16px 56px 16px 24px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: .95rem;
  background: var(--surface);
  transition: var(--transition);
  font-family: var(--font-body);
}

.blog-search-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(200, 150, 62, .1), var(--shadow-md);
}

.blog-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.blog-search-btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--shadow-gold);
}

/* --- Category Tabs --- */
.blog-categories {
  padding: 24px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 72px;
  z-index: 100;
  backdrop-filter: blur(20px);
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

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

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-alt);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--font-body);
}

.cat-tab:hover {
  color: var(--secondary);
  background: rgba(200, 150, 62, .06);
  border-color: rgba(200, 150, 62, .2);
}

.cat-tab.active {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: #fff;
  border-color: var(--secondary);
  box-shadow: var(--shadow-gold);
}

.cat-tab-count {
  font-size: .72rem;
  background: rgba(255, 255, 255, .2);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
}

.cat-tab.active .cat-tab-count {
  background: rgba(255, 255, 255, .3);
}

/* --- Blog Layout --- */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: flex-start;
}

/* --- Featured Article --- */
.featured-article {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: 48px;
  transition: var(--transition);
}

.featured-article:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.featured-img {
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  position: relative;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

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

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
  z-index: 2;
}

.featured-body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-cat {
  font-size: .75rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.featured-body h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 14px;
}

.featured-body h2 a {
  transition: var(--transition);
}

.featured-body h2 a:hover {
  color: var(--secondary);
}

.featured-excerpt {
  font-size: .92rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .82rem;
  color: var(--text-muted);
}

.featured-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- Blog Articles Grid --- */
.blog-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-article-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.bac-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.bac-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.blog-article-card:hover .bac-img img {
  transform: scale(1.08);
}

.bac-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(27, 42, 74, .85);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  z-index: 2;
}

.bac-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bac-body h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .98rem;
  color: var(--primary);
  line-height: 1.45;
  margin-bottom: 10px;
}

.bac-body h3 a {
  transition: var(--transition);
}

.bac-body h3 a:hover {
  color: var(--secondary);
}

.bac-excerpt {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bac-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: .78rem;
  color: var(--text-muted);
}

.bac-read-more {
  font-weight: 600;
  color: var(--secondary);
  transition: var(--transition);
}

.bac-read-more:hover {
  color: var(--secondary-dark);
}

/* --- Sidebar --- */
.blog-sidebar {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-widget {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-light);
}

.sidebar-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Popular Posts Widget --- */
.popular-post {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

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

.popular-post:first-child {
  padding-top: 0;
}

.popular-post:hover {
  padding-left: 4px;
}

.pp-num {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pp-content h4 {
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 4px;
  transition: var(--transition);
}

.popular-post:hover .pp-content h4 {
  color: var(--secondary);
}

.pp-content span {
  font-size: .72rem;
  color: var(--text-muted);
}

/* --- Category Widget --- */
.sidebar-cat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.sidebar-cat-item:hover {
  background: rgba(200, 150, 62, .06);
  color: var(--secondary);
  padding-left: 18px;
}

.sidebar-cat-item.active {
  background: rgba(200, 150, 62, .1);
  color: var(--secondary);
  font-weight: 600;
}

.sidebar-cat-count {
  font-size: .72rem;
  background: var(--bg-alt);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  color: var(--text-muted);
}

/* --- Tags Widget --- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-light);
  background: var(--bg-alt);
  border: 1px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}

.tag-item:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  background: rgba(200, 150, 62, .06);
}

/* --- CTA Widget --- */
.sidebar-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border: none;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sidebar-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(200, 150, 62, .2), transparent 70%);
  border-radius: 50%;
}

.sidebar-cta .sidebar-cta-inner {
  position: relative;
  z-index: 1;
}

.sidebar-cta h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.sidebar-cta p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .7);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.page-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--surface);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.page-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.page-btn.active {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: #fff;
  border-color: var(--secondary);
  box-shadow: var(--shadow-gold);
}

.page-btn.disabled {
  opacity: .4;
  pointer-events: none;
}

/* =============================================
   ARTICLE DETAIL PAGE STYLES — V2 REDESIGN
   Premium editorial design with immersive hero,
   enhanced typography, glassmorphism TOC
   ============================================= */

/* --- Reading Progress Bar (Enhanced) --- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), #d4a040, var(--secondary-light));
  z-index: 9999;
  transition: width .1s linear;
  box-shadow: 0 0 12px rgba(200, 150, 62, .4);
}

/* --- Immersive Article Header (P0) --- */
.article-header {
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  background: #0f1a2e;
}

.article-header-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 26, 46, .97) 0%, rgba(15, 26, 46, .6) 40%, rgba(15, 26, 46, .25) 100%);
  z-index: 2;
}

/* Hero background image — injected via featured img */
.article-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  z-index: 0;
}

.article-header-inner {
  position: relative;
  z-index: 3;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 120px 24px 56px;
}

.article-detail-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(200, 150, 62, .2);
  border: 1px solid rgba(200, 150, 62, .35);
  border-radius: 24px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--secondary-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.article-detail-cat .bi {
  width: 16px;
  height: 16px;
  stroke: var(--secondary-light);
}

.article-detail-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: -.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.article-detail-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .65);
  flex-wrap: wrap;
}

.article-detail-meta .bi {
  stroke: var(--secondary-light);
  opacity: .8;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta-divider {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, .3);
  border-radius: 50%;
}

/* --- Article Featured Image (inside header) --- */
.article-featured-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  margin: 0;
  max-width: none;
}

.article-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  filter: brightness(.55) saturate(1.1);
  transition: filter .6s ease;
}

/* --- Article Layout (Widened TOC) --- */
.article-detail-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 48px;
  align-items: flex-start;
}

/* --- Table of Contents — Glassmorphism (P1) --- */
.toc-sidebar {
  position: sticky;
  top: 100px;
}

.toc-widget {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(200, 150, 62, .12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .05);
  transition: box-shadow .3s ease;
}

.toc-widget:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, .08);
}

.toc-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .85rem;
  color: var(--primary);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-list li {
  position: relative;
}

.toc-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: .8rem;
  color: var(--text-light);
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  line-height: 1.4;
  position: relative;
}

/* Progress dot */
.toc-list li a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: all .3s ease;
}

.toc-list li a:hover {
  color: var(--secondary);
  background: rgba(200, 150, 62, .06);
  border-left-color: rgba(200, 150, 62, .3);
  padding-left: 18px;
}

.toc-list li a:hover::before {
  background: var(--secondary);
  transform: scale(1.3);
}

.toc-list li a.active {
  color: var(--secondary);
  background: rgba(200, 150, 62, .08);
  border-left-color: var(--secondary);
  font-weight: 600;
  padding-left: 18px;
}

.toc-list li a.active::before {
  background: var(--secondary);
  box-shadow: 0 0 8px rgba(200, 150, 62, .4);
  transform: scale(1.5);
}

/* --- Article Body — Enhanced Typography (P0) --- */
.article-detail-body {
  max-width: 740px;
  padding-bottom: 20px;
}

/* Drop Cap — Editorial Style */
.article-detail-body > div[itemprop="articleBody"] > p:first-child {
  font-size: 1.12rem;
  line-height: 2;
  color: var(--text);
}

.article-detail-body > div[itemprop="articleBody"] > p:first-child::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-size: 4.2rem;
  font-weight: 900;
  color: var(--secondary);
  line-height: .82;
  padding-right: 14px;
  padding-top: 6px;
  text-shadow: 2px 2px 0 rgba(200, 150, 62, .1);
}

/* H2 — Gold accent bar with subtle glow */
.article-detail-body h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 56px 0 20px;
  padding: 18px 0 18px 24px;
  line-height: 1.35;
  border-left: 5px solid var(--secondary);
  background: linear-gradient(90deg, rgba(200, 150, 62, .06), transparent 70%);
  border-radius: 0 12px 12px 0;
  position: relative;
}

.article-detail-body h2::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--secondary), #d4a040);
  border-radius: 3px 0 0 3px;
  box-shadow: 0 0 12px rgba(200, 150, 62, .25);
}

.article-detail-body h2:first-of-type {
  margin-top: 36px;
}

/* H3 — Subtle accent */
.article-detail-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 32px 0 14px;
  line-height: 1.4;
  padding-left: 16px;
  position: relative;
}

.article-detail-body h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--secondary);
  border-radius: 2px;
  opacity: .5;
}

/* Body text — Optimized readability */
.article-detail-body p {
  font-size: 1.02rem;
  color: var(--text);
  line-height: 2;
  margin-bottom: 20px;
  letter-spacing: .008em;
}

/* Links in body */
.article-detail-body a {
  color: var(--secondary-dark);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(200, 150, 62, .3);
  text-underline-offset: 3px;
  transition: all .3s ease;
}

.article-detail-body a:hover {
  color: var(--secondary);
  text-decoration-color: var(--secondary);
}

/* Lists — Better spacing */
.article-detail-body ul,
.article-detail-body ol {
  padding-left: 0;
  margin-bottom: 24px;
  list-style: none;
}

.article-detail-body li {
  font-size: .96rem;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 12px;
  padding-left: 32px;
  position: relative;
}

.article-detail-body ul > li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 11px;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--secondary), #d4a040);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(200, 150, 62, .2);
}

.article-detail-body ol {
  counter-reset: ol-counter;
}

.article-detail-body ol > li {
  counter-increment: ol-counter;
}

.article-detail-body ol > li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 2px;
  top: 3px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--secondary), #d4a040);
  border-radius: 50%;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(200, 150, 62, .2);
}

.article-detail-body li strong {
  color: var(--primary);
}

/* Blockquote — Premium with quote mark */
.article-detail-body blockquote {
  border-left: 5px solid var(--secondary);
  background: linear-gradient(135deg, rgba(200, 150, 62, .05), rgba(200, 150, 62, .01));
  padding: 28px 28px 28px 32px;
  margin: 32px 0;
  border-radius: 0 16px 16px 0;
  font-style: italic;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.article-detail-body blockquote::before {
  content: '"';
  font-size: 5rem;
  color: var(--secondary);
  opacity: .12;
  position: absolute;
  top: -12px;
  left: 16px;
  font-family: Georgia, serif;
  line-height: 1;
}

.article-detail-body img {
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .08);
  margin: 28px 0;
  transition: transform .4s ease, box-shadow .4s ease;
}

.article-detail-body img:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
}

/* --- Table Styling — Interactive (P1) --- */
.article-detail-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 32px 0;
  border-radius: 16px;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}

.article-detail-body thead {
  background: linear-gradient(135deg, #0f1a2e, #1B2A4A);
}

.article-detail-body th {
  padding: 16px 20px;
  text-align: left;
  color: #fff;
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .3px;
  text-transform: none;
}

.article-detail-body th:first-child {
  padding-left: 24px;
}

.article-detail-body th:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.article-detail-body td {
  padding: 15px 20px;
  font-size: .88rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  transition: all .3s ease;
}

.article-detail-body td:first-child {
  padding-left: 24px;
}

.article-detail-body td:not(:last-child) {
  border-right: 1px solid var(--border-light);
}

.article-detail-body tr:last-child td {
  border-bottom: none;
}

.article-detail-body tbody tr:nth-child(even) {
  background: rgba(27, 42, 74, .018);
}

.article-detail-body tbody tr {
  transition: all .3s ease;
}

.article-detail-body tbody tr:hover {
  background: rgba(200, 150, 62, .06);
  transform: scale(1.005);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.article-detail-body td strong {
  color: var(--primary);
  font-weight: 600;
}

/* --- Article Image Figure --- */
.article-img {
  margin: 36px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  border: 1px solid var(--border-light);
  background: var(--surface);
}

.article-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  transition: transform .6s ease;
}

.article-img:hover img {
  transform: scale(1.03);
}

.article-img figcaption,
.article-img .img-caption {
  padding: 14px 22px;
  font-size: .8rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  line-height: 1.55;
  text-align: center;
  font-style: italic;
  letter-spacing: .01em;
}

/* --- Two-column Image Grid --- */
.article-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 36px 0;
}

.article-img-grid .article-img {
  margin: 0;
}

.article-img-grid .article-img img {
  height: 220px;
  object-fit: cover;
}

/* --- Key Takeaway Box — Premium (P1) --- */
.key-takeaway {
  background: linear-gradient(135deg, #fffbeb, #fff9e6, #fff);
  border: none;
  border-radius: 20px;
  padding: 36px 32px 32px;
  margin: 36px 0;
  position: relative;
  box-shadow: 0 4px 24px rgba(200, 150, 62, .08);
  overflow: hidden;
}

.key-takeaway::before {
  content: '🔑';
  position: absolute;
  top: -1px;
  left: 28px;
  background: linear-gradient(135deg, var(--secondary), #d4a040);
  width: 44px;
  height: 44px;
  border-radius: 0 0 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(200, 150, 62, .3);
}

.key-takeaway::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), #d4a040, var(--secondary-light));
}

.key-takeaway h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--secondary-dark);
  margin-bottom: 14px;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding-left: 56px;
}

.key-takeaway ul {
  padding-left: 24px;
  margin: 0;
}

.key-takeaway li {
  font-size: .9rem;
  line-height: 1.75;
  margin-bottom: 8px;
}

/* --- Step Cards --- */
.step-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.step-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.step-num {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  border-radius: 50%;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-card h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.step-card p {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* --- Stat Highlight Row — Animated (P1) --- */
.stat-highlight-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0;
}

.stat-highlight {
  text-align: center;
  padding: 30px 18px 26px;
  background: linear-gradient(145deg, #0f1a2e, #1B2A4A);
  border-radius: 16px;
  color: #fff;
  border: 1px solid rgba(200, 150, 62, .15);
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
}

/* Shine sweep effect */
.stat-highlight::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 42%,
    rgba(200, 150, 62, .06) 48%,
    rgba(200, 150, 62, .06) 52%,
    transparent 58%
  );
  transition: transform .8s ease;
  transform: translateX(-100%) translateY(-100%);
}

.stat-highlight:hover::after {
  transform: translateX(100%) translateY(100%);
}

.stat-highlight:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(27, 42, 74, .25);
  border-color: rgba(200, 150, 62, .3);
}

.stat-highlight .sh-num {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--secondary-light);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.stat-highlight .sh-label {
  font-size: .75rem;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .3px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

/* --- Comparison Box --- */
.vs-box {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  margin: 32px 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.vs-side {
  padding: 28px 24px;
  background: var(--surface);
}

.vs-side h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
}

.vs-side ul {
  padding-left: 18px;
  margin: 0;
}

.vs-side li {
  font-size: .85rem;
  line-height: 1.65;
  margin-bottom: 6px;
}

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  padding: 0 12px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--secondary);
}

/* --- Blockquote Enhanced --- */
.article-detail-body blockquote.expert-quote {
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg, rgba(27,42,74,.04), rgba(27,42,74,.01));
  padding: 24px 28px;
  position: relative;
}

.article-detail-body blockquote.expert-quote::before {
  content: '"';
  font-size: 4rem;
  color: var(--secondary);
  opacity: .2;
  position: absolute;
  top: -10px;
  left: 12px;
  font-family: serif;
  line-height: 1;
}

/* --- Info Box — Premium (P1) --- */
.info-box {
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  border: none;
  border-left: 5px solid #3B82F6;
  border-radius: 0 16px 16px 0;
  padding: 24px 28px;
  margin: 28px 0;
  position: relative;
  box-shadow: 0 2px 16px rgba(59, 130, 246, .06);
}

.info-box.tip {
  background: linear-gradient(135deg, #f0fdf4, #f8fef8);
  border-left-color: #22C55E;
  box-shadow: 0 2px 16px rgba(34, 197, 94, .06);
}

.info-box.warning {
  background: linear-gradient(135deg, #fffbeb, #fefce8);
  border-left-color: #F59E0B;
  box-shadow: 0 2px 16px rgba(245, 158, 11, .06);
}

.info-box h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.info-box p {
  font-size: .9rem;
  margin-bottom: 0;
  line-height: 1.75;
}

/* --- Responsive for new components --- */
@media (max-width: 768px) {
  .article-img-grid {
    grid-template-columns: 1fr;
  }
  .stat-highlight-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .vs-box {
    grid-template-columns: 1fr;
  }
  .vs-divider {
    padding: 12px;
  }
  .step-card {
    flex-direction: column;
    gap: 12px;
  }
}

/* --- Share Buttons --- */
.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  margin: 40px 0;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.share-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  margin-right: 8px;
  white-space: nowrap;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  color: #fff;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.share-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.share-btn.facebook { background: #1877F2; }
.share-btn.zalo { background: #0068FF; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.copy { background: var(--text-muted); }

/* --- Author Box — Premium (P1) --- */
.author-box {
  display: flex;
  gap: 22px;
  align-items: center;
  background: linear-gradient(135deg, #faf8f5, #fff);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(200, 150, 62, .1);
  margin: 40px 0;
  transition: all .4s ease;
  position: relative;
  overflow: hidden;
}

.author-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), #d4a040, var(--secondary-light));
}

.author-box:hover {
  box-shadow: 0 8px 32px rgba(200, 150, 62, .1);
  border-color: rgba(200, 150, 62, .2);
  transform: translateY(-2px);
}

.author-box-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #243656);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-light);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(27, 42, 74, .2);
  border: 3px solid rgba(200, 150, 62, .2);
}

.author-box-info h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.author-box-info p {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 0;
}

/* --- Related Articles --- */
.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- Blog Article CTA Banner (Redesigned) --- */
.blog-cta-banner {
  background: linear-gradient(135deg, #0f1a2e 0%, #1B2A4A 40%, #243656 100%);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 48px 0;
  border: 1px solid rgba(200, 150, 62, .2);
}

.blog-cta-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -25%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 150, 62, .12), transparent 70%);
  border-radius: 50%;
}

.blog-cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(59, 130, 246, .08), transparent 70%);
  border-radius: 50%;
}

.cta-decor {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200, 150, 62, .15);
}
.cta-decor-1 { width: 200px; height: 200px; top: -60px; right: -40px; }
.cta-decor-2 { width: 120px; height: 120px; bottom: -30px; left: 40px; border-color: rgba(255,255,255,.06); }

.cta-icon-float {
  position: absolute;
  font-size: 2rem;
  opacity: .12;
  animation: float-card 4s ease-in-out infinite;
}
.cta-float-1 { top: 20px; left: 30px; animation-delay: 0s; }
.cta-float-2 { top: 30px; right: 60px; animation-delay: 1.3s; font-size: 2.5rem; }
.cta-float-3 { bottom: 20px; left: 50%; animation-delay: 2.6s; }

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(200, 150, 62, .2);
  border: 1px solid rgba(200, 150, 62, .3);
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--secondary-light);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.blog-cta-banner h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #fff, var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-cta-banner p {
  color: rgba(255, 255, 255, .65);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: .92rem;
  line-height: 1.7;
}

.blog-cta-banner p strong {
  color: var(--secondary-light);
  font-weight: 700;
}

.cta-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 28px;
}

.cta-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--secondary-light);
  line-height: 1;
  margin-bottom: 4px;
}

.cta-stat-label {
  font-size: .72rem;
  color: rgba(255, 255, 255, .5);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-btn-main {
  background: linear-gradient(135deg, var(--secondary), #d4a040) !important;
  color: var(--primary-dark) !important;
  border: none !important;
  font-weight: 700 !important;
  padding: 14px 32px !important;
  font-size: .92rem !important;
  box-shadow: 0 4px 20px rgba(200, 150, 62, .35);
  transition: var(--transition) !important;
}

.cta-btn-main:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 30px rgba(200, 150, 62, .5) !important;
}

.cta-btn-phone {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .25) !important;
  padding: 14px 28px !important;
  font-size: .92rem !important;
  backdrop-filter: blur(4px);
  transition: var(--transition) !important;
}

.cta-btn-phone:hover {
  background: rgba(255, 255, 255, .1) !important;
  border-color: rgba(255, 255, 255, .4) !important;
  transform: translateY(-3px) !important;
}

.blog-cta-banner .btn {
  position: relative;
  z-index: 1;
}

/* --- Article Tags --- */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-light);
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.article-tag:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

/* --- FAQ Accordion — Enhanced (P2) --- */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 14px !important;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
}

.faq-item:hover {
  border-color: rgba(200, 150, 62, .3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
}

.faq-item.open {
  border-color: var(--secondary);
  box-shadow: 0 6px 24px rgba(200, 150, 62, .08);
}

.faq-question {
  width: 100%;
  padding: 20px 24px !important;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: .95rem !important;
  font-weight: 600 !important;
  color: var(--primary) !important;
  text-align: left;
  cursor: pointer;
  border: none !important;
  background: none !important;
  font-family: var(--font-body) !important;
  transition: all .3s ease;
  line-height: 1.5;
}

.faq-question:hover {
  color: var(--secondary) !important;
}

.faq-toggle {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--bg-alt), #fff);
  border: 2px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  color: var(--text-muted);
}

.faq-item.open .faq-toggle {
  background: linear-gradient(135deg, var(--secondary), #d4a040);
  border-color: var(--secondary);
  color: #fff;
  transform: rotate(135deg);
  box-shadow: 0 4px 12px rgba(200, 150, 62, .3);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height .5s cubic-bezier(.4, 0, .2, 1),
              opacity .4s ease .1s,
              transform .4s ease .1s;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
}

.faq-answer p {
  padding: 0 24px 22px;
  font-size: .9rem !important;
  line-height: 1.85;
  color: var(--text-light);
  margin: 0;
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-img {
    min-height: 240px;
  }

  .article-detail-layout {
    grid-template-columns: 1fr;
  }

  .toc-sidebar {
    position: static;
  }

  .toc-widget {
    display: none;
  }

  .related-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 80px 0 40px;
  }

  .blog-hero-title {
    font-size: 1.8rem;
  }

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

  .blog-sidebar {
    grid-template-columns: 1fr;
  }

  .featured-body {
    padding: 24px 20px;
  }

  .featured-body h2 {
    font-size: 1.3rem;
  }

  .category-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .article-header {
    min-height: 400px;
    padding: 0;
  }

  .article-header-inner {
    padding: 100px 16px 40px;
  }

  .article-detail-title {
    font-size: 1.5rem;
  }

  .article-featured-img img {
    height: 100%;
  }

  .article-detail-body h2 {
    font-size: 1.3rem;
  }

  .article-share {
    flex-wrap: wrap;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

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

  .blog-cta-banner {
    padding: 36px 20px;
  }

  .blog-cta-banner h3 {
    font-size: 1.2rem;
  }

  .cta-stats {
    gap: 20px;
  }

  .cta-stat-num {
    font-size: 1.2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn-main,
  .cta-btn-phone {
    width: 100% !important;
    text-align: center;
  }

  .cta-icon-float {
    display: none;
  }
}

@media (max-width: 480px) {
  .blog-hero-title {
    font-size: 1.5rem;
  }

  .article-detail-meta {
    flex-direction: column;
    gap: 8px;
  }

  .article-meta-divider {
    display: none;
  }
}

/* =============================================
   SPRINT 1 — P0 ENHANCEMENTS
   Floating CTA, Animated Hero, Load More,
   Back-to-Top, Sidebar Thumbnails, Newsletter
   ============================================= */

/* --- 1. Animated Blog Hero — Floating Shapes --- */
.blog-hero {
  padding: 110px 0 70px;
}

.blog-hero-bg::before,
.blog-hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: .08;
  animation: heroFloat 8s ease-in-out infinite;
}

.blog-hero-bg::before {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--secondary), #d4a040);
  top: -80px;
  right: -60px;
  animation-delay: 0s;
}

.blog-hero-bg::after {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--primary), #2d4a7a);
  bottom: -50px;
  left: -40px;
  animation-delay: -4s;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(5deg); }
  66% { transform: translateY(10px) rotate(-3deg); }
}

.blog-hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-shape {
  position: absolute;
  opacity: .06;
  animation: shapeFloat 12s ease-in-out infinite;
}

.hero-shape:nth-child(1) {
  width: 64px; height: 64px;
  border: 3px solid var(--secondary);
  border-radius: 12px;
  top: 20%; left: 8%;
  transform: rotate(45deg);
  animation-duration: 10s;
}

.hero-shape:nth-child(2) {
  width: 40px; height: 40px;
  background: var(--secondary);
  border-radius: 50%;
  top: 30%; right: 12%;
  animation-duration: 14s;
  animation-delay: -2s;
}

.hero-shape:nth-child(3) {
  width: 80px; height: 80px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  bottom: 15%; left: 15%;
  animation-duration: 16s;
  animation-delay: -6s;
}

.hero-shape:nth-child(4) {
  width: 48px; height: 48px;
  border: 3px solid var(--secondary);
  top: 60%; right: 20%;
  animation-duration: 11s;
  animation-delay: -3s;
}

.hero-shape:nth-child(5) {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 6px;
  top: 15%; right: 30%;
  transform: rotate(30deg);
  animation-duration: 13s;
  animation-delay: -7s;
}

@keyframes shapeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: .06; }
  25% { transform: translateY(-15px) rotate(10deg); opacity: .1; }
  50% { transform: translateY(5px) rotate(-5deg); opacity: .04; }
  75% { transform: translateY(-8px) rotate(3deg); opacity: .08; }
}

/* Hero Stats Counter */
.blog-hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  display: block;
  background: linear-gradient(135deg, var(--secondary), #d4a040);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 4px;
  display: block;
}

/* --- 2. Floating CTA Button (Zalo + Phone) --- */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  transition: opacity .4s ease, transform .4s ease;
}

.floating-cta.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.floating-cta-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .15);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  text-decoration: none;
  position: relative;
}

.floating-cta-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .2);
}

.floating-cta-btn.cta-zalo {
  background: linear-gradient(135deg, #0068FF, #0088FF);
}

.floating-cta-btn.cta-phone {
  background: linear-gradient(135deg, var(--secondary), #d4a040);
  animation: ctaPulse 3s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(200, 150, 62, .2); }
  50% { box-shadow: 0 6px 24px rgba(200, 150, 62, .5), 0 0 0 8px rgba(200, 150, 62, .1); }
}

.floating-cta-btn .cta-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  transform: translateY(-50%) translateX(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}

.floating-cta-btn .cta-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--primary);
  border-right: none;
}

.floating-cta-btn:hover .cta-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* --- 3. Load More / Pagination --- */
.load-more-wrap {
  text-align: center;
  margin-top: 40px;
  padding: 20px 0;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: .92rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
}

.load-more-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--secondary), #d4a040);
  opacity: 0;
  transition: opacity .4s ease;
  border-radius: inherit;
}

.load-more-btn:hover {
  border-color: var(--secondary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.load-more-btn:hover::before {
  opacity: 1;
}

.load-more-btn span {
  position: relative;
  z-index: 1;
}

.load-more-btn .load-more-icon {
  position: relative;
  z-index: 1;
  transition: transform .4s ease;
}

.load-more-btn:hover .load-more-icon {
  transform: translateY(3px);
}

.load-more-count {
  display: block;
  margin-top: 12px;
  font-size: .8rem;
  color: var(--text-muted);
}

/* Blog card hidden state for pagination */
.blog-article-card.card-hidden {
  display: none !important;
}

/* --- 4. Back-to-Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9990;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(27, 42, 74, .2);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* Scroll progress ring */
.back-to-top .progress-ring {
  position: absolute;
  inset: -3px;
  width: 54px;
  height: 54px;
  transform: rotate(-90deg);
}

.back-to-top .progress-ring circle {
  fill: none;
  stroke: var(--secondary);
  stroke-width: 2;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  stroke-linecap: round;
  transition: stroke-dashoffset .1s linear;
}

/* --- 5. Enhanced Popular Posts with Thumbnails --- */
.popular-post-enhanced {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  align-items: center;
}

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

.popular-post-enhanced:first-child {
  padding-top: 0;
}

.popular-post-enhanced:hover {
  padding-left: 4px;
}

.pp-thumbnail {
  width: 72px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.pp-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.popular-post-enhanced:hover .pp-thumbnail img {
  transform: scale(1.1);
}

.pp-rank {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: .65rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.pp-rank.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); }
.pp-rank.rank-2 { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); }
.pp-rank.rank-3 { background: linear-gradient(135deg, #CD7F32, #B87333); }
.pp-rank.rank-4,
.pp-rank.rank-5 { background: var(--primary); opacity: .8; }

.pp-enhanced-content h4 {
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 4px;
  transition: var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-post-enhanced:hover .pp-enhanced-content h4 {
  color: var(--secondary);
}

.pp-enhanced-content span {
  font-size: .7rem;
  color: var(--text-muted);
}

/* --- 6. Newsletter Widget --- */
.newsletter-widget {
  background: linear-gradient(135deg, #0f1a2e, #1B2A4A);
  border: none;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 32px 24px !important;
}

.newsletter-widget::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(200, 150, 62, .15), transparent 70%);
  border-radius: 50%;
}

.newsletter-widget::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(200, 150, 62, .1), transparent 70%);
  border-radius: 50%;
}

.newsletter-inner {
  position: relative;
  z-index: 1;
}

.newsletter-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
  animation: newsletterBounce 3s ease-in-out infinite;
}

@keyframes newsletterBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.newsletter-widget h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #fff;
  border: none;
  padding: 0;
}

.newsletter-widget p {
  font-size: .82rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.6;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: .85rem;
  font-family: var(--font-body);
  transition: border-color .3s ease;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, .4);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(255, 255, 255, .12);
}

.newsletter-submit {
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--secondary), #d4a040);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: all .3s ease;
  font-family: var(--font-body);
  white-space: nowrap;
}

.newsletter-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.newsletter-privacy {
  font-size: .68rem;
  color: rgba(255, 255, 255, .35);
  margin-top: 10px;
}

/* --- 7. Content Freshness Badges --- */
.freshness-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  z-index: 3;
  backdrop-filter: blur(8px);
}

.freshness-badge.badge-new {
  background: rgba(16, 185, 129, .85);
  color: #fff;
}

.freshness-badge.badge-hot {
  background: rgba(239, 68, 68, .85);
  color: #fff;
  animation: badgePulse 2s ease-in-out infinite;
}

.freshness-badge.badge-updated {
  background: rgba(59, 130, 246, .85);
  color: #fff;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}

/* --- Responsive additions --- */
@media (max-width: 768px) {
  .floating-cta {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }

  .floating-cta-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .floating-cta-btn .cta-tooltip {
    display: none;
  }

  .back-to-top {
    bottom: 16px;
    left: 16px;
    width: 42px;
    height: 42px;
  }

  .blog-hero-stats {
    gap: 24px;
  }

  .hero-stat-num {
    font-size: 1.4rem;
  }

  .hero-stat-label {
    font-size: .68rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .pp-thumbnail {
    width: 60px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .blog-hero-stats {
    gap: 16px;
  }

  .hero-stat-num {
    font-size: 1.2rem;
  }
}

/* --- Print Friendly --- */
@media print {
  .header, .footer, .blog-sidebar, .toc-sidebar,
  .blog-cta-banner, .article-share, .article-tags,
  .related-articles-grid, .floating-cta, .back-to-top,
  .blog-categories, .blog-search-wrap, .blog-hero,
  .reading-progress, .load-more-wrap {
    display: none !important;
  }

  .article-detail-body {
    max-width: 100%;
    font-size: 11pt;
  }

  .article-detail-layout {
    grid-template-columns: 1fr;
  }

  .article-detail-body img {
    max-width: 80%;
    margin: 10pt auto;
    box-shadow: none;
  }

  .article-header {
    min-height: auto;
    background: #fff !important;
    color: #000 !important;
  }

  .article-detail-title {
    color: #000 !important;
    text-shadow: none !important;
  }
}
