/* =========================
   NOTÍCIAS - GRID EXCLUSIVO DO INDEX (MODERNIZADO)
========================= */
.noticias-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.noticia-card {
    flex: 1 1 calc(33% - 20px);
    max-width: calc(33% - 20px);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.noticia-card .card-img {
    width: 100%;
    height: 160px; /* altura um pouco maior para destaque */
    overflow: hidden;
    position: relative;
}

.noticia-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.noticia-card:hover .card-img img {
    transform: scale(1.08); /* efeito moderno de zoom */
}

.noticia-card .card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.noticia-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: #222;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.noticia-card:hover h3 {
    color: var(--azul); /* destaque no hover */
}

.noticia-card .resumo {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.4;
}

.noticia-card .data-publicacao {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 10px;
}

.noticia-card .btn {
    padding: 6px 14px;
    font-size: 0.85rem;
    background: var(--azul);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    align-self: flex-start;
    transition: background 0.3s ease, transform 0.3s ease;
}

.noticia-card .btn:hover {
    background: var(--vermelho);
    transform: translateY(-2px);
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .noticia-card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .noticia-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .noticia-card .card-img {
        height: 140px;
    }
}

/* Títulos das seções */
.section-title {
    font-family: 'Montserrat', sans-serif; /* fonte mais profissional */
    font-weight: 700;
    font-size: 2rem; /* maior que padrão */
    color: #222; /* cor mais elegante que preto puro */
    text-transform: uppercase; /* deixa mais institucional */
    letter-spacing: 1px; /* espaçamento entre letras */
    margin-bottom: 30px;
    position: relative;
}

/* Opcional: linha decorativa abaixo do título */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--azul); /* destaque com cor da marca */
    margin: 8px auto 0;
    border-radius: 2px;
}


/* =========================
   BOTÕES MODERNOS
========================= */
.btn {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 8px;
    background: var(--azul);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: var(--vermelho);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* Botões das leis com cores específicas */
.card .btn {
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 6px;
}

.card:nth-child(1) .btn { background: #fff; color: var(--azul); border: 2px solid var(--azul); }
.card:nth-child(1) .btn:hover { background: var(--azul); color: #fff; }

.card:nth-child(2) .btn { background: #fff; color: var(--vermelho); border: 2px solid var(--vermelho); }
.card:nth-child(2) .btn:hover { background: var(--vermelho); color: #fff; }

.card:nth-child(3) .btn { background: #fff; color: var(--amarelo); border: 2px solid var(--amarelo); }
.card:nth-child(3) .btn:hover { background: var(--amarelo); color: #000; }

/* Responsividade */
@media (max-width: 600px) {
    .btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}
