* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: Arial, Helvetica, sans-serif;
}

.cabecalho {
    background-color: #ff4b2b;
    background-image: url(../assets/background.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;

    h1 {
        color: #ffffff;
        text-align: center;
        padding: 0 1rem;
    }
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;

    input {
        border: none;
        border-radius: 0.5rem;
        padding: 0.5rem;
        width: 15rem;
    }

    button {
        border: none;
        padding: 0.5rem;
        border-radius: 1rem;
        transition: 0.5s;
    }

    button:hover {
        cursor: pointer;
        background-color: #0d0301;
        color: #ffffff;
    }
}

.cards {
    display: flex;
    gap: 10rem;
    justify-content: center;
    margin: 2rem;
    flex-wrap: wrap;
}

.card {
    min-height: 30rem;
    width: 20rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    text-align: center;
}

.img-card img {
    height: 10rem;
    width: 10rem;;
}

.artigos {
    gap: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5rem;
}

.artigo {
    display: flex;
    flex-direction: row;
    width: 90%;
    max-width: 1200px;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.artigos > div {
    height: auto;
    width: 90%;
    display: flex;
}

.img-artigos {
    height: auto;
    width: 50%;
    max-width: 450px;
    margin: 1rem;
    text-align: center;
    border-radius: 10px;
    object-fit: cover;
}

.titulo-paragrafo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    text-align: left;

    h2 {
        text-align: center;
    }

    p {
        text-align: justify;
    }

    button {
        width: 15rem;
        align-self: center;
        background-color: #ff4b2b;
        font-weight: bold;
        color:#ffffff;
        padding: 0.5rem;
        margin-top: 2rem;
        border: none;
        border-radius: 25px;
        transition: 0.5s;
    }

    button:hover {
        cursor: pointer;
        background-color: #0d0301;
    }
}

footer {
    background-color: #1d1a19;
    height: auto;
    color: #ffffff;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 2rem;
    gap: 2rem;

    div {
        text-align: left;
    }

    div input {
        width: 100%;
        max-width: 12rem;
        padding: 0.3rem;
        border: none;
        margin-bottom: 1rem;
    }

    button {
        border: none;
        background-color: #ff4b2b;
        color: inherit;
        padding: 0.3rem;
        transition: 0.5s;
    }

    button:hover {
        cursor: pointer;
        background-color: #ffffff;
        color: #0d0301;
    }
}

@media (max-width: 1024px) {
    .cards {
        gap: 3rem;
        margin: 2rem 1rem;
    }

    footer {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cabecalho {
        height: 25rem;
        
        h1 {
            font-size: 1.5rem;
        }
    }
    .cards {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .card {
        width: 90%;
        max-width: 400px;
        margin-bottom: 2rem;
    }

    .artigos {
        padding: 2rem 1rem;
        gap: 3rem;
    }

    .artigo {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .artigo:nth-child(2) {
        flex-direction: column;
    }

    .img-artigos, .titulo-paragrafo {
        width: 90%;
        max-width: 500px;
        margin: 0 auto;
    }

    .img-artigos {
        order: -1;
    }

    .titulo-paragrafo {
        text-align: center;

        p {
            text-align: center;
        }
    }

    footer {
        grid-template-columns: 1fr;
        text-align: center;

        div {
            text-align: center;
        }

        div input {
            max-width: 80%;
        }

        div h1 {
            margin-bottom: 0.5rem;
        }

        div br {
            display: none;
        }
    }
}

@media (max-width: 480px) {
    .cabecalho h1 {
        font-size: 1.2rem;
    }

    .search-bar input {
        width: 10rem;
    }
}  