
.read-more:hover {
    text-decoration: underline;
}
.featured-news-article {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 30px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
}

.featured-news-article .featured-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.featured-news-article .article-category {
    display: inline-block;
    background: #e6002d;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.featured-news-article .article-title {
    margin: 0 0 15px;
    font-size: 28px;
}

.featured-news-article .article-title a {
    color: #222;
    text-decoration: none;
}

.featured-news-article .article-title a:hover {
    color: #e6002d;
}

.featured-news-article .article-date {
    display: block;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 15px;
}

.featured-news-article .article-excerpt {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
}

.news-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;
}
.filter-tabs {
    width: calc(100% - 220px);
    overflow: hidden;
}
.filter-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    grid-gap: 15px;
    overflow: hidden;
    overflow-x: auto !important;
    width: 100%;
    padding-bottom: 12px;
}

.filter-list li {
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 3px;
    background: #f5f5f5;
    transition: .3s all;
        min-width: fit-content;
    max-width: max-content;
}

.filter-list li.active , .filter-list li:hover {
    background: #e6002d;
}

.filter-list li a {
    text-decoration: none;
    color: #333;
    transition: 0.3s all;
    font-weight: 500;
}

.filter-list li.active a , .filter-list li:hover a {
    color: #fff;
}

.type-filter select {
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    min-width: 200px;
}

.news-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
    margin-bottom: 0px;
    position: relative;
}
.featured-content a.read-more , .article-content a.read-more {
    padding: 10px 22px;
    background: #e6002d;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    line-height: 26px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all .3s ease-in-out;
    text-transform: capitalize;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    text-decoration: none;
    margin-top: auto;
    width: fit-content;
}

.featured-content a.read-more:hover ,
.article-content a.read-more:hover { 
    background: #000;
}
.nws-blog-popup {
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: relative;
}
.news-article {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.news-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-article .article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-article .article-content {
    padding: 20px 20px 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-article .article-category {
    display: inline-block;
    padding: 3px 10px;
    line-height: 24px;
    border-radius: 3px;
    font-size: 13px;
    margin-bottom: 15px;
    font-weight: 600;
    background: #e6002d;
    color: #fff;
    text-transform: uppercase;
    position: absolute;
    top: 15px;
    left: 15px;
}

.news-article .article-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 500;
    line-height: 30px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0 0 15px;
    min-height: 60px;
}

.news-article .article-title a {
    text-decoration: none;
    color: #222;
}

.news-article .article-title a:hover {
    color: #e6002d;
}

.news-article .article-date , time.article-date {
    display: block;
    font-size: 14px;
    line-height: 1.2;
    color: #6b6b6b;
    margin-bottom: 5px;
    font-weight: 500;
}

.news-article .article-excerpt {
    margin-bottom: 15px;
    line-height: 1.6;
     display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    color: #e6002d;
    text-decoration: none;
    font-weight: 500;
}



.news-pagination {
    margin-top: 30px;
    text-align: center;
}

.news-pagination .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    text-decoration: none;
}

.news-pagination .page-numbers.current {
    background: #e6002d;
    color: #fff;
    border-color: #e6002d;
}

/*.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}
*/

.news-articles-grid .news-loading {
    position: absolute;
    inset: 0;
    background: #000000b3;
    z-index:1;
    display: none;
}

.news-articles-grid .loading {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.news-articles-grid .news-loading .loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #e6002d;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

p.no-articles-message {
    position: static;
    width: 100%;
    text-align: center;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    font-size: 18px;
    font-weight: 500;
}


/* --------- pop up css  -----------*/

    .subcategory-filter {
        margin: 20px 0;
        padding: 20px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    .subcategory-filter .filter-row {
        display: flex;
        align-items: end;
        gap: 15px;
        flex-wrap: wrap;
    }

    .subcategory-filter .filter-group {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 200px;
    }

    .subcategory-filter label {
        font-weight: 600;
        margin-bottom: 7px;
        color: #333;
        font-size: 14px;
    }

    .subcategory-filter select,
    .subcategory-filter input[type="text"] {
        padding: 10px 12px;
        border: 1px solid #ccc;
        border-radius: 4px;
        background: white;
        font-size: 14px;
    }

    .subcategory-filter input[type="text"] {
        padding: 10px 12px;
    }

    .subcategory-filter .search-btn {
            
        padding: 10px 20px;
        background: #e6002d;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-weight: 500;

    }

    .subcategory-filter .search-btn:hover {
        background: #000;
    }

    /* Responsive design */
    @media (max-width: 768px) {
        .subcategory-filter .filter-row {
            flex-direction: column;
            align-items: stretch;
        }
        
        .subcategory-filter .filter-group {
            min-width: 100%;
        }
        
        .subcategory-filter .search-btn {
            width: 100%;
        }
    }
    /* Lightbox download button styles */
    .lb-download-container {
        position: absolute;
        top: auto;
        bottom: 20px;
        right: 20px;

        z-index: 9999;
    }

    .lb-download {
        width: 35px !important;
        height:35px !important;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 2px solid white;
        bottom: 5px!important;
        right: 0px!important;
    }

    .lb-download:hover {
        background: #d32f2f!important;
        transform: scale(1.2)!important;
        color: #fff;
    }

    .lb-download svg {
        width: 18px;
        height:18px;
    }

    /* Adjust lightbox container for download button */
    .lb-outerContainer {
        position: relative;
    }

    .lb-nav {
        display: none !important;
    }
    .nws-blog-popup .lightbox a.lb-external-prev, 
    .nws-blog-popup .lightbox a.lb-external-next {
        font-size: 54px !important;
        font-family: monospace;
        font-weight: 400;
        background: transparent !important;
    }
    .nws-blog-popup .lightbox span.lb-number {
        display: none !important;
    }

    .lb-data .lb-caption a {
        color: #fff!important;
        font-size: 15px;
        font-weight: 500;
        line-height: 22px;
        margin-top: 5px;
        display: block;
    }

    .nws-blog-popup .lightbox a.custom-lb-close {
        top: 20px !important;
        bottom: auto;
        position: fixed !important;
        right: 20px !important;
        background: red !important;
    }
    .nws-blog-popup .lightbox .lb-closeContainer {
        display: none!important;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .lb-download-container {
            top: -35px;
            right: 10px;
        }
        
        .lb-download {
            width: 35px;
            height: 35px;
        }
        
        .lb-download svg {
            width: 18px;
            height: 18px;
        }
    }



@media (max-width: 992px) {
    .featured-news-article {
        grid-template-columns: 1fr;
    }
    
    .news-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-filters {
        align-items: flex-start;
        grid-gap: 15px;
        display: flex;
        flex-wrap: wrap;
    }
    
    .news-articles-grid {
        grid-template-columns: 1fr;
    }
    .nws-blog-popup .lightbox .lb-image { 

    }
    .lightbox {
        width: 100%!important;
        max-width: 85%!important;
    }
    .lb-dataContainer {
        width: 100% !important;
    }

}


@media (max-width: 580px) {

    .featured-content a.read-more, .article-content a.read-more {
        padding: 8px 22px;
    }
    .filter-tabs {
        width: 100%; 
        overflow: hidden;
    }


}    

    .article-meta {
        display: flex;
        /* align-items: center; */
        gap: 15px;
        margin-bottom: 10px;
        font-size: 13px;
        color: #666;
        min-height: 39.59px;
    }

    .article-author {
        font-weight: 500;
        color: #444;
    }

    .article-date {
        display: inline-block;
    }