.cpg-grid {
    display: grid;
    gap: 20px;
}

.cpg-columns-1 { grid-template-columns: 1fr; }
.cpg-columns-2 { grid-template-columns: repeat(2, 1fr); }
.cpg-columns-3 { grid-template-columns: repeat(3, 1fr); }
.cpg-columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .cpg-grid { grid-template-columns: 1fr !important; }
}

.cpg-item {
    border: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease;
}

.cpg-thumb {
    width: 100%;
    height: 180px; /* or any fixed height you want */
    overflow: hidden;
}

.cpg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* this keeps the image filling the area without distortion */
    display: block;
}

.cpg-content {
    padding: 15px;
    height:120px;
}

.cpg-category {
    background: #0168B3;
    color: white;
    font-weight: bold;
    display: inline-block;
    padding-left: 8px;
    padding-right: 8px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    font-size: 0.85rem;
    position : absolute;
    margin-top:-1%;
}

.cpg_title_grid {
    font-size: 10px ;
    font-weight: 600;
    margin: 10px 0 0 10px;
    line-height:2.5;
}

.cpg_title_grid a {
    color: #111;
    font-size: 15px ;
    text-decoration: none;
}

.cpg_date_grid {
    color: #0168B3;
    font-weight: bold;
    font-size: 0.9rem;
    padding:20px 20px 20px 20px;
}
