/* ========================================
   Notícias Page Styles - Tema 3
   Prefeitura de Claraval
   ======================================== */

/* News Grid Layout */
.news-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.news-item-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.news-item-card .news-thumb {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.news-item-card .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item-card:hover .news-thumb img {
    transform: scale(1.1);
}

.news-item-card .news-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(34, 139, 34, 0.3);
}

.news-item-card .news-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-item-card .news-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.news-item-card .news-title-link {
    text-decoration: none;
    color: inherit;
}

.news-item-card .news-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

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

.news-item-card .news-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex: 1;
}

.news-item-card .news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.news-item-card .news-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.news-item-card .read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.news-item-card .read-more:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* Sidebar */
.news-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.sidebar-widget .widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
}

.sidebar-widget .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget .category-item {
    margin-bottom: 0.75rem;
}

.sidebar-widget .category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.sidebar-widget .category-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.sidebar-widget .category-count {
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.sidebar-widget .category-link:hover .category-count {
    background: white;
    color: var(--primary-color);
}

/* Archive Widget */
.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-item {
    margin-bottom: 0.5rem;
}

.archive-link {
    display: block;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.archive-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    gap: 0.5rem;
}

.pagination .page-item .page-link {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    border: 2px solid #e5e7eb;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item:not(.active) .page-link:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 992px) {
    .news-sidebar {
        position: static;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .news-list-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item-card .news-thumb {
        height: 200px;
    }
}

