/* Reset Básico e Configuração do Corpo da Página */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #333;
    padding: 20px;
}

/* O Painel Principal com Dimensões Fixas */
.news-panel {
    width: 1080px;
    height: 1920px;
    background: linear-gradient(to bottom, #2a477a, #5c85d6);
    color: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-radius: 20px;
}

/* Cabeçalho Fixo */
.panel-header {
    padding: 40px;
    text-align: center;
    background: rgba(0,0,0,0.2);
    border-bottom: 2px solid #fca311;
    z-index: 10;
}

.panel-header h1 {
    font-size: 3.5em;
    font-weight: 700;
}

#clock {
    font-size: 2em;
    font-weight: 300;
    margin-top: 10px;
}

/* Container principal das notícias (MODIFICADO) */
#news-container {
    flex-grow: 1;
    padding: 40px;
    display: flex; /* Usa flexbox para organizar os cards */
    flex-direction: column; /* Organiza em coluna (um em cima do outro) */
    justify-content: space-around; /* Espaçamento igual entre eles */
    align-items: center; /* Centraliza horizontalmente */
}

/* Loader inicial */
.loader {
    font-size: 2.5em;
    text-align: center;
}

/* Estilo de cada "Card" de notícia (MODIFICADO) */
.news-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    width: 100%; /* Ocupa toda a largura do container */
    max-width: 900px;
    display: flex;
    flex-direction: column; /* Organiza conteúdo do card na vertical */
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-image {
    width: 100%; /* Imagem ocupa toda a largura do card */
    height: 400px; /* Altura fixa para a imagem */
    object-fit: cover;
    border-radius: 15px;
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-headline {
    font-size: 2.8em; /* Fonte maior para mais destaque */
    font-weight: 700;
    line-height: 1.3;
}

.news-meta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.news-source, .news-category {
    font-size: 1.8em;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
}

.news-source {
    background-color: rgba(0,0,0,0.3);
}

.news-category {
    background-color: #fca311; /* Cor de destaque laranja */
    color: #14213d; /* Texto escuro para contraste */
}