/* ==============================================
   style-blog.css
   Blog design system (bl-* classes)
   ============================================== */

<style>
/* ============================
   BLOG DESIGN SYSTEM
   ============================ */
.bl-wrap { padding: 32px 0 48px; }

/* ---- Hero / Header Banner ---- */
.bl-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border-radius: 16px;
    border-bottom: 3px solid #c8102e;
    padding: 36px 32px;
    color: #fff;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.bl-hero::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    background: rgba(200,16,46,.12);
    border-radius: 50%;
}
.bl-hero-icon {
    width: 56px; height: 56px;
    background: rgba(200,16,46,.25);
    border: 2px solid rgba(200,16,46,.4);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bl-hero-icon i { color: #ffd700; font-size: 1.5rem; }
.bl-hero-eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.bl-hero-title { font-size: 1.9rem; font-weight: 800; margin: 0; line-height: 1.2; }
.bl-hero-sub { font-size: .92rem; color: rgba(255,255,255,.72); margin-top: 6px; margin-bottom: 0; }
.bl-hero-stat {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 14px 20px;
    text-align: center;
}
.bl-hero-stat-num { font-size: 2rem; font-weight: 800; color: #ffd700; line-height: 1; }
.bl-hero-stat-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.65); margin-top: 4px; }

/* ---- Breadcrumb ---- */
.bl-breadcrumb { background: transparent; padding: 0 0 18px; margin: 0; font-size: .82rem; }
.bl-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #adb5bd; }
.bl-breadcrumb a { color: #c8102e; text-decoration: none; font-weight: 600; }
.bl-breadcrumb a:hover { text-decoration: underline; }
.bl-breadcrumb .breadcrumb-item.active { color: #6c757d; }

/* ---- Article Cards ---- */
.bl-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    transition: transform .22s ease, box-shadow .22s ease;
    overflow: hidden;
    background: #fff;
}
.bl-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,.13); }
.bl-card-img-side { object-fit: cover; width: 100%; height: 100%; min-height: 170px; display: block; }
.bl-card-img-top { object-fit: cover; width: 100%; height: 200px; display: block; }
.bl-card-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }

/* ---- Category badge ---- */
.bl-cat-badge {
    background: linear-gradient(135deg,#c8102e,#e84061);
    color: #fff !important;
    font-size: .69rem; font-weight: 700;
    padding: 3px 12px; border-radius: 50px;
    display: inline-block; text-decoration: none;
    letter-spacing: .5px; white-space: nowrap;
    transition: opacity .15s;
}
.bl-cat-badge:hover { opacity: .88; text-decoration: none; color: #fff !important; }

/* ---- Tag pills ---- */
.bl-tag {
    background: #f1f3f5; color: #495057;
    font-size: .72rem; font-weight: 600;
    padding: 3px 10px; border-radius: 50px;
    display: inline-block; text-decoration: none;
    border: 1px solid #dee2e6;
    transition: background .15s, color .15s;
}
.bl-tag:hover { background: #1a1a2e; color: #ffd700 !important; border-color: #1a1a2e; text-decoration: none; }
.bl-tag.bl-tag-active { background: #1a1a2e; color: #ffd700 !important; border-color: #1a1a2e; }

/* ---- Post meta ---- */
.bl-meta { font-size: .79rem; color: #adb5bd; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.bl-meta i { color: #c8102e; margin-right: 3px; }
.bl-meta span { display: flex; align-items: center; }

/* ---- Post title link ---- */
.bl-post-title {
    font-size: 1.08rem; font-weight: 700; line-height: 1.45;
    color: #1a1a2e; text-decoration: none;
    transition: color .15s;
    display: block;
}
.bl-post-title:hover { color: #c8102e; text-decoration: none; }
.bl-post-excerpt { font-size: .87rem; color: #6c757d; line-height: 1.65; margin: 0; }
.bl-read-more { font-size: .8rem; font-weight: 700; color: #c8102e; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.bl-read-more:hover { color: #a00d25; text-decoration: none; }
.bl-read-more i { transition: transform .15s; }
.bl-read-more:hover i { transform: translateX(3px); }

/* ---- Sidebar Widgets ---- */
.bl-widget {
    border: none; border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    margin-bottom: 24px; overflow: hidden;
}
.bl-widget-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff; padding: 11px 18px;
    font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    display: flex; align-items: center; gap: 8px;
}
.bl-widget-header i { color: #c8102e; font-size: .9rem; }
.bl-widget-body { padding: 16px 18px; background: #fff; }

/* Search widget */
.bl-search-inp {
    border: 2px solid #dee2e6;
    border-right: none;
    border-radius: 50px 0 0 50px !important;
    padding: 9px 18px !important;
    font-size: .88rem;
    transition: border-color .15s;
}
.bl-search-inp:focus { border-color: #c8102e; box-shadow: none; outline: none; }
.bl-search-btn {
    background: linear-gradient(135deg,#c8102e,#e84061);
    color: #fff; border: none;
    border-radius: 0 50px 50px 0 !important;
    padding: 9px 18px; font-weight: 700; font-size: .88rem;
    transition: opacity .15s;
}
.bl-search-btn:hover { opacity: .9; color: #fff; }

/* Category list */
.bl-cat-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 0; border-bottom: 1px solid #f4f4f4;
    text-decoration: none; color: #495057; font-size: .87rem;
    transition: color .15s;
}
.bl-cat-item:last-child { border-bottom: none; }
.bl-cat-item:hover { color: #c8102e; text-decoration: none; }
.bl-cat-item.bl-cat-active { color: #c8102e; font-weight: 700; }
.bl-cat-count {
    background: #f1f3f5; color: #868e96;
    font-size: .7rem; font-weight: 700;
    padding: 2px 8px; border-radius: 50px; min-width: 28px; text-align: center;
}
.bl-cat-item.bl-cat-active .bl-cat-count { background: #c8102e; color: #fff; }

/* Pagination */
.bl-pagination .page-link { border-radius: 8px !important; margin: 0 2px; border: none !important; font-weight: 600; font-size: .85rem; }
.bl-pagination .page-item.active .page-link { background: linear-gradient(135deg,#c8102e,#e84061) !important; border-color: transparent !important; }
.bl-pagination .page-item.disabled .page-link { color: #dee2e6; }

/* Empty state */
.bl-empty { text-align: center; padding: 48px 24px; color: #adb5bd; }
.bl-empty i { font-size: 3rem; margin-bottom: 12px; display: block; color: #dee2e6; }
.bl-empty p { font-size: .95rem; }

/* ============================
   RESPONSIVE
   ============================ */
@media(max-width:767.98px){
    .bl-wrap { padding: 18px 0 36px; }
    .bl-hero { padding: 24px 18px; border-radius: 12px; }
    .bl-hero-title { font-size: 1.4rem; }
    .bl-hero-stat { margin-top: 14px; }
    .bl-card-img-side { min-height: 200px; }
    .bl-card-body { padding: 16px; }
}
