/* Pro News Suite Styles - Enhanced Grid View */
.pns-latest-news,
.pns-trending-news,
.pns-news-slider,
.pns-single-news,
.pns-archive-news,
.pns-featured-news,
.pns-category-news {
    margin: 3rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Container and Layout */
.pns-single-news .pns-container,
.pns-archive-news .pns-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pns-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

.pns-main-content {
    grid-column: 1;
}

.pns-sidebar {
    grid-column: 2;
}

/* Enhanced Grid Layout */
.pns-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 2rem 0;
}

.pns-category-grid,
.pns-featured-grid,
.pns-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0;
}

/* News Cards - Enhanced Design */
.pns-news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

.pns-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #e0e0e0;
}

.pns-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.pns-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pns-news-card:hover .pns-card-thumb {
    transform: scale(1.08);
}

.pns-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
    z-index: 1;
}

.pns-card-content {
    padding: 1.75rem;
    position: relative;
}

.pns-card-header {
    margin-bottom: 1.25rem;
}

.pns-card-title {
    font-size: 1.35rem;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    font-weight: 600;
    color: #2d3748;
}

.pns-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pns-card-title a:hover {
    color: #0073aa;
}

.pns-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: #718096;
    align-items: center;
}

.pns-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.pns-card-meta i {
    font-size: 0.95rem;
    color: #0073aa;
}

.pns-card-excerpt {
    margin-bottom: 1.75rem;
    color: #4a5568;
    line-height: 1.7;
    font-size: 0.95rem;
}

.pns-card-footer {
    border-top: 1px solid #edf2f7;
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pns-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 2px solid #0073aa;
    border-radius: 6px;
    background: transparent;
}

.pns-card-read-more:hover {
    background: #0073aa;
    color: white;
    transform: translateX(5px);
}

/* Category News Specific Styles */
.pns-category-news {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    margin: 4rem 0;
}

.pns-category-news .pns-section-title {
    color: white;
    text-align: center;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1rem;
    margin-bottom: 2.5rem;
}

.pns-category-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.pns-category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.pns-category-image {
    height: 180px;
    overflow: hidden;
}

.pns-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pns-category-item:hover .pns-category-image img {
    transform: scale(1.1);
}

.pns-category-content {
    padding: 1.5rem;
}

.pns-category-title {
    font-size: 1.2rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    font-weight: 600;
    color: #2d3748;
}

.pns-category-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pns-category-title a:hover {
    color: #0073aa;
}

.pns-category-date {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

/* Section Titles */
.pns-section-title,
.pns-archive-title,
.pns-sidebar-title,
.pns-related-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2d3748;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.pns-section-title::after,
.pns-archive-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #00a8ff);
    border-radius: 2px;
}

.pns-sidebar-title,
.pns-related-title {
    font-size: 1.75rem;
    text-align: left;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.pns-sidebar-title::after,
.pns-related-title::after {
    left: 0;
    transform: none;
    width: 60px;
}

/* Single News Page */
.pns-single-news {
    background: #f8fafc;
    padding: 2rem 0;
}

.pns-news-article {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.pns-news-header {
    position: relative;
}

.pns-news-hero {
    position: relative;
    max-height: 500px;
    overflow: hidden;
}

.pns-hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.pns-news-meta {
    padding: 2.5rem;
    background: #fff;
}

.pns-news-title {
    font-size: 3rem;
    margin: 0 0 1rem 0;
    color: #2d3748;
    line-height: 1.2;
    font-weight: 800;
}

.pns-news-subtitle {
    font-size: 1.5rem;
    color: #718096;
    margin: 0 0 2rem 0;
    font-weight: 400;
    font-style: italic;
}

.pns-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
    color: #718096;
    font-size: 0.95rem;
}

.pns-meta-info span {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}

.pns-author img {
    border-radius: 50%;
    margin-right: 0.5rem;
    border: 3px solid #e2e8f0;
}

.pns-social-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid #edf2f7;
}

.pns-social-share span {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
}

.pns-social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f7fafc;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.pns-social-share a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #0073aa;
}

.pns-news-content {
    padding: 0 2.5rem 2.5rem;
    line-height: 1.8;
    color: #2d3748;
    font-size: 1.1rem;
}

.pns-news-content p {
    margin-bottom: 1.8rem;
}

.pns-news-content h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem 0;
    color: #2d3748;
    font-weight: 700;
}

.pns-news-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: #2d3748;
    font-weight: 600;
}

.pns-news-source {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid #0073aa;
}

.pns-news-source strong {
    color: #2d3748;
    margin-right: 0.5rem;
}

.pns-news-footer {
    padding: 2rem 2.5rem;
    border-top: 1px solid #edf2f7;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: #f8fafc;
}

.pns-tags,
.pns-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.pns-tags span,
.pns-categories span {
    font-weight: 600;
    color: #2d3748;
    margin-right: 0.5rem;
}

.pns-tag,
.pns-category {
    padding: 0.5rem 1rem;
    background: #fff;
    color: #4a5568;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.pns-tag:hover,
.pns-category:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    transform: translateY(-2px);
}

/* Related News */
.pns-related-news {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 3rem;
    border-radius: 16px;
    margin: 3rem 0;
}

.pns-related-title {
    color: white;
}

.pns-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pns-related-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.pns-related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.pns-related-image {
    height: 160px;
    overflow: hidden;
}

.pns-related-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pns-related-item:hover .pns-related-thumb {
    transform: scale(1.1);
}

.pns-related-content {
    padding: 1.5rem;
}

.pns-related-title {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    font-weight: 600;
}

.pns-related-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pns-related-title a:hover {
    color: #0073aa;
}

.pns-related-date {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
}

/* Trending Sidebar */
.pns-trending-sidebar {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.pns-trending-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pns-trending-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    /*padding: 1.25rem 0;*/
    border-bottom: 1px solid #edf2f7;
    transition: all 0.3s ease;
}

.pns-trending-item:hover {
    transform: translateX(5px);
}

.pns-trending-item:last-child {
    border-bottom: none;
}

.pns-trending-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.pns-trending-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pns-trending-item:hover .pns-trending-image {
    transform: scale(1.1);
}

.pns-trending-content {
    flex: 1;
}
.pns-trending-content h4{font-size: 1em;}
.pns-trending-title {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    font-weight: 600;
}

.pns-trending-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pns-trending-title a:hover {
    color: #0073aa;
}

.pns-trending-views {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
}

/* Widgets */
.pns-widgets {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pns-widget {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.pns-widget-title {
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    color: #2d3748;
    font-weight: 600;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 0.75rem;
}

/* News Slider */
.pns-news-slider {
    position: relative;
    margin: 3rem 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.pns-slide-item {
    position: relative;
    height: 500px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.pns-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.pns-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pns-slide-content {
    padding: 3rem;
    color: #fff;
    max-width: 800px;
    z-index: 2;
}

.pns-slide-title {
    font-size: 2.5rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
    font-weight: 700;
}

.pns-slide-title a {
    color: #fff;
    text-decoration: none;
}

.pns-slide-date {
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

.pns-slide-excerpt {
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.7;
    font-size: 1.1rem;
}

.pns-slide-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.pns-slide-read-more:hover {
    background: #005177;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Pagination */
.pns-pagination {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.pns-pagination .page-numbers {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pns-pagination .page-numbers li {
    margin: 0;
}

.pns-pagination .page-numbers a,
.pns-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    padding: 0 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pns-pagination .page-numbers a:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    transform: translateY(-2px);
}

.pns-pagination .page-numbers .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pns-content-wrapper {
        grid-template-columns: 1fr 300px;
        gap: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .pns-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pns-sidebar {
        grid-column: 1;
    }
    
    .pns-news-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .pns-news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pns-news-title {
        font-size: 2.2rem;
    }
    
    .pns-section-title {
        font-size: 2rem;
    }
    
    .pns-meta-info {
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pns-social-share {
        flex-wrap: wrap;
    }
    
    .pns-news-footer {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .pns-slide-content {
        padding: 2rem;
    }
    
    .pns-slide-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .pns-container {
        padding: 0 15px;
    }
    
    .pns-card-content {
        padding: 1.5rem;
    }
    
    .pns-news-meta,
    .pns-news-content {
        padding: 1.5rem;
    }
    
    .pns-news-title {
        font-size: 1.8rem;
    }
    
    .pns-section-title {
        font-size: 1.75rem;
    }
    
    .pns-card-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .pns-trending-item {
        flex-direction: column;
        text-align: center;
    }
    
    .pns-trending-thumb {
        width: 100%;
        height: 120px;
    }
}

/* Utilities */
.pns-no-news,
.pns-no-trending,
.pns-no-content {
    text-align: center;
    padding: 3rem 2rem;
    color: #718096;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
}

.pns-no-content h2 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.pns-views-count {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #0073aa, #00a8ff);
    color: white;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

.pns-views-label {
    opacity: 0.9;
    margin-right: 0.5rem;
}

.pns-views-number {
    font-size: 1.2em;
    font-weight: 700;
}

/* Loading Animation */
@keyframes pnsFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pns-news-card,
.pns-category-item,
.pns-related-item {
    animation: pnsFadeIn 0.6s ease-out;
}

/* Hover Effects */
.pns-news-card:hover .pns-card-title a {
    color: #0073aa;
}

/* Focus States for Accessibility */
.pns-card-read-more:focus,
.pns-social-share a:focus,
.pns-tag:focus,
.pns-category:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .pns-social-share,
    .pns-sidebar,
    .pns-card-read-more {
        display: none !important;
    }
    
    .pns-news-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Category News - Now matches archive style */
.pns-category-news.pns-archive-news {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin: 3rem 0;
}

.pns-category-news.pns-archive-news .pns-archive-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pns-category-news.pns-archive-news .pns-archive-title {
    font-size: 2.5rem;
    color: #2d3748;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 1rem;
    display: inline-block;
}

.pns-category-news.pns-archive-news .pns-news-grid-container {
    width: 100%;
}

.pns-category-news.pns-archive-news .pns-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

/* Remove the old category news styles */
.pns-category-news:not(.pns-archive-news) {
    display: none;
}

/* Ensure all news grids use the same style */
.pns-latest-news .pns-news-grid,
.pns-featured-news .pns-news-grid,
.pns-category-news.pns-archive-news .pns-news-grid,
.pns-archive-news .pns-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 2rem 0;
}