/* Estilos para a seção de Notícias */
#noticias {
    background: linear-gradient(135deg, #FFE4E1 0%, #FFF0F5 100%);
    padding: 3rem 0; /* Reduzido de 4rem para 3rem */
    position: relative;
    overflow: hidden;
}

#noticias::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FF69B4' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.15;
}

#noticias h2 {
    color: #D8366F;
    text-align: center;
    font-size: 2.5rem; /* Reduzido de 3rem para 2.5rem */
    margin-bottom: 2rem; /* Reduzido de 3rem para 2rem */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.noticias-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.noticias-container {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1.5rem; /* Reduzido de 2rem para 1.5rem */
    padding: 0.5rem; /* Reduzido de 1rem para 0.5rem */
}

.noticia-card {
    min-width: calc(33.333% - 1.5rem); /* Ajustado para o novo gap */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.8rem; /* Reduzido de 1rem para 0.8rem */
    padding: 1.5rem; /* Reduzido de 2rem para 1.5rem */
    box-shadow: 0 8px 16px rgba(216, 54, 111, 0.1);
    border-top: 4px solid #D8366F; /* Reduzido de 6px para 4px */
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.noticia-card:hover {
    transform: translateY(-3px); /* Reduzido de -5px para -3px */
    box-shadow: 0 10px 20px rgba(216, 54, 111, 0.2);
}

.noticia-data {
    color: #D8366F;
    font-size: 0.85rem; /* Reduzido de 0.9rem para 0.85rem */
    font-weight: 600;
    margin-bottom: 0.8rem; /* Reduzido de 1rem para 0.8rem */
}

.noticia-titulo {
    color: #2D3748;
    font-size: 1.3rem; /* Reduzido de 1.5rem para 1.3rem */
    margin-bottom: 0.8rem; /* Reduzido de 1rem para 0.8rem */
    line-height: 1.3;
}

.noticia-texto {
    color: #4A5568;
    margin-bottom: 1rem; /* Reduzido de 1.5rem para 1rem */
    line-height: 1.5;
    font-size: 0.95rem; /* Adicionado para reduzir o tamanho do texto */
}

.noticia-link {
    display: inline-block;
    color: #D8366F;
    text-decoration: none;
    font-weight: 600;
    padding: 0.3rem 0; /* Reduzido de 0.5rem para 0.3rem */
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 0.9rem; /* Adicionado para reduzir o tamanho do link */
}

.noticia-link:hover {
    border-bottom-color: #D8366F;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem; /* Reduzido de 2rem para 1.5rem */
}

.slider-btn {
    background: #D8366F;
    border: none;
    color: white;
    width: 35px; /* Reduzido de 40px para 35px */
    height: 35px; /* Reduzido de 40px para 35px */
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem; /* Reduzido de 1.5rem para 1.2rem */
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #C42D63;
    transform: scale(1.1);
}

.slider-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Responsividade */
@media (max-width: 1024px) {
    .noticia-card {
        min-width: calc(50% - 1.5rem);
    }
}

@media (max-width: 768px) {
    .noticia-card {
        min-width: calc(100% - 1.5rem);
    }

    #noticias h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

/* Alto Contraste */
body.high-contrast #noticias {
    background: var(--background-color);
}

body.high-contrast .noticia-card {
    background: var(--background-color);
    border: 1px solid var(--text-color);
}

body.high-contrast .noticia-link,
body.high-contrast .noticia-data {
    color: var(--text-color);
}

body.high-contrast .slider-btn {
    background: var(--text-color);
    color: var(--background-color);
}