/* Поиск и фильтры */
.news-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.search-box {
    display: flex;
    flex-grow: 1;
    max-width: 400px;
}

.search-box input {
    flex-grow: 1;
    padding: 12px 20px;
    border: 2px solid var(--light-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--accent-color);
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--secondary-color);
}

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: var(--light-color);
    color: var(--text-color);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Карточки новостей */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.news-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.news-date {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: center;
    flex-shrink: 0;
}

.news-day {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.news-month {
    font-size: 1rem;
    text-transform: uppercase;
    display: block;
    margin: 5px 0;
}

.news-year {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.news-category {
    margin-bottom: 15px;
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.category-badge.research {
    background: #e3f2fd;
    color: #1565c0;
}

.category-badge.events {
    background: #f3e5f5;
    color: #7b1fa2;
}

.category-badge.awards {
    background: #fff8e1;
    color: #ff8f00;
}

.category-badge.publications {
    background: #e8f5e9;
    color: #2e7d32;
}

.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    line-height: 1.4;
}

.news-card p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    flex-wrap: wrap;
    gap: 10px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
    gap: 10px;
}

.news-stats {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 0.9rem;
}

/* Архив новостей */
.news-archive {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 60px;
}

.news-archive h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.archive-year {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.archive-year:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(10px);
}

.archive-year span {
    color: #666;
    font-size: 0.9rem;
}

.archive-year:hover span {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive для news.html */
@media (max-width: 768px) {
    .news-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .news-filters {
        justify-content: center;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .news-stats {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .news-date {
        padding: 10px;
    }
    
    .news-day {
        font-size: 1.5rem;
    }
    
    .news-month {
        font-size: 0.9rem;
    }
    
    .news-year {
        font-size: 0.8rem;
    }
}