  /**
 * News List Block Styles
 */

/* Block wrapper */
.nc-news-list-block {
    margin: 1rem 0;
}

/* Grid layout */
.nc-news-list-block.nc-layout-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.nc-news-list-block.nc-layout-grid.nc-columns-1 {
    grid-template-columns: 1fr;
}

.nc-news-list-block.nc-layout-grid.nc-columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 100%;
}

.nc-news-list-block.nc-layout-grid.nc-columns-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.nc-news-list-block.nc-layout-grid.nc-columns-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* List layout */
.nc-news-list-block.nc-layout-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Card layout */
.nc-news-list-block.nc-layout-card {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* News item */
.nc-news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e1e5e9;
}

.nc-layout-card .nc-news-item {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nc-news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nc-layout-list .nc-news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

/* Featured image */
.nc-news-featured-image {
    position: relative;
    overflow: hidden;
}

.nc-layout-grid .nc-news-featured-image,
.nc-layout-card .nc-news-featured-image {
    aspect-ratio: 16/9;
}

.nc-layout-list .nc-news-featured-image {
    flex: 0 0 200px;
    aspect-ratio: 4/3;
    border-radius: 6px;
    overflow: hidden;
}

.nc-news-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nc-news-item:hover .nc-news-featured-image img {
    transform: scale(1.05);
}

/* Content area */
.nc-news-content {
    padding: 1.25rem;
}

.nc-layout-list .nc-news-content {
    padding: 0;
    flex: 1;
}

/* Categories */
.nc-news-categories {
    margin-bottom: 0.75rem;
}

.nc-news-category {
    display: inline-block;
    background: #f0f2f5;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    transition: background-color 0.2s ease;
}

.nc-news-category:hover {
    background: #e5e7eb;
    color: #374151;
    text-decoration: none;
}

/* Title */
.nc-news-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.nc-layout-list .nc-news-title {
    font-size: 1.125rem;
}

.nc-news-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nc-news-title a:hover {
    color: #3b82f6;
}

/* Meta information */
.nc-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.nc-news-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nc-news-meta-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* Excerpt */
.nc-news-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.nc-layout-list .nc-news-excerpt {
    font-size: 0.9rem;
}

/* Read more link */
.nc-news-read-more {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.nc-news-read-more:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Load more button */
.nc-load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.nc-load-more-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.nc-load-more-btn:hover {
    background: #1d4ed8;
}

.nc-load-more-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Loading state */
.nc-loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.nc-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: nc-spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes nc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No posts message */
.nc-no-posts {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
}

/* Responsive design */
@media (max-width: 768px) {
    .nc-news-list-block.nc-layout-grid {
        grid-template-columns: 1fr;
    }
    
    .nc-layout-list .nc-news-item {
        flex-direction: column;
    }
    
    .nc-layout-list .nc-news-featured-image {
        flex: none;
        aspect-ratio: 16/9;
    }
    
    .nc-layout-list .nc-news-content {
        padding: 1rem 0 0 0;
    }
    
    .nc-news-meta {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .nc-news-content {
        padding: 1rem;
    }
    
    .nc-news-title {
        font-size: 1.125rem;
    }
    
    .nc-news-meta {
        font-size: 0.8rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .nc-news-item {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .nc-news-title a {
        color: #f9fafb;
    }
    
    .nc-news-title a:hover {
        color: #60a5fa;
    }
    
    .nc-news-category {
        background: #374151;
        color: #d1d5db;
    }
    
    .nc-news-category:hover {
        background: #4b5563;
        color: #f3f4f6;
    }
    
    .nc-news-excerpt {
        color: #d1d5db;
    }
    
    .nc-news-meta {
        color: #9ca3af;
    }
    
    .nc-no-posts {
        background: #1f2937;
        border-color: #374151;
        color: #9ca3af;
    }
}