/* ESTILOS ESPECÍFICOS DA PÁGINA DE NOTÍCIAS */

.secao-noticias-bg {
    background: linear-gradient(rgba(35, 33, 69, 0.8), rgba(35, 33, 69, 0.8)), url('/Img/Principal/fundo.png') center top / cover no-repeat;
    background-attachment: fixed;
    margin-top: 90px; 
    min-height: calc(100vh - 90px);
    padding-top: 40px; 
    padding-bottom: 60px;
}

.container-noticias {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 3%;
}

.cabecalho-noticias { margin-bottom: 30px; color: white; }
.subtitulo-noticias { font-size: 1.1rem; font-weight: 500; max-width: 400px; line-height: 1.4; }

/* Grid Layout */
.noticias-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 300px;
    gap: 25px;
}

/* CARD PRINCIPAL */
.card-principal {
    background: #2B3252; border-radius: 20px; overflow: hidden;
    position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex; flex-direction: column; cursor: pointer; transition: 0.3s;
}
.card-principal:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(223, 213, 47, 0.2); }
.card-principal .tag { position: absolute; top: 20px; left: 20px; z-index: 2; }
.img-principal { width: 100%; height: 350px; object-fit: cover; }
.info-principal { padding: 30px; flex: 1; display: flex; flex-direction: column; justify-content: flex-start; }
.info-principal h2 { color: white; font-size: 1.8rem; font-weight: 700; margin-bottom: 15px; line-height: 1.2; }
.info-principal p { color: #D1D5DB; font-size: 1rem; margin-bottom: 25px; line-height: 1.5; }
.btn-amarelo-noticia {
    background-color: #DFD52F; color: #232145; padding: 12px 25px; border-radius: 30px;
    font-weight: 700; display: inline-flex; align-items: center; gap: 10px; width: max-content; transition: 0.3s; font-size: 0.9rem;
}

/* LISTA DE NOTÍCIAS */
.coluna-lista { display: flex; flex-direction: column; gap: 15px; }
.card-lista {
    background: white; border-radius: 15px; display: flex; justify-content: space-between;
    padding: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: 0.3s; cursor: pointer;
}
.card-lista:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(223, 213, 47, 0.3); }
.info-lista { flex: 1; padding-right: 15px; display: flex; flex-direction: column; justify-content: center; }
.card-lista h3 { color: #232145; font-size: 1.05rem; font-weight: 700; margin: 8px 0; line-height: 1.3; }
.data-noticia { color: #6B7280; font-size: 0.8rem; font-weight: 500; }
.card-lista img { width: 140px; height: 100px; object-fit: cover; border-radius: 10px; }

.btn-ver-todas {
    background: #E04D3F; color: white; border: none; padding: 15px; border-radius: 30px;
    font-weight: 700; font-size: 1rem; cursor: pointer; display: flex; justify-content: center;
    align-items: center; gap: 10px; margin-top: auto; transition: 0.3s; box-shadow: 0 4px 15px rgba(224, 77, 63, 0.3);
}
.btn-ver-todas:hover { background: #c94033; transform: translateY(-2px); }

/* SIDEBAR */
.coluna-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-box { background: #3B3C73; border-radius: 20px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.sidebar-header { background: #4B4C8A; color: white; font-family: 'Fredoka One', cursive; text-align: center; padding: 12px; font-size: 1.2rem; }
.sidebar-header.amarelo { background: #DFD52F; color: #232145; }

.destaque-conteudo { background: linear-gradient(135deg, #232145, #4B4C8A); padding: 30px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.destaque-titulo { font-family: 'Fredoka One', cursive; color: white; font-size: 2.5rem; line-height: 1; margin-bottom: 15px; text-shadow: 2px 2px 0px rgba(0,0,0,0.3); }
.destaque-conteudo p { color: white; font-weight: 700; font-size: 0.85rem; margin-bottom: 20px; }
.btn-amarelo-noticia.pequeno { padding: 8px 20px; font-size: 0.8rem; }

.categorias-box { background: #333461; }
.lista-categorias { list-style: none; padding: 15px; margin: 0; }
.lista-categorias li { display: flex; justify-content: space-between; align-items: center; padding: 12px 10px; color: white; font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.1); cursor: pointer; transition: 0.3s; }
.lista-categorias li:hover { color: #DFD52F; background: rgba(255,255,255,0.05); border-radius: 8px; }
.lista-categorias li i { width: 20px; color: #DFD52F; margin-right: 5px; }
.lista-categorias .badge { background: rgba(255,255,255,0.2); padding: 3px 8px; border-radius: 12px; font-size: 0.75rem; }

/* TAGS */
.tag { padding: 5px 12px; border-radius: 20px; color: white; font-weight: 700; font-size: 0.7rem; text-transform: uppercase; display: inline-block; width: max-content; }
.tag-azul { background: #4361EE; }
.tag-amarela { background: #DFD52F; color: #232145; }
.tag-rosa { background: #F72585; }
.tag-azul-claro { background: #4CC9F0; color: #232145; }

/* NEWSLETTER */
.newsletter-banner { background: rgba(75, 76, 138, 0.4); backdrop-filter: blur(10px); border: 2px solid rgba(255,255,255,0.2); border-radius: 20px; padding: 30px; display: flex; align-items: center; gap: 25px; }
.news-icone { background: #DFD52F; width: 60px; height: 60px; border-radius: 15px; display: flex; justify-content: center; align-items: center; font-size: 24px; color: #232145; }
.news-texto { flex: 1; color: white; }
.news-texto h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 5px; }
.news-form { display: flex; background: white; border-radius: 30px; padding: 5px; width: 400px; }
.news-form input { flex: 1; border: none; padding: 10px 20px; border-radius: 30px; outline: none; font-size: 0.9rem; font-family: 'Poppins', sans-serif; }
.news-form button { background: #DFD52F; color: #232145; border: none; padding: 10px 25px; border-radius: 30px; font-weight: 700; cursor: pointer; transition: 0.3s; }

/* ========================================= */
/* MODAL DE LEITURA (ESTILO NEW PONG)        */
/* ========================================= */
.modal-noticia-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); z-index: 9999;
    overflow-y: auto; display: flex; align-items: flex-start; justify-content: center;
    padding: 40px 20px;
}

.modal-noticia-content {
    background: #1C1C28; /* Fundo escuro azulado */
    width: 100%; max-width: 800px; border-radius: 20px; overflow: hidden;
    position: relative; box-shadow: 0 15px 50px rgba(0,0,0,0.6);
    border: 1px solid rgba(223, 213, 47, 0.3);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-fechar-noticia {
    position: absolute; top: 15px; left: 15px; z-index: 10;
    background: var(--amarelo, #DFD52F); color: #232145; border: none;
    padding: 10px 20px; border-radius: 30px; font-weight: 800;
    cursor: pointer; font-size: 0.85rem; box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: 0.3s; display: flex; align-items: center; gap: 8px;
}
.btn-fechar-noticia:hover { transform: scale(1.05); }

.ler-noticia-capa { width: 100%; height: 400px; object-fit: cover; border-bottom: 3px solid #DFD52F; }

.ler-noticia-body { padding: 40px; color: white; }
.ler-noticia-data { color: #DFD52F; font-size: 0.9rem; font-weight: 700; margin-bottom: 15px; display: block; }
.ler-noticia-body h2 { font-family: 'Fredoka One', cursive; font-size: 2.2rem; margin-bottom: 30px; line-height: 1.2; color: white; }

/* Estilo para formatar o texto do Quill dentro do Modal */
.ler-noticia-texto { font-family: 'Poppins', sans-serif; font-size: 1.05rem; line-height: 1.8; color: #D1D5DB; }
.ler-noticia-texto p { margin-bottom: 15px; }
.ler-noticia-texto img { max-width: 100%; border-radius: 10px; margin: 15px 0; }
.ler-noticia-texto a { color: #DFD52F; text-decoration: underline; }

.galeria-modal-container { display: flex; gap: 15px; overflow-x: auto; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.galeria-modal-container img { height: 150px; border-radius: 10px; border: 1px solid #DFD52F; cursor: pointer; transition: 0.3s; }
.galeria-modal-container img:hover { transform: scale(1.05); }
.titulo-principal {
    font-family: 'Fredoka One', cursive;
    font-size: 4rem;
    line-height: 1;
    margin: 5px 0 15px 0;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.2);
    color: #FFFFFF;
}
/* RESPONSIVIDADE */
@media (max-width: 1024px) { .noticias-grid { grid-template-columns: 1fr; } .coluna-sidebar { flex-direction: row; } .sidebar-box { flex: 1; } .newsletter-banner { flex-direction: column; text-align: center; } }
@media (max-width: 768px) {
    .secao-noticias-bg { padding-top: 80px; }
    .coluna-sidebar { flex-direction: column; }
    .card-lista { flex-direction: column; }
    .card-lista img { width: 100%; height: 180px; margin-top: 15px; }
    .news-form { width: 100%; flex-direction: column; background: transparent; padding: 0; gap: 10px;}
    .news-form input, .news-form button { width: 100%; padding: 15px; border-radius: 10px; }
    .ler-noticia-capa { height: 250px; }
    .ler-noticia-body { padding: 25px; }
    .titulo-principal { 
        font-size: 2.8rem; 
    }
}