.page-header { background-color: var(--bg-light); padding: 40px 0; padding-top: 24px; text-align: center; border-bottom: 1px solid var(--border-color); }
        .page-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; color: var(--text-main); }
        .page-desc { color: var(--text-muted); font-size: 1.125rem; max-width: 600px; margin: 0 auto; line-height: 1.6; }
        
        /* KNOWLEDGE LAYOUT */
        .knowledge-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; margin-bottom: 96px; margin-top: 24px; }
        @media (max-width: 992px) {
            .knowledge-layout { grid-template-columns: 1fr; }
        }

        /* SIDEBAR */
        .sidebar-widget { background: var(--white); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; margin-bottom: 32px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
        .sidebar-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); color: var(--text-main); }
        
        .category-list { list-style: none; padding: 0; }
        .category-list li { margin-bottom: 12px; }
        .category-list li:last-child { margin-bottom: 0; }
        .category-list a { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); transition: var(--transition); padding: 8px 0; font-size: 0.95rem; }
        .category-list a:hover, .category-list a.active { color: var(--primary-red); font-weight: 600; padding-left: 8px; }
        .category-list a .count { font-size: 0.8rem; background: var(--bg-light); padding: 2px 8px; border-radius: 20px; color: var(--text-muted); }
        .category-list a:hover .count, .category-list a.active .count { background: rgba(200, 16, 46, 0.1); color: var(--primary-red); }

        /* SEARCH BAR */
        .search-box { display: flex; align-items: center; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; transition: var(--transition); }
        .search-box:focus-within { border-color: var(--primary-red); box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1); }
        .search-input { border: none; outline: none; padding: 12px 16px; width: 100%; font-size: 0.95rem; font-family: var(--font-family); }
        .search-btn { background: transparent; border: none; padding: 0 16px; color: var(--text-muted); cursor: pointer; transition: var(--transition); }
        .search-btn:hover { color: var(--primary-red); }

        /* BLOG GRID CUSTOMIZATION */
        .blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
        .blog-card { background: var(--white); border-radius: 16px; border: 1px solid var(--border-color); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; height: 100%; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
        .blog-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.06); }
        
        .blog-img { height: 220px; position: relative; overflow: hidden; flex-shrink: 0; width: 100%; }
        .blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
        .blog-card:hover .blog-img img { transform: scale(1.05); }
        
        .blog-content { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
        .blog-category { background: rgba(200, 16, 46, 0.1); color: var(--primary-red); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; padding: 6px 12px; display: inline-block; margin-bottom: 16px; border-radius: 4px; align-self: flex-start; letter-spacing: 0.5px; }
        
        .blog-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; line-height: 1.4; color: var(--text-main); transition: var(--transition); }
        .blog-card:hover .blog-title { color: var(--primary-red); }
        
        .blog-excerpt { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; }
        
        .blog-meta { display: flex; align-items: center; gap: 16px; font-size: 0.85rem; color: #94A3B8; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border-color); }
        .blog-meta-item { display: flex; align-items: center; gap: 6px; }
        .blog-meta-item i { width: 16px; height: 16px; }
        
        /* PAGINATION */
        .pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 64px; }
        .page-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); border-radius: 8px; background: var(--white); color: var(--text-main); font-weight: 600; cursor: pointer; transition: var(--transition); text-decoration: none; }
        .page-btn:hover, .page-btn.active { background: var(--primary-red); color: var(--white); border-color: var(--primary-red); }
        .page-btn.disabled { opacity: 0.5; pointer-events: none; }


/* BLOG SINGLE DETAIL & AUTO-TOC */
.article-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  margin: 40px 0 96px;
  align-items: start;
}

.article-paper {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.article-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.article-cover {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
  max-height: 440px;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-toc {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-red);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.article-toc-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-toc ol {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-toc a {
  color: var(--text-main);
  font-size: 0.94rem;
  font-weight: 500;
}

.article-toc a:hover {
  color: var(--primary-red);
  text-decoration: underline;
}

.article-share-bar {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.article-share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.share-btn:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.article-author-box {
  margin-top: 32px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.article-author-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.article-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 992px) {
  .article-single-layout {
    grid-template-columns: 1fr;
  }
  .article-paper {
    padding: 24px 20px;
  }
  .article-author-box {
    flex-direction: column;
    text-align: center;
  }
}
