/*news.css*/

.news-list-page {
    margin: 20px auto;
    max-width: 900px;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.news-card {
    flex: 1 1 300px;
/*        flex: 1 1 calc(33.333% - 20px);*/
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.4s, box-shadow 0.4s;
    box-shadow:
        inset 0 -3em 3em rgba(0, 0, 0, 0.1),
        0 0 0 0.5px rgb(255, 255, 255),
        0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
}

.news-card:hover {
    transform: translateY(-1px) scale(1.01);
        box-shadow:
        inset 0 -3em 3em rgba(0, 0, 0, 0.1),
        0 0 0 0.5px rgb(255, 255, 255),
        0.5em 0.5em 2em rgba(0, 0, 0, 0.4);
}

.news-card-link {
    text-decoration: none; /* Убирает подчеркивание */
    color: inherit; /* Наследует цвет текста */
    display: block; /* Делаем ссылку блочным элементом */
}

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

.news-content {
    padding: 15px;
    line-height: 1.2;
    text-align: justify;
}

.news-content h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    text-align: left;
}

.news-date {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-summary {
    font-size: 1rem;
    color: #333;
}

.news-detail-page {
    margin: 20px auto;
    max-width: 800px;
}

.news-detail-image {
    width: 100%;
    margin-bottom: 20px;
}

.news-full-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;
}
