.nexa-rich-media-showcase {
    --nexa-accent: #0f766e;
    position: relative;
    margin: 2rem 0;
    padding: 1.35rem;
    border: 1px solid #d7e3df;
    background: linear-gradient(135deg, #f5fbfa 0%, #ffffff 100%);
    border: 1px solid color-mix(in srgb, var(--nexa-accent) 22%, #d6d6d6);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--nexa-accent) 18%, transparent) 0%, transparent 36%),
        linear-gradient(135deg, color-mix(in srgb, var(--nexa-accent) 9%, #ffffff) 0%, #ffffff 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.nexa-rich-media-heading {
    margin-bottom: 1rem;
}

.nexa-rich-media-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: #eef8f5;
    background: color-mix(in srgb, var(--nexa-accent) 12%, white);
    color: var(--nexa-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nexa-rich-media-heading h3 {
    margin: 0 0 0.4rem;
    color: #10212b;
    font-size: clamp(1.3rem, 2vw, 1.85rem);
    line-height: 1.1;
}

.nexa-rich-media-heading p {
    margin: 0;
    color: #475569;
    max-width: 48rem;
}

.nexa-rich-media-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 1rem;
}

.nexa-rich-media-hero,
.nexa-rich-media-thumb {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #f8fafc;
}

.nexa-rich-media-hero {
    min-height: 100%;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.nexa-rich-media-hero img,
.nexa-rich-media-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nexa-rich-media-hero figcaption,
.nexa-rich-media-thumb figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0.9rem 1rem;
    color: #fff;
    font-size: 0.92rem;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.82) 100%);
}

.nexa-rich-media-thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.nexa-rich-media-thumb {
    min-height: 180px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.nexa-rich-media-video {
    margin-top: 1rem;
    border-radius: 22px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.14);
}

.nexa-rich-media-video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.nexa-rich-media-video-frame iframe,
.nexa-rich-media-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.nexa-rich-media-video-link {
    margin: 1rem 0 0;
}

.nexa-rich-media-video-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: var(--nexa-accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.nexa-rich-media-video-link a:hover {
    filter: brightness(1.06);
}

@media (max-width: 900px) {
    .nexa-rich-media-shell {
        grid-template-columns: 1fr;
    }

    .nexa-rich-media-hero {
        min-height: 260px;
    }
}

@media (max-width: 640px) {
    .nexa-rich-media-showcase {
        padding: 1rem;
        border-radius: 20px;
    }

    .nexa-rich-media-thumbs {
        grid-template-columns: 1fr;
    }

    .nexa-rich-media-thumb {
        min-height: 220px;
    }
}
