/* ── Blog List Page ─────────────────────────────────── */
.bb-page { background: #f4f7fc; min-height: 60vh; padding: 48px 0 80px; }

/* Search bar */
.bb-search-form { display: flex; gap: 0; margin-bottom: 28px; }
.bb-search-form input {
    flex: 1;
    border: 1.5px solid #dce6f5;
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 11px 16px;
    font-size: 14px;
    outline: none;
    background: #fff;
    color: #1a2744;
    transition: border-color 0.2s;
}
.bb-search-form input:focus { border-color: #1967d2; }
.bb-search-form button {
    background: linear-gradient(135deg, #1967d2, #2d9bb3);
    border: none;
    border-radius: 0 12px 12px 0;
    padding: 11px 18px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.2s;
}
.bb-search-form button:hover { opacity: 0.88; }

/* Sidebar card */
.bb-sidebar-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e4ecf7;
    box-shadow: 0 4px 20px rgba(25,103,210,0.07);
    overflow: hidden;
    margin-bottom: 24px;
}
.bb-sidebar-card-head {
    background: linear-gradient(135deg, #1967d2, #2d9bb3);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.bb-sidebar-card-head i { font-size: 16px; }
.bb-sidebar-card-body { padding: 16px 20px; }

/* Recent posts */
.bb-recent-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f4fb;
    text-decoration: none;
}
.bb-recent-item:last-child { border-bottom: none; padding-bottom: 0; }
.bb-recent-item:first-child { padding-top: 0; }
.bb-recent-img {
    width: 64px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e8edf8;
}
.bb-recent-info { flex: 1; min-width: 0; }
.bb-recent-date {
    font-size: 11px;
    color: #8fa3c8;
    font-weight: 500;
    margin-bottom: 3px;
}
.bb-recent-title {
    font-size: 13px;
    color: #1a2744;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.18s;
}
.bb-recent-item:hover .bb-recent-title { color: #1967d2; }

/* Blog cards */
.bb-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e4ecf7;
    box-shadow: 0 4px 20px rgba(25,103,210,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.22s, transform 0.22s;
    height: 100%;
}
.bb-card:hover {
    box-shadow: 0 8px 36px rgba(25,103,210,0.14);
    transform: translateY(-3px);
}
.bb-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #e8edf8;
    flex-shrink: 0;
}
.bb-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}
.bb-card:hover .bb-card-img-wrap img { transform: scale(1.04); }
.bb-card-date {
    position: absolute;
    bottom: 10px;
    left: 12px;
    background: rgba(25,103,210,0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}
.bb-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.bb-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a2744;
    line-height: 1.45;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.18s;
}
.bb-card-title:hover { color: #1967d2; }
.bb-card-excerpt {
    font-size: 13.5px;
    color: #5a6a8a;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}
.bb-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1967d2;
    text-decoration: none;
    padding: 8px 16px;
    border: 1.5px solid #c5d8f8;
    border-radius: 8px;
    align-self: flex-start;
    transition: all 0.2s;
}
.bb-card-link:hover {
    background: #1967d2;
    color: #fff;
    border-color: #1967d2;
}
.bb-card-link i { font-size: 14px; }

/* Pagination */
.bb-pagination { margin-top: 36px; }
.bb-pagination .pagination { gap: 4px; }
.bb-pagination .page-link {
    border-radius: 8px !important;
    border: 1.5px solid #dce6f5;
    color: #1967d2;
    font-weight: 500;
    padding: 7px 13px;
    transition: all 0.18s;
}
.bb-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #1967d2, #2d9bb3);
    border-color: transparent;
    color: #fff;
}
.bb-pagination .page-link:hover:not(.disabled) {
    background: #eef3fd;
    border-color: #1967d2;
}

/* Empty state */
.bb-empty {
    text-align: center;
    padding: 60px 20px;
    color: #8fa3c8;
}
.bb-empty i { font-size: 48px; margin-bottom: 16px; display: block; }
.bb-empty p { font-size: 15px; }

@media (max-width: 991px) {
    .bb-page { padding: 32px 0 60px; }
    .bb-card-img-wrap { height: 180px; }
    #bb-sidebar { order: -1; margin-bottom: 24px; }
}
