/* ============================================================
   CUSTOM BLOG GRID TEMPLATE STYLES
   Save this file as "blog-grid.css" inside your CHILD THEME
   folder (same folder as style.css)
   ============================================================ */

.cbg-page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.cbg-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.cbg-breadcrumb a {
    color: #888;
    text-decoration: none;
}

.cbg-breadcrumb a:hover {
    color: #0f7c85;
}

.cbg-page-title {
    font-size: 32px;
    margin: 0 0 30px;
}

.cbg-grid {
    display: grid;
    gap: 30px;
}

.cbg-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .cbg-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cbg-columns-3 {
        grid-template-columns: 1fr;
    }
}

.cbg-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cbg-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.cbg-thumb-link {
    display: block;
}

.cbg-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.cbg-thumb-placeholder {
    background: #eee;
}

.cbg-content {
    padding: 18px 20px 22px;
}

.cbg-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.cbg-title a {
    color: #1b1b1b;
    text-decoration: none;
}

.cbg-title a:hover {
    color: #0f7c85; /* adjust to your brand teal */
}

.cbg-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.cbg-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 12px;
}

.cbg-readmore {
    font-size: 14px;
    font-weight: 600;
    color: #0f7c85; /* adjust to your brand teal */
    text-decoration: none;
}

.cbg-readmore:hover {
    text-decoration: underline;
}

.cbg-no-posts {
    text-align: center;
    padding: 60px 0;
    color: #888;
}

/* Pagination */
.cbg-pagination {
    margin: 40px 0 0;
    text-align: center;
}

.cbg-pagination ul.page-numbers {
    display: inline-flex;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.cbg-pagination .page-numbers li {
    display: inline-block;
}

.cbg-pagination .page-numbers a,
.cbg-pagination .page-numbers span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.cbg-pagination .page-numbers a:hover {
    background: #0f7c85;
    border-color: #0f7c85;
    color: #fff;
}

.cbg-pagination .page-numbers.current {
    background: #0f7c85;
    border-color: #0f7c85;
    color: #fff;
}