/* =====================================================
   ARTIGO
===================================================== */
@import "reset.css";

.artigo {

    width: 100%;

    margin: 60px 0 20px;

    font-family: var(--fonte-principal);

}


/* =====================================================
   DESTAQUE DO ARTIGO
===================================================== */

.destaque-artigo {

    position: relative;

    width: 100%;

    height: 380px;

    background-color: #29618c;

    padding: 60px 30px 30px;

    box-sizing: border-box;

}


/* =====================================================
   IMAGEM DO ARTIGO
===================================================== */

.imagem-artigo {

    position: relative;

    width: calc(100% - 60px);

    height: 100%;

    margin-left: 30px;

    overflow: hidden;

    border-radius: 25px;

}


/* =====================================================
   IMAGEM
===================================================== */

.imagem-artigo-slide {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

    display: block;

    opacity: 0;

    transition: opacity 1.4s ease;

}


.imagem-artigo-slide.ativa {

    opacity: 1;

}

.imagem-artigo::after {

    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(to bottom,

            transparent 0%,

            rgba(29, 48, 86, .20) 25%,

            rgba(29, 48, 86, .40) 35%,

            rgba(29, 48, 86, .60) 55%,

            rgba(29, 48, 86, .80) 75%,

            #1D3056 100%);

}


/* =====================================================
   TÍTULO SOBRE A IMAGEM
===================================================== */

.titulo-artigo {

    position: absolute;

    top: 80%;

    left: 50%;

    transform: translate(-50%, -50%);

    width: 70%;

    z-index: 3;

    text-align: center;

}


/* =====================================================
   H1
===================================================== */

.titulo-artigo h1 {

    margin: 0;

    color: var(--corBranca);

    font-size: 2.3rem;

    line-height: 1.2;

    font-weight: 600;

    text-align: center;

}


/* =====================================================
   INFORMAÇÕES DO ARTIGO
===================================================== */

.informacoes-artigo {

    width: calc(100% - 60px);

    margin: 18px auto 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}


/* =====================================================
   AUTOR E DATA
===================================================== */

.informacoes-artigo {

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 50px;

    text-align: center;

}


/* =====================================================
   INFORMAÇÕES DO ARTIGO
===================================================== */

.informacoes-artigo {

    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 1px;

    text-align: center;

}


.informacoes-artigo span {

    color: var(--corTexto);

    font-size: .95rem;

    font-weight: 300;

    text-align: center;

}


.informacoes-artigo strong {
    color: var(--azulEscuro);
    font-weight: 600;

}










/* =====================================================
   CONTEÚDO DO ARTIGO
===================================================== */

.conteudo-artigo {

    width: 100%;

    max-width: 1100px;

    margin: 40px auto;

    padding: 0 65px;

    box-sizing: border-box;

    color: var(--corTexto);

    font-family: var(--fonte-principal);

}


/* =====================================================
   PARÁGRAFOS
===================================================== */

.conteudo-artigo p {

    margin: 0 0 25px;

    font-size: .95rem;

    line-height: 1.4;

    font-weight: 300;

    text-align: justify;

}


/* =====================================================
   ÚLTIMO PARÁGRAFO
===================================================== */

.conteudo-artigo p:last-child {

    margin-bottom: 0;

}





/* =====================================================
   ÁREA DE COMENTÁRIO
===================================================== */

.area-comentario {

    width: 100%;

    max-width: 1000px;

    margin: 75px auto 40px;

    font-family: var(--fonte-principal);

}







/* =====================================================
   FORMULÁRIO
===================================================== */

.formulario-comentario {

    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 5px;

}


/* =====================================================
   CAMPOS
===================================================== */

.campo-comentario,
.campo {

    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 4px;

}


.campo-comentario label,
.campo label {

    color: var(--corTexto);

    font-size: .95rem;

    font-weight: 400;
    margin-left: 15px;

}


/* =====================================================
   TEXTAREA
===================================================== */

.campo-comentario textarea {

    width: 100%;

    min-height: 150px;

    padding: 14px 16px;

    box-sizing: border-box;

    resize: vertical;

    border: 1px solid #d9dfe8;

    border-radius: 4px;

    outline: none;

    background: #fff;

    color: var(--corTexto);

    font-family: inherit;

    font-size: .9rem;
    font-weight: 300;

    transition: border-color .3s ease,
        box-shadow .3s ease;

}


.campo-comentario textarea:focus {

    border-color: #29618c;

    box-shadow: 0 0 0 3px rgba(41, 97, 140, .10);

}


/* =====================================================
   NOME + E-MAIL
===================================================== */

.linha-dados {

    width: 100%;

    display: flex;

    gap: 20px;

}


.linha-dados .campo {

    flex: 1;

}


/* =====================================================
   INPUTS
===================================================== */

.campo input {

    width: 100%;

    height: 38px;

    padding: 0 16px;

    box-sizing: border-box;

    border: 1px solid #d9dfe8;

    border-radius: 4px;

    outline: none;

    background: #fff;

    color: var(--corTexto);

    font-family: inherit;

    font-size: .9rem;
    font-weight: 300;

    transition: border-color .3s ease,
        box-shadow .3s ease;

}


.campo input:focus {

    border-color: #29618c;

    box-shadow: 0 0 0 3px rgba(41, 97, 140, .10);

}


/* =====================================================
   BOTÃO
===================================================== */

.botao-comentario {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    align-self: flex-start;

    padding: 10px 15px;

    border: none;

    border-radius: 3px;

    background: var(--azulEscuro);

    color: #fff;

    font-family: inherit;

    font-size: .9rem;

    font-weight: 400;

    line-height: 1;

    cursor: pointer;

    transition:
        background .3s ease,
        transform .2s ease;

}


.botao-comentario:hover {
    background-color: var(--laranjaForte);
}


.botao-comentario img {

    width: 13px;

    height: 13px;

    display: block;

    object-fit: contain;

}


.botao-comentario:hover {

    background: #1d3056;

    transform: translateY(-2px);

}



/* =====================================================
   PAGINAÇÃO — DESKTOP
   OCULTA
===================================================== */

.paginacao {

    display: none;

}




/* =====================================================
   ARTIGOS RELACIONADOS
===================================================== */

.artigos-relacionados {

    position: relative;

    width: 100%;

    margin-bottom: 30px;

    background: var(--corBranca);

    box-sizing: border-box;

}


/* =====================================================
   TÍTULO
===================================================== */

.titulo-artigos-relacionados {

    margin: 0 0 8px;

    text-align: center;

    color: var(--azulEscuro);

    font-size: 2.3rem;

    font-weight: 600;

}


/* =====================================================
   IMAGEM DE FUNDO
===================================================== */

.fundo-artigos-relacionados {

    width: 100%;

    height: 300px;

    overflow: hidden;

}


.fundo-artigos-relacionados img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

}


/* =====================================================
   LISTA DOS ARTIGOS
===================================================== */

.lista-artigos-relacionados {

    position: absolute;

    left: 50%;

    bottom: 80px;

    transform: translateX(-50%);

    width: 80%;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;

    z-index: 3;

}


/* =====================================================
   CARD DO ARTIGO
===================================================== */

.card-artigo-relacionado {

    width: 100%;

    min-height: 150px;

    display: flex;

    align-items: flex-start;

    box-sizing: border-box;

    padding: 10px;

    background: var(--corBranca);

    border: none;

    border-radius: 20px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);

}


/* =====================================================
   IMAGEM DO CARD
===================================================== */

.imagem-card-artigo {

    width: 170px;

    height: 160px;

    flex-shrink: 0;

    overflow: hidden;

}


.imagem-card-artigo img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 16px;

}


/* =====================================================
   CONTEÚDO DO CARD
===================================================== */

.conteudo-card-artigo {

    flex: 1;

    min-width: 0;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    padding: 0 10px;

    box-sizing: border-box;

}


/* =====================================================
   TÍTULO DO CARD
===================================================== */

.conteudo-card-artigo h3 {

    width: 100%;
    margin: 8px 0 2px;
    color: var(--corTexto);
    font-size: 1rem;
    line-height: 1;
    font-weight: 600;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;



}


/* =====================================================
   DATA
===================================================== */

.conteudo-card-artigo span {

    margin-bottom: 2px;
    color: var(--corTexto);
    font-size: .8rem;
    font-weight: 400;
    font-style: italic;

}


/* =====================================================
   DESCRIÇÃO
===================================================== */

.conteudo-card-artigo p {

    width: 100%;
    margin: 0 0 3px;
    color: var(--corTexto);
    font-size: .8rem;
    line-height: 1.2;
    font-weight: 300;


    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;

    /* Reserva espaço para 5 linhas */
    min-height: calc(1.4em * 5);

}


/* =====================================================
   LINK
===================================================== */

.link-artigo-relacionado {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    color: var(--corTexto);
    font-size: .8rem;
    font-weight: 400;
    font-style: italic;
    text-decoration: none;
    transition: .3s ease;

}








/* =====================================================
   IMAGENS DENTRO DO CONTEÚDO
===================================================== */

.conteudo-artigo img {
    width: 85%;
    max-width: 1000px;
    height: auto;

    display: block;
    margin: 10px auto ;

    object-fit: contain;

    border-radius: 8px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.15);
}


/* =====================================================
   VÍDEOS DO QUILL / YOUTUBE
===================================================== */

.conteudo-artigo iframe.ql-video {
    width: 85% !important;
    max-width: 1000px !important;

    aspect-ratio: 16 / 9 !important;
    height: auto !important;

    display: block !important;
    margin: 10px auto !important;
    padding: 0 !important;

    border: 2px solid #F36D53 !important;
    border-radius: 15px !important;

    background: #000;

    overflow: hidden;
}
