:root {
    --bg-header: #07417a;
    --bg-body: #ffffff;
    --bg-article: #dbe7f6;
    --text-light: #e4eaf0;
    --text-dark: #000000;

}

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

p {
    overflow-y: auto;
    overflow-x: auto;
}

body {
    background-color: var(--bg-body);
    font-family: Arial, Helvetica, sans-serif;
}

header {
    background-color: var(--bg-header);
    padding: 15px 60px;
    display: grid;
    grid-template-columns: 1fr 3fr;
    color: var(--text-light);
    justify-items: center;
    align-items: center;

}

header>img {
    justify-self: left;
}

header>ul {
    justify-self: right;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;

    gap: 10px;
}


header>ul>li>a {
    color: inherit;
    text-decoration: none;
}

header>ul>li>a:hover {
    color: purple;
}


main>img {
    width: 100%;
    height: 35vh;
}

main>div {
    width: 65vw;
    margin: 10px auto;
}

main>div>section:first-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(20vh, auto);
    gap: 15px;
    align-items: center;
    justify-items: center;
    margin-bottom: 15px;
}

main>div>section:first-child>article {
    height: 100%;
    background-color: var(--bg-article);
    color: var(--text-dark);
    padding: 30px;
}

main>div>section:first-child>article>h2 {
    font-size: 1.7em;
}

main>div>section>article>button {
    border-radius: 4px;
    margin-top: 15px;
    padding: 5px 45px;
    color: var(--text-light);
    background-color: var(--bg-header);
    font-size: 1em;
    border: 0px;

}

main>div>section:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: minmax(30vh, auto);
    gap: 15px;
    align-items: center;
    justify-items: center;
    margin-bottom: 40px;
}

main>div>section:last-child>article {
    height: 100%;
    background-color: var(--bg-article);
    color: var(--text-dark);
    padding: 50px 40px;
}

main>div>section:last-child>article>img {
    width: 100%;
    height: 20vh;
    border-radius: 10px;
}

main>div>section:last-child>article>p {
    text-align: justify;
}

main>div>section>article>h2,
main>div>section>article>p {
    margin: 15px 0;
}




footer {
    background-color: var(--bg-header);
}

footer>p {
    color: var(--text-light);
    padding: 5vh;
    align-self: center;
    justify-self: center;
}

@media (width < 769px) {
    :root {
        --bg-article2: #b3d4fb;
    }

    header {
        background-color: var(--bg-header);
        padding: 15px;
        display: grid;

        grid-template-columns: 1fr;
        color: var(--text-light);
        justify-items: center;
        align-items: center;

    }

    header>img {
        display: none;
    }

    header>ul {
        justify-self: center;
        list-style: none;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;

        gap: 2px;
    }

    header>ul>li {
        text-align: center;
    }

    main>img {
        width: 100%;
        height: 10vh;
    }

    main>div {
        width: 100vw;
        margin: 0;
    }

    main>div>section:first-child {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0px;
        align-items: center;
        justify-items: center;
        margin-bottom: 15px;
    }

    main>div>section:first-child>article {
        height: 100%;
        background-color: var(--bg-article);
        color: var(--text-dark);
        padding: 15px;
    }

    main>div>section:first-child>article:first-child {
        border-bottom: 1px solid var(--bg-header);
    }



    main>div>section>article>button {
        border-radius: 4px;
        margin-top: 15px;
        padding: 5px 45px;
        color: var(--text-light);
        background-color: var(--bg-header);
        font-size: 1em;
        border: 0px;
        display: block;
        justify-self: center;
    }

    main>div>section:last-child {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0px;
        align-items: center;
        justify-items: center;
        margin-bottom: 0px;
    }

    main>div>section:last-child>article {
        height: 100%;
        background-color: var(--bg-article);
        color: var(--text-dark);
        padding: 15px;
        border-bottom: 2px solid var(--text-dark);
    }

    main>div>section:last-child>article:nth-child(odd) {
        background-color: var(--bg-article2);
    }

    main>div>section:last-child>article:last-child {
        border-bottom: 0px;
    }
}