
/* Карточка в /news */
.news-card{
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
	margin-top: 30px;
    max-height: 250px;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.news-card-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.news-card-image {
    flex-shrink: 0;
    width: 400px;
    height: 250px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    /* Тут мб поменять, сильно зависит от самого изображения, в некоторых случаях может быть лучше scale-down или еще что-либо */
    object-fit: cover; 
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}

.news-card-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
    display: block;
}

.news-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-main-4, #0077b6);
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-card-excerpt {
    color: #5a6a7d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* под мобилки, с другими расширениями немного некорректно может работать, надо фиксить */
@media (max-width: 768px) {
    .news-card-link {
        flex-direction: column;
    }
	
	.news-card {
		max-height: max-content;
	}

    .news-card-image {
        width: 100%;
        height: 200px;
    }

    .news-card-content {
        padding: 15px;
    }
}

.wp-block-image-news img{
    display: block;
    margin: 0 auto;
    border-radius: 20px;
}



