/* Wrapper */
.cbc-blog-wrapper {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f7f9fb;
}

/* Search */
.cbc-search-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.cbc-search-input {
    width: 320px;
    padding: 14px 16px;
    border: 1px solid #d9e1e7;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
}

.cbc-search-input:focus {
    outline: none;
    border-color: #03a9e7;
}

.cbc-search-btn {
    padding: 14px 26px;
    background: #052d4a;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
}

.cbc-search-btn:hover {
    opacity: 0.9;
}

.cbc-clear-btn {
    padding: 14px 22px;
    background: #eef2f6;
    color: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.cbc-clear-btn:hover {
    background: #e1e7ed;
}

/* Grid */
.cbc-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    min-height: 200px;
}

/* Card */
.cbc-blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.cbc-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

.cbc-card-image {
    height: 180px;
    background: linear-gradient(135deg, #e9f3f9, #f4f8fb);
    overflow: hidden;
}

.cbc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cbc-card-content {
    padding: 22px 22px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cbc-card-title {
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 12px;
    color: #052d4a;
    font-weight: 600;
}

.cbc-card-title a {
    color: inherit;
    text-decoration: none;
}

.cbc-card-title a:hover {
    text-decoration: underline;
}

.cbc-card-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: #5b6770;
    margin-bottom: 20px;
    flex: 1;
}

.cbc-card-link {
    font-size: 14px;
    color: #03a9e7;
    text-decoration: none;
    font-weight: 500;
}

.cbc-card-link:hover {
    text-decoration: underline;
}

/* Pagination */
.cbc-pagination {
    margin: 50px 0 20px;
    text-align: center;
}

.cbc-pagination .page-numbers {
    display: inline-block;
    margin: 0 6px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #fff;
    color: #052d4a;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cbc-pagination .page-numbers.current {
    background: #052d4a;
    color: #fff;
    font-weight: 500;
}

.cbc-pagination .page-numbers:hover {
    background: #03a9e7;
    color: #fff;
}

/* Loading / Empty message */
#cbc-blog-grid p {
    text-align: center;
    grid-column: 1 / -1;
    color: #666;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 900px) {
    .cbc-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cbc-blog-grid {
        grid-template-columns: 1fr;
    }

    .cbc-search-input {
        width: 100%;
    }

    .cbc-search-form {
        justify-content: stretch;
    }
}
