/* =========================
   BASE
========================= */

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Arial, sans-serif;
    background:#eef2f7;
    color:#111;
}

/* =========================
   HEADER
========================= */

header{
    position:sticky;
    top:0;
    z-index:9999;
    background:#0f172a;
    color:white;
    padding:10px 12px;
    box-shadow:0 2px 10px rgba(0,0,0,0.25);
}

/* linha superior */
.top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
}

/* =========================
   BOTÕES (GERAL)
========================= */

.btn{
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.15);
    color:white;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    cursor:pointer;
    transition:0.2s;
    white-space:nowrap;
}

.btn:hover{
    background:rgba(255,255,255,0.18);
    transform:scale(1.03);
}

/* ATIVO */
.active{
    background:#f59e0b !important;
    color:#111 !important;
    font-weight:bold;
    border:1px solid #f59e0b;
}

/* =========================
   GRUPOS
========================= */

.days,
.categories{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    align-items:center;
}

/* =========================
   LOGO
========================= */

.logo{
    font-weight:900;
    font-size:18px;
    margin-left:auto;
    letter-spacing:0.5px;
}

/* =========================
   ADS TOPO
========================= */

.ads-top{
    background:#ffffff;
    text-align:center;
    padding:12px;
    font-size:12px;
    border-bottom:1px solid #ddd;
    color:#666;
}

/* =========================
   CONTEÚDO NOTÍCIAS
========================= */

.news{
    max-width:900px;
    margin:20px auto;
    padding:0 12px;
}

/* CARD NOTÍCIA */
.card{
    background:#fff;
    padding:16px;
    margin-bottom:12px;
    border-radius:12px;
    box-shadow:0 2px 8px rgba(0,0,0,0.06);
    transition:0.2s;
}

.card:hover{
    transform:translateY(-2px);
    box-shadow:0 4px 14px rgba(0,0,0,0.1);
}

.card h3{
    margin:0 0 6px 0;
    font-size:16px;
}

.card p{
    font-size:14px;
    color:#444;
    margin:0 0 8px 0;
}

.card small{
    color:#777;
    font-size:12px;
}

.card a{
    display:inline-block;
    margin-top:8px;
    color:#2563eb;
    font-weight:bold;
    text-decoration:none;
}

.card a:hover{
    text-decoration:underline;
}

/* =========================
   ADS ENTRE NOTÍCIAS
========================= */

.ad{
    background:#fff;
    border:1px dashed #bbb;
    padding:18px;
    text-align:center;
    margin:15px 0;
    border-radius:10px;
    color:#666;
    font-size:13px;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width:768px){

    .top{
        flex-direction:column;
        align-items:flex-start;
    }

    .logo{
        margin-left:0;
        font-size:16px;
        margin-top:6px;
    }

    .btn{
        font-size:11px;
        padding:5px 8px;
    }
}


/* =========================
   FOOTER (FINAL DA PÁGINA)
========================= */

.footer{
    background:#0f172a;
    color:white;
    padding:20px 12px;
    margin-top:30px;
    border-top:1px solid rgba(255,255,255,0.08);
}

.footer-container{
    max-width:900px;
    margin:0 auto;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    flex-wrap:wrap;
}

.footer-left{
    font-size:12px;
    color:#cbd5e1;
    line-height:1.4;
    max-width:500px;
}

.footer-right{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.footer-right a{
    color:#f59e0b;
    text-decoration:none;
    font-size:12px;
    font-weight:bold;
}

.footer-right a:hover{
    text-decoration:underline;
}

/* =========================
   NAVEGAÇÃO INSTITUCIONAL
========================= */
.site-header{
    position:relative;
    z-index:50;
    background:#0f172a;
    color:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,.2);
}

.site-header-inner{
    max-width:1100px;
    margin:0 auto;
    padding:12px 16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}

.site-brand{
    display:inline-flex;
    align-items:center;
    gap:9px;
    color:#fff;
    font-weight:800;
    text-decoration:none;
    white-space:nowrap;
}

.site-brand:hover{ text-decoration:none; }

.site-brand-mark{
    width:30px;
    height:30px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#38bdf8,#6366f1);
    color:#fff;
}

.site-nav{
    display:flex;
    flex-wrap:wrap;
    gap:6px 14px;
    align-items:center;
}

.site-nav a{
    color:#e2e8f0;
    font-size:13px;
    text-decoration:none;
}

.site-nav a:hover,
.site-nav a:focus{
    color:#f59e0b;
    text-decoration:underline;
}

.page{
    max-width:900px;
    margin:28px auto;
    padding:28px;
    background:#fff;
    border-radius:14px;
    box-shadow:0 8px 24px rgba(15,23,42,.08);
}

.legal-page h1{
    margin-top:0;
    font-size:32px;
    line-height:1.2;
}

.legal-page h2{
    margin:28px 0 8px;
    font-size:21px;
    line-height:1.3;
}

.legal-page p,
.legal-page li{
    line-height:1.7;
    color:#334155;
}

.legal-page a{ overflow-wrap:anywhere; }

.page-lead{
    font-size:18px;
    color:#1e293b !important;
}

.policy-date,
.small-muted{
    font-size:13px;
    color:#64748b !important;
}

.contact-card,
.author-card{
    padding:18px;
    border:1px solid #e2e8f0;
    border-radius:12px;
    background:#f8fafc;
}

.site-footer{
    background:#0f172a;
    color:#fff;
    margin-top:34px;
    padding:26px 16px 18px;
}

.site-footer-inner{
    max-width:1100px;
    margin:0 auto;
    display:grid;
    grid-template-columns:minmax(240px,1fr) minmax(280px,1.5fr);
    gap:28px;
}

.site-footer-about p{
    margin:8px 0 0;
    color:#cbd5e1;
    font-size:13px;
    line-height:1.55;
}

.site-footer-links{
    display:flex;
    flex-wrap:wrap;
    align-content:flex-start;
    gap:8px 16px;
}

.site-footer-links a{
    color:#f59e0b;
    font-size:13px;
    text-decoration:none;
}

.site-footer-links a:hover{ text-decoration:underline; }

.site-footer-note{
    max-width:1100px;
    margin:20px auto 0;
    padding-top:14px;
    border-top:1px solid rgba(255,255,255,.12);
    color:#94a3b8;
    font-size:11px;
    text-align:center;
}

@media (max-width:720px){
    .site-header-inner{
        align-items:flex-start;
        flex-direction:column;
        gap:10px;
    }

    .site-nav{
        width:100%;
        flex-wrap:nowrap;
        overflow-x:auto;
        padding-bottom:4px;
        -webkit-overflow-scrolling:touch;
    }

    .site-nav a{ flex:0 0 auto; }

    .page{
        margin:14px 8px;
        padding:18px 15px;
        border-radius:10px;
    }

    .legal-page h1{ font-size:27px; }
    .page-lead{ font-size:16px; }

    .site-footer-inner{
        grid-template-columns:1fr;
        gap:18px;
    }
}
