/* =========================================================
   RESET
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
   }
   
    html { letter-spacing: 1.4px; font-family: "Poppins", sans-serif; font-weight: 400; font-style: normal; scroll-behavior: smooth; }
.poppins-black {font-family: "Poppins", sans-serif; font-weight: 900; font-style: normal;}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    display: block;
}

 body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f7f7;
    background: #f7f7f7;
    /*color: #222;*/
    line-height: 1.6;
    background-color: #edecec;
    background: linear-gradient(
        to bottom,
        #e6f7ff,
        #66ccff,
        #005bea
    );
}

.p{
    text-align: justify;
}

/* =========================================================
   TOPO / RODAPÉ
========================================================= */
.blog-topo-site,
.blog-rodape-site {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #ececec;
}

.blog-rodape-site {
    border-top: 1px solid #ececec;
    border-bottom: 0;
    margin-top: 30px;
}

.blog-topo-site-interno,
.blog-rodape-site-interno {
    width: min(1400px, 95%);
    margin: 0 auto;
    min-height: 90px;
    display: flex;
    align-items: center;
}

/* =========================================================
   LAYOUT
========================================================= */
.blog-container {
    width: min(1400px, 95%);
    margin: 30px auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
    
}

/* =========================================================
   SIDEBAR
========================================================= */
.blog-sidebar {
    position: sticky;
    top: 20px;
}

.blog-sidebar-box {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
}

.blog-sidebar-titulo {
    font-size: 1.1rem;
    padding: 18px 20px;
    border-bottom: 1px solid #ececec;
    background: #fafafa;
    color: #111;
}

.blog-sem-posts {
    padding: 20px;
    color: #666;
    font-size: 0.95rem;
}

/* =========================================================
   ACCORDION
========================================================= */
.blog-accordion-item {
    border-bottom: 1px solid #efefef;
}

.blog-accordion-item:last-child {
    border-bottom: 0;
}

.blog-accordion-toggle {
    width: 100%;
    border: 0;
    background: #fff;
    padding: 16px 20px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    font-size: 0.96rem;
    color: #222;
    transition: background 0.2s ease;
}

.blog-accordion-toggle:hover {
    background: #f7f7f7;
}

.blog-accordion-item-ativo .blog-accordion-toggle {
    background: #f3f3f3;
    font-weight: 700;
}

.blog-accordion-total {
    color: #777;
    font-size: 0.88rem;
}

.blog-accordion-conteudo {
    display: none;
    background: #fcfcfc;
    padding: 10px 0 14px;
}

/* =========================================================
   LINKS DOS POSTS
========================================================= */
.blog-sidebar-lista-posts {
    list-style: none;
}

.blog-sidebar-post-link {
    display: block;
    text-decoration: none;
    color: #333;
    font-size: 0.93rem;
    padding: 9px 20px;
    border-left: 3px solid transparent;
    transition: background 0.2s ease, color 0.2s ease;
}

.blog-sidebar-post-link:hover {
    background: #f2f2f2;
    color: #000;
}

.blog-sidebar-post-link-ativo {
    background: #f0f0f0;
    border-left-color: #111;
    font-weight: 700;
}

/* =========================================================
   ÁREA DO POST
========================================================= */
.blog-content {
    min-width: 0;
}

.blog-post {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 28px;
}

.blog-post-header {
    margin-bottom: 22px;
}

.blog-post-titulo {
    font-size: clamp(1.6rem, 2vw, 2.3rem);
    line-height: 1.2;
    margin-bottom: 10px;
    color: #111;
}

.blog-post-meta {
    color: #777;
    font-size: 0.95rem;
}

.blog-post-imagem-wrap {
        margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: flex-start; /* garante alinhamento à esquerda */
}

.blog-post-imagem {
    float: left;
    max-width: 350px;
    width: 80%;
    height: auto;
    margin: 0 20px 20px 0;
    border-radius: 12px;
}

.blog-post-resumo {
    background: #fafafa;
    border-left: 4px solid #ddd;
    padding: 16px 18px;
    margin-bottom: 24px;
    color: #444;
    border-radius: 8px;
}

.blog-post-conteudo {
    font-size: 1rem;
    color: #222;
}

.blog-post-conteudo p {
    margin-bottom: 16px;
}

.blog-post-conteudo h2,
.blog-post-conteudo h3,
.blog-post-conteudo h4 {
    margin-top: 28px;
    margin-bottom: 12px;
    color: #111;
    line-height: 1.3;
}

.blog-post-conteudo ul,
.blog-post-conteudo ol {
    margin: 0 0 18px 22px;
}

.blog-post-conteudo li {
    margin-bottom: 8px;
}

.blog-post-conteudo a {
    color: #0b5ed7;
    text-decoration: none;
}

.blog-post-conteudo a:hover {
    text-decoration: underline;
}

.blog-post-vazio {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 30px;
    color: #555;
}

/* =========================================================
   ADMIN
========================================================= */
.blog-admin-container {
    width: min(1200px, 95%);
    margin: 30px auto;
}

.blog-admin-topo {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.blog-admin-topo h1 {
    font-size: 1.8rem;
    color: #111;
}

.blog-admin-botao,
.blog-admin-botao-secundario,
.blog-admin-botao-perigo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.blog-admin-botao:hover,
.blog-admin-botao-secundario:hover,
.blog-admin-botao-perigo:hover {
    opacity: 0.9;
}

.blog-admin-botao {
    background: #111;
    color: #fff;
}

.blog-admin-botao-secundario {
    background: #f0f0f0;
    color: #222;
}

.blog-admin-botao-perigo {
    background: #c62828;
    color: #fff;
}

.blog-admin-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 24px;
}

.blog-admin-tabela-wrap {
    overflow-x: auto;
}

.blog-admin-tabela {
    width: 100%;
    border-collapse: collapse;
}

.blog-admin-tabela th,
.blog-admin-tabela td {
    padding: 14px 12px;
    border-bottom: 1px solid #ececec;
    text-align: left;
    vertical-align: top;
}

.blog-admin-tabela th {
    background: #fafafa;
    color: #111;
    font-size: 0.95rem;
}

.blog-admin-tabela td {
    font-size: 0.94rem;
}

.blog-admin-acoes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.blog-admin-form-col-full {
    grid-column: 1 / -1;
}

.blog-admin-campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-admin-campo label {
    font-size: 0.95rem;
    color: #111;
    font-weight: 700;
}

.blog-admin-campo input[type="text"],
.blog-admin-campo input[type="datetime-local"],
.blog-admin-campo select,
.blog-admin-campo textarea,
.blog-admin-campo input[type="file"] {
    width: 100%;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.95rem;
    background: #fff;
}

.blog-admin-campo textarea {
    min-height: 140px;
    resize: vertical;
}

.blog-admin-editor {
    min-height: 380px !important;
    font-family: Arial, Helvetica, sans-serif;
}

.blog-admin-imagem-atual {
    margin-top: 10px;
    max-width: 260px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.blog-admin-alerta {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.blog-admin-alerta-sucesso {
    background: #edf8ef;
    color: #256029;
    border: 1px solid #cde8d1;
}

.blog-admin-alerta-erro {
    background: #fff0f0;
    color: #8a1f1f;
    border: 1px solid #f1c7c7;
}

.blog-admin-link-voltar {
    display: inline-block;
    margin-bottom: 16px;
    text-decoration: none;
    color: #222;
}

.blog-admin-link-voltar:hover {
    text-decoration: underline;
}

/* =========================================================
   RESPONSIVO
========================================================= */
@media (max-width: 980px) {
    .blog-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .blog-admin-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .blog-post {
        padding: 20px;
    }

    .blog-sidebar-titulo,
    .blog-accordion-toggle,
    .blog-sidebar-post-link {
        padding-left: 16px;
        padding-right: 16px;
    }

    .blog-admin-card {
        padding: 18px;
    }

    .blog-admin-topo {
        flex-direction: column;
        align-items: flex-start;
    }
}
