/*
 * Последние публикации блога в сайдбаре главной страницы
 * Файл: templates/metallurg-dle-template/css/home-blog-sidebar.css
 */

.side-card--home-blog {
    padding: 22px 20px 13px;
    box-shadow: 0 13px 34px rgba(20, 20, 20, 0.055);
}

.home-blog-heading {
    align-items: flex-end;
    margin-bottom: 10px;
}

.home-blog-heading > div {
    min-width: 0;
}

.home-blog-heading .eyebrow {
    color: #a6780b;
}

.home-blog-heading h3 {
    margin-top: 4px;
    margin-bottom: 0;
    font-size: 22px;
}

.home-blog-heading > a {
    flex: 0 0 auto;
    margin-bottom: 2px;
    font-size: 12px;
}

.home-blog-list {
    border-top: 1px solid var(--line, #e8e8ea);
}

.home-blog-item {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0 -9px;
    padding: 14px 38px 14px 9px;
    border-bottom: 1px solid var(--line, #e8e8ea);
    border-radius: 10px;
    transition:
        background 0.18s ease,
        transform 0.18s ease;
}

.home-blog-item:last-child {
    border-bottom-color: transparent;
}

.home-blog-item:hover {
    background: #fff8e5;
    transform: translateX(3px);
}

.home-blog-item__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    color: #929499;
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
}

.home-blog-item__meta span {
    padding: 4px 6px;
    color: #8c6508;
    border-radius: 5px;
    background: rgba(246, 197, 66, 0.2);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-blog-item__title {
    display: -webkit-box;
    overflow: hidden;
    color: #202124;
    font-size: 14px;
    font-weight: 820;
    line-height: 1.35;
    letter-spacing: -0.015em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-blog-item:hover .home-blog-item__title {
    color: var(--red, #c61020);
}

.home-blog-item__arrow {
    position: absolute;
    top: 50%;
    right: 9px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: var(--red, #c61020);
    border: 1px solid rgba(198, 16, 32, 0.17);
    border-radius: 50%;
    background: #ffffff;
    font-size: 13px;
    font-weight: 900;
    transform: translateY(-50%);
    transition:
        color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.home-blog-item:hover .home-blog-item__arrow {
    color: #ffffff;
    border-color: var(--red, #c61020);
    background: var(--red, #c61020);
}

@media (max-width: 1000px) {
    .side-card--home-blog {
        grid-column: 1 / -1;
    }

    .home-blog-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
    }

    .home-blog-item:nth-child(5),
    .home-blog-item:nth-child(6) {
        border-bottom-color: transparent;
    }
}

@media (max-width: 760px) {
    .side-card--home-blog {
        grid-column: auto;
    }

    .home-blog-list {
        display: block;
    }

    .home-blog-item:nth-child(5) {
        border-bottom-color: var(--line, #e8e8ea);
    }
}
