/* =========================================
   СТИЛИ ДЛЯ СТРАНИЦЫ "НОВОСТИ" (news.css)
   ========================================= */


/* --- ШАПКА РАЗДЕЛА НОВОСТЕЙ (Компактный Hero) --- */

.page-header {
    height: 350px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/5229221703811009620.jpg');
    background-size: cover;
    background-position: center 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 64px;
    font-weight: 700;
}


/* --- СЕТКА НОВОСТЕЙ --- */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 100px;
}


/* --- КАРТОЧКА НОВОСТИ --- */

.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-card-img {
    height: 240px;
    background-color: #4D4B4B;
    background-size: cover;
    background-position: center;
}

.news-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-date {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
    font-weight: 500;
}

.news-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #111;
    line-height: 1.3;
}

.news-card-desc {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
    flex-grow: 1;
}

.news-card-link {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-card-link:hover {
    text-decoration: underline;
}


/* --- АДАПТИВ ДЛЯ НОВОСТЕЙ --- */

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 250px;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
}