.mrp-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0 0.25rem;
    font-family: 'Noto Sans Devanagari', 'Mukta', sans-serif;
}

.mrp-card {
    display: block;
    text-decoration: none;
    color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

/* Positioning container for everything on the image */
.mrp-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #111827;
    isolation: isolate;
}

.mrp-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

/* Solid category colour at the bottom, transparent at the top */
.mrp-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        var(--mrp-color) 15%,
        transparent 80%
    );
}

/* Badge: top-left pill */
.mrp-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 3;
    display: inline-block;
    padding: 0.5rem 0.65rem;
    border-radius: 999px;
    background: var(--mrp-color);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.mrp-badge-related {
    background: #1f2937;
}

.mrp-badge-new {
    background: #dc2626;
}

/* Date: clean white vertical text on the right edge */
.mrp-date {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    width: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Big headline: 2 lines usually, 3 at most, then ... */
.mrp-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    margin: 0;
    padding: 1rem 2.5rem 1rem 1rem;
    color: #ffffff;

    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.45;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;

    overflow: hidden;
}
