﻿.ri-post-card-shortcode {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.ri-post-card {
    position: relative;
    display: flex;
    gap: 1.15rem;
    align-items: stretch;
    width: min(720px, 86%);
    padding: 0.82rem 0.92rem;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 1.2rem;
    background: linear-gradient(135deg, rgba(239, 241, 246, 0.98), rgba(223, 227, 235, 0.98));
    box-shadow: 0 14px 34px rgba(34, 40, 52, 0.08);
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.ri-post-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 44%);
    pointer-events: none;
}

.ri-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(28, 34, 45, 0.11);
}

.ri-post-card::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 5px;
    background: linear-gradient(180deg, rgba(198, 154, 83, 0.88), rgba(225, 199, 152, 0.56));
    pointer-events: none;
}

.ri-post-card__media {
    width: 136px;
    min-width: 136px;
    min-height: 110px;
    border-radius: 1rem;
    overflow: hidden;
    display: block;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 10px 24px rgba(31, 39, 54, 0.16);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.ri-post-card:hover .ri-post-card__media {
    transform: scale(1.03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38), 0 14px 30px rgba(31, 39, 54, 0.2);
}

.ri-post-card__body {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.1rem 0;
}

.ri-post-card__head {
    min-width: 0;
}

.ri-post-card__eyebrow {
    margin-bottom: 0.38rem;
    color: #8d7244;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
}

.ri-post-card__title {
    margin: 0;
    color: #343840;
    font-size: 1.04rem;
    line-height: 1.34;
    font-weight: 800;
}

.ri-post-card__title a {
    color: inherit;
    display: -webkit-inline-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 180ms ease;
}

.ri-post-card__title a:hover {
    color: #171a20;
}

.ri-post-card__badge {
    display: inline-flex;
    align-items: center;
    margin-right: 0.45rem;
    padding: 0.16rem 0.48rem;
    border-radius: 999px;
    font-size: 0.74rem;
    line-height: 1.1;
    font-weight: 700;
    color: #6f4713;
    background: linear-gradient(135deg, rgba(247, 227, 182, 0.98), rgba(229, 195, 129, 0.98));
    box-shadow: 0 5px 12px rgba(174, 124, 16, 0.15);
    vertical-align: 0.1rem;
}

.ri-post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.72rem;
    padding-top: 0.44rem;
    border-top: 1px solid rgba(135, 142, 154, 0.14);
}

.ri-post-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    color: #8d939c;
    font-size: 0.83rem;
}

.ri-post-card__meta--right {
    justify-content: flex-end;
}

.ri-post-card__meta span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    opacity: 0.94;
}

@media (max-width: 767.98px) {
    .ri-post-card-shortcode {
        display: block;
    }

    .ri-post-card {
        flex-direction: column;
        width: 100%;
        padding: 0.9rem;
    }

    .ri-post-card__media {
        width: 100%;
        min-width: 100%;
        min-height: 180px;
    }

    .ri-post-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }

    .ri-post-card__meta--right {
        justify-content: flex-start;
    }
}
