/* Новости на главной странице*/
#news {
    text-align: center;
    padding: 30px 20px;
}

#news h1 {
    font-weight: bold;
    font-size: 2rem;
}

#news .news-block {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

#news button {
    margin: 30px 0;
}

/* Новости в разделе новостей */
.news-posts {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.news-post {
    display: block;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.3);
    width: 25rem;
    text-align: left;
}

.news-post p {
    text-align: justify;
    text-align-last: start;
}

.news-post .image {
    position: relative;
}

.news-post .meta {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(#0073E6, #1F407A);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.news-post .entry-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: scale 1.2s ease;
}

.news-posts a,
.news-post a {
    text-decoration: none;
}

.news-post h2 {
    color: black;
    font-size: 1.1rem;
    font-weight: bold;
}

.news-post p {
    font-size: 0.9rem;
    color: #555;
}

.news-post:hover .entry-thumbnail img {
    scale: 1.05;
}

.news-post .content {
    padding: 20px;
}