@charset "UTF-8";

/*Typical Devices Breakpoints
-----------------------------
Pequenas telas: até 600px
Celular: 600px até 768px
Tablet: 769px até 992px
desktop: 993 até 1200px
Grandes telas: 1201px e acima
*/

.anuncio-google {
    width: 100%;
    height: min-content;   
}
#carregarMaisArtigos {
    display: none;
}

#carregarMaisArtigosLabel {
    width: fit-content;
    font-size: 20px;
    color: white;
    background-color: #25BD34;
    margin: auto;
    padding: 20px;
    display: block;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: #ffffff00;
    box-shadow: 5px 15px 18px #000000b7;
    border-radius: 15px;
}

#carregandoArtigos {
    width: fit-content;
    font-size: 20px;
    color: gray;
    margin: auto;
    padding: 0 0 20px 0;
    display: block;
}

#artigos {
    padding-top: 180px;
    width: 80%;
    margin: auto;
}

#tituloArtigos {
    display: flex;
    gap: 10px;
    width: fit-content;
    color: #484848;
    background-color: #fff;
    padding: 12px 15px;
    align-items: center;
    font-weight: normal;
    font-size: 18px;
}

#artigoMaisRecente .artigo, #outrasArtigos .artigo {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: #ffffff00;
}

#artigoMaisRecente {
    width: 100%;
    height: fit-content;
    display: block;
}

#artigoMaisRecente > .artigo {
    margin: auto;
    height: fit-content;
    background-color: white;
    overflow: hidden;
    padding: 10px;
}

#artigoMaisRecente img {
    width: 100%;
    height: auto;
}

#artigoMaisRecente h1 {
    font-size: 16px;
    padding: 10px 0;
    text-align: justify;
    color: #2D2D2D;
}

#artigoMaisRecente p {
    font-size: 14px;
    text-align: justify;
    color: #2D2D2D;
}

#artigoMaisRecente .lerMais {
    font-size: 18px;
    color: #00A8FC;
    margin: 16px 0 6px 0;
}

#outrosArtigos {
    padding: 40px 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#outrosArtigos > .artigo {
    height: min-content;
    background-color: white;
    margin: auto;
    padding: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

#outrosArtigos img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    float: left;
}

#outrosArtigos h1 {
    font-size: 16px;
    padding: 10px 0;
    text-align: justify;
    color: #2D2D2D;
}

#outrosArtigos p {
    font-size: 14px;
    max-height: 3em;
    overflow: hidden;
    position: relative;
    text-align: justify;
    color: #2D2D2D;
}

#outrosArtigos .lerMais {
    font-size: 18px;
    color: #00A8FC;
    margin: 16px 0 6px 0;
}

@media screen and (max-width: 599px) {
    #outrosArtigos p::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 20px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, white 100%);
    }
}


@media screen and (min-width: 600px) and (max-width: 768px) {
    #artigos {
        width: 499px;
    }

    #artigoMaisRecente > .artigo {
        width: 100%;
    }
    
    #outrosArtigos > .artigo {
        width: 100%;
    }

    #outrosArtigos img {
        width: 200px;
        height: auto;
        margin-right: 10px;
        margin-bottom: 0px;
        float: left;
    }

    #outrosArtigos p {
        display: flex;
        max-height: 4em;
    }

    #outrosArtigos p::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 40px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, white 100%);
    }

    #outrosArtigos .lerMais {
        font-size: 18px;
        color: #00A8FC;
        margin: 0px 0 4px 0;
    }
}

@media screen and (min-width: 769px) and (max-width: 992px) {
    #artigos {
        width: 600px;
    }

    #artigoMaisRecente {
        width: 100%;
    }
    
    #artigoMaisRecente > .artigo {
        width: 100%;
    }
    
    #artigoMaisRecente img {
        width: 50%;
        height: auto;
        float: left;
        margin-right: 10px;
        margin-bottom: 0;
    }

    #artigoMaisRecente h1 {
        font-size: 16px;
    }

    #artigoMaisRecente p {
        font-size: 14px;
    }

    #artigoMaisRecente .lerMais {
        margin: 6px 0 4px 0;
    }
    
    #outrosArtigos {
        width: 100%;
        padding: 40px 0 20px 0;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        margin: auto;
    }
    
    #outrosArtigos > .artigo {
        width: 193.34px;
        height: fit-content;
        background-color: white;
        margin: 0;
    }
    
    #outrosArtigos img {
        width: 100%;
        height: auto;
        float: unset;
        margin-bottom: 0;
    }
    
    #outrosArtigos h1 {
        font-size: 16px;
        height: 33px;
        max-height: 33px;
        overflow: hidden;
        padding: 0;
        margin: 10px 0;
        text-overflow: ellipsis;
        position: relative;
    }
    
    #outrosArtigos p {
        font-size: 14px;
        height: max-content;
        max-height: 6em;
        position: relative;
        text-overflow: ellipsis;
    }

    #outrosArtigos p::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 20px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, white 100%);
    }
}

@media screen and (min-width: 993px) {
    #carregarMaisArtigosLabel {
        font-size: 1.5vw;
        padding: 1vw;
        box-shadow: 0.14vw 0.14vw 0.14vw #000000b7;
        border-radius: 0.8vw;
    }

    #artigos {
        padding-top: 15vw;
        padding-bottom: 5vw;
        width: 70vw;
        margin: auto;
    }

    #tituloArtigos {
        gap: 1vw;
        padding: 0.81vw 1.3vw;
        font-size: 1.5vw;
    }
    
    #artigoMaisRecente > .artigo {
        width: 100%;
        padding: 1vw;
    }

    #artigoMaisRecente img {
        width: 37vw;
        height: auto;
        float: left;
        margin-right: 1vw;
        margin-bottom: 0;
    }
    
    #artigoMaisRecente h1 {
        font-size: 2.2vw;
        padding: 1vw 0;
        display: -webkit-box; /* Para navegadores baseados em WebKit */
        display: -ms-flexbox; /* Para navegadores baseados em MS */
        display: -webkit-box; /* Para navegadores modernos */
        -webkit-line-clamp: 2; /* Número de linhas desejado */
        line-clamp: 2; /* Propriedade padrão para compatibilidade */
        -webkit-box-orient: vertical; /* Define a orientação das caixas filhas */
        overflow: hidden; /* Esconde qualquer texto que não caiba nas 2 linhas */
        text-overflow: ellipsis; /* Adiciona os três pontos no final do texto */
    }

    #artigoMaisRecente .tituloArtigo {
        display: block;
        /* Define a altura máxima de duas linhas multiplicando a altura da linha pelo número de linhas desejadas */
        max-height: calc(3.2vw * 2); 
        overflow: hidden;
    }
    
    #artigoMaisRecente p {
        font-size: 1.3vw;
    }

    #artigoMaisRecente .lerMais {
        font-size: 1.3vw;
    }
    
    #outrosArtigos {
        padding: 2vw 0 2vw 0;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(22.667vw, 1fr));
        gap: 1vw;
        width: 70vw;
        margin: auto;
    }
    
    #outrosArtigos > .artigo {
        width: 22.667vw;
        margin: 0;
        padding: 0.8vw;
    }
    
    #outrosArtigos img {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 0vw;
        float: unset;
    }
    
    #outrosArtigos h1 {
        font-size: 1.2vw;
        height: 2.7vw;
        margin: 1vw 0;
        padding: 0;
        overflow: hidden;
        position: relative;
    }
    
    #outrosArtigos p {
        font-size: 1.2vw;
        max-height: 8vw;
        position: relative;
    }
    
    #outrosArtigos p::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4vw;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, white 100%);
    }

    #outrosArtigos .lerMais {
        font-size: 1.3vw;
    }
}