.cpw-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(5, 1fr);
}
.cpw-columns-2 { grid-template-columns: repeat(2, 1fr); }
.cpw-columns-3 { grid-template-columns: repeat(3, 1fr); }
.cpw-columns-4 { grid-template-columns: repeat(4, 1fr); }
.cpw-columns-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 992px) {
    .cpw-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 576px) {
    .cpw-grid { grid-template-columns: 1fr !important; }
}

.cpw-card {
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
}

.cpw-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.cpw-card-content {
    padding: 16px;
    background-color: #f2f2f2;
    flex-grow: 1;
}

.cpw-card-category {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #777;
    margin-bottom: 6px;
}

.cpw-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: #1a1a1a;
}

.cpw-card-link {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    color: #2e7d32;
    border-bottom: 2px solid currentColor;
    padding-bottom: 2px;
}

.cpw-card-link:hover {
    color: #1b5e20;
}

/* ========================================================
   POST SHOWCASE WIDGET (normal WP posts)
   ======================================================== */
.cpwp-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(5, 1fr);
}
.cpwp-columns-2 { grid-template-columns: repeat(2, 1fr); }
.cpwp-columns-3 { grid-template-columns: repeat(3, 1fr); }
.cpwp-columns-4 { grid-template-columns: repeat(4, 1fr); }
.cpwp-columns-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 992px) {
    .cpwp-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 576px) {
    .cpwp-grid { grid-template-columns: 1fr !important; }
}

.cpwp-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.cpwp-card-image {
    position: relative;
}

.cpwp-card-image img {
    width: 100%;
    height: 290px;
    object-fit: cover;
    display: block;
}

.cpwp-image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px;
    background: linear-gradient(to right, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 55%, rgba(255,255,255,0.15) 100%);
}

.cpwp-overlay-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #1b5e20;
}

.cpwp-overlay-excerpt {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
}

.cpwp-tags-bar {
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 11px;
    letter-spacing: 0.3px;
    padding: 6px 12px;
}

.cpwp-card-content {
    padding: 16px;
    background-color: #ffffff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cpwp-card-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.cpwp-card-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.cpwp-card-excerpt {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    flex-grow: 1;

    /* Sirf 2 lines dikhengi, baaki text "..." se cut ho jayega */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cpwp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.cpwp-card-date {
    font-size: 12px;
    color: #333;
}

.cpwp-card-arrow {
    color: #2e7d32;
    font-size: 18px;
    text-decoration: none;
    font-weight: 700;
}
