body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #1f2937;
}

/* TOPO FIXO */
.blog-topbar {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.blog-topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

.blog-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.blog-brand-logo {
    width: 150px;
    max-width: 100%;
    height: auto;
    display: block;
}

.blog-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.blog-nav a {
    text-decoration: none;
    color: #111827;
    font-size: 0.98rem;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all 0.22s ease;
}

.blog-nav a:hover {
    background: rgba(29, 78, 216, 0.08);
    color: #1d4ed8;
}

.blog-nav a.active {
    background: #111827;
    color: #ffffff;
}

/* BOTÃO HAMBÚRGUER */
.blog-menu-toggle {
    display: none;
    border: none;
    background: #111827;
    color: #ffffff;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s ease;
}

.blog-menu-toggle:hover {
    background: #1d4ed8;
}

/* INTRO */
.blog-page-intro {
    padding: 42px 20px 18px;
    background: linear-gradient(180deg, #f8fafc, #f4f6f8);
}

.blog-page-intro-inner {
    max-width: 1240px;
    margin: 0 auto;
}

.blog-page-intro h1 {
    margin: 0 0 10px;
    font-size: 2.4rem;
    font-weight: 800;
    color: #111827;
}

.blog-page-intro p {
    margin: 0;
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.7;
}

.blog-page-intro-article {
    padding-bottom: 10px;
}


.blog-page-intro-article {
    padding-bottom: 10px;
}

/* LAYOUT PRINCIPAL */
.blog-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    max-width: 1240px;
    margin: 28px auto 40px;
    padding: 0 20px;
}

/* LADO ESQUERDO */
.main-content {
    flex: 3;
    min-width: 300px;
}

/* CARD DO BLOG */
.blog-card {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    min-height: 270px;
}


.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
}

.blog-thumb {
    width: 38%;
    min-width: 260px;
    max-width: 320px;
    height: 270px;
    object-fit: cover;
    object-position: center;
    background: #e5e7eb;
    flex-shrink: 0;
}


.blog-info {
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-badge {
    display: inline-flex;
    width: fit-content;
    background: rgba(84, 144, 255, 0.10);
    color: #1d4ed8;
    border: 1px solid rgba(84, 144, 255, 0.16);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.blog-info h2 {
    font-size: 1.55rem;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.3;
}


.blog-info p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* BOTÕES */
.ler-mais-btn,
.cta-blog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 46px;
    padding: 11px 20px;
    background: linear-gradient(90deg, #ffc107, #f59e0b);
    color: #111827;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 800;
    transition: all 0.25s ease;
    border: none;
}

.ler-mais-btn:hover,
.cta-blog-btn:hover {
    transform: translateY(-2px);
    color: #111827;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.18);
}

/* SIDEBAR */
.sidebar {
    flex: 1;
    min-width: 270px;
}

.sidebar-widget {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.sidebar-title {
    font-size: 1.18rem;
    font-weight: 800;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffc107;
    color: #111827;
}

/* PESQUISA */
.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    outline: none;
}

.search-box input:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.08);
}

.search-box button {
    background: #1f2937;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.25s ease;
}

.search-box button:hover {
    background: #111827;
}

/* LISTAS */
.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    margin-bottom: 14px;
    border-bottom: 1px solid #ececec;
    padding-bottom: 12px;
}

.widget-list li a {
    text-decoration: none;
    color: #374151;
    font-size: 0.95rem;
    display: block;
    line-height: 1.6;
}

.widget-list li a:hover {
    color: #1d4ed8;
}

/* TAGS */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #f8fafc;
    border: 1px solid #dbe3ea;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag:hover {
    background: #ffc107;
    color: #111827;
    border-color: #ffc107;
}

/* BOTÃO VER MAIS */
#btn-carregar-mais {
    display: block;
    margin: 34px auto 0;
    padding: 12px 30px;
    background: #fff;
    border: 2px solid #1f2937;
    color: #1f2937;
    font-weight: 800;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.25s ease;
}

#btn-carregar-mais:hover {
    background: #1f2937;
    color: #fff;
}

/* UTILITÁRIO */
.post-escondido {
    display: none !important;
}

/* PÁGINA DE MATÉRIA */
.single-post-container {
    background: #ffffff;
    padding: 42px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.single-post-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.post-category,
.post-date,
.post-author {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.84rem;
    font-weight: 700;
}

.single-post-container h1 {
    font-size: 2.15rem;
    color: #111827;
    margin-bottom: 18px;
    border-bottom: 2px solid #ffc107;
    padding-bottom: 12px;
    line-height: 1.3;
}

.single-post-container p {
    font-size: 1.08rem;
    line-height: 1.95;
    color: #374151;
    margin-bottom: 20px;
}

.single-post-container img {
    max-width: 100%;
    width: 100%;
    border-radius: 12px;
    margin: 24px 0;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

/* FOOTER */
footer {
    background: #111827 !important;
    color: #fff !important;
    text-align: center;
    padding: 22px;
    margin-top: 40px;
}

/* RESPONSIVO */
@media (max-width: 992px) {
    .blog-page-intro h1 {
        font-size: 2rem;
    }

    .blog-info h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .blog-topbar-inner {
        gap: 12px;
    }

    .blog-brand-logo {
        width: 130px;
    }

    .blog-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .blog-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 20px;
        left: 20px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .blog-nav.open {
        display: flex;
    }

    .blog-nav a {
        font-size: 0.95rem;
        padding: 12px 14px;
        width: 100%;
    }

    .blog-layout {
        gap: 24px;
    }

    .blog-card {
        flex-direction: column;
    }

    .blog-thumb {
        width: 100%;
        min-width: auto;
        max-width: none;
        height: 220px;
    }

    .blog-page-intro {
        padding: 28px 20px 10px;
    }

    .blog-page-intro h1 {
        font-size: 1.7rem;
    }

    .blog-page-intro p {
        font-size: 0.98rem;
    }

    .single-post-container {
        padding: 26px 20px;
    }

    .single-post-container h1 {
        font-size: 1.7rem;
    }

    .single-post-container p {
        font-size: 1rem;
        line-height: 1.8;
    }
}
