/* Latest News Section - Modern Styling */

/* Search Bar */
.news-search {
    margin-bottom: 1.5rem;
}

.news-search-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 6px 6px 6px 20px;
    transition: box-shadow 0.3s ease;
}

.news-search-wrapper:focus-within {
    box-shadow: 0 4px 25px rgba(139, 195, 74, 0.25);
}

.news-search-icon {
    color: #aaa;
    font-size: 1.1rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.news-search-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 1rem;
    color: var(--secondary-color);
    background: transparent;
    padding: 10px 0;
}

.news-search-input::placeholder {
    color: #bbb;
}

.news-search-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.news-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.4);
}

/* Category Filter Tabs */
.news-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.news-filter-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #666;
    background: #fff;
    border: 2px solid #eee;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.news-filter-tab:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(139, 195, 74, 0.05);
}

.news-filter-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.35);
}

/* Active Filters */
.news-active-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 12px 18px;
    background: rgba(139, 195, 74, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(139, 195, 74, 0.15);
}

.news-active-filters-label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.news-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.news-filter-pill i:first-child {
    color: var(--primary-color);
    font-size: 0.75rem;
}

.news-filter-pill-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999;
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    margin-left: 2px;
}

.news-filter-pill-clear:hover {
    background: #e74c3c;
    color: #fff;
}

.news-clear-all {
    font-size: 0.8rem;
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    margin-left: auto;
    transition: opacity 0.2s ease;
}

.news-clear-all:hover {
    opacity: 0.7;
    color: #e74c3c;
}

/* Card Category Badge */
.news-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--secondary-color);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 3;
    transition: all 0.3s ease;
}

.news-card-category:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Card Tags */
.news-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.news-card-tag {
    font-size: 0.75rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.news-card-tag:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Tags Section (Single Article) */
.news-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.news-tags-label {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.news-tag-pill {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.1) 0%, rgba(104, 159, 56, 0.1) 100%);
    border: 1px solid rgba(139, 195, 74, 0.25);
    color: var(--primary-dark, #558b2f);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-tag-pill:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Single Article Category Badge */
.news-single-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.news-single-category:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Featured News */
/* Blurred background image wrapper (shared) */
.news-img-blur-wrap {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-img-blur-wrap::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: inherit;
    filter: blur(25px) brightness(0.45);
    transform: scale(1.1);
    z-index: 0;
}

.news-img-blur-wrap img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.featured-news {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.featured-news-image {
    position: relative;
    overflow: hidden;
}

.featured-news-image .news-img-blur-wrap {
    height: 380px;
}

.featured-news:hover .news-img-blur-wrap img {
    transform: scale(1.05);
}

.featured-news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.featured-news-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.featured-news-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-news-title a:hover {
    color: var(--primary-color);
}

.featured-news-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.featured-news-meta i {
    margin-right: 6px;
}

/* News Stats */
.news-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.news-stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.news-stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.news-stat-icon.total {
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.15) 0%, rgba(104, 159, 56, 0.15) 100%);
    color: var(--primary-color);
}

.news-stat-icon.featured {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.15) 0%, rgba(230, 126, 34, 0.15) 100%);
    color: #f39c12;
}

.news-stat-icon.recent {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(41, 128, 185, 0.15) 100%);
    color: #3498db;
}

.news-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.news-stat-label {
    font-size: 0.8rem;
    color: #888;
}

/* Section Title */
.news-section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.news-section-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.news-section-title .line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(139, 195, 74, 0.3) 0%, transparent 100%);
}

/* News Card Modern */
.news-card-modern {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* News Image Container */
.news-image {
    position: relative;
    overflow: hidden;
}

.news-image .news-img-blur-wrap {
    height: 220px;
}

.news-card-modern:hover .news-img-blur-wrap img {
    transform: scale(1.05);
}

/* Image Overlay */
.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.news-card-modern:hover .news-overlay {
    opacity: 1;
}

/* Image Placeholder */
.news-image-placeholder {
    min-height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image-placeholder i {
    font-size: 3rem;
    color: #dee2e6;
}

/* Category Badge */
.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    z-index: 3;
}

/* Featured Star */
.news-featured-star {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    z-index: 3;
}

/* News Content */
.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* News Meta */
.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-size: 0.85rem;
}

.news-meta i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* News Title */
.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-card-modern:hover .news-title {
    color: var(--primary-color);
}

/* News Excerpt */
.news-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* News Link */
.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.news-link i {
    transition: transform 0.3s ease;
}

.news-link:hover {
    color: var(--primary-dark);
}

.news-link:hover i {
    transform: translateX(5px);
}

/* Empty State */
.news-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-empty-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.15) 0%, rgba(104, 159, 56, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.news-empty-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.news-empty-state h4 {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.news-empty-state p {
    color: #888;
    margin-bottom: 0;
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.news-pager {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 8px;
    margin: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-pager-item {
    list-style: none;
}

.news-pager-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.news-pager-link:hover {
    background: rgba(139, 195, 74, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.news-pager-item.active .news-pager-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.4);
}

.news-pager-item.active .news-pager-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 195, 74, 0.5);
}

.news-pager-first,
.news-pager-prev,
.news-pager-next,
.news-pager-last {
    color: #999;
    font-size: 0.85rem;
    width: 38px;
    height: 38px;
}

.news-pager-first:hover,
.news-pager-prev:hover,
.news-pager-next:hover,
.news-pager-last:hover {
    color: var(--primary-color);
    background: rgba(139, 195, 74, 0.08);
}

/* Responsive */
@media (max-width: 992px) {
    .featured-news-image .news-img-blur-wrap {
        height: 300px;
    }
    
    .featured-news-overlay {
        padding: 2rem;
    }
    
    .featured-news-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .news-stats {
        gap: 1rem;
    }
    
    .news-stat-item {
        min-width: 130px;
        padding: 0.75rem 1rem;
    }
    
    .news-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .news-stat-value {
        font-size: 1.25rem;
    }
    
    .featured-news-image .news-img-blur-wrap {
        height: 250px;
    }
    
    .featured-news-overlay {
        padding: 1.5rem;
    }
    
    .featured-news-title {
        font-size: 1.25rem;
    }
    
    .featured-news-meta {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .news-image .news-img-blur-wrap {
        height: 180px;
    }

    .news-content {
        padding: 1.25rem;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-search-wrapper {
        padding: 4px 4px 4px 14px;
    }

    .news-search-input {
        font-size: 0.9rem;
    }

    .news-search-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    .news-filter-tabs {
        gap: 6px;
    }

    .news-filter-tab {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .news-active-filters {
        padding: 10px 14px;
        gap: 8px;
    }

    .news-tags {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .news-pager {
        gap: 4px;
        padding: 6px;
        border-radius: 12px;
    }

    .news-pager-link {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 0.8rem;
    }

    .news-pager-first,
    .news-pager-prev,
    .news-pager-next,
    .news-pager-last {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
}
