@charset "UTF-8";

/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #111827;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* HEADER */

.top-header {
    background: #0f172a;
    color: #fff;
    padding: 10px 0;
}

.container-header {
    width: 100%;
    max-width: 1300px;
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 400px;
    width: auto;
    
}

.logo a {
    color: white;
    font-size: 32px;
    font-weight: bold;
    position: relative;
    left: -65px;
    
}

.header-info {
    flex: 1;
    text-align: center;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .5px;
    top: 80px;
    position: relative;
    left: -60px;
}

/* PESQUISA HEADER */

.search-header {
    display: flex;
    align-items: center;
    margin-left: -90px;
    transform: translateX(-25px);
    
}

.search-header form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    overflow: hidden;
    width: 320px;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
    
}

.search-header input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 18px;
    font-size: 14px;
    
}

.search-header button {
    border: none;
    background: #2563eb;
    color: #fff;
    width: 50px;
    height: 45px;
    cursor: pointer;
    font-size: 18px;
    transition: .3s;
}

.search-header button:hover {
    background: #1d4ed8;
}

/* NAVBAR */

.navbar {
    background: #2563eb;
    padding: 15px 0;
}

.container-navbar {
    width: 90%;
    max-width: 1300px;
    margin: auto;
}

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.menu li a {
    color: white;
    font-size: 17px;
    font-weight: bold;
    transition: .3s;
}

.menu li a:hover {
    color: #dbeafe;
}

/* BANNER PRINCIPAL */

.banner-principal {
    background: #fff;
    padding: 22px 15px;
}

.container-banner {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    justify-content: center;
    align-items: center;
}

.container-banner a {
    display: flex;
    justify-content: center;
    width: 100%;
}

.container-banner img {
    width: 750px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* NOTÍCIAS */

.noticias-destaque,
.ultimas-noticias {
    padding: 60px 20px;
    background: #f5f6f8;
}

.ultimas-noticias {
    background: #ffffff;
}

.noticias-destaque .container,
.ultimas-noticias .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
}

.section-title h2 {
    font-size: 34px;
    font-weight: 800;
    color: #111827;
}

.grid-noticias {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card-noticia {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    transition: .3s ease;
}

.card-noticia:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

.card-noticia img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.conteudo-card {
    padding: 20px;
}

.conteudo-card h3 {
    font-size: 22px;
    line-height: 1.4;
    color: #111827;
    margin-bottom: 12px;
    min-height: 62px;
}

.conteudo-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 18px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.conteudo-card a {
    display: inline-block;
    margin-top: 10px;
    background: #2563eb;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: .3s;
}

.conteudo-card a:hover {
    background: #1d4ed8;
}

.grid-noticias > p {
    grid-column: 1 / -1;
    text-align: center;
    color: #555;
    font-size: 16px;
}

/* ANÚNCIOS NA HOME */

.anuncios {
    padding: 60px 20px;
    background: #f8fafc;
}

.anuncios .container {
    max-width: 1200px;
    margin: auto;
}

.anuncios h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 35px;
}

.cards-anuncios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card-anuncio {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.10);
    transition: .3s;
}

.card-anuncio:hover {
    transform: translateY(-5px);
}

.card-anuncio img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.conteudo-anuncio {
    padding: 18px;
}

.conteudo-anuncio h3 {
    font-size: 20px;
    margin: 12px 0;
}

.preco {
    font-size: 22px;
    font-weight: bold;
    color: #111827;
    margin: 10px 0;
}

.conteudo-anuncio a {
    color: #2563eb;
    font-weight: bold;
}

/* RESPONSIVO */

@media(max-width: 992px) {
    .cards-anuncios {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 600px) {
    .cards-anuncios {
        grid-template-columns: 1fr;
    }
}


/* PUBLICIDADE HOME */

.publicidade {
    padding: 70px 20px;
    background: #ffffff;
}

.publicidade .container {
    max-width: 1000px;
    margin: 0 auto;
}

.publicidade h2 {
    text-align: center;
    font-size: 34px;
    margin-bottom: 35px;
    color: #111827;
}

.cards-publicidade {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.card-publicidade {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
    transition: .3s;
}

.card-publicidade:hover {
    transform: translateY(-5px);
}

.card-publicidade img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.card-publicidade h3 {
    font-size: 17px;
    padding: 12px 16px 4px;
    color: #111827;
}

.card-publicidade p {
    padding: 0 16px 14px;
    color: #555;
    font-size: 14px;
}

@media(max-width: 700px) {
    .cards-publicidade {
        grid-template-columns: 1fr;
    }
}

/* DETALHE NOTÍCIA */

.pagina-noticia {
    padding: 60px 20px;
    background: #ffffff;
}

.pagina-noticia .container {
    max-width: 900px;
    margin: 0 auto;
}

.pagina-noticia h1 {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.25;
    color: #111827;
    margin-bottom: 20px;
}

.meta-noticia {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    color: #555;
    margin: 15px 0 22px;
    font-size: 14px;
}

.compartilhar-noticia {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0 30px;
}

.compartilhar-noticia a {
    display: inline-block;
    color: #fff;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: bold;
}

.btn-whatsapp {
    background: #22c55e;
}

.btn-facebook {
    background: #2563eb;
}

.pagina-noticia img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    margin: 0 auto 25px;
}

.conteudo-noticia {
    margin-top: 25px;
    font-size: 18px;
    line-height: 1.9;
    color: #333;
    text-align: justify;
}

.conteudo-noticia p {
    margin-bottom: 25px;
}

/* FOOTER */

.footer {
    background: #0f172a;
    color: white;
    padding-top: 60px;
}

.container-footer {
    width: 90%;
    max-width: 1300px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 40px;
}

.footer-box h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.footer-box p {
    color: #cbd5e1;
    line-height: 1.8;
}

.footer-box ul {
    list-style: none;
}

.footer-box ul li {
    margin-bottom: 10px;
}

.footer-box ul li a {
    color: #cbd5e1;
    transition: .3s;
}

.footer-box ul li a:hover {
    color: #2563eb;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.footer-bottom p {
    color: #94a3b8;
}

/* MANTER FOOTER NO FINAL DA TELA */

html,
body {
    min-height: 100vh;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
}

/* FOOTER RESPONSIVO */

@media(max-width: 480px) {

    .footer {
        padding-top: 30px;
    }

    .container-footer {
        gap: 20px;
    }

    .footer-box h3 {
        font-size: 18px;
    }

    .footer-box p,
    .footer-box ul li a {
        font-size: 13px;
    }
}

/* FOOTER RESPONSIVO CELULAR */

@media(max-width: 768px) {

    .footer {
        padding: 35px 20px 0;
    }

    .container-footer {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-box {
        width: 100%;
    }

    .footer-box h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .footer-box p,
    .footer-box ul li a {
        font-size: 14px;
        line-height: 1.6;
    }

    .footer-box ul li {
        margin-bottom: 8px;
    }

    .footer-bottom {
        margin-top: 25px;
        padding: 18px 10px;
    }

    .footer-bottom p {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* ===================================
   TELA DA NOTÍCIA
=================================== */

.pagina-noticia {
    padding: 60px 20px;
    background: #ffffff;
}

.pagina-noticia .container {
    max-width: 900px;
    margin: 0 auto;
}

.pagina-noticia h1 {
    text-align: center;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.25;
    color: #111827;
    margin-bottom: 20px;
}

.meta-noticia {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 25px;
    color: #6b7280;
    font-size: 14px;
}

.compartilhar-noticia {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.pagina-noticia img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    margin: 0 auto 25px;
}

.legenda-imagem {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 30px;
    font-style: italic;
}

.conteudo-noticia {
    font-size: 20px;
    line-height: 2;
    color: #222;
    text-align: justify;
}

.conteudo-noticia p {
    margin-bottom: 25px;
}

.conteudo-noticia::first-letter {
    font-size: 42px;
    font-weight: bold;
    margin-right: 8px;
    line-height: 1;
    color: #2563eb;
}

/* COMENTÁRIOS */

.comentarios,
.form-comentario {
    padding: 50px 20px;
    background: #f8fafc;
}

.comentarios .container,
.form-comentario .container {
    max-width: 1000px;
    margin: auto;
}

.comentario-item {
    background: white;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 18px;
    box-shadow: 0 3px 12px rgba(0,0,0,.07);
}

.form-comentario form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-comentario input,
.form-comentario textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.form-comentario button {
    width: 220px;
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

/* PÁGINA CATEGORIA */

.pagina-categoria {
    padding: 55px 20px;
    background: #f8fafc;
}

.pagina-categoria .container {
    max-width: 1200px;
    margin: auto;
}

.titulo-categoria {
    text-align: center;
    font-size: 42px;
    margin-bottom: 40px;
}

/* CATEGORIA EM GRADE */

.lista-categoria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card-categoria {
    display: block;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,.08);
    transition: .3s;
}

.card-categoria:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.card-categoria img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.conteudo-categoria {
    padding: 16px;
}

.conteudo-categoria h3 {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 10px;
    color: #111827;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.conteudo-categoria p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 12px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.conteudo-categoria a {
    color: #2563eb;
    font-size: 14px;
    font-weight: bold;
}

/* PAGINAÇÃO CATEGORIA */

.paginacao-categoria {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 35px;
}

.paginacao-categoria button {
    border: none;
    background: #0f172a;
    color: white;
    padding: 9px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.paginacao-categoria button.ativo {
    background: #2563eb;
}

.paginacao-categoria button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* RESPONSIVO CATEGORIA */

@media(max-width: 900px) {
    .lista-categoria {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 600px) {
    .lista-categoria {
        grid-template-columns: 1fr;
    }
}


/* PÁGINA PESQUISA */

.pagina-pesquisa {
    padding: 50px 20px;
    background: #f5f5f5;
}

.pagina-pesquisa .container {
    max-width: 1200px;
    margin: auto;
}

.pagina-pesquisa h1 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #222;
}

.resultado-noticias,
.resultado-anuncios {
    margin-top: 40px;
}

.resultado-noticias h2,
.resultado-anuncios h2 {
    font-size: 26px;
    margin-bottom: 20px;
    border-left: 5px solid #2563eb;
    padding-left: 10px;
    color: #222;
}

.card-pesquisa {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.card-pesquisa img {
    width: 220px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.card-pesquisa h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.card-pesquisa p {
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
}

.card-pesquisa a {
    display: inline-block;
    padding: 10px 18px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    transition: .3s;
}

.card-pesquisa a:hover {
    background: #1d4ed8;
}

/* DETALHE DO ANÚNCIO */

.detalhe-anuncio {
    padding: 60px 20px;
    background: #f8fafc;
}

.container-detalhe {
    width: 90%;
    max-width: 1300px;
    margin: auto;

    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.imagem-principal {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
}

.galeria-anuncio {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.galeria-anuncio img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
}

.valor-detalhe {
    font-size: 35px;
    font-weight: bold;
    color: #16a34a;
    margin: 20px 0;
}

.localizacao {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.descricao-anuncio {
    margin-top: 40px;
}

.descricao-anuncio h2,
.contato-anuncio h2 {
    margin-bottom: 20px;
}

.descricao-anuncio p {
    line-height: 1.9;
    margin-bottom: 20px;
}

.contato-anuncio {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
}

.sidebar-anuncio img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 20px;
}

/* CONTATO */

.pagina-contato {
    padding: 45px 20px;
    background: #f5f5f5;
}

.container-contato {
    max-width: 680px;
    margin: 0 auto;
}

.info-contato {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.info-contato h1 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 25px;
    color: #111827;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 12px;
}

.linha-contato {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.linha-contato span {
    font-size: 20px;
    width: 28px;
    text-align: center;
}

.linha-contato p {
    margin: 0;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

.linha-contato strong {
    color: #111827;
}

.linha-divisoria {
    margin: 24px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.info-contato h2 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 18px;
    color: #111827;
}

.redes-sociais {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rede-card {
    background: #f8fafc;
    color: #2563eb;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #e5e7eb;
    transition: .3s;
}

.rede-card:hover {
    background: #2563eb;
    color: #fff;
}


/* LOGIN ADMIN */

.login-page {
    margin: 0;
    padding: 0;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #0f172a;

    background-size: cover;
    background-position: center;
}

.container-login {
    width: 100%;
    display: flex;
    justify-content: center;
}

.box-login {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 45px;
    border-radius: 25px;
    box-shadow: 0 10px 35px rgba(0,0,0,.2);
    text-align: center;
}

.box-login h1 {
    margin-bottom: 10px;
}

.box-login p {
    color: #6b7280;
    margin-bottom: 30px;
}

.box-login form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.box-login input {
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
}

.box-login button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: .3s;
}

.box-login button:hover {
    background: #1d4ed8;
}

.login-links {
    margin-top: 18px;
    text-align: center;
}

.login-links a {
    color: #2563eb;
    font-size: 14px;
    font-weight: bold;
}

.login-links a:hover {
    text-decoration: underline;
}

.alerta-login {
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 18px;
    text-align: center;
}

.alerta-login.erro {
    background: #fee2e2;
    color: #991b1b;
}

.alerta-login.sucesso {
    background: #dcfce7;
    color: #166534;
}


/* ADMIN */

.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: #0f172a;
    color: white;
    padding: 30px 20px;
}

.logo-admin {
    text-align: center;
    margin-bottom: 40px;
}

.menu-admin {
    list-style: none;
    
}

.menu-admin li {
    margin-bottom: 15px;
}

.menu-admin li a {
    display: block;
    padding: 15px;
    background: #1e293b;
    border-radius: 12px;
    color: white;
    transition: .3s;
}

.menu-admin li a:hover {
    background: #2563eb;
}

.main-content {
    flex: 1;
    padding: 15px;
    background: #f8fafc;
}

.topbar-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 15px 25px;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    margin-bottom: 60px;
    margin: 40px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-logout {
    background: #dc2626;
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
}

.cards-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.card-dashboard {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
}

.card-dashboard p {
    font-size: 35px;
    font-weight: bold;
    color: #2563eb;
}

.dashboard-box,
.table-container,
.form-container-admin {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.btn-admin,
.btn-save {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

.table-container {
    overflow-x: auto;
}

.table-admin {
    width: 100%;
    border-collapse: collapse;
}

.table-admin th {
    background: #0f172a;
    color: white;
    padding: 15px;
    text-align: left;
}

.table-admin td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.btn-edit {
    background: #16a34a;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
}

.btn-delete {
    background: #dc2626;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

.preview-imagem {
    width: 250px;
    max-width: 100%;
    border-radius: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

/* RESPONSIVO */

@media(max-width: 992px) {

    .grid-noticias {
        grid-template-columns: repeat(2, 1fr);
    }

    .container-detalhe {
        grid-template-columns: 1fr;
    }

    .card-categoria {
        flex-direction: column;
    }

    .card-categoria img {
        width: 100%;
        height: 250px;
    }

    .admin-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .main-content {
        padding: 20px;
    }
}

@media(max-width: 900px) {

    .container-header {
        flex-direction: column;
        gap: 15px;
    }

    .header-info {
        margin: 0;
        text-align: center;
    }

    .search-header form {
        width: 100%;
        max-width: 350px;
    }
}

@media(max-width: 768px) {

    .menu {
        gap: 15px;
    }

    .grid-noticias {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .card-noticia img {
        height: 220px;
    }

    .pagina-noticia h1 {
        font-size: 30px;
    }

    .card-pesquisa {
        flex-direction: column;
    }

    .card-pesquisa img {
        width: 100%;
        height: 220px;
    }

    .topbar-admin,
    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* ===================================
   PÁGINA DE ANÚNCIOS
=================================== */

.pagina-anuncios {
    padding: 50px 20px;
    background: #f5f5f5;
}

.pagina-anuncios .container {
    max-width: 1300px;
    margin: auto;
}

.titulo-anuncio {
    text-align: center;
    font-size: 38px;
    margin-bottom: 30px;
    color: #111827;
}

/* FILTROS */

.filtros-anuncio {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filtros-anuncio button {
    border: none;
    background: #2563eb;
    color: #fff;
    padding: 12px 22px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.filtros-anuncio button:hover {
    background: #1d4ed8;
}

/* GRID */

.grid-anuncios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* CARD */

.card-anuncio-page {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    transition: .3s;
}

.card-anuncio-page:hover {
    transform: translateY(-5px);
}

.card-anuncio-page img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.conteudo-anuncio-page {
    padding: 20px;
}

.conteudo-anuncio-page h3 {
    font-size: 22px;
    margin: 15px 0;
    color: #111827;
}

.conteudo-anuncio-page p {
    margin-bottom: 10px;
    color: #555;
}

.conteudo-anuncio-page .preco {
    font-size: 26px;
    font-weight: bold;
    color: #16a34a;
}

.conteudo-anuncio-page a {
    display: inline-block;
    margin-top: 15px;

    background: #2563eb;
    color: white;

    padding: 12px 20px;
    border-radius: 8px;

    font-weight: bold;
    transition: .3s;
}

.conteudo-anuncio-page a:hover {
    background: #1d4ed8;
}

/* RESPONSIVO */

@media(max-width: 992px) {

    .grid-anuncios {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media(max-width: 768px) {

    .grid-anuncios {
        grid-template-columns: 1fr;
    }

    .titulo-anuncio {
        font-size: 30px;
    }

}

.table-admin td:last-child {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-edit,
.btn-delete {
    display: inline-block;
    min-width: 70px;
    text-align: center;
}

/* HOME DESTAQUE */

.home-destaque {
    padding: 35px 20px 50px;
    background: #f5f6f8;
}

.home-destaque .container {
    max-width: 1300px;
    margin: auto;
}

.grid-home-destaque {
    display: grid;
    grid-template-columns: 2.3fr 1.2fr;
    gap: 25px;
}

.destaque-principal {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    height: 440px;
}

.destaque-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-destaque {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px 28px 25px;
    background: linear-gradient(
        transparent,
        rgba(0,0,0,.92)
    );
}

.overlay-destaque h2 {
    color: #fff;
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 12px;
}

.overlay-destaque a {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: bold;
}

/* LATERAIS HOME */

.destaques-laterais {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mini-destaque {
    display: flex;
    gap: 14px;
    align-items: center;
    background: #fff;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transition: .3s;
}

.mini-destaque:hover {
    transform: translateY(-3px);
}

.mini-destaque img,
.video-mini-destaque {
    width: 150px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.mini-conteudo {
    flex: 1;
}

.tag-mini {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
    font-weight: bold;
}

.mini-conteudo h4 {
    font-size: 15px;
    line-height: 1.35;
    margin: 0;
    color: #0f172a;
    font-weight: 700;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* RESPONSIVO */

@media(max-width: 900px) {
    .grid-home-destaque {
        grid-template-columns: 1fr;
    }

    .destaque-principal {
        height: 360px;
    }
}

/* ÚLTIMAS NOTÍCIAS HOME */

.ultimas-home {
    padding: 60px 20px;
    background: #ffffff;
}

.ultimas-home .container {
    max-width: 1300px;
    margin: auto;
}

.grid-ultimas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card-ultima {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,.09);
    transition: .3s;
}

.card-ultima:hover {
    transform: translateY(-5px);
}

.card-ultima img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.conteudo-ultima {
    padding: 18px;
}

.tag-noticia {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.conteudo-ultima h3 {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 10px;
}

.conteudo-ultima h3 a {
    color: #111827;
}

.conteudo-ultima p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-ler {
    color: #2563eb;
    font-weight: bold;
}

/* RESPONSIVO */

@media(max-width: 1100px) {
    .grid-ultimas {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 768px) {
    .grid-ultimas {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 520px) {
    .grid-ultimas {
        grid-template-columns: 1fr;
    }
}


/* DETALHE NOTÍCIA MELHORADO */

.meta-noticia {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #555;
    margin: 15px 0 20px;
    font-size: 15px;
}

.compartilhar-noticia {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.compartilhar-noticia a {
    display: inline-block;
    color: #fff;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
}

.btn-whatsapp {
    background: #22c55e;
}

.btn-facebook {
    background: #2563eb;
}

.conteudo-noticia {
    margin-top: 25px;
    font-size: 18px;
    line-height: 1.9;
    color: #333;
}

.paginacao-admin {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.paginacao-admin button {
    border: none;
    background: #1e293b;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.paginacao-admin button.ativo {
    background: #2563eb;
}

.paginacao-admin button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* MAIS NOTÍCIAS */

.mais-noticias {
    padding: 55px 20px;
    background: #ffffff;
}

.mais-noticias .container {
    max-width: 1300px;
    margin: auto;
}

.grid-mais-noticias {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card-mais-noticia {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,.09);
    transition: .3s;
}

.card-mais-noticia:hover {
    transform: translateY(-5px);
}

.card-mais-noticia img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.conteudo-mais-noticia {
    padding: 18px;
}

.conteudo-mais-noticia h3 {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 10px;
    color: #111827;
}

.conteudo-mais-noticia p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.conteudo-mais-noticia a {
    color: #2563eb;
    font-weight: bold;
}

@media(max-width: 900px) {
    .grid-mais-noticias {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 600px) {
    .grid-mais-noticias {
        grid-template-columns: 1fr;
    }
}

.paginacao-categoria {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 35px;
}

.paginacao-categoria button {
    border: none;
    background: #0f172a;
    color: white;
    padding: 9px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.paginacao-categoria button.ativo {
    background: #2563eb;
}

.paginacao-categoria button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.dashboard-graficos {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

.grafico-card {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
}

.grafico-card h3 {
    margin-bottom: 20px;
}

@media(max-width: 900px) {
    .dashboard-graficos {
        grid-template-columns: 1fr;
    }
}

.link-card {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.senha-temporaria {
    background: #f1f5f9;
    color: #0f172a;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    border: 1px dashed #2563eb;
}

.alerta-login {
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 18px;
    text-align: center;
}

.alerta-login.erro {
    background: #fee2e2;
    color: #991b1b;
}

.alerta-login.sucesso {
    background: #dcfce7;
    color: #166534;
}

/* MENU USUÁRIO */

.user-menu {
    position: relative;
}

.user-menu-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.user-menu-btn:hover {
    background: #f1f5f9;
}

.user-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
    display: none;
    overflow: hidden;
    z-index: 999;
}

.user-dropdown a {
    display: block;
    padding: 14px 18px;
    color: #334155;
    text-decoration: none;
    transition: .3s;
}

.user-dropdown a:hover {
    background: #f1f5f9;
}

.user-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);

    display: none;

    overflow: hidden;
    z-index: 999;
}

.show-dropdown {
    display: block;
}

.perfil-card {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.perfil-avatar {
    width: 90px;
    height: 90px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 45px;
}

.perfil-card h2 {
    margin-bottom: 20px;
    color: #111827;
}

.perfil-card p {
    font-size: 16px;
    margin-bottom: 14px;
    color: #555;
}

.perfil-card .btn-admin {
    display: inline-block;
    margin-top: 20px;
}

/* ALTERAR SENHA */

.alterar-senha-area {
    display: flex;
    justify-content: center;
}

.alterar-senha-box {
    width: 100%;
    max-width: 520px;
}

.alterar-senha-box .form-group input {
    height: 42px;
}

.alterar-senha-box .btn-save {
    width: 100%;
}


@media(max-width: 768px) {

    .top-header {
        padding: 15px 10px;
        text-align: center;
    }

    .container-header {
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .logo {
        text-align: center;
    }

    .logo img {
        max-height: 140px;
        width: auto;
        max-width: 90%;
        display: block;
        margin: 0 auto;
    }

    .logo a {
        position: static;
        left: auto;
        font-size: 26px;
        display: block;
        text-align: center;
    }

    .header-info {
        position: static;
        left: auto;
        top: auto;
        flex: none;
        width: 100%;
        font-size: 13px;
        text-align: center;
        margin: 0;
    }

    .search-header {
        margin-left: 0;
        transform: none;
        width: 100%;
        justify-content: center;
    }

    .search-header form {
        width: 92%;
        max-width: 360px;
    }

    .navbar {
        padding: 10px 0;
    }

    .menu {
        gap: 10px;
        row-gap: 12px;
        padding: 0 8px;
        justify-content: center;
    }

    .menu li a {
        font-size: 15px;
    }

    .container-banner img {
        width: 95%;
    }
}

/* ===============================
   VÍDEOS DO PORTAL
================================ */

.video-noticia {
    margin: 25px auto;
    text-align: center;
}

.video-noticia video {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

/* Vídeos em cards */
.video-card,
.card-mais-noticia video,
.card-ultima video,
.card-categoria video {
    width: 100%;
    height: 190px;
    object-fit: contain;
    background: #808080;
    display: block;

    pointer-events: none;
}

/* Vídeo destaque principal */
.video-destaque {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

/* Vídeo mini destaque */
.video-mini-destaque {
    width: 150px;
    height: 110px;
    object-fit: contain;
    background: #000;
}

.thumb-admin{
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
