/* ===== Blog Listing ===== */
.blog-cats{padding:1.5rem 0;border-bottom:1px solid #e2e8f0}
.blog-cats__list{display:flex;gap:.75rem;flex-wrap:wrap;justify-content:center}
.blog-cats__item{padding:.5rem 1.25rem;border-radius:2rem;background:#f1f5f9;color:#475569;text-decoration:none;font-size:.9rem;font-weight:500;transition:all .2s}
.blog-cats__item:hover{background:var(--g);color:#fff}
.blog-cats__item--active{background:var(--g);color:#fff}

.blog-card{display:flex;flex-direction:column;background:#fff;border-radius:1rem;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.08);transition:transform .2s,box-shadow .2s;text-decoration:none;color:inherit;height:100%}
.blog-card:hover{transform:translateY(-4px);box-shadow:0 8px 25px rgba(0,0,0,.12)}
.blog-card__img{height:200px;background:#f1f5f9;display:flex;align-items:center;justify-content:center;padding:1rem;position:relative}
.blog-card__img::before{content:"\F4A7";font-family:"bootstrap-icons";font-size:3rem;color:#94a3b8;opacity:.7}
.blog-card__cat{position:absolute;bottom:.75rem;left:.75rem;background:var(--g);color:#fff;padding:.25rem .75rem;border-radius:1rem;font-size:.78rem;font-weight:600}
.blog-card__body{padding:1.25rem;flex:1;display:flex;flex-direction:column}
.blog-card__title{font-size:1.05rem;font-weight:700;color:var(--text,#1e293b);margin-bottom:.5rem;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.blog-card__excerpt{font-size:.88rem;color:#64748b;line-height:1.5;margin-bottom:auto;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.blog-card__meta{display:flex;justify-content:space-between;align-items:center;margin-top:1rem;padding-top:.75rem;border-top:1px solid #f1f5f9;font-size:.82rem;color:#94a3b8}
.blog-card__link{color:var(--g);font-weight:600}
.blog-card__date i{color:var(--g)}

/* ===== Blog Post ===== */
.page-hero--compact{padding:2.5rem 0 1.5rem}
.blog-post__meta-hero{display:flex;gap:1.5rem;color:rgba(255,255,255,.8);font-size:.9rem;margin-top:.75rem}
.blog-post__meta-hero i{color:var(--g-bright)}

.blog-post__content{font-size:1.05rem;line-height:1.8;color:#334155}
.blog-post__content h2{font-size:1.5rem;font-weight:800;color:var(--text,#1e293b);margin:2.5rem 0 1rem;padding-bottom:.5rem;border-bottom:2px solid var(--g)}
.blog-post__content h3{font-size:1.2rem;font-weight:700;color:var(--text,#1e293b);margin:2rem 0 .75rem}
.blog-post__content p{margin-bottom:1.25rem}
.blog-post__content ul,.blog-post__content ol{margin-bottom:1.25rem;padding-left:1.5rem}
.blog-post__content li{margin-bottom:.5rem}
.blog-post__content a{color:var(--g);text-decoration:underline;text-underline-offset:3px}
.blog-post__content a:hover{color:var(--g-deep)}
.blog-post__content strong{color:var(--text,#1e293b)}
.blog-post__content blockquote{border-left:4px solid var(--g);background:#f0fdf4;padding:1.25rem 1.5rem;margin:1.5rem 0;border-radius:0 .5rem .5rem 0;font-style:italic;color:#166534}
.blog-post__content table{width:100%;border-collapse:collapse;margin:1.5rem 0}
.blog-post__content th,.blog-post__content td{padding:.75rem 1rem;border:1px solid #e2e8f0;text-align:left;font-size:.95rem}
.blog-post__content th{background:var(--g);color:#fff;font-weight:600}
.blog-post__content tr:nth-child(even) td{background:#f8fafc}

.blog-post__cta{background:linear-gradient(135deg,var(--g-deep),var(--g));color:#fff;padding:2rem;border-radius:1rem;text-align:center;margin:3rem 0 2rem}
.blog-post__cta h3{font-size:1.3rem;margin-bottom:.5rem}
.blog-post__cta p{opacity:.9;margin-bottom:1rem}
.blog-post__cta .btn-green{background:#fff;color:var(--g-deep);padding:.75rem 2rem;border-radius:.5rem;font-weight:700;text-decoration:none;display:inline-flex;align-items:center}
.blog-post__cta .btn-green:hover{background:#f0fdf4}

/* Sidebar */
.blog-sidebar{position:sticky;top:2rem}
.blog-sidebar__section{background:#f8fafc;border-radius:1rem;padding:1.5rem;margin-bottom:1.5rem}
.blog-sidebar__title{font-size:1rem;font-weight:700;margin-bottom:1rem;color:var(--text,#1e293b)}
.blog-sidebar__links{list-style:none;padding:0;margin:0}
.blog-sidebar__links li{margin-bottom:.5rem}
.blog-sidebar__links a{color:#475569;text-decoration:none;font-size:.9rem;transition:color .2s;display:flex;align-items:center;gap:.25rem}
.blog-sidebar__links a::before{content:'›';color:var(--g);font-weight:700;font-size:1.1rem}
.blog-sidebar__links a:hover{color:var(--g)}

/* Pagination */
.blog-pagination{display:flex;justify-content:center}
.blog-pagination nav{display:flex;justify-content:center}
.blog-pagination .pagination{display:flex;flex-wrap:wrap;list-style:none;padding:0;margin:0;gap:.35rem}
.blog-pagination .page-item{display:inline-block}
.blog-pagination .page-link{display:inline-flex;align-items:center;justify-content:center;min-width:2.5rem;height:2.5rem;padding:.4rem .85rem;border:1px solid #e2e8f0;border-radius:.5rem;color:var(--g);background:#fff;text-decoration:none;font-size:.92rem;font-weight:500;transition:all .2s}
.blog-pagination .page-link:hover{background:var(--g);color:#fff;border-color:var(--g)}
.blog-pagination .page-item.active .page-link{background:var(--g);border-color:var(--g);color:#fff;font-weight:700}
.blog-pagination .page-item.disabled .page-link{color:#94a3b8;background:#f8fafc;border-color:#e2e8f0;cursor:not-allowed}

@media(max-width:768px){
    .blog-card__img{height:160px}
    .blog-post__content{font-size:1rem}
    .blog-sidebar{position:static;margin-top:2rem}
}