.mm-pce-wrap,
.mm-pce-wrap * {
    box-sizing: border-box;
}

.mm-pce-wrap {
    width: 100%;
    direction: rtl;
}

.mm-pce-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.mm-pce-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 18px;
    overflow: hidden;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.mm-pce-card:hover {
    transform: translateY(-4px);
    border-color: rgba(118, 185, 71, .35);
    box-shadow: 0 18px 45px rgba(17, 24, 39, .10);
}

.mm-pce-thumb {
    position: relative;
    display: block;
    width: 100%;
    height: 210px;
    margin: 0 0 14px;
    overflow: hidden;
    border-radius: 14px;
    background: #f4f6f8;
    color: #a0a8b3;
    text-decoration: none !important;
}

.mm-pce-img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
}

.mm-pce-card:hover .mm-pce-img {
    transform: scale(1.055);
}

.mm-pce-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.mm-pce-placeholder-icon {
    opacity: .72;
}

.mm-pce-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.mm-pce-title {
    margin: 0 0 9px !important;
    padding: 0 !important;
    color: #1f2937;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.75;
}

.mm-pce-title a {
    display: -webkit-box;
    overflow: hidden;
    color: inherit;
    text-decoration: none !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .25s ease;
}

.mm-pce-title a:hover {
    color: #76b947;
}

.mm-pce-excerpt {
    display: -webkit-box;
    margin: 0 0 15px !important;
    padding: 0 !important;
    overflow: hidden;
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
    line-height: 2;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.mm-pce-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f1f3;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

.mm-pce-meta-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
}

.mm-pce-meta-cat {
    max-width: 52%;
}

.mm-pce-meta-date {
    flex: 0 0 auto;
    white-space: nowrap;
}

.mm-pce-meta a,
.mm-pce-meta span,
.mm-pce-meta time {
    overflow: hidden;
    color: inherit;
    text-decoration: none !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mm-pce-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: #76b947;
}

.mm-pce-empty {
    width: 100%;
    padding: 22px;
    border: 1px dashed #d8dde5;
    border-radius: 14px;
    background: #fbfcfd;
    color: #6b7280;
    text-align: center;
    font-size: 14px;
    line-height: 2;
}

@media (max-width: 1024px) {
    .mm-pce-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mm-pce-thumb {
        height: 190px;
    }
}

@media (max-width: 640px) {
    .mm-pce-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mm-pce-card {
        border-radius: 16px;
    }

    .mm-pce-thumb {
        height: 205px;
    }

    .mm-pce-title {
        font-size: 17px;
    }

    .mm-pce-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .mm-pce-meta-cat {
        max-width: 100%;
    }
}
