/* =========================================================
   DRD ADVOGADOS
   PÁGINA INDIVIDUAL DE PUBLICAÇÃO
   ========================================================= */


/* =========================================================
   PÁGINA PRINCIPAL
   ========================================================= */

.blog-post {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;

    padding: 150px 0 100px;

    color: #172033;
}


/* =========================================================
   CABEÇALHO DA PUBLICAÇÃO
   ========================================================= */

.post-header {
    max-width: 900px;

    margin: 0 auto 55px;

    text-align: center;
}


/* TIPO DE PUBLICAÇÃO */

.post-type {
    display: inline-block;

    margin-bottom: 20px;

    padding: 7px 16px;

    border: 1px solid #b49a63;
    border-radius: 2px;

    background: rgba(180, 154, 99, 0.06);

    color: #8f7749;

    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}


/* TÍTULO */

.post-header h1 {
    margin: 0;

    color: #172033;

    font-family: 'Cormorant Garamond', serif;

    font-size: clamp(40px, 5vw, 60px);

    font-weight: 600;

    line-height: 1.08;

    letter-spacing: -0.4px;
}


/* DATA */

.blog-meta {
    margin-top: 22px;

    color: #7b8492;

    font-family: 'Manrope', sans-serif;

    font-size: 13px;

    font-weight: 500;
}


/* LINHA DECORATIVA */

.post-header::after {
    content: "";

    display: block;

    width: 55px;
    height: 1px;

    margin: 28px auto 0;

    background: #b49a63;
}


/* =========================================================
   IMAGEM DA PUBLICAÇÃO
   ========================================================= */

.blog-image {
    width: 100%;

    max-width: 720px;

    margin: 0 auto 55px;

    text-align: center;
}


/*
   IMPORTANTE:
   height: auto mantém a proporção original.
   object-fit: contain impede cortes.
*/

.blog-image img {
    display: block;

    width: 100%;

    height: auto;

    max-width: 100%;

    object-fit: contain;

    margin: 0 auto;

    border-radius: 2px;
}


/* =========================================================
   CONTEÚDO DO ARTIGO
   ========================================================= */

.blog-content {
    max-width: 820px;

    margin: 0 auto;

    color: #3d4654;

    font-family: 'Manrope', sans-serif;

    font-size: 16px;

    line-height: 1.9;

    overflow-wrap: break-word;
}


/* PARÁGRAFOS */

.blog-content p {
    margin: 0 0 24px;
}


/* =========================================================
   TÍTULOS DO CONTEÚDO
   ========================================================= */

.blog-content h2 {
    margin: 48px 0 18px;

    color: #172033;

    font-family: 'Cormorant Garamond', serif;

    font-size: 34px;

    font-weight: 600;

    line-height: 1.2;
}


.blog-content h3 {
    margin: 38px 0 15px;

    color: #172033;

    font-family: 'Cormorant Garamond', serif;

    font-size: 27px;

    font-weight: 600;

    line-height: 1.25;
}


.blog-content h4 {
    margin: 30px 0 12px;

    color: #172033;

    font-family: 'Manrope', sans-serif;

    font-size: 18px;

    font-weight: 700;

    line-height: 1.4;
}


/* =========================================================
   TEXTO FORTE
   ========================================================= */

.blog-content strong,
.blog-content b {
    color: #172033;

    font-weight: 700;
}


/* =========================================================
   LINKS
   ========================================================= */

.blog-content a {
    color: #8f7749;

    text-decoration: underline;

    text-decoration-thickness: 1px;

    text-underline-offset: 3px;

    transition:
        color 0.25s ease,
        opacity 0.25s ease;
}


.blog-content a:hover {
    color: #172033;

    opacity: 0.85;
}


/* =========================================================
   LISTAS
   ========================================================= */

.blog-content ul,
.blog-content ol {
    margin: 0 0 28px;

    padding-left: 25px;
}


.blog-content li {
    margin-bottom: 10px;
}


/* =========================================================
   CITAÇÕES
   ========================================================= */

.blog-content blockquote {
    margin: 35px 0;

    padding: 25px 30px;

    border-left: 3px solid #b49a63;

    background: #f7f6f2;

    color: #4a5260;

    font-family: 'Cormorant Garamond', serif;

    font-size: 22px;

    line-height: 1.5;

    font-style: italic;
}


/* =========================================================
   IMAGENS DENTRO DO CONTEÚDO
   ========================================================= */

.blog-content img {
    display: block;

    max-width: 100%;

    height: auto;

    margin: 35px auto;
}


/* =========================================================
   TABELAS
   ========================================================= */

.blog-content table {
    width: 100%;

    margin: 35px 0;

    border-collapse: collapse;

    font-family: 'Manrope', sans-serif;

    font-size: 14px;
}


.blog-content th,
.blog-content td {
    padding: 12px 14px;

    border: 1px solid #ddd;

    text-align: left;
}


.blog-content th {
    background: #172033;

    color: #ffffff;

    font-weight: 700;
}


/* =========================================================
   CÓDIGO
   ========================================================= */

.blog-content code {
    padding: 3px 6px;

    border-radius: 3px;

    background: #f1f1ef;

    color: #172033;

    font-family: monospace;

    font-size: 0.9em;
}


.blog-content pre {
    margin: 30px 0;

    padding: 20px;

    overflow-x: auto;

    border-radius: 4px;

    background: #172033;

    color: #ffffff;

    line-height: 1.6;
}


/* =========================================================
   SEPARADOR FINAL
   ========================================================= */

.blog-content::after {
    content: "";

    display: block;

    width: 100%;

    height: 1px;

    margin-top: 65px;

    background: #e5e2da;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .blog-post {
        width: min(100% - 36px, 800px);

        padding: 125px 0 80px;
    }


    .post-header {
        margin-bottom: 45px;
    }


    .post-header h1 {
        font-size: 46px;
    }


    .blog-image {
        max-width: 650px;

        margin-bottom: 48px;
    }


    .blog-content {
        font-size: 15.5px;

        line-height: 1.85;
    }


    .blog-content h2 {
        font-size: 31px;
    }


    .blog-content h3 {
        font-size: 25px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .blog-post {
        width: calc(100% - 30px);

        padding: 105px 0 60px;
    }


    /* -----------------------------------------------------
       CABEÇALHO
       ----------------------------------------------------- */

    .post-header {
        margin-bottom: 32px;
    }


    .post-type {
        margin-bottom: 15px;

        padding: 6px 12px;

        font-size: 9px;

        letter-spacing: 1.5px;
    }


    .post-header h1 {
        font-size: 34px;

        line-height: 1.12;

        letter-spacing: 0;
    }


    .blog-meta {
        margin-top: 16px;

        font-size: 11px;
    }


    .post-header::after {
        width: 42px;

        margin-top: 22px;
    }


    /* -----------------------------------------------------
       IMAGEM
       ----------------------------------------------------- */

    .blog-image {
        width: 100%;

        max-width: 480px;

        margin: 0 auto 38px;
    }


    /*
       A imagem mantém a proporção original.
       Não existe altura fixa.
       Não existe crop.
    */

    .blog-image img {
        width: 100%;

        height: auto;

        max-width: 100%;

        object-fit: contain;

        margin: 0 auto;
    }


    /* -----------------------------------------------------
       CONTEÚDO
       ----------------------------------------------------- */

    .blog-content {
        width: 100%;

        font-size: 14px;

        line-height: 1.8;
    }


    .blog-content p {
        margin-bottom: 20px;
    }


    /* -----------------------------------------------------
       TÍTULOS
       ----------------------------------------------------- */

    .blog-content h2 {
        margin-top: 38px;

        margin-bottom: 15px;

        font-size: 27px;
    }


    .blog-content h3 {
        margin-top: 30px;

        margin-bottom: 13px;

        font-size: 23px;
    }


    .blog-content h4 {
        margin-top: 25px;

        font-size: 16px;
    }


    /* -----------------------------------------------------
       CITAÇÃO
       ----------------------------------------------------- */

    .blog-content blockquote {
        margin: 28px 0;

        padding: 18px 20px;

        font-size: 19px;

        line-height: 1.45;
    }


    /* -----------------------------------------------------
       LISTAS
       ----------------------------------------------------- */

    .blog-content ul,
    .blog-content ol {
        padding-left: 21px;
    }


    .blog-content li {
        margin-bottom: 8px;
    }


    /* -----------------------------------------------------
       IMAGENS DENTRO DO ARTIGO
       ----------------------------------------------------- */

    .blog-content img {
        width: 100%;

        max-width: 100%;

        height: auto;

        margin: 28px auto;
    }


    /* -----------------------------------------------------
       TABELAS
       ----------------------------------------------------- */

    .blog-content table {
        display: block;

        width: 100%;

        overflow-x: auto;

        white-space: nowrap;

        font-size: 12px;
    }


    .blog-content th,
    .blog-content td {
        padding: 9px 11px;
    }


    /* -----------------------------------------------------
       CÓDIGO
       ----------------------------------------------------- */

    .blog-content pre {
        padding: 15px;

        font-size: 12px;
    }


    /* -----------------------------------------------------
       SEPARADOR
       ----------------------------------------------------- */

    .blog-content::after {
        margin-top: 45px;
    }

}


/* =========================================================
   MOBILE PEQUENO
   ========================================================= */

@media (max-width: 380px) {

    .blog-post {
        width: calc(100% - 24px);

        padding-top: 95px;
    }


    .post-header h1 {
        font-size: 30px;
    }


    .blog-content {
        font-size: 13.5px;

        line-height: 1.75;
    }


    .post-type {
        font-size: 8px;

        letter-spacing: 1.2px;
    }


    .blog-meta {
        font-size: 10px;
    }

}

/* =========================================================
   PDF — CONTAINER PRINCIPAL
   ========================================================= */

.blog-pdf {
    width: 100%;
    max-width: 1000px;

    margin: 0 auto 65px;
}


/* =========================================================
   PDF — CABEÇALHO
   ========================================================= */

.pdf-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 22px;
    padding-bottom: 20px;

    border-bottom: 1px solid #e5e2da;
}


.pdf-header-info {
    flex: 1;
}


.pdf-label {
    display: block;

    margin-bottom: 8px;

    color: #8f7749;

    font-family: 'Manrope', sans-serif;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.pdf-header h2 {
    margin: 0 0 6px;

    color: #172033;

    font-family: 'Cormorant Garamond', serif;

    font-size: 30px;
    font-weight: 600;

    line-height: 1.2;
}


.pdf-header p {
    margin: 0;

    color: #7b8492;

    font-family: 'Manrope', sans-serif;

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   PDF — BOTÃO DOWNLOAD
   ========================================================= */

.pdf-download {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    min-height: 44px;

    padding: 11px 22px;

    border: 1px solid #b49a63;

    background: #172033;

    color: #ffffff !important;

    font-family: 'Manrope', sans-serif;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .7px;

    text-decoration: none !important;

    cursor: pointer;

    transition:
        background .3s ease,
        border-color .3s ease,
        transform .3s ease;
}


.pdf-download:hover {
    background: #b49a63;

    border-color: #b49a63;

    color: #ffffff !important;

    transform: translateY(-1px);
}


/* =========================================================
   PDF — LEITOR
   ========================================================= */

.pdf-reader {
    width: 100%;

    overflow: hidden;

    border: 1px solid #dedbd3;

    background: #e9e9e7;

    box-shadow:
        0 10px 30px rgba(23, 32, 51, 0.08);
}


/* =========================================================
   PDF — TOOLBAR
   ========================================================= */

.pdf-toolbar {
    position: sticky;

    top: 0;

    z-index: 20;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    width: 100%;

    padding: 10px;

    background: #172033;

    border-bottom: 1px solid #b49a63;
}


/* BOTÕES DA TOOLBAR */

.pdf-toolbar button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 36px;
    height: 34px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.25);

    background: transparent;

    color: #ffffff;

    font-family: 'Manrope', sans-serif;

    font-size: 20px;
    font-weight: 500;

    line-height: 1;

    cursor: pointer;

    transition:
        background .25s ease,
        border-color .25s ease;
}


.pdf-toolbar button:hover {
    background: #b49a63;

    border-color: #b49a63;
}


.pdf-toolbar button:active {
    transform: scale(.96);
}


/* INFORMAÇÃO DA PÁGINA */

#pdf-page-info {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 110px;

    color: #ffffff;

    font-family: 'Manrope', sans-serif;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: .2px;

    white-space: nowrap;
}


/* =========================================================
   PDF — ÁREA ONDE AS PÁGINAS SÃO MOSTRADAS
   ========================================================= */

#pdf-container {
    width: 100%;

    max-height: 850px;

    overflow-y: auto;
    overflow-x: auto;

    padding: 25px 15px 40px;

    background: #e9e9e7;

    -webkit-overflow-scrolling: touch;

    overscroll-behavior: contain;

    scroll-behavior: smooth;
}


/* =========================================================
   PDF — CADA PÁGINA
   ========================================================= */

.pdf-page {
    width: fit-content;

    max-width: 100%;

    margin: 0 auto 25px;

    background: #ffffff;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.12);
}


/* CANVAS */

.pdf-page canvas {
    display: block;

    max-width: 100%;

    height: auto;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .blog-pdf {
        width: 100%;

        max-width: 100%;

        margin-bottom: 55px;
    }


    .pdf-header {
        gap: 20px;
    }


    .pdf-header h2 {
        font-size: 28px;
    }


    .pdf-viewer {
        width: 100%;
    }


    #pdf-container {
        max-height: 75vh;

        padding: 20px 10px 35px;

        overflow-y: auto;
        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }


    .pdf-page {
        margin-bottom: 20px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .blog-pdf {
        width: 100%;

        margin: 0 auto 45px;
    }


    /* -----------------------------------------------------
       CABEÇALHO
       ----------------------------------------------------- */

    .pdf-header {
        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 16px;

        margin-bottom: 18px;

        padding-bottom: 18px;
    }


    .pdf-label {
        margin-bottom: 6px;

        font-size: 9px;

        letter-spacing: 1.7px;
    }


    .pdf-header h2 {
        margin-bottom: 6px;

        font-size: 26px;

        line-height: 1.15;
    }


    .pdf-header p {
        font-size: 12px;

        line-height: 1.6;
    }


    /* -----------------------------------------------------
       BOTÃO DOWNLOAD
       ----------------------------------------------------- */

    .pdf-download {
        width: 100%;

        max-width: 100%;

        min-height: 46px;

        padding: 12px 16px;

        font-size: 11px;

        text-align: center;
    }


    /* -----------------------------------------------------
       LEITOR
       ----------------------------------------------------- */

    .pdf-reader {
        width: 100%;

        border-left: 1px solid #dedbd3;
        border-right: 1px solid #dedbd3;

        box-shadow:
            0 6px 20px rgba(23, 32, 51, 0.08);
    }


    /* -----------------------------------------------------
       TOOLBAR MOBILE
       ----------------------------------------------------- */

    .pdf-toolbar {
        position: sticky;

        top: 0;

        display: flex;

        gap: 5px;

        padding: 8px 5px;
    }


    .pdf-toolbar button {
        width: 34px;

        height: 32px;

        font-size: 18px;
    }


    #pdf-page-info {
        min-width: 90px;

        font-size: 10px;
    }


    /* -----------------------------------------------------
       ÁREA DO PDF MOBILE
       ----------------------------------------------------- */

    #pdf-container {
        width: 100%;

        max-height: 75vh;

        padding: 15px 5px 30px;

        overflow-y: auto;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;

        overscroll-behavior: contain;
    }


    /* -----------------------------------------------------
       PÁGINAS MOBILE
       ----------------------------------------------------- */

    .pdf-page {
        width: 100%;

        max-width: 100%;

        margin: 0 auto 15px;

        background: #ffffff;
    }


    .pdf-page canvas {
        display: block;

        width: 100% !important;

        max-width: 100%;

        height: auto !important;

        margin: 0 auto;
    }

}


/* =========================================================
   MOBILE PEQUENO
   ========================================================= */

@media (max-width: 380px) {

    .pdf-header h2 {
        font-size: 24px;
    }


    .pdf-header p {
        font-size: 11.5px;
    }


    .pdf-toolbar {
        gap: 3px;

        padding: 7px 3px;
    }


    .pdf-toolbar button {
        width: 31px;

        height: 30px;

        font-size: 17px;
    }


    #pdf-page-info {
        min-width: 78px;

        font-size: 9px;
    }


    #pdf-container {
        max-height: 72vh;

        padding: 10px 3px 25px;
    }


    .pdf-page {
        margin-bottom: 12px;
    }

}