.blog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding-bottom: 80px; margin-top: 40px; align-items: start; }
.sidebar-wrapper { display: flex; flex-direction: column; gap: 25px; position: static; z-index: 1; }
.widget { background: white; padding: 25px; border-radius: 8px; border: 1px solid #e2e8f0; }
.widget-title { font-size: 1rem; font-weight: 800; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #f1f5f9; position: relative; color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.5px; }
.widget-title::after { content: ''; width: 30px; height: 2px; background: var(--accent); position: absolute; bottom: -2px; left: 0; }
.search-widget { padding: 0; border: none; background: transparent; }
.search-box { position: relative; width: 100%; }
.search-input { width: 100%; height: 45px; padding: 0 40px 0 15px; border: 1px solid #cbd5e1; border-radius: 6px; font-family: 'Barlow', sans-serif; font-size: 0.9rem; outline: none; transition: 0.3s; background: white; }
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214, 48, 49, 0.1); }
.search-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 16px; color: #94a3b8; pointer-events: none; }
.search-results-box { position: absolute; top: 100%; left: 0; width: 100%; background: white; border: 1px solid #eee; border-radius: 0 0 6px 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); z-index: 100; max-height: 250px; overflow-y: auto; display: none; margin-top: 5px; }
.search-results-box.active { display: block; }
.search-item { display: block; padding: 10px 15px; border-bottom: 1px solid #f5f5f5; color: var(--text-dark); font-size: 0.85rem; text-decoration: none; }
.search-item:hover { background: #f8fafc; color: var(--accent); }
.index-cat-list { list-style: none; padding: 0; margin: 0; }
.index-cat-list li { margin-bottom: 8px; }
.index-cat-list li:last-child { margin-bottom: 0; }
.index-cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; background: #fdfdfd; border: 1px solid #f1f5f9; border-radius: 6px; color: #64748b; font-weight: 600; font-size: 0.9rem; transition: 0.2s; text-decoration: none; cursor: pointer; }
.index-cat-list a:hover, .index-cat-list li.active a { background: var(--accent); color: white; border-color: var(--accent); transform: translateX(5px); }
.index-cat-list span { background: #f1f5f9; color: #64748b; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
.index-cat-list li.active span, .index-cat-list a:hover span { background: rgba(255,255,255,0.2); color: white; }
.blog-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.blog-card { background: white; border-radius: 8px; border: 1px solid #e2e8f0; overflow: hidden; transition: 0.3s; display: flex; flex-direction: column; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.06); border-color: var(--accent); }
.blog-card-img { height: 200px; overflow: hidden; position: relative; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-cat-badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: white; font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; }
.blog-card-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-date { font-size: 0.8rem; color: #94a3b8; margin-bottom: 8px; font-weight: 500; }
.blog-card-title { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.4; font-weight: 700; color: var(--primary); }
.blog-card-title a { color: inherit; text-decoration: none; transition: 0.2s; }
.blog-card-title a:hover { color: var(--accent); }
.blog-card-desc { font-size: 0.9rem; color: #64748b; margin-bottom: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-read-more { margin-top: auto; font-weight: 700; font-size: 0.85rem; color: var(--accent); text-transform: uppercase; text-decoration: none; }
.pagination-wrapper { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.per-page-selector { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: #64748b; }
.per-page-select { padding: 5px 10px; border-radius: 4px; border: 1px solid #cbd5e1; outline: none; cursor: pointer; }
.pagination-controls { display: flex; gap: 5px; }
.page-btn { width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; border: 1px solid #e2e8f0; background: white; border-radius: 4px; cursor: pointer; transition: 0.2s; font-weight: 600; font-size: 0.9rem; }
.page-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
.page-btn.active:hover { color: white; }
.sidebar-cat-list { list-style: none; padding: 0; margin: 0; }
.sidebar-cat-list li { border-bottom: 1px solid #f1f5f9; }
.sidebar-cat-list li:last-child { border-bottom: none; }
.sidebar-cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; color: #64748b; font-weight: 500; font-size: 0.9rem; transition: 0.2s; text-decoration: none; }
.sidebar-cat-list a:hover { color: var(--accent); transform: translateX(5px); }
.sidebar-cat-list span { background: #f1f5f9; color: #94a3b8; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
.sidebar-cat-list a:hover span { background: var(--accent); color: white; }
.recent-post-item { display: flex; gap: 15px; margin-bottom: 20px; border-bottom: 1px solid #f1f5f9; padding-bottom: 20px; }
.recent-post-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.rp-thumb { width: 65px; height: 65px; border-radius: 6px; object-fit: cover; flex-shrink: 0; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.rp-content { display: flex; flex-direction: column; justify-content: center; }
.rp-content h4 { font-size: 0.95rem; line-height: 1.3; margin-bottom: 5px; font-weight: 700; }
.rp-content h4 a { color: var(--text-dark); text-decoration: none; transition: 0.2s; }
.rp-content h4 a:hover { color: var(--accent); }
.rp-desc { font-size: 0.8rem; color: #64748b; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.blog-article { background: white; border-radius: 12px; border: 1px solid #e2e8f0; overflow: hidden; }
.blog-hero-img { width: 100%; height: 400px; object-fit: cover; }
.article-content { padding: 40px; }
.article-content h1 { font-size: 2.2rem; margin-bottom: 20px; color: var(--primary); }
.article-meta { display: flex; gap: 20px; border-bottom: 1px solid #f1f5f9; padding-bottom: 20px; margin-bottom: 30px; color: #64748b; font-size: 0.9rem; }
.article-meta span { display: flex; align-items: center; gap: 5px; }
.article-meta svg { color: var(--accent); }
.article-text { font-size: 1.05rem; line-height: 1.8; color: #334155; }
.article-text h2 { color: var(--primary); margin: 30px 0 15px; font-size: 1.7rem; border-left: 4px solid var(--accent); padding-left: 15px; }
.article-text p { margin-bottom: 20px; }
.article-text ul, .article-text ol { margin-bottom: 20px; padding-left: 20px; background: #fdfdfd; border: 1px solid #f1f5f9; padding: 20px 20px 20px 40px; border-radius: 8px; }
.article-text li { margin-bottom: 10px; }
.highlight-box { background: #fff1f2; border-left: 5px solid var(--accent); padding: 25px; margin: 30px 0; font-style: italic; color: #9f1239; border-radius: 0 8px 8px 0; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a { display: inline-block; background: #f8fafc; color: #64748b; padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; border: 1px solid #e2e8f0; text-decoration: none; transition: 0.2s; }
.tag-cloud a:hover { background: var(--primary); color: white; border-color: var(--primary); }
@media (max-width: 991px) {
    .blog-layout { display: flex; flex-direction: column; gap: 25px; margin-top: 20px; }
    .sidebar-wrapper { display: contents; }
    .search-widget { order: 1; width: 100%; margin-bottom: 5px; }
    .search-box, .search-input { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
    .search-input { height: 50px; font-size: 1rem; }
    .main-content { order: 2; width: 100%; }
    .blog-hero-img { height: 220px; }
    .article-content { padding: 20px; }
    .article-content h1 { font-size: 1.8rem; }
    .widget { order: 3; width: 100%; padding: 20px; background: white; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 20px; box-sizing: border-box; }
    .widget-title { display: block; font-size: 1.1rem; margin-bottom: 15px; }
    .widget:has(.index-cat-list) { order: 2; padding: 0; border: none; background: transparent; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; margin-bottom: 20px; }
    .index-cat-list { display: flex; gap: 10px; padding-bottom: 5px; }
    .index-cat-list a { padding: 10px 20px; font-size: 0.95rem; background: white; border: 1px solid #ddd; }
    .index-cat-list span { display: none; }
    .widget:has(.index-cat-list) .widget-title { display: none; }
    .widget:has(.sidebar-cat-list) { display: block; }
    .widget:has(.tag-cloud) { display: none; }
    .blog-list-grid { grid-template-columns: 1fr; gap: 20px; }
    .pagination-wrapper { flex-direction: column; gap: 15px; }
    .per-page-selector { width: 100%; justify-content: space-between; background: #f8fafc; padding: 10px; border-radius: 8px; }
    .pagination-controls { width: 100%; justify-content: center; }
    .page-btn { width: 45px; height: 45px; font-size: 1.1rem; }
}