* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    max-width: 100vw; 
    overflow-x: hidden;
}
.body{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.manchete {
    position: relative;
    width: 100%;
    height: auto;
    background-color: #445857;
    padding-top: 20px;   /* Espaço acima */
    padding-bottom: 20px; /* Espaço abaixo */
    font-family: 'Libre Baskerville';
    box-sizing: border-box;
    clip-path: inset(40px 0 40px 0); /* recorta 40px em cima e embaixo */
}

.manchete .bloco_manchete {
    position: relative;
    width: 800px;
    max-width: 95vw;
    margin: 0 auto;
    background-color: #7EA7A4;
    border-radius: 22px;
    padding: 40px;
    box-sizing: border-box;
}



.bloco_manchete .noticia_principal {
    position: relative; /* Necessário para que o hover na div afete os filhos */
    cursor: pointer;
}

.bloco_manchete .noticia_principal h1{
    position: relative; /* Necessário para o pseudoelemento ser posicionado corretamente */
    padding: 10px 0;
    font-weight: 800;
    font-size: 40px;
    margin-left: 20px;
    color: white;
    display: inline-block; /* Faz o tamanho do elemento ser ajustado ao conteúdo */
    word-wrap: break-word; /* Quebra as palavras e garante que o traço se ajuste ao conteúdo */
}
.bloco_manchete .noticia_principal h3 {
    position: relative; /* Necessário para o pseudoelemento ser posicionado corretamente */
    padding: 10px 0;
    font-weight: 600;
    font-size: 20px;
    margin-left: 20px;
    color: white;
    display: inline-block; /* Faz o tamanho do elemento ser ajustado ao conteúdo */
    word-wrap: break-word; /* Quebra as palavras e garante que o traço se ajuste ao conteúdo */
}

.bloco_manchete .noticia_principal h1::after, .bloco_manchete .noticia_principal h3::after {
    content: ''; /* Necessário para criar o traço */
    position: absolute;
    left: 0;
    bottom: -5px; /* Ajusta a posição do traço logo abaixo do texto */
    width: 100%; /* O traço sempre terá o tamanho do texto */
    height: 3px; /* Espessura do traço */
    background-color: white; /* Cor do traço */
    transform: scaleX(0); /* Começa invisível */
    transform-origin: bottom right; /* A animação será da direita para a esquerda */
    transition: transform 0.3s ease; /* Animação suave */
}

.bloco_manchete .noticia_principal:hover h1::after {
    transform: scaleX(1); /* Aumenta a largura para 100% no hover */
    transform-origin: bottom left; /* Faz o traço crescer da esquerda para a direita */
    width: 100%; /* Agora o traço terá o tamanho do texto */
}

.bloco_manchete .noticia_principal:hover h3::after {
    transform: scaleX(1); /* Aumenta a largura para 100% no hover */
    transform-origin: bottom left; /* Faz o traço crescer da esquerda para a direita */
    transition-delay: 0.2s; /* Adiciona atraso para o h3 */
    width: 100%; /* Agora o traço terá o tamanho do texto */
}
.sub-materias{
    display: flex;
    flex-direction: row;
    font-weight: 400;
    font-size: 20px;
    color:white;
    margin-top:15px;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
}

.sub-materias .line{
    order: 1;
    border: 2px solid #00756A;
    height: 25px;
    width: 0;
    border-radius: 6px;
    margin: 0;
    margin-left: 20px;
}

.sub-materias h4 {
    order: 2;
    font-weight: 400;
    font-size: 20px;
    color: white;
    position: relative;
    text-align: left;
    margin: 0;
    margin-left: 20px;
}

.sub-materias h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color:white;
    transform: scaleX(0); 
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.sub-materias h4:hover::after {
    transform: scaleX(1); 
    transform-origin: bottom left;
}

.materias {
    order:2;
    position:relative;
    align-items: start;
    order: 6;
    margin-top: 25px; /* Ajuste esse valor conforme necessário */
    width: 800px;
}
.materias .titulo_materia{
    display: flex;
}
.materias a{
    font-family: "Inter";
    font-size: 30px;
    color: black;
    width: 95.5%;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

.materias .line_titulo{
    border: 2px solid #00756A;
    height: 35px;
    width: 0;
    border-radius: 6px;
    margin-left: 10px;
}

.conteudo_materia {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    max-height: 350px;
    padding: 20px;
    border-bottom: 2px solid #C0C0C0;
}
.conteudo_materia .bloco_materia{
    width: 25%;
    height: 95%;
    font-size: 18px;
    text-align: start;
        padding: 5px;
}

.conteudo_materia .bloco_materia img {
    width: 180px;
    height: 130px;           /* Define altura fixa */
    border-radius: 22px;
    margin: 0;               /* Remove centralização automática */
    cursor: pointer;
    object-fit: cover;       /* Garante que a imagem ocupe bem o espaço */
}
.conteudo_materia .bloco_materia h4{
    font-family: "Inter";
    text-align: start;
    margin-top: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}
.conteudo_materia .bloco_materia a{
    font-family: "Inter";
    text-align: start;
    font-size: 15px;
    color:#575757;
    cursor: pointer;
}
.conteudo_materia .bloco_materia h4:hover{
    text-decoration: underline;
}
.conteudo_materia .bloco_materia a:hover{
    text-decoration: underline;
}
@media screen and (max-width:800px){
    
    .manchete{
        display: inline-block;
        position: relative;
        width:100%;
        height: auto;
        background-color: #445857;
        padding: 40px;
        font-family: 'Libre Baskerville';
        margin: 0 auto;
    }

    .manchete .bloco_manchete{
        display: block;
        position: relative;
        width:100%;
        border-radius: 0px;
        background-color: #7EA7A4;
        text-align: start;
        padding:10px;
    }
    
    .bloco_manchete .noticia_principal h1{
        position: relative; /* Necessário para o pseudoelemento ser posicionado corretamente */
        padding: 10px;
        font-weight: 800;
        font-size: 32px;
        margin-top: 15px;
        margin-right: 10px;
        color: white;
        display: inline-block; /* Faz o tamanho do elemento ser ajustado ao conteúdo */
        word-wrap: break-word; /* Quebra as palavras e garante que o traço se ajuste ao conteúdo */
    }
    .bloco_manchete .noticia_principal h3 {
        position: relative; /* Necessário para o pseudoelemento ser posicionado corretamente */
        padding: 10px;
        font-weight: 600;
        font-size: 21px;
        margin-right: 10px;
        color: white;
        display: inline-block; /* Faz o tamanho do elemento ser ajustado ao conteúdo */
        word-wrap: break-word; /* Quebra as palavras e garante que o traço se ajuste ao conteúdo */
    }

    .sub-materias {
        display: flex;
        align-items: center; /* Alinha os itens verticalmente */
        font-weight: 400;
        font-size: 20px;
        color: white;
        margin-top: 15px;
        cursor: pointer;
        padding: 5px;
    }
    
    .sub-materias .line {
        border: 2px solid #00756A;
        height: 20px;
        width: 0px; /* Defina uma largura para que fique visível */
        border-radius: 6px;
        margin-right: 10px; /* Adiciona um espaço entre a linha e o h4 */
        margin-left: 20px;
    }
    
    .sub-materias h4 {
        font-weight: 400;
        font-size: 20px;
        color: white;
        position: relative;
        margin: 0; /* Remove margens que podem estar desalinhando */
    }

    .materias {
        display: flex;
        position: relative;
        flex-direction: column;
        flex-wrap: nowrap;
        order:2;
        align-items: start;
        order: 6;
        margin-top: 20px; /* Ajuste esse valor conforme necessário */
        width: 100%;
        height: 780px;
        min-height: 200px;
    }
    .materias .titulo_materia{
        display: flex;
        margin-left: 20px;
    }

    .materias a{
        font-family: "Inter";
        font-size: 25px;
        color: black;
        width: 95.5%;
        cursor: pointer;
        font-weight: 600;
        text-decoration: none;
        margin-left: 5px;
    }
   
    .materias .line_titulo{
        border: 2px solid #00756A;
        height: 30px;
        width: 0;
        border-radius: 6px;
        margin-left: 10px;
    }
    
.conteudo_materia {
    display: flex;
    width: 90%;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0px;
    padding: 20px;
    border: none;
    box-sizing: border-box;
}

.conteudo_materia .bloco_materia {
    display: flex;
    flex-direction: row;
    padding: 10px;
    width: 100%;
    height: auto;
    text-align: start;
    border-bottom: 2px solid #C0C0C0;
    margin: 0 0 10px 0;
    box-sizing: border-box; /* Importante */
}

.conteudo_materia .bloco_materia img {
    width: 200px;
    height: 150px;
    border-radius: 22px;
    margin: 0;
    cursor: pointer;
    object-fit: cover;
    flex-shrink: 0; /* Evita encolher a imagem */
}

.bloco_materia .texto_bloco_materia {
    margin: 0;
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bloco_materia .texto_bloco_materia h4 {
    font-family: "Inter";
    text-align: start;
    cursor: pointer;
    margin:0;
}

.bloco_materia .texto_bloco_materia a {
    font-family: "Inter";
    text-align: start;
    margin-top: 25px;
    color: #575757;
    cursor: pointer;
}
}

@media screen and (max-width:600px){
    
    .manchete{
        display: inline-block;
        position: relative;
        width:100%;
        height: auto;
        background-color: #445857;
        top:0;
        font-family: 'Libre Baskerville';
        margin: 0 auto;
    }

    .manchete .bloco_manchete{
        display: block;
        position: relative;
        width:100%;
        border-radius: 0px;
        background-color: #7EA7A4;
        text-align: start;
        padding:10px;
    }
    
    .bloco_manchete .noticia_principal h1{
        position: relative; /* Necessário para o pseudoelemento ser posicionado corretamente */
        padding: 10px;
        font-weight: 800;
        font-size: 28px;
        margin-top: 5px;
        margin-right: 5px;
        color: white;
        display: inline-block; /* Faz o tamanho do elemento ser ajustado ao conteúdo */
        word-wrap: break-word; /* Quebra as palavras e garante que o traço se ajuste ao conteúdo */
    }
    .bloco_manchete .noticia_principal h3 {
        position: relative; /* Necessário para o pseudoelemento ser posicionado corretamente */
        padding: 5px;
        font-weight: 600;
        font-size: 18px;
        margin-right: 10px;
        color: white;
        display: inline-block; /* Faz o tamanho do elemento ser ajustado ao conteúdo */
        word-wrap: break-word; /* Quebra as palavras e garante que o traço se ajuste ao conteúdo */
    }

    .bloco_manchete .sub-materias h4{
        display: flex;
        align-items: center; /* Alinha os itens verticalmente */
        font-weight: 600;
        font-size: 15px;
        color: white;
        margin-top: 2px;
        cursor: pointer;
    }
    
    .sub-materias .line {
        border: 2px solid #00756A;
        height: 25px;
        width: 0px; /* Defina uma largura para que fique visível */
        border-radius: 6px;
        margin-right: 10px; /* Adiciona um espaço entre a linha e o h4 */
        margin-left: 20px;
    }
    
    .materias {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;   /* espaço mínimo */
    height: 650px;          /* ajusta conforme conteúdo */
    margin-bottom: 20px;   /* garante separação de outros blocos */
    position: relative;
    z-index: 1;
    overflow: visible;
    }

    .materias .titulo_materia{
        display: flex;
        margin-left: 20px;
    }


    .materias .line_titulo{
        border: 2px solid #00756A;
        height: 30px;
        width: 0;
        border-radius: 6px;
        margin-left: 10px;
    }
    
    
.conteudo_materia {
    display: flex;
    width: 90%;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0px;
    padding: 20px;
    border:none;
}

.conteudo_materia .bloco_materia {
    display: flex;
    flex-direction: row;
    padding: 10px;
    width: 100%;
    text-align: start;
    border-bottom: 2px solid #C0C0C0;
    margin: 0;
    margin-bottom: 10px;
}

.conteudo_materia .bloco_materia img {
    width: 180px;
    height: 120px;           /* Define altura fixa */
    border-radius: 22px;
    margin: 0;               /* Remove centralização automática */
    cursor: pointer;
    object-fit: cover;       /* Garante que a imagem ocupe bem o espaço */
}

.bloco_materia .texto_bloco_materia {
    padding-left: 0;
    margin: 0;
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: start;
}

.bloco_materia .texto_bloco_materia h4 {
    font-family: "Inter";
    text-align: start;
    cursor: pointer;
    margin:0;
    font-size: 12px;
}

.bloco_materia .texto_bloco_materia a {
    font-family: "Inter";
    text-align: start;
    margin-top: 18px;
    color: #575757;
    font-size: 10px;
    cursor: pointer;
} 
}