/* карточки новостей на главной */
.card-news {
    background: #bfbfbf;
    border-radius: 16px;
    overflow: hidden;
	box-shadow: 0 0 20px var(--color-newbw-2);
	background-color: var(--color-newbw-1);
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);*/
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

/* карточки новостей на главной  - наведение */
.card-news:hover {
    transform: translateY(-5px);
}

/* карточки новостей на главной - изображение */
.card-news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* карточки новостей на главной - блок снизу */
.card-news-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

/* карточки новостей на главной - текст */
.card-news-title h3 {
    font-size: 20px;
	text-align: center;
    color: var(--color-text);
    margin-bottom: 15px;
}

/* карточки новостей на главной - текст */
.card-news-title a:hover h3 {
    color: var(--color-main-4);
}

/* новости отдельно - изображение */
.card-news-image {
	height: auto;
	max-width: 70%;
}



.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%;
    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: center;
    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-date span{
	color: var(--color-main-4);
	font-weight: bold;
}


/* Секция свежих новостей на главной странице */
.container-news-front {
    max-width: 1400px;
    margin: 30px auto;
    padding: 40px 20px;
}

.section-news-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.section-news-title h3 {
    font-size: 28px;
    color: var(--color-newbw-2);
    margin: 0;
}

.archive-url-container a {
    font-size: 20px;
    color: var(--color-main-4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-url-container a:hover {
    color: var(--color-main-5);
    text-decoration: none;
}

.cards-news {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}




.wp-block-image-news img{
	display: block;
	margin: 0 auto;
	border-radius: 20px;
}

