@media (max-width: 991.98px) {
    #cc-home-news .carousel-control-prev {
        left: 8px !important;
        right: auto !important;
    }
    #cc-home-news .carousel-control-next {
        right: 8px !important;
        left: auto !important;
    }
}
/* Correção: força setas do carrossel nas laterais em todas as telas */
#cc-home-news .carousel-control-prev,
#cc-home-news .carousel-control-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 0 !important;
    right: auto !important;
    margin-left: 8px !important;
    margin-right: 0 !important;
    z-index: 10;
}
#cc-home-news .carousel-control-next {
    left: auto !important;
    right: 0 !important;
    margin-right: 8px !important;
    margin-left: 0 !important;
}
/* ================================
   Home News (slider + lista lateral)
   ================================ */

/* Altura mínima e máxima do carrossel */
#cc-home-news .carousel-inner {
    min-height: 400px;
    max-height: 400px;
}

/* Mantém a razão 16x9 respeitando os limites */
#cc-home-news .carousel-item .ratio {
    min-height: 400px;
    max-height: 400px;
    height: 100%;
}

/* Imagem principal com dimensões fixas para evitar CLS */
#cc-home-news .cc-news-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder quando não há thumbnail */
#cc-home-news .cc-news-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f2f4f7 0%, #d8dde3 100%);
}

/* Overlay para legibilidade */
#cc-home-news .cc-news-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #000000 100%);
    background-blend-mode: multiply;
}

/* Transição entre slides */
#cc-home-news .carousel-item {
    transition: opacity 0.5s ease;
}

/* ===== Conteúdo do slide ===== */
#cc-home-news .cc-news-content {
    padding: 34px 48px;
}

#cc-home-news .cc-news-content .category-label {
    background: transparent !important;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
    line-height: 1em;
    margin-bottom: 0.5rem;
    display: inline-block;
}

#cc-home-news .cc-news-content h2 {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 24px;
    line-height: 1.5em;
    letter-spacing: 0;
    margin: 0 0 0.5rem 0;
}

#cc-home-news .cc-news-content .meta {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 14px;
    line-height: 1em;
    color: var(--color-gray-300);
}

/* ===== Controles (Material Icons) ===== */
#cc-home-news .carousel-control-prev,
#cc-home-news .carousel-control-next {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    opacity: 1;
    z-index: 5;
}

#cc-home-news .carousel-control-prev {
    left: 16px;
}

#cc-home-news .carousel-control-next {
    right: 8px;
}

#cc-home-news .carousel-control-prev .material-symbols-outlined,
#cc-home-news .carousel-control-next .material-symbols-outlined {
    font-size: 32px;
    line-height: 1;
    color: var(--color-gray-300);
    /* cor padrão */
    transition: color 0.2s ease-in-out;
}

#cc-home-news .carousel-control-prev:hover .material-symbols-outlined,
#cc-home-news .carousel-control-next:hover .material-symbols-outlined {
    color: var(--color-semiwhite);
    /* cor hover */
}

/* Sticky em desktop (ajuste o offset conforme seu header) */
@media (min-width: 992px) {
    #cc-home-news .col-lg-4 {
        position: sticky;
        top: 24px;
    }

    #cc-home-news .carousel-inner {
        min-height: 550px;
        max-height: 550px;
    }

    /* Mantém a razão 16x9 respeitando os limites */
    #cc-home-news .carousel-item .ratio {
        min-height: 550px;
        max-height: 550px;
        height: 100%;
    }
}

/* Realce hover/focus sem quebrar stretched-link */
#cc-home-news .list-group-item {
    background-color: transparent;
    cursor: pointer;
    padding: 8px 12px 8px 8px;
    border: none;
    margin-bottom: 4px;
    border-radius: 8px !important;
}

#cc-home-news .list-group-item.active,
#cc-home-news .list-group-item:hover {
    background-color: var(--color-primary-50);
}

#cc-home-news .list-group-item:focus-within {
    outline: 2px solid var(--color-primary-focus);
    background-color: var(--color-primary-50);
    outline-offset: -2px;
}

#cc-home-news .list-group-item .cc-category {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
    line-height: 1em;
    margin-bottom: 8px;
}

#cc-home-news .list-group-item .cc-date {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 14px;
    line-height: 1em;
    color: var(--color-gray-600);
    white-space: nowrap;
    margin-top: 3px;
}

#cc-home-news .list-group-item .cc-separator {
    font-size: 20px;
    line-height: 1em;
    margin: -2px 4px 0;
    color: var(--color-gray-600);
}

#cc-home-news .list-group-item .cc-active-bar {
    display: block;
    width: 0%;
    height: 4px;
    opacity: 0;
    border-radius: 2px;
    background: linear-gradient(270deg, #26A737 0%, #008774 100%);
    transition: width 10s ease-in-out, opacity 0.3s ease;
}

#cc-home-news .list-group-item.active .cc-active-bar {
    width: 100%;
    opacity: 1;
}


/* Títulos: truncamento em 2 linhas */
#cc-home-news .cc-news-title {
    font-family: var(--font-primary, "Kanit");
    font-weight: 300;
    font-size: 16px;
    line-height: 1.3em;
    color: var(--color-black, #26323f);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#cc-home-news .cc-readmore {
    font-family: var(--font-primary, "Kanit");
    font-weight: 500;
    font-size: 16px;
    line-height: 1em;
    text-decoration: underline;
    color: var(--color-primary-700, #1b7727);
    margin-bottom: 4px;
}



/* Alvo de toque confortável em mobile */
@media (max-width: 991.98px) {
    #cc-home-news #ccNewsSidebar .list-group-item {
        padding-top: 14px;
        padding-bottom: 14px;
    }
}