/* Carrossel de Notícias */

.carrossel-wrapper {
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.carrossel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.carrossel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 16px;
    padding: 16px;
    min-height: 300px;
}

.carrossel-item {
    flex: 0 0 calc(100% - 16px);
    min-width: 100%;
    display: flex;
}

@media (min-width: 640px) {
    .carrossel-item {
        flex: 0 0 calc(50% - 8px);
        min-width: calc(50% - 8px);
    }
}

@media (min-width: 1024px) {
    .carrossel-item {
        flex: 0 0 calc(33.333% - 11px);
        min-width: calc(33.333% - 11px);
    }
}

.noticia-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.noticia-card:hover {
    border-color: #1f6feb;
    box-shadow: 0 8px 24px rgba(31, 111, 235, 0.15);
    transform: translateY(-4px);
}

.noticia-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.noticia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.noticia-card:hover .noticia-image img {
    transform: scale(1.05);
}

.noticia-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.noticia-titulo {
    font-size: 16px;
    font-weight: 600;
    color: #0c1b2f;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-descricao {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.noticia-data {
    font-size: 12px;
    color: #9ca3af;
    margin: 8px 0 0 0;
    margin-top: auto;
}

/* Botões de Navegação */

.carrossel-prev,
.carrossel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(31, 111, 235, 0.9);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(31, 111, 235, 0.3);
}

.carrossel-prev::before {
    content: '<';
    font-weight: bold;
    font-size: 18px;
}

.carrossel-next::before {
    content: '>';
    font-weight: bold;
    font-size: 18px;
}

.carrossel-prev:hover,
.carrossel-next:hover {
    background: rgba(31, 111, 235, 1);
    box-shadow: 0 4px 16px rgba(31, 111, 235, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carrossel-prev:active,
.carrossel-next:active {
    transform: translateY(-50%) scale(0.95);
}

.carrossel-prev {
    left: 12px;
}

.carrossel-next {
    right: 12px;
}

@media (max-width: 640px) {
    .carrossel-prev,
    .carrossel-next {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Indicadores (Dots) */

.carrossel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    background: #f9fafb;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.dot.active {
    background: #1f6feb;
    width: 24px;
    border-radius: 4px;
}

.dot:hover {
    background: #9ca3af;
}

/* Responsividade */

@media (max-width: 768px) {
    .carrossel-track {
        padding: 12px;
        gap: 12px;
        min-height: 250px;
    }

    .noticia-image {
        height: 150px;
    }

    .noticia-content {
        padding: 12px;
    }

    .noticia-titulo {
        font-size: 15px;
    }

    .noticia-descricao {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .carrossel-container {
        border-radius: 8px;
    }

    .carrossel-track {
        min-height: 220px;
    }

    .noticia-image {
        height: 120px;
    }

    .noticia-content {
        padding: 10px;
        gap: 6px;
    }

    .noticia-titulo {
        font-size: 14px;
    }

    .noticia-descricao {
        font-size: 12px;
    }

    .noticia-data {
        font-size: 11px;
    }
}
