/* FONTS */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900&family=Space+Grotesk:wght@300..700&display=swap");

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Space Grotesk";
}

.config-img-fundo {
  display: flex;
  align-content: center;
}

a {
  text-decoration: none !important;
  cursor: pointer !important;
}

a:hover {
  text-decoration: none !important;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  z-index: 999;
}

.header-principal {
  display: flex;
  align-items: center;
}

.header-principal-logo {
  width: 78px;
  height: 68px;
}

.header-principal-nome {
  font-family: "Space Grotesk";
  color: #2c3991;
  font-weight: 800;
  margin-left: -10px;
}

.header-ancoras {
  display: flex;
  gap: 20px;
}

.header-ancoras-texto {
  font-family: "Inter";
}

/* Espaço para não cobrir conteúdo */
main {
  margin-top: 69px;
  padding-top: 20px;
  padding-bottom: 14%;
}

/* Botão menu mobile */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

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

.listagem-linha {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}


/* ==================== MOBILE ==================== */
@media (max-width: 768px) {

  /* ====== HEADER ====== */
  .header-ancoras {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 0;
    background: white;
    width: 200px;
    box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 100;
  }

  .header-ancoras.active {
    display: flex;
  }

  .hidden {
    display: none;
  }

  .header-ancoras a {
    padding: 10px;
    display: block;
    text-align: center;
    color: #2b3990;
    font-weight: 500;
  }


  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
  }


    /* ===== BOTÃO ADICIONAR ===== */
    .adicionar-noticia {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .btn-seguir {
        width: 100%;
        max-width: 320px;
        padding: 12px;
        font-size: 14px;
    }


   /*========== Pesquisa ==========*/
    .pesquisa-publicacoes {
        max-width: 600px;
        margin: 20px auto;
        padding: 0 16px;
    }

    .pesquisa-publicacoes form {
        background: #ffffff;
        padding: 16px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .pesquisa-publicacoes label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
    }

    .pesquisa-publicacoes-campo {
        display: flex;
        gap: 10px;
    }

    .pesquisa-publicacoes-campo input {
        flex: 1;
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 8px;
        border: 1px solid #ccc;
        outline: none;
    }

    .pesquisa-publicacoes-campo input:focus {
        border-color: #2b3990;
    }

    /* Botão */
    .pesquisa-publicacoes-campo button {
        padding: 10px 18px;
        border-radius: 8px;
        border: none;
        background: #2b3990;
        color: #fff;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
    }

    .pesquisa-publicacoes-campo button:hover {
        opacity: 0.9;
    }



    /* Container geral */
     .listagem {
        max-width: 1000px;
        margin: 40px auto;
        padding: 0 16px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Linha (card) */
    .listagem-linha {
        display: flex;
        gap: 20px;
        background: #ffffff;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    } 

    .listagem-linha:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

    /* Imagem de capa */
    .listagem-linha-capa {
        width: 220px;
        height: 150px;
        flex-shrink: 0;
        background: #f2f2f2;
    }

    .listagem-linha-capa img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Conteúdo */
    .listagem-linha-geral {
        flex: 1;
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    /* Status */
    .listagem-linha-geral-status {
        align-self: flex-start;
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
    }

    /* Variações de status */
    .listagem-linha-geral-status.publicado {
        background: #e6f4ea;
        color: #1e7e34;
    }

    .listagem-linha-geral-status.rascunho {
        background: #fff3cd;
        color: #856404;
    }

    .listagem-linha-geral-status.tipo {
        background: #b20b0b;
        color: white;
    }

    /* Título */
    .listagem-linha-geral-titulo {
        font-size: 18px;
        font-weight: 600;
        color: #222;
        margin: 4px 0;
    }

    /* Data */
    .listagem-linha-geral-data {
        font-size: 13px;
        color: #777;
    }

    /* Backend (ações) */
    .listagem-linha-geral-backend {
        margin-top: auto;
        display: flex;
        gap: 10px;
    }

    /* Botões */
    .listagem-linha-geral-backend button {
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 6px;
        border: none;
        cursor: pointer;
    }

    .listagem-linha-geral-backend-atualizar {
        background: #2b3990;
        color: #fff;
    }

    .listagem-linha-geral-backend-deletar {
        background: #dc3545;
        color: #fff;
    }

    /* Hover botões */
    .listagem-linha-geral-backend button:hover {
        opacity: 0.9;
    }

    /* Responsivo */
    .listagem-linha {
        flex-direction: column;
    }

    .listagem-linha-capa {
        width: 100%;
        height: 200px;
    }


    /*========== PUBLICACAO ==========*/
    .publicacao {
        max-width: 900px;
        margin: 40px auto;
        padding: 0 16px;
        padding-top: 60px;
    }

    .campo {
        margin-bottom: 20px;
    }

    .campo label {
        display: block;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .campo input,
    .campo select,
    .campo textarea {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }

    .cancelar {
        border-radius: 10px;
        padding: 10px;
        background: red;
        color: white;
        font-size:medium;
    }

    .cancelar:hover {
        color: white;
    }

    .salvar {
        border-radius: 10px;
        padding: 10px;
        background: #2b3990;
        color: white;
        font-size:medium;
    }

    .salvar:hover {
        color: white;
    }

    /*========= NOTICIA =========*/

    .noticia {
        max-width: 920px;
        margin: 0 auto 60px;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    /* Capa */
    .noticia-capa img {
        padding-top: 48px;
        width: 100%;
        background-color: #2b3990;
        max-height: 380px;
        object-fit: cover;
        border-radius: 0 0 12px 12px;
    }

    /* Conteúdo */
    .noticia-conteudo {
        padding: 30px 16px 0;
    }

    /* Título */
    .noticia-titulo {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 10px;
        color: #111;
    }

    /* Meta */
    .noticia-meta {
        font-size: 14px;
        color: #666;
        margin-bottom: 25px;
    }

    /* Texto */
    .noticia-texto {
        font-size: 1.05rem;
        line-height: 1.7;
        color: #222;
    }

    .noticia-texto p {
        margin-bottom: 18px;
    }

    .noticia-texto h2,
    .noticia-texto h3 {
        margin: 28px 0 14px;
        line-height: 1.3;
    }

    .noticia-texto img {
        max-width: 100%;
        margin: 20px auto;
        display: block;
        border-radius: 8px;
    }

    .noticia-texto ul,
    .noticia-texto ol {
        margin: 20px 0 20px 30px;
    }

    .listagem-linha-geral-icones-menores {
        display: flex;
    }


    /* ===== BOTÃO VOLTAR ===== */
    .voltar {
        color: white;
        margin: 30px 0 0;
        text-align: center;
    }

    .voltar a {
        color: white;
        display: inline-block;
        width: 20%;
        max-width: 280px;
    }

    /* ===== FOOTER ===== */
    footer {
        padding: 40px 16px;
        gap: 24px;
    }

    footer .icons {
        gap: 20px;
    }

    footer .icons img {
        width: 36px;
    }

    footer .parte-2::before {
        width: 100%;
    }

}


/* ====================
   DESKTOP
==================== */
@media (min-width: 769px) {
    .header {
        padding: 0 60px;
        font-family: "Poppins", sans-serif;
    }

    .adicionar-noticia {
        color: #000000;
        display: flex;
        justify-content: center;
    }

    .btn-seguir {
        padding: 12px 24px;
        font-size: 1rem;
        background: #2b3990;
        color: white;
        border: none;
        border-radius: 16px;
        cursor: pointer;
        transition: 0.25s;
    }

    .btn-seguir:hover {
        opacity: 0.9;
        transform: translateY(-2px);
    }


   /*========== Pesquisa ==========*/
    .pesquisa-publicacoes {
        max-width: 600px;
        margin: 20px auto;
        padding: 0 16px;
    }

    .pesquisa-publicacoes form {
        background: #ffffff;
        padding: 16px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .pesquisa-publicacoes label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
    }

    .pesquisa-publicacoes-campo {
        display: flex;
        gap: 10px;
    }

    .pesquisa-publicacoes-campo input {
        flex: 1;
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 8px;
        border: 1px solid #ccc;
        outline: none;
    }

    .pesquisa-publicacoes-campo input:focus {
        border-color: #2b3990;
    }

    /* Botão */
    .pesquisa-publicacoes-campo button {
        padding: 10px 18px;
        border-radius: 8px;
        border: none;
        background: #2b3990;
        color: #fff;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
    }

    .pesquisa-publicacoes-campo button:hover {
        opacity: 0.9;
    }



    /* Container geral */
     .listagem {
        max-width: 1000px;
        margin: 40px auto;
        padding: 0 16px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Linha (card) */
    .listagem-linha {
        display: flex;
        gap: 20px;
        background: #ffffff;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    } 

    .listagem-linha:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

    /* Imagem de capa */
    .listagem-linha-capa {
        width: 220px;
        height: 150px;
        flex-shrink: 0;
        background: #f2f2f2;
    }

    .listagem-linha-capa img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Conteúdo */
    .listagem-linha-geral {
        flex: 1;
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    /* Status */
    .listagem-linha-geral-status {
        align-self: flex-start;
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
    }

    /* Variações de status */
    .listagem-linha-geral-status.publicado {
        background: #e6f4ea;
        color: #1e7e34;
    }

    .listagem-linha-geral-status.rascunho {
        background: #fff3cd;
        color: #856404;
    }

    .listagem-linha-geral-status.tipo {
        background: #b20b0b;
        color: white;
    }

    /* Título */
    .listagem-linha-geral-titulo {
        font-size: 18px;
        font-weight: 600;
        color: #222;
        margin: 4px 0;
    }

    /* Data */
    .listagem-linha-geral-data {
        font-size: 13px;
        color: #777;
    }

    /* Backend (ações) */
    .listagem-linha-geral-backend {
        margin-top: auto;
        display: flex;
        gap: 10px;
    }

    /* Botões */
    .listagem-linha-geral-backend button {
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 6px;
        border: none;
        cursor: pointer;
    }

    .listagem-linha-geral-backend-atualizar {
        background: #2b3990;
        color: #fff;
    }

    .listagem-linha-geral-backend-deletar {
        background: #dc3545;
        color: #fff;
    }

    /* Hover botões */
    .listagem-linha-geral-backend button:hover {
        opacity: 0.9;
    }

    /* Responsivo */
    .listagem-linha {
        flex-direction: column;
    }

    .listagem-linha-capa {
        width: 100%;
        height: 200px;
    }


    /*========== PUBLICACAO ==========*/
    .publicacao {
        max-width: 900px;
        margin: 40px auto;
        padding: 0 16px;
        padding-top: 60px;
    }

    .campo {
        margin-bottom: 20px;
    }

    .campo label {
        display: block;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .campo input,
    .campo select,
    .campo textarea {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }

    .cancelar {
        border-radius: 10px;
        padding: 10px;
        background: red;
        color: white;
        font-size:medium;
    }

    .cancelar:hover {
        color: white;
    }

    .salvar {
        border-radius: 10px;
        padding: 10px;
        background: #2b3990;
        color: white;
        font-size:medium;
    }

    .salvar:hover {
        color: white;
    }

    /*========= NOTICIA =========*/

    .noticia {
        max-width: 920px;
        margin: 0 auto 60px;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    /* Capa */
    .noticia-capa img {
        padding-top: 48px;
        width: 100%;
        background-color: #2b3990;
        max-height: 380px;
        object-fit: cover;
        border-radius: 0 0 12px 12px;
    }

    /* Conteúdo */
    .noticia-conteudo {
        padding: 30px 16px 0;
    }

    /* Título */
    .noticia-titulo {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 10px;
        color: #111;
    }

    /* Meta */
    .noticia-meta {
        font-size: 14px;
        color: #666;
        margin-bottom: 25px;
    }

    /* Texto */
    .noticia-texto {
        font-size: 1.05rem;
        line-height: 1.7;
        color: #222;
    }

    .noticia-texto p {
        margin-bottom: 18px;
    }

    .noticia-texto h2,
    .noticia-texto h3 {
        margin: 28px 0 14px;
        line-height: 1.3;
    }

    .noticia-texto img {
        max-width: 100%;
        margin: 20px auto;
        display: block;
        border-radius: 8px;
    }

    .noticia-texto ul,
    .noticia-texto ol {
        margin: 20px 0 20px 30px;
    }

    .listagem-linha-geral-icones-menores {
        display: flex;
    }

    .voltar {
        padding-top: 40px;
        margin-left: 40%;
        margin-right: 15%;
        text-align: right;
    }


    /* ====================
    FOOTER
    ==================== */
    footer {
        background-color: #111827;
        color: #9ca3af;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 40px;
        text-align: center;
        padding: 50px 20px;
        height: auto;
    }

    footer .img img {
        width: 100px;
        height: auto;
        text-align: center;
    }

    footer .parte-1-redes {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    footer .parte-1-redes img {
        width: 25px;
    }

    footer .rede-item {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        gap: 10px;
    }

    footer .rede-item img {
        width: 16px;
    }

    footer .icons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 40px;
        width: 100%;
    }

    footer .icons img {
        width: 50px;
    }
    footer .parte-1-redes {
        margin-bottom: 20px;
    }

    footer .icons {
        margin-bottom: 10px;
    }

    footer .parte-2 {
        margin-top: 10px;
        padding-top: 10px;
        text-align: center;
        font-size: 14px;
        position: relative;
        color: #9ca3af;
    }

    footer .parte-2 a {
        color: #9ca3af;
        text-decoration: none;
    }

    footer .parte-2::before {
        content: "";
        display: block;
        width: 800px;
        height: 3px;
        background-color: #9ca3af;
        margin: 0 auto 20px auto;
    }

}
