.nrp-related-items {
    margin: 2em 0;
}

.nrp-related-title {
    margin-bottom: 1em;
    color: #383838;
    font-size: 22px;
    font-weight: 600;
    text-transform: none;
    text-decoration: none;
    line-height: 31px;
    display: block;
}

.nrp-items-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nrp-item {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nrp-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.nrp-item-link {
    display: flex;
    flex-direction: row;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

.nrp-item-thumbnail {
    flex: 0 0 300px;
    height: 169px;
    overflow: hidden;
}

.nrp-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nrp-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 1.5em;
}

.nrp-item-title {
    margin: 0;
    color: #383838;
    font-size: 20px;
    font-weight: 500;
    line-height: 32px;
}

.nrp-item-excerpt {
    margin: 0;
    font-size: 16px;
    font-weight: normal;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.nrp-item-type {
    display: inline-block;
    padding: 0.3em 0.8em;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.85em;
    color: #666;
}

/* Desktop styles */
@media (min-width: 769px) {
    .nrp-items-grid {
        grid-template-columns: repeat(var(--nrp-columns-desktop, 3), 1fr);
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .nrp-items-grid {
        grid-template-columns: repeat(var(--nrp-columns-mobile, 1), 1fr);
    }

    .nrp-item-link {
        flex-direction: column;
    }

    .nrp-item-thumbnail {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }
}

.nrp-load-more-container {
    margin-top: 20px;
    text-align: center;
}

.nrp-load-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var( --e-global-color-primary );
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.nrp-load-more-btn:hover {
    background: var( --e-global-color-secondary );
}

.nrp-load-more-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
} 