/* =========================================================
   RF VIDEO / IMAGE — SOBRESCREVE SLIDER (FORÇADO)
   ========================================================= */

/* ================= CONTAINER PRINCIPAL ================= */
.rf-media {
    position: relative !important;
    width: 100%;
    background: #000;
    overflow: hidden;
}

/* ================= WRAPPER 16:9 (VÍDEO E IMAGEM) ================= */
.rf-video-wrapper,
.rf-image-wrapper {
    position: relative !important;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    overflow: hidden;
}

/* ================= IFRAME YOUTUBE ================= */
.rf-video-wrapper iframe {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ================= IMAGENS DO CAROUSEL ================= */
.rf-image-wrapper img,
.rf-media .carousel-item img {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ================= CAPTION SOBREPOSTA ================= */
.rf-caption {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.8),
        rgba(0,0,0,0)
    );
    z-index: 3;
}

/* ================= TEXTO ================= */
.rf-title,
.rf-sub,
.rf-badge {
    color: #fff !important;
}

.rf-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 4px 0 2px;
}

.rf-sub {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* ================= BADGES ================= */
.rf-badges-inline {
    position: relative;
    z-index: 4;
}

/* ================= BOOTSTRAP / CAROUSEL ================= */
.rf-media .carousel,
.rf-media .carousel-inner,
.rf-media .carousel-item {
    position: relative;
    height: auto;
    max-height: none;
}

/* ================= CARD ================= */
.rf-card {
    position: relative;
    min-height: 340px;
    z-index: 9999;
}

/* ================= MOBILE ================= */
@media (max-width: 576px) {

    .rf-caption {
        padding: 12px 14px;
    }

    .rf-title {
        font-size: 1rem;
    }

    .rf-sub {
        font-size: 0.85rem;
    }

    .rf-card {
        min-height: 220px;
        margin-top: 0px;
    }
}