@media (max-width: 61.9988rem) {
    #cc-home-news .carousel-control-prev {
        left: 0.5rem !important;
        right: auto !important;
    }

    #cc-home-news .carousel-control-next {
        right: 0.5rem !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: 0.5rem !important;
    margin-right: 0 !important;
    z-index: 10;
}

#cc-home-news .carousel-control-next {
    left: auto !important;
    right: 0 !important;
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

/* ================================
   Home News (slider + lista lateral)
   ================================ */

/* Ratio do carrossel fixo em 1.29:1 */
#cc-home-news .carousel-inner {
    min-height: auto;
    max-height: none;
}

#cc-home-news .carousel-item .ratio {
    aspect-ratio: 1.29 / 1 !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    width: 100% !important;
    padding-top: 0 !important;
    overflow: hidden;
}

#cc-home-news .carousel-item .ratio::before,
#cc-home-news .carousel-item .ratio::after {
    display: none !important;
    content: none !important;
}

/* 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 141%);
    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: 2.125rem 3rem;
}

#cc-home-news .cc-news-content .category-label {
    background: transparent !important;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    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: 1.5rem;
    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: 0.875rem;
    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: 1rem;
}

#cc-home-news .carousel-control-next {
    right: 0.5rem;
}

#cc-home-news .carousel-control-prev .material-symbols-outlined,
#cc-home-news .carousel-control-next .material-symbols-outlined {
    font-size: 2rem;
    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: 62rem) {
    #cc-home-news .col-lg-4 {
        position: sticky;
        top: 1.5rem;
    }
}

/* Realce hover/focus sem quebrar stretched-link */
#cc-home-news .list-group-item {
    background-color: transparent;
    cursor: pointer;
    padding: 0.5rem 0.75rem 0.5rem 0.5rem;
    border: none;
    margin-bottom: 0.25rem;
    border-radius: 0.5rem !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: 0.125rem solid var(--color-primary-focus);
    background-color: var(--color-primary-50);
    outline-offset: -0.125rem;
}

li.list-group-item.d-flex.flex-column.gap-1 {
    gap: 0rem !important;
}

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

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

#cc-home-news .list-group-item .cc-separator {
    font-size: 1.25rem;
    line-height: 1em;
    margin: -0.125rem 0.25rem 0;
    color: var(--color-gray-600);
}

#cc-home-news .list-group-item .cc-active-bar {
    display: block;
    width: 0%;
    height: 0.25rem;
    opacity: 0;
    border-radius: 0.125rem;
    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;
}

@media (max-width: 767.98px) {
    #cc-home-news .list-group-item .cc-active-bar {
        display: none !important;
    }
}

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

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

#cc-home-news .ver-mais-bar {
    width: 100%;
    background: #BCE4C1;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    height: 2.5rem;
}

.home-news-cegovbr-wrapper {
    margin-top: 3.3rem;
}

#cc-home-news .ver-mais-link {
    color: inherit;
    text-decoration: none;
}

#cc-home-news .ver-mais-link .destaque {
    color: inherit;
}

#cc-home-news .ver-mais-link:hover .destaque,
#cc-home-news .ver-mais-link:focus-visible .destaque {
    text-decoration: underline;
}

/* ====== Alto Contraste ====== */
body.contrast-active #cc-home-news .carousel-inner {
    background-color: #000 !important;
    outline: 0.125rem solid #fff !important;
}

body.contrast-active #cc-home-news .cc-news-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 90%) !important;
}

body.contrast-active #cc-home-news .cc-news-content h2 a,
body.contrast-active #cc-home-news .cc-news-content .meta {
    color: #fff !important;
}

body.contrast-active #cc-home-news .cc-news-content .cc-news-category,
body.contrast-active #cc-home-news .list-group-item .cc-category {
    color: #fff !important;
    /* Amarelo para categorias em alto contraste */
}

body.contrast-active #cc-home-news .list-group-item {
    background-color: #000 !important;
    border-bottom: 0.0625rem solid #444 !important;
    border-radius: 0 !important;
}

body.contrast-active #cc-home-news .list-group-item.active,
body.contrast-active #cc-home-news .list-group-item:hover {
    background-color: #222 !important;
    outline: 0.0625rem solid #fff !important;
}

body.contrast-active #cc-home-news .list-group-item .cc-news-title {
    color: #fff !important;
}

body.contrast-active #cc-home-news .list-group-item .cc-date {
    color: #ccc !important;
}

body.contrast-active #cc-home-news .list-group-item .cc-readmore {
    color: #fff !important;
}

body.contrast-active #cc-home-news .list-group-item .cc-active-bar {
    background: #fff !important;
}

/* Botão Ver Todas em Alto Contraste */
body.contrast-active #cc-home-news .d-flex.justify-content-center.mt-3 {
    background-color: #000 !important;
    outline: 0.125rem solid #fff !important;
}

body.contrast-active #cc-home-news .ver-mais-link {
    color: #fff !important;
}

body.contrast-active #cc-home-news .ver-mais-link:hover {
    color: #fff !important;
}

/* Evita que a barra "Ver mais" fique verde em alto contraste */
body.contrast-active #cc-home-news .ver-mais-bar {
    background: transparent !important;
    background-color: transparent !important;
    border: 0.0625rem solid #fff !important;
}

body.contrast-active #cc-home-news .carousel-control-prev .material-symbols-outlined,
body.contrast-active #cc-home-news .carousel-control-next .material-symbols-outlined {
    color: #fff !important;
}

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

    #cc-home-news .link-light.text-decoration-none,
    #cc-home-news .cc-news-category {
        font-size: 14px;
        line-height: 140%;
    }

    #cc-home-news .cc-news-category {
        font-weight: 300 !important;
    }

    #cc-home-news .cc-news-content h2 {
        font-size: 0rem;
        line-height: 0em;
    }

    #cc-home-news .ver-mais-bar {
        margin-top: 0rem !important;
    }
}