/* =============================================================================
   Rensi Hero Grid
   Shortcode: [rensi_hero_grid]
   ============================================================================= */

/* ── Container ───────────────────────────────────────────────────────────── */

.rensi-hero-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}

/* ── Card ────────────────────────────────────────────────────────────────── */

.rensi-hero-grid__item {
    flex: 1 1 0;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

/* ── Image wrapper ───────────────────────────────────────────────────────── */

.rensi-hero-grid__image-wrap {
    border-radius: 16px;
    overflow: hidden;           /* clips zoom + keeps rounded corners */
    height: 300px;
    width: 100%;
    background-color: #e4e4e4;
    flex-shrink: 0;
}

.rensi-hero-grid__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder when no thumbnail is set */
.rensi-hero-grid__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3d1a6e 0%, #6a2eb8 100%);
}

/* ── Text area ───────────────────────────────────────────────────────────── */

.rensi-hero-grid__text {
    margin-top: 14px;
    padding: 0 2px;
}

.rensi-hero-grid__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 5px;
    line-height: 1.3;
    color: #111;
    /* prevent text wrapping from shifting layout during transition */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rensi-hero-grid__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.88rem;
    color: #555;
    white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

/* Tablet: taller images, still horizontal */
@media (max-width: 900px) {
    .rensi-hero-grid {
        gap: 14px;
    }

    .rensi-hero-grid__image-wrap {
        height: 220px;
    }
}

/* Mobile: stack vertically */
@media (max-width: 600px) {
    .rensi-hero-grid {
        flex-direction: column;
        gap: 16px;
    }

    .rensi-hero-grid__image-wrap {
        height: 220px;
    }

    .rensi-hero-grid__title {
        white-space: normal;
    }
}
