/* Estilos para o carrossel de notícias */
.news-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.news-carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    padding: 20px 30px; /* Padding lateral do container */
}

.news-item {
    flex: 0 0 calc(33.33% - 160px); /* Espaçamento lateral */
    margin: 0 80px; /* Margens laterais */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: white;
    transition: all 0.3s ease;
    transform: scale(0.95);
    height: 400px; /* Altura fixa padronizada */
    display: flex;
    flex-direction: column;
}

.news-item.active {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.news-item-image {
    height: 200px; /* Altura fixa para todas as imagens */
    overflow: hidden;
    position: relative; /* Para posicionamento da imagem */
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantém proporção e cobre o espaço */
    object-position: center; /* Centraliza a imagem */
    transition: transform 0.5s ease;
}

.news-item:hover .news-item-image img {
    transform: scale(1.1);
}

.news-item-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-item h3 {
    margin-bottom: 10px;
    color: #388e3c;
    font-size: 1.2rem;
    height: 3rem; /* Altura fixa para títulos */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limita a 2 linhas */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.news-item p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    height: 4.5rem; /* Altura fixa para o texto */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limita a 3 linhas */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.btn.read-more {
    align-self: flex-start; /* Alinha o botão à esquerda */
    margin-top: auto; /* Empurra o botão para baixo */
    background-color: #388e3c;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn.read-more:hover {
    background-color: #2e7d32;
}

/* Responsividade */
@media (max-width: 992px) {
    .news-item {
        flex: 0 0 calc(50% - 160px);
        margin: 0 80px;
    }
}

@media (max-width: 768px) {
    .news-item {
        flex: 0 0 calc(100% - 120px);
        margin: 0 60px;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
    }
}

.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: #388e3c;
    transform: scale(1.2);
}

/* Ajuste para as setas de navegação */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(56, 142, 60, 0.8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100; /* Aumentar o z-index para garantir que esteja acima de outros elementos */
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background-color: rgba(56, 142, 60, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

/* Garantir que os ícones dentro das setas sejam visíveis */
.carousel-arrow i {
    font-size: 18px;
    color: white;
}