/* Claudio William - Modelo de Publicações
   Desenvolvido por Full Creative Agência
   Versão 1.0.0
*/

.cw-modelo-post {
    --cw-primary: #023E8A;
    --cw-secondary: #0096C7;
    --cw-heading: #03045E;
    --cw-background: #F4FCFE;
    --cw-text: #7F7F7F;
    --cw-white: #FFFFFF;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    font-family: "Archivo", sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--cw-text);
}

.cw-modelo-post .cw-post-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Faixa superior */

.cw-modelo-post .cw-post-hero {
    position: relative;
    padding: 200px 0 150px;
    background: linear-gradient(
        90deg,
        #03045E 0%,
        #023E8A 50%,
        #0096C7 100%
    );
}

.cw-modelo-post .cw-post-hero::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--cw-background);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    pointer-events: none;
}

.cw-modelo-post .cw-post-titulo {
    position: relative;
    z-index: 1;
    max-width: 85%;
    margin: 0;
    color: #F7F7F7;
    font-family: "Archivo", sans-serif;
    font-size: 55px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
    overflow-wrap: break-word;
}

/* Área principal */

.cw-modelo-post .cw-post-area {
    position: relative;
    padding: 50px 0 150px;
    background: var(--cw-background);
}

.cw-modelo-post .cw-post-area::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background: #FFFFFF;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    pointer-events: none;
}

.cw-modelo-post .cw-post-colunas {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 60px;
    align-items: start;
}

/* Conteúdo da publicação */

.cw-modelo-post .cw-post-artigo {
    min-width: 0;
    padding: 35px;
    background: var(--cw-white);
    border-radius: 30px;
}

.cw-modelo-post .cw-post-imagem {
    margin-bottom: 30px;
}

.cw-modelo-post .cw-post-imagem img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 30px;
}

.cw-modelo-post .cw-post-conteudo {
    overflow-wrap: break-word;
    font-size: 17px;
    line-height: 1.5;
    color: #595959;
}

.cw-modelo-post .cw-post-conteudo img {
    max-width: 100%;
    height: auto;
}

.cw-modelo-post .cw-post-conteudo p {
    margin-bottom: 1em;
}

.cw-modelo-post .cw-post-conteudo a {
    color: var(--cw-primary);
}

.cw-modelo-post .cw-post-conteudo a:hover {
    color: var(--cw-secondary);
    text-decoration: underline;
}

/* Coluna lateral */

.cw-modelo-post .cw-post-lateral {
    min-width: 0;
}

.cw-modelo-post .cw-post-categoria {
    margin: 0 0 30px;
    padding: 0;
}

.cw-modelo-post .cw-post-categoria-titulo {
    margin: 0 0 20px;
    color: var(--cw-heading);
    font-family: "Archivo", sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}

.cw-modelo-post .cw-post-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cw-modelo-post .cw-post-lista li {
    position: relative;
    margin: 0;
    padding: 9px 0 9px 19px;
}

.cw-modelo-post .cw-post-lista li::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cw-secondary);
}

.cw-modelo-post .cw-post-lista a {
    display: block;
    color: var(--cw-primary);
    font-size: 17px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cw-modelo-post .cw-post-lista a:hover,
.cw-modelo-post .cw-post-lista a:focus-visible {
    color: var(--cw-secondary);
    text-decoration: underline;
}

.cw-modelo-post .cw-post-lista .cw-post-ativo a {
    color: var(--cw-heading);
    font-weight: 700;
}

.cw-modelo-post .cw-post-lista .cw-post-ativo::before {
    background: var(--cw-heading);
}


/* Tablet */

@media (max-width: 1024px) {
    .cw-modelo-post .cw-post-hero {
        padding: 150px 0 75px;
    }

    .cw-modelo-post .cw-post-hero::after,
    .cw-modelo-post .cw-post-area::after {
        height: 50px;
    }

    .cw-modelo-post .cw-post-titulo {
        max-width: 100%;
        font-size: 45px;
    }

    .cw-modelo-post .cw-post-area {
        padding: 35px 0 75px;
    }

    .cw-modelo-post .cw-post-colunas {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .cw-modelo-post .cw-post-artigo {
        padding: 20px;
    }

    .cw-modelo-post .cw-post-categoria-titulo {
        font-size: 23px;
    }
}

/* Celular */

@media (max-width: 767px) {
    .cw-modelo-post .cw-post-titulo {
        font-size: 35px;
    }

    .cw-modelo-post .cw-post-hero {
        padding: 140px 0 75px;
    }

    .cw-modelo-post .cw-post-artigo {
        padding: 20px;
        border-radius: 20px;
    }

    .cw-modelo-post .cw-post-imagem img {
        border-radius: 20px;
    }

    .cw-modelo-post .cw-post-categoria-titulo {
        font-size: 20px;
    }
}
