/**
 * LADIGI Toplist & Directory Portal - Frontend Stylesheet
 * Chuẩn UI 2026: Hiện đại, Tinh tế, Responsive & Tương thích mọi Theme WordPress
 */

:root {
  --ldg-primary: #2563eb;
  --ldg-primary-hover: #1d4ed8;
  --ldg-accent: #f59e0b;
  --ldg-dark: #0f172a;
  --ldg-text: #334155;
  --ldg-muted: #64748b;
  --ldg-border: #e2e8f0;
  --ldg-bg-card: #ffffff;
  --ldg-radius: 14px;
  --ldg-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --ldg-shadow-hover: 0 12px 30px -4px rgba(37, 99, 235, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   0. TYPOGRAPHY & CHUẨN HÓA BÀI VIẾT TOPLIST (TITLE ĐẾN TOÀN BỘ CONTENT)
   ========================================================================== */

/* Tiêu đề bài viết H1 Chuẩn Editorial / Tạp chí cao cấp */
.single-post .entry-title,
.single-post h1.post-title,
.single-post .post-title,
.single-post .entry-header h1,
.ladigi-toplist-article-content > h1:first-child {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 26px !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  line-height: 1.32 !important;
  letter-spacing: -0.5px !important;
  margin-top: 8px !important;
  margin-bottom: 22px !important;
  padding-bottom: 18px !important;
  border: none !important;
  position: relative !important;
  word-break: break-word !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: optimizeLegibility !important;
}

/* Đường gạch chân nghệ thuật (Gradient Accent Bar) */
.single-post .entry-title::after,
.single-post h1.post-title::after,
.single-post .entry-header h1::after,
.ladigi-toplist-article-content > h1:first-child::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 68px !important;
  height: 4.5px !important;
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%) !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}

/* Highlight cụm từ "Top X" trong Tiêu đề H1 */
.single-post .entry-title .ladigi-title-top-highlight,
.single-post h1.post-title .ladigi-title-top-highlight {
  color: #2563eb !important;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block !important;
  font-weight: 900 !important;
}

@media (min-width: 768px) {
  .single-post .entry-title,
  .single-post h1.post-title,
  .single-post .entry-header h1,
  .ladigi-toplist-article-content > h1:first-child {
    font-size: 34px !important;
    line-height: 1.3 !important;
  }
}

@media (min-width: 1024px) {
  .single-post .entry-title,
  .single-post h1.post-title,
  .single-post .entry-header h1,
  .ladigi-toplist-article-content > h1:first-child {
    font-size: 36px !important;
    letter-spacing: -0.8px !important;
  }
}

/* Thanh Meta Header bài viết Toplist */
.ladigi-article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  margin-bottom: 28px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 13px;
  color: #64748b;
}

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

.ladigi-article-meta-bar .meta-cat-link {
  color: var(--ldg-primary) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: color 0.15s ease;
}

.ladigi-article-meta-bar .meta-cat-link:hover {
  text-decoration: underline !important;
  color: var(--ldg-primary-hover) !important;
}

.ladigi-article-meta-bar .meta-views,
.ladigi-article-meta-bar .meta-badge-factcheck {
  margin-left: auto;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.08);
}

@media (max-width: 640px) {
  .ladigi-article-meta-bar .meta-views,
  .ladigi-article-meta-bar .meta-badge-factcheck {
    margin-left: 0;
    width: 100%;
  }
}

/* Toàn bộ Container nội dung bài viết Toplist */
.ladigi-toplist-article-content,
.single-post .entry-content {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #334155;
  line-height: 1.85;
  font-size: 16.5px;
  word-break: break-word;
}

/* Đoạn văn bản (Paragraph) */
.ladigi-toplist-article-content p,
.single-post .entry-content p {
  margin-bottom: 20px !important;
  line-height: 1.85 !important;
  color: #334155 !important;
  font-size: 16.5px !important;
}

.ladigi-toplist-article-content p strong,
.single-post .entry-content p strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.ladigi-toplist-article-content a,
.single-post .entry-content a {
  color: var(--ldg-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.ladigi-toplist-article-content a:hover,
.single-post .entry-content a:hover {
  color: var(--ldg-primary-hover);
}

/* Các Heading H3, H4, H5, H6 */
.ladigi-toplist-article-content h3,
.single-post .entry-content h3 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1e3a8a !important;
  line-height: 1.45 !important;
  margin: 28px 0 14px 0 !important;
  padding-left: 12px !important;
  border-left: 4px solid #3b82f6 !important;
}

.ladigi-toplist-article-content h4,
.single-post .entry-content h4 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f766e !important;
  line-height: 1.4 !important;
  margin: 22px 0 10px 0 !important;
}

/* Hình ảnh trong bài viết */
.ladigi-toplist-article-content img:not(.ladigi-related-img),
.single-post .entry-content img:not(.ladigi-related-img) {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px !important;
  margin: 24px auto 8px auto !important;
  display: block !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07) !important;
  border: 1px solid #e2e8f0 !important;
  transition: transform 0.25s ease !important;
}

.ladigi-toplist-article-content img:not(.ladigi-related-img):hover,
.single-post .entry-content img:not(.ladigi-related-img):hover {
  transform: scale(1.01);
}

/* Chú thích ảnh (Caption & Em) */
.ladigi-toplist-article-content em,
.ladigi-toplist-article-content figcaption,
.single-post .entry-content figcaption {
  display: block !important;
  text-align: center !important;
  font-size: 13.5px !important;
  font-style: italic !important;
  color: #64748b !important;
  margin-bottom: 24px !important;
  line-height: 1.5 !important;
}

/* Bảng dữ liệu & so sánh (Table) */
.ladigi-toplist-article-content table,
.single-post .entry-content table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 28px 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid #e2e8f0 !important;
  font-size: 14.5px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.ladigi-toplist-article-content table th,
.single-post .entry-content table th {
  background: #1e293b !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 12px 16px !important;
  text-align: left !important;
  border-bottom: 1px solid #334155 !important;
}

.ladigi-toplist-article-content table td,
.single-post .entry-content table td {
  padding: 12px 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #334155 !important;
  vertical-align: middle !important;
}

.ladigi-toplist-article-content table tr:nth-child(even) td,
.single-post .entry-content table tr:nth-child(even) td {
  background: #f8fafc !important;
}

.ladigi-toplist-article-content table tr:hover td,
.single-post .entry-content table tr:hover td {
  background: #eff6ff !important;
}

/* Danh sách (UL & OL) */
.ladigi-toplist-article-content ul:not(.ladigi-summary-list):not(.ladigi-toc-list),
.single-post .entry-content ul:not(.ladigi-summary-list):not(.ladigi-toc-list) {
  list-style: disc !important;
  padding-left: 24px !important;
  margin: 16px 0 24px 0 !important;
}

.ladigi-toplist-article-content ol:not(.ladigi-toc-list),
.single-post .entry-content ol:not(.ladigi-toc-list) {
  list-style: decimal !important;
  padding-left: 24px !important;
  margin: 16px 0 24px 0 !important;
}

.ladigi-toplist-article-content li:not(.ladigi-summary-list li):not(.ladigi-toc-item),
.single-post .entry-content li:not(.ladigi-summary-list li):not(.ladigi-toc-item) {
  margin-bottom: 8px !important;
  line-height: 1.75 !important;
  color: #334155 !important;
}

/* ==========================================================================
   1.1. KHUNG TÓM TẮT NHANH (QUICK HIGHLIGHTS SUMMARY BOX)
   ========================================================================== */
.ladigi-quick-summary-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 5px solid var(--ldg-primary) !important;
  border-radius: 14px !important;
  padding: 22px 26px !important;
  margin: 28px 0 !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
  position: relative;
  overflow: hidden;
}

.ladigi-quick-summary-box::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ladigi-summary-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  font-weight: 700;
  color: #1e3a8a;
  padding-bottom: 12px;
  border-bottom: 1px dashed #cbd5e1;
  margin-bottom: 16px;
}

.ladigi-summary-header svg {
  color: var(--ldg-primary);
  flex-shrink: 0;
}

.ladigi-summary-list {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ladigi-summary-list li {
  position: relative !important;
  padding-left: 28px !important;
  margin: 0 !important;
  line-height: 1.68 !important;
  color: #334155 !important;
  font-size: 15.5px !important;
  list-style: none !important;
  list-style-type: none !important;
  transition: transform 0.15s ease;
}

.ladigi-summary-list li:hover {
  transform: translateX(3px);
}

.ladigi-summary-list li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 4px !important;
  width: 18px !important;
  height: 18px !important;
  background: #eff6ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center center !important;
  background-size: 11px 11px !important;
  border-radius: 50% !important;
  border: 1.5px solid #bfdbfe !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.12) !important;
}

.ladigi-summary-list li strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}

/* Khối trích dẫn (Blockquote) */
.ladigi-toplist-article-content blockquote,
.single-post .entry-content blockquote {
  background: #eff6ff !important;
  border-left: 4px solid #2563eb !important;
  border-radius: 0 12px 12px 0 !important;
  padding: 16px 22px !important;
  margin: 24px 0 !important;
  color: #1e40af !important;
  font-style: italic !important;
  font-size: 15.5px !important;
}

.ladigi-toplist-article-content blockquote p,
.single-post .entry-content blockquote p {
  margin: 0 !important;
  color: inherit !important;
}

/* Đường phân cách ngang (HR) */
.ladigi-toplist-article-content hr,
.single-post .entry-content hr {
  border: none !important;
  border-top: 1px dashed #cbd5e1 !important;
  margin: 32px 0 !important;
}

/* ==========================================================================
   1. HUY HIỆU TOP 1 - 10 (RANK BADGES) TRONG BÀI VIẾT
   ========================================================================== */
.ladigi-toplist-heading-wrap {
  margin: 36px 0 18px 0;
  scroll-margin-top: 80px;
}

.ladigi-toplist-h2 {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--ldg-dark) !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.ladigi-top-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

/* Top 1: Vàng Gold hoàng gia */
.ladigi-top-badge.rank-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
}

/* Top 2: Bạc ánh kim */
.ladigi-top-badge.rank-silver {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  box-shadow: 0 3px 10px rgba(100, 116, 139, 0.3);
}

/* Top 3: Đồng ánh đỏ */
.ladigi-top-badge.rank-bronze {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.3);
}

/* Top 4 - 10: Xanh dương sang trọng */
.ladigi-top-badge.rank-normal {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   2. BỐ CỤC 3 CỘT (TOC - NỘI DUNG - BÀI VIẾT LIÊN QUAN) & SIDEBARS
   ========================================================================== */

/* Container Lưới 3 Cột (Sticky TOC - Nội dung chính - Bài liên quan) */
.ladigi-toplist-layout-3col {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) 290px !important;
  gap: 28px !important;
  align-items: start !important;
  position: relative !important;
  margin-top: 20px !important;
}

/* Container Lưới 2 Cột (Sticky TOC - Nội dung chính) */
.ladigi-toplist-layout-2col {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
  position: relative !important;
  margin-top: 20px !important;
}

/* Container Bố Cục 1 Cột (Nội dung tràn trang hoặc căn giữa thanh lịch) */
.ladigi-toplist-layout-1col {
  display: block !important;
  max-width: 880px;
  margin: 20px auto 0 auto !important;
  position: relative !important;
}

/* Cột 1 (Trái): Sticky Sidebar TOC */
.ladigi-toplist-left-sidebar {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 85px !important;
  max-height: calc(100vh - 105px) !important;
  overflow-y: auto !important;
  padding-right: 6px !important;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

/* Cột 2 (Giữa): Nội dung bài viết chính */
.ladigi-toplist-main-content {
  min-width: 0 !important;
}

/* Cột 3 (Phải): Sticky Sidebar Bài Viết Liên Quan Cùng Danh Mục */
.ladigi-toplist-right-sidebar {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 85px !important;
  max-height: calc(100vh - 105px) !important;
  overflow-y: auto !important;
  padding-left: 2px !important;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.ladigi-toplist-left-sidebar::-webkit-scrollbar,
.ladigi-toplist-right-sidebar::-webkit-scrollbar {
  width: 5px;
}

.ladigi-toplist-left-sidebar::-webkit-scrollbar-track,
.ladigi-toplist-right-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.ladigi-toplist-left-sidebar::-webkit-scrollbar-thumb,
.ladigi-toplist-right-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.ladigi-toplist-left-sidebar::-webkit-scrollbar-thumb:hover,
.ladigi-toplist-right-sidebar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Khung Hộp Mục Lục Sticky Sidebar (Cột Trái) */
.ladigi-sticky-toc-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05) !important;
  padding: 16px 14px !important;
  transition: box-shadow 0.2s ease;
}

.ladigi-sticky-toc-box:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08) !important;
}

/* Header Mục Lục */
.ladigi-sticky-toc-header {
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 10px;
  margin-bottom: 12px;
  position: relative;
}

.ladigi-sticky-toc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ldg-primary);
  background: #eff6ff;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.ladigi-sticky-toc-badge svg {
  color: var(--ldg-primary);
}

.ladigi-sticky-toc-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ladigi-sticky-toc-header .ladigi-toc-toggle {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  color: var(--ldg-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Danh Sách Các Mục Toplist */
.ladigi-sticky-toc-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Link Từng Mục Trong Mục Lục */
.ladigi-sticky-toc-link {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  padding: 6px 7px !important;
  border-radius: 7px !important;
  text-decoration: none !important;
  color: #475569 !important;
  transition: all 0.18s ease !important;
  border: 1px solid transparent !important;
}

.ladigi-sticky-toc-link:hover {
  background: #f8fafc !important;
  color: var(--ldg-primary) !important;
  border-color: #e2e8f0 !important;
  transform: translateX(3px) !important;
}

/* Trạng thái Active khi người dùng cuộn đến mục đó (ScrollSpy) */
.ladigi-sticky-toc-link.is-active {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1e3a8a !important;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.08) !important;
}

.ladigi-sticky-toc-link.is-active .sticky-toc-title {
  font-weight: 700 !important;
  color: #1e3a8a !important;
}

/* Số Thứ Tự Tròn Đa Sắc Phong Cách Toplist.vn */
.sticky-toc-num {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12) !important;
  margin-top: 1px !important;
  flex-shrink: 0 !important;
  transition: transform 0.18s ease !important;
}

.ladigi-sticky-toc-link:hover .sticky-toc-num,
.ladigi-sticky-toc-link.is-active .sticky-toc-num {
  transform: scale(1.1) !important;
}

/* Bảng màu rực rỡ chuẩn Toplist */
.sticky-toc-num.rank-color-1 {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  box-shadow: 0 2px 7px rgba(245, 158, 11, 0.4) !important;
}

.sticky-toc-num.rank-color-2 {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  box-shadow: 0 2px 7px rgba(37, 99, 235, 0.35) !important;
}

.sticky-toc-num.rank-color-3 {
  background: linear-gradient(135deg, #ea580c, #c2410c) !important;
  box-shadow: 0 2px 7px rgba(234, 88, 12, 0.35) !important;
}

.sticky-toc-num.rank-color-4 {
  background: #0284c7 !important;
}

.sticky-toc-num.rank-color-5 {
  background: #059669 !important;
}

.sticky-toc-num.rank-color-6 {
  background: #65a30d !important;
}

.sticky-toc-num.rank-color-7 {
  background: #ca8a04 !important;
}

.sticky-toc-num.rank-color-8 {
  background: #d97706 !important;
}

.sticky-toc-num.rank-color-9 {
  background: #7c3aed !important;
}

.sticky-toc-num.rank-color-10 {
  background: #4f46e5 !important;
}

.sticky-toc-num.rank-color-default {
  background: #64748b !important;
}

/* Tiêu Đề Từng Mục Trong Mục Lục */
.sticky-toc-title {
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: inherit !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   2.1. CỘT 3: BÀI VIẾT LIÊN QUAN CÙNG CHUYÊN MỤC
   ========================================================================== */
.ladigi-related-posts-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05) !important;
  padding: 16px 14px !important;
}

.ladigi-related-header {
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.ladigi-related-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #ea580c;
  background: #fff7ed;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.ladigi-related-badge svg {
  color: #ea580c;
}

.ladigi-related-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ladigi-related-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ladigi-related-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  transition: transform 0.15s ease;
}

.ladigi-related-item:last-child {
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

.ladigi-related-item:hover {
  transform: translateX(2px);
}

.ladigi-related-thumb-link {
  width: 78px !important;
  height: 56px !important;
  min-width: 78px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #f1f5f9 !important;
  display: block !important;
  position: relative !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #e2e8f0 !important;
  line-height: 0 !important;
}

.ladigi-toplist-article-content .ladigi-related-img,
.ladigi-related-thumb-link img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 7px !important;
  display: block !important;
  transition: transform 0.25s ease !important;
}

.ladigi-related-item:hover .ladigi-related-img {
  transform: scale(1.08) !important;
}

.ladigi-related-img-placeholder {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #e0f2fe, #bfdbfe) !important;
  color: #3b82f6 !important;
}

.ladigi-related-info {
  flex: 1 !important;
  min-width: 0 !important;
  padding-top: 1px !important;
}

.ladigi-related-post-title {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin: 0 0 5px 0 !important;
  padding: 0 !important;
}

.ladigi-related-post-title a {
  color: #1e293b !important;
  text-decoration: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  transition: color 0.15s ease !important;
}

.ladigi-related-item:hover .ladigi-related-post-title a {
  color: var(--ldg-primary) !important;
}

.ladigi-related-date {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 11.5px !important;
  color: #94a3b8 !important;
}

/* ==========================================================================
   2.2. RESPONSIVE BỐ CỤC 3 CỘT (MOBILE & TABLET & LAPTOP)
   ========================================================================== */

/* Laptop / Màn hình vừa (1024px - 1299px): 2 cột, bài liên quan đặt ở dưới */
@media (max-width: 1299px) and (min-width: 1024px) {
  .ladigi-toplist-layout-3col {
    grid-template-columns: 260px minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  .ladigi-toplist-right-sidebar {
    grid-column: 1 / -1 !important;
    position: static !important;
    max-height: none !important;
    overflow-y: visible !important;
    margin-top: 30px !important;
  }

  .ladigi-related-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

/* Mobile & Tablet (< 1024px): 1 cột toàn bộ */
@media (max-width: 1023px) {
  .ladigi-toplist-layout-3col,
  .ladigi-toplist-layout-2col {
    display: block !important;
    gap: 0 !important;
  }

  .ladigi-toplist-left-sidebar {
    position: static !important;
    max-height: none !important;
    overflow-y: visible !important;
    padding-right: 0 !important;
    margin-bottom: 28px !important;
  }

  .ladigi-toplist-right-sidebar {
    position: static !important;
    max-height: none !important;
    overflow-y: visible !important;
    padding-left: 0 !important;
    margin-top: 36px !important;
  }

  .ladigi-sticky-toc-header .ladigi-toc-toggle {
    display: inline-block !important;
  }

  .ladigi-sticky-toc-box,
  .ladigi-related-posts-box {
    padding: 16px 18px !important;
  }

  .ladigi-related-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
}

/* ==========================================================================
   2.3. VỊ TRÍ QUẢNG CÁO & BANNER TÀI TRỢ (ADS SLOTS)
   ========================================================================== */
.ladigi-ad-slot {
  margin-top: 20px;
  width: 100%;
  text-align: center;
  overflow: hidden;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 10px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.ladigi-ad-slot:hover {
  border-color: #94a3b8;
}

.ladigi-ad-slot img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
  display: inline-block !important;
  margin: 0 auto !important;
}

.ladigi-ad-left {
  margin-top: 16px;
}

.ladigi-ad-right {
  margin-top: 16px;
}

/* ==========================================================================
   2.4. KHỐI CTA DOANH NGHIỆP - ĐĂNG KÝ VÀO TOPLIST (PHƯƠNG ÁN SÁNG SANG TRỌNG)
   ========================================================================== */
.ladigi-cta-business-box {
  margin: 36px 0 24px 0 !important;
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 50%, #eff6ff 100%) !important;
  border-radius: 14px !important;
  padding: 22px 26px !important;
  box-shadow: 0 4px 20px -2px rgba(37, 99, 235, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.03) !important;
  position: relative !important;
  overflow: hidden !important;
  border: 1.5px solid #bfdbfe !important;
}

/* Ánh sáng xanh nhẹ trang trí góc */
.ladigi-cta-business-box::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ladigi-cta-inner {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  position: relative !important;
  z-index: 1 !important;
}

.ladigi-cta-icon {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3) !important;
  flex-shrink: 0 !important;
}

.ladigi-cta-icon svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.ladigi-cta-content {
  flex: 1 !important;
  min-width: 0 !important;
}

/* Tiêu đề CTA - Màu đen than sang trọng, tương phản cao 100% */
.ladigi-toplist-article-content .ladigi-cta-business-box .ladigi-cta-title,
.single-post .entry-content .ladigi-cta-business-box .ladigi-cta-title,
.ladigi-cta-business-box h4.ladigi-cta-title {
  font-size: 17px !important;
  font-weight: 750 !important;
  color: #0f172a !important;
  line-height: 1.4 !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* Đoạn mô tả CTA - Xám than thanh lịch, đọc rõ ràng sắc nét */
.ladigi-toplist-article-content .ladigi-cta-business-box .ladigi-cta-desc,
.single-post .entry-content .ladigi-cta-business-box .ladigi-cta-desc,
.ladigi-cta-business-box p.ladigi-cta-desc {
  font-size: 13.5px !important;
  color: #475569 !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ladigi-cta-action {
  flex-shrink: 0 !important;
}

/* Nút bấm hành động CTA */
.ladigi-btn-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 22px !important;
  background: linear-gradient(135deg, var(--ldg-primary, #2563eb), var(--ldg-primary-hover, #1d4ed8)) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
  transition: all 0.22s ease !important;
  white-space: nowrap !important;
  border: none !important;
}

.ladigi-btn-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
}

@media (max-width: 768px) {
  .ladigi-cta-inner {
    flex-direction: column !important;
    text-align: center !important;
    gap: 16px !important;
  }
  .ladigi-cta-action {
    width: 100% !important;
  }
  .ladigi-btn-cta {
    width: 100% !important;
  }
}

/* ==========================================================================
   2.5. KHỐI BÀI VIẾT LIÊN QUAN & TOC KHI HIỂN THỊ DẠNG PHỤ (BOTTOM / INLINE)
   ========================================================================== */
.ladigi-bottom-related-wrap {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px dashed #e2e8f0;
}

.ladigi-bottom-related-wrap .ladigi-related-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 16px !important;
}

.ladigi-inline-toc-wrap {
  margin: 24px 0 32px 0;
}

/* ==========================================================================
   3. THANH ĐÁNH GIÁ (VOTE) VÀ CHIA SẺ CUỐI BÀI
   ========================================================================== */
.ladigi-post-footer-box {
  margin: 40px 0;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--ldg-border);
  border-radius: var(--ldg-radius);
  box-shadow: var(--ldg-shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ladigi-vote-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ladigi-vote-prompt {
  margin: 0 !important;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.ladigi-btn-vote {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.ladigi-btn-vote:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.ladigi-btn-vote.voted {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--ldg-primary);
}

.ladigi-vote-count {
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 7px;
  border-radius: 12px;
  font-size: 12px;
}

.ladigi-share-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ladigi-share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ldg-muted);
}

.ladigi-share-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}

.share-fb { background: #1877f2; color: #ffffff !important; }
.share-fb:hover { background: #166fe5; color: #ffffff; }

.share-zalo { background: #0068ff; color: #ffffff !important; }
.share-zalo:hover { background: #0056d6; color: #ffffff; }

.share-copy { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }
.share-copy:hover { background: #e2e8f0; }

/* ==========================================================================
   3.1. KHUNG THÔNG TIN TÁC GIẢ (AUTHOR BOX) CHUẨN E-E-A-T (UI 2026 LUXURY EDITORIAL)
   ========================================================================== */
.ladigi-toplist-article-content .ladigi-author-box,
.ladigi-author-box {
  margin: 36px 0 40px 0 !important;
  padding: 26px 28px !important;
  background: linear-gradient(145deg, #ffffff 0%, #fbfcfd 100%) !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 5px solid var(--ldg-primary, #2563eb) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
  position: relative !important;
  box-sizing: border-box !important;
  clear: both !important;
  text-align: left !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.ladigi-toplist-article-content .ladigi-author-box:hover,
.ladigi-author-box:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 25px -4px rgba(37, 99, 235, 0.1), 0 4px 10px -2px rgba(0, 0, 0, 0.04) !important;
  transform: translateY(-2px) !important;
}

.ladigi-author-box * {
  box-sizing: border-box !important;
}

.ladigi-author-box .ladigi-author-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 22px !important;
  width: 100% !important;
}

/* Cột Avatar tác giả */
.ladigi-author-box .ladigi-author-avatar-col {
  flex: 0 0 90px !important;
  width: 90px !important;
  max-width: 90px !important;
  min-width: 90px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ladigi-author-box .ladigi-author-avatar-link {
  display: block !important;
  text-decoration: none !important;
  outline: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ladigi-author-box .ladigi-author-avatar-wrap {
  position: relative !important;
  width: 90px !important;
  height: 90px !important;
  border-radius: 50% !important;
  padding: 3px !important;
  background: linear-gradient(135deg, var(--ldg-primary, #2563eb) 0%, var(--ldg-accent, #38bdf8) 100%) !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22) !important;
  display: block !important;
  margin: 0 !important;
}

.ladigi-author-box .ladigi-author-avatar-wrap img,
.ladigi-author-box .ladigi-author-avatar-wrap .ladigi-author-img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 2.5px solid #ffffff !important;
  background: #f8fafc !important;
}

/* Huy hiệu tick xanh Verified Author */
.ladigi-author-box .ladigi-verified-badge {
  position: absolute !important;
  bottom: 1px !important;
  right: 1px !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2.5px solid #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18) !important;
  z-index: 5 !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ladigi-author-box .ladigi-verified-badge svg {
  width: 12px !important;
  height: 12px !important;
  display: block !important;
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Cột thông tin chi tiết */
.ladigi-author-box .ladigi-author-content-col {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

/* Header: Tên và Chức danh */
.ladigi-author-box .ladigi-author-header-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ladigi-author-box .ladigi-author-title-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ladigi-author-box .ladigi-author-by-label {
  font-size: 11px !important;
  font-weight: 750 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: #64748b !important;
  line-height: 1.2 !important;
  display: block !important;
  margin: 0 !important;
}

.ladigi-author-box .ladigi-author-name {
  font-size: 19px !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  border: none !important;
}

.ladigi-author-box .ladigi-author-name a {
  color: #0f172a !important;
  text-decoration: none !important;
  border: none !important;
  transition: color 0.2s ease !important;
}

.ladigi-author-box .ladigi-author-name a:hover {
  color: var(--ldg-primary, #2563eb) !important;
}

.ladigi-author-box .ladigi-author-role-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #eff6ff !important;
  color: var(--ldg-primary, #2563eb) !important;
  border: 1px solid #bfdbfe !important;
  padding: 5px 14px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

.ladigi-author-box .ladigi-author-role-badge svg {
  flex-shrink: 0 !important;
}

/* Khung Tiểu sử (Bio) */
.ladigi-author-box .ladigi-author-bio-box {
  background: #f8fafc !important;
  border: 1px solid #edf2f7 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  margin: 0 !important;
}

.ladigi-author-box .ladigi-author-bio-text {
  font-size: 13.5px !important;
  line-height: 1.65 !important;
  color: #334155 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Thanh Thống kê & Nút bấm chân trang */
.ladigi-author-box .ladigi-author-footer-bar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  padding-top: 12px !important;
  border-top: 1px dashed #e2e8f0 !important;
  margin: 0 !important;
}

.ladigi-author-box .ladigi-author-stats-left {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 !important;
}

.ladigi-author-box .ladigi-author-stat-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 12px !important;
  background: #f1f5f9 !important;
  border-radius: 8px !important;
  color: #475569 !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
}

.ladigi-author-box .ladigi-author-stat-item strong {
  color: #0f172a !important;
  font-weight: 750 !important;
}

.ladigi-author-box .ladigi-author-website-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 12px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  color: #334155 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.ladigi-author-box .ladigi-author-website-btn:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* 4 Nút Mạng Xã Hội Tác Giả */
.ladigi-author-box .ladigi-author-social-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 5px 11px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  color: #334155 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  line-height: 1.2 !important;
}

.ladigi-author-box .ladigi-author-social-btn svg {
  flex-shrink: 0 !important;
  display: block !important;
}

/* Facebook hover */
.ladigi-author-box .ladigi-author-social-btn.social-fb:hover {
  background: #eff6ff !important;
  border-color: #1877f2 !important;
  color: #1877f2 !important;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.18) !important;
}
.ladigi-author-box .ladigi-author-social-btn.social-fb svg {
  color: #1877f2 !important;
}

/* Pinterest hover */
.ladigi-author-box .ladigi-author-social-btn.social-pinterest:hover {
  background: #fef2f2 !important;
  border-color: #e60023 !important;
  color: #e60023 !important;
  box-shadow: 0 2px 8px rgba(230, 0, 35, 0.18) !important;
}
.ladigi-author-box .ladigi-author-social-btn.social-pinterest svg {
  color: #e60023 !important;
}

/* Google Sites hover */
.ladigi-author-box .ladigi-author-social-btn.social-gsites:hover {
  background: #f0f7ff !important;
  border-color: #1a73e8 !important;
  color: #1a73e8 !important;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.18) !important;
}
.ladigi-author-box .ladigi-author-social-btn.social-gsites svg {
  color: #1a73e8 !important;
}

/* Blogspot hover */
.ladigi-author-box .ladigi-author-social-btn.social-blogspot:hover {
  background: #fff7ed !important;
  border-color: #f57c00 !important;
  color: #f57c00 !important;
  box-shadow: 0 2px 8px rgba(245, 124, 0, 0.18) !important;
}
.ladigi-author-box .ladigi-author-social-btn.social-blogspot svg {
  color: #f57c00 !important;
}

.ladigi-author-box .ladigi-author-action-right {
  margin-left: auto !important;
}

.ladigi-author-box .ladigi-author-view-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 7px 16px !important;
  background: var(--ldg-primary, #2563eb) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
  transition: all 0.2s ease !important;
  border: none !important;
}

.ladigi-author-box .ladigi-author-view-btn:hover {
  background: var(--ldg-primary-hover, #1d4ed8) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

.ladigi-author-box .ladigi-author-view-btn svg {
  transition: transform 0.2s ease !important;
}

.ladigi-author-box .ladigi-author-view-btn:hover svg {
  transform: translateX(3px) !important;
}

/* Tối ưu hóa Responsive Mobile */
@media (max-width: 680px) {
  .ladigi-toplist-article-content .ladigi-author-box,
  .ladigi-author-box {
    padding: 22px 18px !important;
  }
  .ladigi-author-box .ladigi-author-inner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 16px !important;
  }
  .ladigi-author-box .ladigi-author-header-row {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
  }
  .ladigi-author-box .ladigi-author-footer-bar {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .ladigi-author-box .ladigi-author-stats-left {
    justify-content: center !important;
  }
  .ladigi-author-box .ladigi-author-action-right {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .ladigi-author-box .ladigi-author-view-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   4. GIAO DIỆN TRANG CHUYÊN MỤC / CATEGORY TOPLIST & THẺ BÀI VIẾT
   ========================================================================== */
.ladigi-category-page {
  font-family: inherit;
  color: var(--ldg-dark);
  background: transparent;
  padding: 10px 0 60px 0;
}

.ladigi-category-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* 4.1 Hero Header Chuyên mục */
.ladigi-category-hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%);
  border-radius: 20px;
  padding: 44px 36px 36px 36px;
  color: #ffffff;
  margin-bottom: 32px;
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

.ladigi-category-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Breadcrumbs */
.ladigi-category-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.ladigi-category-breadcrumbs a {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.ladigi-category-breadcrumbs a:hover {
  color: #38bdf8 !important;
}

.ladigi-category-breadcrumbs .crumb-sep {
  color: #64748b;
  font-size: 12px;
}

.ladigi-category-breadcrumbs .crumb-current {
  color: #f1f5f9;
  font-weight: 600;
}

/* Badge Pill & Title */
.ladigi-category-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #bae6fd;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
  backdrop-filter: blur(4px);
}

.ladigi-category-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 32px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: #ffffff !important;
  margin: 0 0 14px 0 !important;
  letter-spacing: -0.02em;
}

.ladigi-category-count-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #93c5fd;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  vertical-align: middle;
}

.ladigi-category-description {
  font-size: 15px;
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 800px;
  margin: 0 0 24px 0;
}

.ladigi-category-description p {
  margin: 0;
}

/* Category Search Bar */
.ladigi-category-search-bar {
  margin-top: 10px;
  max-width: 580px;
}

.ladigi-cat-search-form {
  position: relative;
  width: 100%;
}

.ladigi-cat-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ladigi-cat-search-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.ladigi-cat-search-input {
  width: 100% !important;
  height: 48px !important;
  padding: 0 130px 0 46px !important;
  background: #ffffff !important;
  border: 2px solid transparent !important;
  border-radius: 12px !important;
  font-size: 14.5px !important;
  color: #0f172a !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  box-sizing: border-box !important;
}

.ladigi-cat-search-input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25) !important;
}

.ladigi-cat-search-btn {
  position: absolute;
  right: 6px;
  height: 36px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--ldg-primary) 0%, #1d4ed8 100%);
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.ladigi-cat-search-btn:hover {
  background: linear-gradient(135deg, var(--ldg-primary-hover) 0%, #1e40af 100%);
  transform: translateY(-1px);
}

/* 4.2 Category Navigation Pills Bar */
.ladigi-category-pills-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.ladigi-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569 !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ladigi-cat-pill:hover {
  border-color: var(--ldg-primary);
  color: var(--ldg-primary) !important;
  background: #eff6ff;
  transform: translateY(-1px);
}

.ladigi-cat-pill.is-active {
  background: linear-gradient(135deg, var(--ldg-primary) 0%, #1d4ed8 100%);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.ladigi-cat-pill.is-active .cat-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.cat-pill-count {
  font-size: 11.5px;
  font-weight: 700;
  background: #f1f5f9;
  color: #64748b;
  padding: 1px 7px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

/* 4.3 Toplist Cards Grid */
.ladigi-toplist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 26px;
  margin: 10px 0 40px 0;
}

.ladigi-toplist-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.ladigi-toplist-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -8px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}

.ladigi-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
}

.ladigi-card-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

.ladigi-card-thumb {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ladigi-toplist-card:hover .ladigi-card-thumb {
  transform: scale(1.06);
}

.ladigi-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  z-index: 2;
}

.ladigi-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ladigi-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 10px;
}

.ladigi-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ladigi-card-meta .meta-votes {
  color: #e11d48;
  font-weight: 600;
}

.ladigi-card-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 0 10px 0 !important;
}

.ladigi-card-title a {
  color: #0f172a !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ladigi-card-title a:hover {
  color: var(--ldg-primary) !important;
}

.ladigi-card-excerpt {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 18px 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ladigi-card-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ladigi-card-author-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ladigi-card-author-avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid #e2e8f0;
  flex-shrink: 0;
}

.ladigi-card-author-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.ladigi-btn-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ldg-primary) !important;
  text-decoration: none !important;
  transition: gap 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.ladigi-btn-readmore:hover {
  gap: 9px;
  color: var(--ldg-primary-hover) !important;
}

/* 4.4 Pagination Phân trang chuẩn đẹp */
.ladigi-pagination-wrap {
  margin: 44px 0 20px 0;
  display: flex;
  justify-content: center;
}

.ladigi-pagination-wrap ul.page-numbers {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ladigi-pagination-wrap ul.page-numbers li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
}

.ladigi-pagination-wrap .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  gap: 6px !important;
}

.ladigi-pagination-wrap a.page-numbers:hover {
  background: #eff6ff !important;
  border-color: var(--ldg-primary) !important;
  color: var(--ldg-primary) !important;
  transform: translateY(-1px) !important;
}

.ladigi-pagination-wrap .page-numbers.current {
  background: linear-gradient(135deg, var(--ldg-primary) 0%, #1d4ed8 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
  font-weight: 700 !important;
}

.ladigi-pagination-wrap .page-numbers.dots {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #94a3b8 !important;
  cursor: default !important;
}

/* 4.5 Empty State khi không có bài viết */
.ladigi-no-posts-box {
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 18px;
  padding: 60px 24px;
  text-align: center;
  margin: 30px 0;
}

.ladigi-no-posts-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px auto;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.ladigi-no-posts-box h3 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
}

.ladigi-no-posts-box p {
  font-size: 14.5px;
  color: #64748b;
  max-width: 480px;
  margin: 0 auto 24px auto;
}

.ladigi-btn-backhome {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--ldg-primary) 0%, #1d4ed8 100%);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  transition: all 0.2s ease;
}

.ladigi-btn-backhome:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.38);
}

/* Responsive cho Category */
@media (max-width: 768px) {
  .ladigi-category-hero {
    padding: 30px 20px 24px 20px;
    border-radius: 16px;
  }
  .ladigi-category-title {
    font-size: 24px !important;
    gap: 8px;
  }
  .ladigi-category-count-badge {
    font-size: 12px;
    padding: 3px 10px;
  }
  .ladigi-cat-search-input {
    height: 44px !important;
    font-size: 13.5px !important;
    padding-right: 100px !important;
  }
  .ladigi-cat-search-btn {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }
  .ladigi-toplist-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ladigi-category-pills-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .ladigi-category-pills-bar::-webkit-scrollbar {
    height: 4px;
  }
  .ladigi-category-pills-bar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
  }
}

/* ==========================================================================
   5. CỔNG TÌM KIẾM HERO (PORTAL HERO SEARCH)
   ========================================================================== */
.ladigi-portal-wrap {
  width: 100%;
  margin: 0 auto;
}

.ladigi-hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%);
  border-radius: 20px;
  padding: 56px 28px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 48px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.25);
}

.ladigi-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ladigi-hero-title {
  font-size: 32px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 12px 0 !important;
  line-height: 1.25 !important;
}

.ladigi-hero-subtitle {
  font-size: 16px;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 32px auto;
  line-height: 1.6;
}

.ladigi-hero-search-form {
  max-width: 760px;
  margin: 0 auto;
}

.ladigi-search-inputs-wrap {
  display: flex;
  background: #ffffff;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  gap: 6px;
}

.search-input-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 0 14px;
  color: #64748b;
}

.search-input-field input {
  width: 100%;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 14px !important;
  color: #0f172a !important;
  padding: 10px 0 !important;
  box-shadow: none !important;
}

.search-category-field {
  display: flex;
  align-items: center;
  border-left: 1px solid #e2e8f0;
  padding-left: 10px;
}

.search-category-field select {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 13px !important;
  color: #334155 !important;
  padding: 10px 10px !important;
  cursor: pointer;
  box-shadow: none !important;
}

.ladigi-btn-search {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  border: none !important;
  padding: 12px 26px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.ladigi-btn-search:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: scale(1.02);
}

.ladigi-hero-tags {
  margin-top: 18px;
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ladigi-hero-tags a {
  color: #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 10px;
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.2s;
}

.ladigi-hero-tags a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
}

/* ==========================================================================
   6. LƯỚI CHUYÊN MỤC NỔI BẬT
   ========================================================================== */
.ladigi-section-categories,
.ladigi-section-posts {
  margin-bottom: 48px;
}

.ladigi-section-header {
  margin-bottom: 24px;
}

.ladigi-section-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--ldg-dark) !important;
  margin: 0 0 6px 0 !important;
}

.ladigi-section-desc {
  font-size: 14px;
  color: var(--ldg-muted);
  margin: 0;
}

.ladigi-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.ladigi-category-pill {
  background: #ffffff;
  border: 1px solid var(--ldg-border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: var(--ldg-shadow);
}

.ladigi-category-pill:hover {
  border-color: var(--ldg-primary);
  transform: translateY(-2px);
  box-shadow: var(--ldg-shadow-hover);
}

.ladigi-category-pill .cat-icon {
  color: var(--ldg-primary);
  margin-bottom: 4px;
}

.ladigi-category-pill .cat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ldg-dark);
}

.ladigi-category-pill .cat-count {
  font-size: 12px;
  color: var(--ldg-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .ladigi-search-inputs-wrap {
    flex-direction: column;
    padding: 10px;
  }
  .search-category-field {
    border-left: none;
    border-top: 1px solid #e2e8f0;
    padding-left: 0;
    padding-top: 8px;
  }
  .ladigi-hero-title {
    font-size: 24px !important;
  }
  .ladigi-toplist-grid {
    grid-template-columns: 1fr;
  }
  .ladigi-post-footer-box {
    flex-direction: column;
    align-items: flex-start;
  }
}
