/* ============================================================
   Random Posts Widget
   ============================================================ */

.random-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Item ──────────────────────────────────────────────────── */
.rp-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
}

.rp-item--divider {
    border-bottom: 1px solid #f0f0f0;
}

/* last item: no extra bottom padding */
.random-posts .rp-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

/* ── Thumbnail ─────────────────────────────────────────────── */
.rp-item__thumb {
    flex-shrink: 0;
    display: block;
    width: 80px;
    min-width: 80px;
    overflow: hidden;
    border-radius: 4px;
}

.rp-item__thumb img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.rp-item:hover .rp-item__thumb img {
    transform: scale(1.07);
}

.rp-item__thumb-placeholder {
    width: 100%;
    height: 60px;
    background-color: #f0f0f0;
}

/* ── Body ──────────────────────────────────────────────────── */
.rp-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ── Category label ────────────────────────────────────────── */
.rp-item__cat {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #f28c28;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* ── Title ─────────────────────────────────────────────────── */
.rp-item__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rp-item__title a {
    color: #222222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rp-item__title a:hover {
    color: #f28c28;
}
