/* News Listing Page Styles */

/* Breadcrumb */
.news-breadcrumb {
    margin-top: 20px;
}

/* Page Header */
.news-intro {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Featured News Section */
.featured-news-section {
    margin-bottom: 30px;
}

.featured-news-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.featured-news-section h2 i {
    color: #ffc107;
}

.featured-news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    margin-bottom: 20px;
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    border-color: #007bff;
}

.featured-news-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255,193,7,.4);
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-news-badge i {
    font-size: 0.7rem;
}

.featured-news-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-news-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.featured-news-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform .3s ease;
}

.featured-news-card:hover .featured-news-image {
    transform: scale(1.05);
}

.featured-news-card-content {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-news-category {
    display: inline-block;
    font-size: 0.75rem;
    color: #007bff;
    background: #e7f3ff;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.featured-news-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.featured-news-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #999;
    font-size: 0.85rem;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.featured-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-meta-item i {
    font-size: 0.8rem;
    color: #999;
}

/* Category Filters */
.category-filters {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.category-filters h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.category-filters a {
    display: inline-block;
    margin: 5px 10px 5px 0;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all .2s;
}

.category-filters a:hover,
.category-filters a.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Category Filter Active Indicator */
.category-filter-active {
    margin-bottom: 20px;
    padding: 15px;
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.category-filter-active a {
    margin-left: 10px;
    color: #007bff;
    text-decoration: none;
}

/* News List Container */
#news-list {
    clear: both;
}

/* News Cards */
.new-listing-style {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    transition: transform .2s, box-shadow .2s;
    margin-bottom: 20px;
}

.new-listing-style:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,.15);
}

.new-listing-style img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.attr-title {
    font-size: 1.1rem;
    margin: 10px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.new-listing-style p {
    font-size: .9rem;
    color: #666;
    margin: 0 10px 10px;
    line-height: 1.5;
}

.news-card-meta {
    color: #999;
    padding: 0 10px 10px;
    display: block;
}

.news-card-description {
    padding: 0 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Pagination */
.news-pagination {
    margin-top: 30px;
    clear: both;
}

/* Sidebar Sections */
.sidebar-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    margin-bottom: 20px;
}

.sidebar-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.sidebar-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item-link {
    text-decoration: none;
    color: #333;
}

.sidebar-item-title {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.sidebar-item-meta {
    color: #999;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 20px;
    display: none;
}

.loading-spinner img {
    width: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .isotopeContainer1 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .page-header-small {
        font-size: 1.5rem;
    }
    
    .attr-title {
        font-size: 1rem;
    }
    
    .new-listing-style p {
        font-size: .85rem;
    }
    
    .featured-news-image {
        height: 200px;
    }
    
    .featured-news-section h2 {
        font-size: 1.3rem;
    }
    
    .featured-news-card-content {
        padding: 15px;
    }
    
    .featured-news-title {
        font-size: 1rem;
    }
    
    .featured-news-excerpt {
        font-size: 0.85rem;
    }
    
    .featured-news-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
    
    .category-filters h3 {
        font-size: 1.1rem;
    }
}

