/*
 * Blog (laravel-blog) no visual do site: cores e fontes do assets/css/style.min.css do tema.
 * Azul #146de5 (títulos e botões), azul escuro #0c4c93, texto #6c7176, cinza claro #f8f8fa, borda #e6e6e6,
 * Mulish 800 nos títulos e Inter no texto. Só vale dentro de .blog-root (o layout só carrega este arquivo em blog.*).
 */
.blog-root {
    max-width: 960px;
    margin: 0 auto;
    color: #6c7176;
    font-family: Inter, sans-serif;
    font-size: 16px;
    line-height: 27px;
}

.blog-root img {
    max-width: 100%;
    height: auto;
}

.blog-root figure {
    margin: 24px 0;
}

.blog-root a {
    color: #146de5;
    transition: color .2s linear;
}

.blog-root a:hover {
    color: #0c4c93;
}

.blog-root h1,
.blog-root h2,
.blog-root h3,
.blog-root h4 {
    font-family: Mulish, sans-serif;
    font-weight: 800;
    color: #146de5;
}

.blog-root h1 {
    font-size: 42px;
    line-height: 55px;
    margin: 12px 0 16px;
}

.blog-root h2 {
    font-size: 29px;
    line-height: 38px;
    margin: 36px 0 14px;
}

.blog-root h3 {
    font-size: 22px;
    line-height: 30px;
    color: #0c4c93;
    margin: 28px 0 12px;
}

.blog-root p,
.blog-root ul,
.blog-root ol {
    margin: 0 0 16px;
}

.blog-root article ul,
.blog-root article ol {
    padding-left: 22px;
}

.blog-root article ul {
    list-style: disc;
}

.blog-root article ol {
    list-style: decimal;
}

.blog-root blockquote {
    margin: 24px 0;
    padding: 18px 24px;
    background: #f8f8fa;
    border-radius: 6px;
    color: #393939;
}

.blog-root table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
}

.blog-root th,
.blog-root td {
    border: 1px solid #e6e6e6;
    padding: 8px 12px;
    text-align: left;
}

.blog-root th {
    background: #f8f8fa;
    color: #0c4c93;
}

/* Trilha de navegação */
.blog-root > nav[aria-label] > ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 0;
    margin: 0 0 8px;
    list-style: none;
    font-size: 14px;
}

.blog-root > nav[aria-label] > ol > li:not(:last-child)::after {
    content: "/";
    margin-left: 10px;
    color: #6c7785;
}

/* Sumário do post */
.blog-root article > nav {
    background: #f8f8fa;
    border-radius: 6px;
    padding: 18px 24px;
    margin: 24px 0;
}

.blog-root article > nav h2 {
    font-size: 20px;
    line-height: 28px;
    margin: 0 0 8px;
}

.blog-root article > nav ol {
    display: block;
    list-style: decimal;
    padding-left: 22px;
    font-size: 15px;
}

.blog-root article > nav li[data-level="3"] {
    margin-left: 18px;
}

/* Busca */
.blog-root form[role="search"] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 8px 0 32px;
}

.blog-root form[role="search"] label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.blog-root input[type="search"] {
    flex: 1 1 240px;
    height: 50px;
    padding: 0 16px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    font-family: Inter, sans-serif;
    font-size: 16px;
    color: #393939;
    outline: 0;
}

.blog-root input[type="search"]:focus {
    border-color: #146de5;
}

.blog-root form[role="search"] button {
    height: 50px;
    padding: 0 28px;
    border: 2px solid #146de5;
    background: #146de5;
    color: #fff;
    font-family: Mulish, sans-serif;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s linear, border-color .2s linear;
}

.blog-root form[role="search"] button:hover {
    background: #51acfb;
    border-color: #51acfb;
}

/* Lista de posts (os cartões têm h2 direto; o post aberto tem header) */
.blog-root > article:has(> h2) {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(30, 96, 170, .12);
    padding: 24px;
    margin: 0 0 28px;
}

.blog-root > article:has(> h2) img {
    display: block;
    border-radius: 4px;
    margin-bottom: 16px;
}

.blog-root > article:has(> h2) h2 {
    font-size: 24px;
    line-height: 32px;
    margin: 0 0 10px;
}

.blog-root > article:has(> h2) h2 a {
    color: #146de5;
}

.blog-root > article:has(> h2) > p:last-child {
    margin-bottom: 0;
    font-size: 14px;
    color: #6c7785;
}

/* Paginação */
.blog-root nav[aria-label] > ul {
    display: flex;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.blog-root nav[aria-label] > ul a {
    display: inline-flex;
    align-items: center;
    height: 46px;
    padding: 0 24px;
    border: 2px solid #146de5;
    color: #146de5;
    font-family: Mulish, sans-serif;
    font-weight: 800;
}

.blog-root nav[aria-label] > ul a:hover {
    background: #146de5;
    color: #fff;
}

/* Bloco de chamada (CTA) dentro do post */
.blog-root .blog-cta {
    margin: 28px 0;
    padding: 24px;
    border-radius: 6px;
    background: #146de5;
    color: #fff;
    text-align: center;
}

.blog-root .blog-cta__title {
    font-family: Mulish, sans-serif;
    font-weight: 800;
    font-size: 22px;
    line-height: 30px;
    margin-bottom: 8px;
}

.blog-root .blog-cta__button {
    display: inline-flex;
    align-items: center;
    height: 50px;
    padding: 0 28px;
    margin-top: 8px;
    background: #fff;
    color: #146de5;
    font-family: Mulish, sans-serif;
    font-weight: 800;
}

.blog-root .blog-cta--whatsapp {
    background: #188741;
}

.blog-root .blog-cta--whatsapp .blog-cta__button {
    color: #1d9e4c;
}

.blog-root .blog-cta__button:hover {
    color: #0c4c93;
}

@media (max-width: 767px) {
    .blog-root h1 {
        font-size: 29px;
        line-height: 36px;
    }

    .blog-root h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .blog-root > article:has(> h2) {
        padding: 18px;
    }
}
