/* ============================================================
   ESTILO DA HOME "TUDUM" — REVISTA DO ESTUDANTE
   Pode ajustar cores e espaçamentos aqui com tranquilidade.
   ============================================================ */

.tudum-home {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- HERO (matéria em destaque) ---------- */
.tudum-hero {
    margin: 24px 0 48px;
    border-radius: 12px;
    overflow: hidden;
}

.tudum-hero-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.tudum-hero-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
}

.tudum-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tudum-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 55%, rgba(0,0,0,0) 100%);
}

.tudum-hero-texto {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 32px;
    max-width: 720px;
}

.tudum-hero-categoria {
    display: inline-block;
    background: #e50914; /* pode trocar pela cor da revista */
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.tudum-hero-texto h1 {
    color: #fff;
    font-size: clamp(24px, 4vw, 42px);
    line-height: 1.15;
    margin: 0 0 12px;
}

.tudum-hero-texto p {
    color: #e5e5e5;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

/* ---------- SEÇÕES POR CATEGORIA ---------- */
.tudum-secao {
    margin-bottom: 48px;
}

.tudum-secao-cabecalho {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tudum-secao-cabecalho h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.tudum-ver-mais {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #e50914;
    white-space: nowrap;
}

.tudum-ver-mais:hover {
    text-decoration: underline;
}

/* ---------- GRID DE CARDS ---------- */
.tudum-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tudum-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.tudum-card:hover {
    transform: translateY(-4px);
}

.tudum-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #ececec;
    margin-bottom: 10px;
}

.tudum-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tudum-card-sem-imagem {
    width: 100%;
    height: 100%;
    background: #ddd;
}

.tudum-card-titulo {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}

/* ---------- RESPONSIVO (celular / tablet) ---------- */
@media (max-width: 1024px) {
    .tudum-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tudum-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tudum-hero-texto {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .tudum-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
