/* Carrossel de notícias em destaque – home */

.cchla-home-news {
    width: 100%;
    max-width: 80rem;
    margin: 4rem auto;
    padding: 0 1rem;
    display: grid;
    gap: 2.5rem;
    align-items: start;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .cchla-home-news {
        grid-template-columns: 1fr 1fr;
        padding: 0 1.5rem;
    }
}

.cchla-home-news__section-title {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #002047;
    line-height: 1.2;
}

.cchla-home-news__featured,
.cchla-home-news__aside {
    min-width: 0;
    width: 100%;
}

.cchla-featured-carousel {
    width: 100%;
}

.cchla-home-news .cchla-news-card__side-excerpt {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #4b5563;
}

.cchla-featured-carousel__stage {
    position: relative;
}

.cchla-featured-carousel__viewport {
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.cchla-featured-carousel__track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.cchla-featured-carousel__slide {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.cchla-featured-carousel__slide .cchla-news-card__image {
    border-radius: 0.5rem 0.5rem 0 0;
    border: none;
}

.cchla-featured-carousel__caption {
    padding: 1rem 1.125rem;
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 0.5rem 0.5rem;
}

.cchla-featured-carousel__caption-link {
    display: block;
    font-size: clamp(0.9375rem, 1.5vw, 1.1875rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.45;
    color: #002047 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.cchla-featured-carousel__caption-link:hover,
.cchla-featured-carousel__caption-link:focus-visible {
    color: #004499 !important;
    outline: none;
}

.cchla-featured-carousel__nav {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.92);
    color: #002047;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 32, 71, 0.15);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cchla-featured-carousel__nav:hover,
.cchla-featured-carousel__nav:focus-visible {
    background: #004499;
    color: #fff;
    outline: none;
}

.cchla-featured-carousel__nav--prev {
    left: 0.5rem;
}

.cchla-featured-carousel__nav--next {
    right: 0.5rem;
}

.cchla-featured-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cchla-featured-carousel__dot {
    width: 0.625rem;
    height: 0.625rem;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.cchla-featured-carousel__dot.is-active {
    background: #004499;
    transform: scale(1.2);
}

.cchla-featured-carousel__dot:hover,
.cchla-featured-carousel__dot:focus-visible {
    background: #7eb3e8;
    outline: none;
}

.cchla-featured-carousel__dot.is-active:hover {
    background: #002047;
}

@media (max-width: 767px) {
    .cchla-featured-carousel__nav {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }

    .cchla-featured-carousel__nav--prev {
        left: 0.35rem;
    }

    .cchla-featured-carousel__nav--next {
        right: 0.35rem;
    }
}
