﻿.noticias-page {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.noticias-header {
    margin-bottom: 2.5rem;
}

    .noticias-header h1 {
        font-weight: 700;
        margin-bottom: .5rem;
    }

.noticia-card {
    display: grid;
    grid-template-columns: 90px 220px 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .noticia-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--mud-elevation-4);
        border-color: var(--mud-palette-primary);
    }

/* DATA */

.noticia-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 1rem;
    border-right: 1px solid var(--mud-palette-lines-default);
}

.noticia-dia {
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 700;
    color: var(--mud-palette-primary);
}

.noticia-mes {
    margin-top: .25rem;
    font-size: .8rem;
    font-weight: 600;
}

.noticia-hora {
    margin-top: .4rem;
    font-size: .75rem;
    opacity: .65;
}

/* IMAGEM */

.noticia-imagem-wrapper {
    width: 100%;
    height: 130px;
    overflow: hidden;
    border-radius: 8px;
}

.noticia-imagem {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.noticia-card:hover .noticia-imagem {
    transform: scale(1.025);
}

.noticia-imagem-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mud-palette-background-gray);
}

/* TEXTO */

.noticia-info {
    min-width: 0;
}

.noticia-titulo {
    font-weight: 650;
    line-height: 1.3;
    margin-bottom: .65rem;
}

.noticia-descricao {
    opacity: .75;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-link {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-top: .9rem;
    width: fit-content;
    color: var(--mud-palette-primary);
    font-size: .875rem;
    font-weight: 600;
}

@media (max-width: 700px) {
    .noticia-card {
        grid-template-columns: 70px 1fr;
        gap: 1rem;
    }

    .noticia-imagem-wrapper {
        grid-column: 1 / -1;
        grid-row: 1;
        height: 210px;
    }

    .noticia-data {
        grid-column: 1;
        grid-row: 2;
        padding-right: .75rem;
    }

    .noticia-info {
        grid-column: 2;
        grid-row: 2;
    }

    .noticia-link {
        display: none;
    }
}
