/* Общие UI-компоненты */

.filters {
    text-align: center;
    padding: 0 0 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.news-container {
    padding: 2rem 5%;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.news-category {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.news-content h3 a {
    color: var(--dark-color);
    text-decoration: none;
    margin: 0;
    transition: color 0.3s ease;
}

.news-content h3 a:hover {
    color: var(--primary-color);
}

.news-description {
    color: var(--gray-color);
    line-height: 1.6;
    margin: 1rem 0;
    flex-grow: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray-color);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.news-h2 {
    font-size: 30px;
    margin: 20px 0;
    text-align: center;
    color: var(--primary-color);
}

.news-h2 a {
    color: inherit;
}

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

.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}
