:root{
    --soft-orange: hsl(35, 77%, 62%);
    --soft-red: hsl(5, 85%, 63%);
    --off-white: hsl(36, 100%, 99%);
    --grayish-blue: hsl(233, 8%, 79%);
    --dark-grayish-blue: hsl(236, 13%, 42%);
    --very-dark-blue: hsl(240, 100%, 5%);
}

*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body{
    height: 100vh;
    background-color: var(--off-white);
    position: relative; /* Necessário para o overlay do menu */
}

header{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin: 10px auto;
    font-size: 20px;
    width: 90%;
}

/* Botões do Menu Mobile - Escondidos no Desktop */
.menu-toggle, .menu-close {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Para ficar acima de outros elementos */
}

/* Overlay para escurecer o fundo quando o menu estiver aberto */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 26, 0.5);
    z-index: 998;
}

header .menu{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
header .menu a{
    color: black;
    text-decoration: none;
    transition: 0.4s;
}
header .menu a:hover{
    color: var(--soft-red);
}

.main{
    display: grid;
    grid-template-columns: 74% 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
    margin: auto;
    width: 79vw;
    height: 80vh;
}

.content-container{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    margin: auto;
    width: 90%;
}

.content-container-img img{
    width: 100%;
}

.article-container{
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.article-container .title-bright-future{
    font-size: 60px;
}

.article-container .container-paragrafo{
    display: flex;
    flex-direction: column;
    gap: 10px;;
}

.container-paragrafo .btn_read-more{
    text-decoration: none;
    color: black;
    padding: 10px;
    background-color: var(--soft-red);
    width: 140px;
    transition: 0.4s;
}
.container-paragrafo .btn_read-more:hover{
    background-color: var(--dark-grayish-blue);
    color: white;
}


.content-container-2{
    background-color: var(--very-dark-blue);
    width: 100%;
    padding: 10px;
    border-radius: 5px;
}

.content-container-2 .title-new{
    color: var(--soft-orange);
    font-size: 36px;
}

.content-container-2 .content-item{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
}

.content-container-2 .content-item h2{
    color: white;
    transition: 0.4s;
}

.content-container-2 .content-item h2:hover{
    color: var(--soft-orange);
}

.content-container-2 .content-item p{
    color: white;
}

.aside{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px;
    grid-row-start: 2;
    grid-row-end:-1;
    grid-column-start:1;
    grid-column-end: -1;
}

.aside div{
    display: flex;
    flex-direction: row;
    gap: 10px;
}


.aside div .topic{
    font-size: 40px;
    color: var(--soft-red);
}

.aside div .img-aside img{
    width: 100%;
}

.aside div .content-aside{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    text-align:start;
}

/* --- Media Query para Responsividade Mobile --- */
@media (max-width: 820px) {
    body.menu-open {
        overflow: hidden; /* Impede o scroll da página quando o menu está aberto */
    }

    header {
        width: 95%;
    }

    .menu-toggle {
        display: block; /* Mostra o botão hambúrguer */
    }

    .overlay.active {
        display: block; /* Mostra o overlay */
    }

    header .menu {
        position: fixed; /* Menu fica fixo na tela */
        top: 0;
        right: -100%; /* Começa fora da tela */
        width: 70%;
        height: 100vh;
        background-color: var(--off-white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 2rem;
        padding-top: 8rem;
        gap: 2rem;
        z-index: 999;
        transition: right 0.3s ease-in-out;
    }

    header .menu.active {
        right: 0; /* Traz o menu para a tela */
    }

    .menu .menu-close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .main {
        grid-template-columns: 1fr; /* Uma única coluna */
        grid-template-rows: auto;
        width: 95%;
        height: auto; /* Altura automática */
        margin-bottom: 4rem;
    }

    .article-container {
        flex-direction: column; /* Empilha o título e o texto */
    }

    .article-container .title-bright-future {
        font-size: 42px; /* Reduz o tamanho da fonte */
    }

    .aside {
        flex-direction: column; /* Empilha os artigos do rodapé */
        grid-row: auto;
        grid-column: auto;
    }
}