/* Grid layout - 3 columns */
.nmem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.nmem-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
    border: 1px solid #eee;
}

.nmem-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    cursor:pointer;
}

.nmem-link-wrap {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.nmem-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f8f8;
}

.nmem-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nmem-body {
    padding: 16px 18px 20px;
}

.nmem-date {
    display: block;
    font-size: 14px;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
    text-transform: uppercase;
    font-family: sans-serif;
}

.nmem-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nmem-title:hover {
    color: #0056b3;
}

/* Loader / Infinite scroll */
.nmem-loader {
    text-align: center;
    padding: 30px 0 10px;
    grid-column: 1 / -1;
}

.nmem-load-more-trigger {
    display: inline-block;
    background: #f0f0f0;
    padding: 10px 30px;
    border-radius: 30px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 500;
}

.nmem-load-more-trigger:hover {
    background: #e0e0e0;
}

.nmem-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: nmem-spin 0.8s linear infinite;
}

@keyframes nmem-spin {
    to { transform: rotate(360deg); }
}

/* No items */
.nmem-no-items {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

/* Responsive */
@media (max-width: 992px) {
    .nmem-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .nmem-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}