/**
 * Карточки последних новостей из шорткода [news].
 *
 * Блок отгорожен сверху тонкой линией, без своей рамки.
 * Карточки как в макете: светлый подтон, радиус 16, отдельный подвал
 * с "Подробности". Метки в рамках, но без акцентного цвета.
 */

.news_latest {
    margin-top: 40px;
    padding: 48px 0;
    border-top: 1px solid #e5e7eb;
}

.news_latest_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 24px;
}

.news_latest_head_text {
    min-width: 0;
}

.news_latest_title {
    margin: 0 0 6px;
    color: #111827;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.news_latest_description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.news_latest_description>*:last-child {
    margin-bottom: 0;
}

.news_latest_all {
    flex: 0 0 auto;
    color: #c9011e;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.news_latest_all:hover {
    text-decoration: underline;
}

.news_latest_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.news_latest_card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: rgba(245, 247, 250, 0.5);
    transition: box-shadow 0.2s ease;
}

.news_latest_card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.news_latest_card_media {
    position: relative;
    aspect-ratio: 10 / 4;
    overflow: hidden;
    background: #e9edf2;
}

.news_latest_card_image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news_latest_card_placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #e9edf2;
}

.news_latest_card_body {
    flex: 1 1 auto;
    padding: 20px;
}

.news_latest_card_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.news_latest_tag {
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.news_latest_tag:hover {
    border-color: #c9011e;
    color: #c9011e;
}

.news_latest_card_title {
    margin: 0 0 8px;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.375;
    overflow-wrap: anywhere;
}

.news_latest_card_title a {
    color: inherit;
}

.news_latest_card_title a:hover {
    color: #c9011e;
}

.news_latest_card_excerpt {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.4;
    text-align: justify;
    overflow-wrap: anywhere;
}

.news_latest_card_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.news_latest_card_more {
    color: #c9011e;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.news_latest_card_more:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .news_latest {
        padding: 32px 0;
    }

    .news_latest_header {
        flex-direction: column;
        align-items: flex-start;
    }

    .news_latest_all {
        white-space: normal;
    }

    .news_latest_title {
        font-size: 20px;
    }
}