/* NPR Frontend Styles */
.npr-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.npr-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}
.npr-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.npr-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.npr-item-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.npr-item-content {
    padding: 15px;
}
.npr-item-content .npr-newspaper {
    display: block;
    font-size: 0.85em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.npr-item-content .npr-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    line-height: 1.4;
    color: #333;
}
.npr-item-content .npr-date {
    display: block;
    font-size: 0.9em;
    color: #888;
}

/* Filters */
.npr-filters {
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}
.npr-filters form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}
.npr-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.npr-btn {
    padding: 8px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.npr-btn:hover {
    background: #005177;
    color: #fff;
}

/* Popup */
.npr-popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}
.npr-popup-box {
    background: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
    padding: 30px;
}
.npr-popup-close {
    position: absolute;
    top: 15px; right: 15px;
    font-size: 24px;
    border: none;
    background: none;
    cursor: pointer;
    color: #333;
}
.npr-popup-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 20px;
}
.npr-popup-title {
    margin-top: 0;
}
.npr-popup-meta {
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}
.npr-popup-meta span {
    margin-right: 15px;
}
.npr-popup-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

/* Spinner */
.npr-spinner {
    border: 4px solid rgba(0,0,0,0.1);
    width: 36px; height: 36px;
    border-radius: 50%;
    border-left-color: #0073aa;
    animation: npr-spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes npr-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Slider (Basic flex implementation) */
/* Slider (Basic flex implementation) */
.npr-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.npr-swiper-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    transition: transform 0.3s ease-in-out;
    width: 100%;
}
.npr-swiper-slide {
    min-width: 300px;
    flex-shrink: 0;
}
.npr-slider-prev,
.npr-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
}
.npr-slider-prev::after {
    content: '<';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.npr-slider-next::after {
    content: '>';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.npr-slider-prev {
    left: 0;
}
.npr-slider-next {
    right: 0;
}
