.destaques {
    /* background: var(--cor-primaria); */
    width: 99.5vw; /* Ocupa toda a largura da viewport */
    margin-left: calc(-50vw + 50%); /* Remove o padding lateral padrão */
    overflow: hidden;
    position: relative;
    padding: var(--padding);
    margin-top: var(--margin) !important;
    left: 0;
    right: 0;
}

.destaques-bg,
#destaques {
    width: 100%;
    max-width: 100%;
}

.destaques-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    height: 0;
    padding-bottom: 31.75%;
    max-height: 400px;
}

.destaques-capa-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.destaques-capa-container:after {
    content: "";
    position: absolute;
    top: 1rem;
    bottom: 0rem;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, #000000a0 0%, transparent 60%);
}

.destaques-capa-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: brightness(0.85);
}

.destaques-info-overlay {
    position: absolute;
    bottom: 2rem;
    left: 7rem;
    width: min(900px, 95%);
    padding: 0;
    display: flex;
    flex-direction: column; /* empilha */
    /* gap: 0.5rem; */

    z-index: 3;
}

.destaques-categoria {
    position: absolute;
    top: 1rem;
    left: 9.5rem;
    background: var(--cor-categoria);
    color: var(--bs-white);
    padding: 8px 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    border-radius: 4px;
    z-index: 1;
}

.destaques-data {
    background-color: var(--cor-data);
}

.destaques-titulo,
.destaques-subtitulo {
    position: static;
    padding-right: 0.8rem;
    bottom: 1px;
    width: min(900px, 95%);
    margin: 0;
    color: #fff;
    z-index: 3;
    word-break: break-word;
}

/* TÍTULO */

.destaques-titulo {
    bottom: 5.5rem;
    font-weight: 800;
    font-size: clamp(1.4rem, 2.4vw, 2.6rem);
    line-height: 1.2;

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.6),
        0 1px 2px rgba(0, 0, 0, 0.9);
}

/* SUBTÍTULO */

.destaques-subtitulo {
    bottom: 2.5rem;
    font-weight: 500;
    font-size: clamp(0.95rem, 1.2vw, 1.25rem);
    line-height: 1.4;
    opacity: 0.95;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.saibaMais {
    font-weight: 600;
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    color: white;
}

/* Ajustes responsivos - Mobile First */
@media (max-width: 767px) {
    .destaques {
        background: linear-gradient(to top, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        overflow: hidden;
        position: relative;
        padding: 0;
        margin-top: 0 !important;
        left: 0;
        right: 0;
    }

    .destaques-bg,
    #destaques {
        width: 100%;
        max-width: 100%;
    }

    .destaques-wrap {
        position: relative;
        overflow: hidden;
        border-radius: 0;
        width: 100%;
        height: 0;
        padding-bottom: 33.25%;
        max-height: none;
        margin: 0;
    }

    .destaques-capa-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, var(--cor-primaria) 0%, var(--cor-ternaria) 100%);
    }

    .destaques-capa-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .destaques-info-overlay {
        position: absolute;
        left: 15px;
        right: 15px;
        padding: 0;
        display: flex;
        flex-direction: column; /* ✅ empilha */
        align-items: flex-start; /* melhor alinhamento */
        /* gap: 0.7rem; */
        z-index: 2;
    }

    .destaques-titulo,
    .destaques-subtitulo {
        left: 15px;
        right: 15px;
        width: auto;
    }

    .destaques-titulo {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .destaques-subtitulo {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .destaques-categoria {
        position: absolute;
        top: 1.5rem;
        left: 2rem;
        font-size: 0.6rem;
        background: var(--cor-categoria);
        color: var(--bs-white);
        padding: 5px 8px;
        font-weight: 700;
        text-transform: uppercase;
        margin: 0;
        border-radius: 4px;
    }

    .destaques-data {
        background-color: var(--cor-data);
    }
}

@media (max-width: 500px) {
    .destaques-titulo {
        font-size: 1rem;
        bottom: -1rem;
    }
    .destaques-subtitulo {
        font-size: 0.8rem;
        bottom: -3rem;
/*         max-width: 50ch !important; */
    }
    .destaques-categoria {
        top: 0.8rem;
    }
}

.owl-dots {
    background-color: transparent !important;
}

.owl-theme .owl-nav.disabled + .owl-dots {
    position: relative;
    margin-top: -2rem !important;
    margin-bottom: 0px !important;
}

.owl-theme .owl-dots .owl-dot span {
    width: 3rem;
    height: 0.3rem;
    border: 2px solid var(--bs-white);
    border-radius: 0 !important;
}

.owl-theme .owl-dots .owl-dot span {
    background-color: var(--bs-white);
    border: none;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background-color: #d43f46;
}

@media (max-width: 500px) {
    .owl-theme .owl-dots .owl-dot span {
        display: none;
    }
    .destaques-wrap {
        height: 200px;
    }
}

/* Container da barra de progresso - AGORA ABAIXO */
.slider-progress-container {
    width: 100%;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.1); /* Fundo mais suave */
    overflow: hidden;
    margin-top: 2px; /* Pequeno espaçamento após o slider */
}

/* Barra de progresso animada */
.slider-progress-bar {
    height: 100%;
    width: 0%;
    background: #d43f46;
    transition: width linear;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(var(--cor-primaria-rgb), 0.3);
}

/* Quando o slider estiver pausado (hover) */
.destaques:hover .slider-progress-bar {
    animation-play-state: paused;
}

/* Versão mobile */
@media (max-width: 767px) {
    .slider-progress-container {
        height: 3px;
        margin-top: 0; /* Remove espaçamento no mobile se necessário */
    }
}
