body {
    background-color: #f4f4f2;
    font-family: 'Source Sans 3', sans-serif;
    line-height: 1.5;
    color: #323232;
}

.inner-container,
header{
    max-width: 1900px;
    margin: 0 auto;
    padding: 1rem;
}

/* ************************ typography *************** */

h1 {
    font-size: clamp(1.125rem, 2.5vw, 1.875rem);
    text-transform: uppercase;
    border: 2px solid #fff;
    padding: 0.5rem;
    border-radius: 0.2rem;
}

nav li a {
    font-size: clamp(1.125rem, 2vw, 2.25rem);
}

h2 {
    font-size: clamp(2rem, 12vw, 13.25rem);
}

h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.125rem, 3vw, 2.25rem);
}

h4 {
    font-size: clamp(1.3125rem, 4vw, 5rem);
}

p {
    font-size: clamp(1.125rem, 1.75vw, 1.3125rem);
}

header div:nth-of-type(2)>p {
    font-size: clamp(1.5rem, 4.5vw, 3.375rem);
}

h1 a,
nav a,
.call-to-action a {
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
}

h2,
nav li a,
h4,
header div:nth-of-type(2)>p {
    font-family: 'Work Sans', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
}

/* *********************** header ********************** */

header {
    background-image: url('../img/abstract-background-1820.webp');
    background-position: center;
    background-size: cover;
    color: #fff;
    height: calc(100vh - 5rem);
    margin-bottom: 3rem;

}

header {
    color: #fff;
    padding: 1rem;
}

.nav-container svg {
    fill: #323232;
}

header>.nav-container {
    display: flex;
    align-items: center;
    flex-flow: wrap;
    justify-content: space-between;
}

header nav {
    flex: 0 0 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height ease-in-out 1s;
}

.show {
    max-height: 400px;
}

header button {
    width: 3.4375rem;
    padding: 0.5rem;
    background-color: #fff;
    border: none;
}

.nav-links li {
    line-height: 2.5;
    margin-bottom: 0.75rem;
}

.nav-links a {
    display: block;
    text-align: right;
    padding-right: 2rem;
}

.profile-icon {
    fill: #fff;
}

header>div:last-of-type {
    margin-top: 3rem;
}

.right-arrow-white {
    fill: #fff;
}

@media screen and (min-width: 768px) {
    .ham-btn {
        display: none;
    }

    header nav {
        max-height: unset;
        flex: 0 1 auto;
        flex-flow: nowrap;
    }

    .nav-links {
        display: flex;
        gap: 1rem;
    }
}

/* ****************** main **************** */

.inner-container {
    text-align: center;
    padding: 0 1rem;
}

main .inner-container p {
    max-width: 70ch;
    margin: 0 auto;
}

.human-brain-icon {
    fill: #62a7ae;
}

.inner-container div {
    text-align: center;
    margin-bottom: 3rem;
}

.inner-container div svg {
    width: 4.8rem;
    height: 5.8rem;
}

aside {
    background-color: #d2d6a0;
    text-align: center;
}

aside>div:first-of-type svg {
    padding: 3rem 0 0 1.5rem;
}

aside>div:last-of-type {
    padding: 3rem 0 0 1.5rem;
}

aside .call-to-action {
    justify-content: center;
}

aside div .call-to-action a {
    color: #323232;
    text-transform: uppercase;
}

.right-arrow-black {
    fill: #323232;
}

nav li:last-of-type {
    background: url('../img/svg/profile-icon.svg') right/ 32px no-repeat;
    margin-right: 2rem;
}

article,
main>div:first-of-type,
main aside,
main section>div {
    margin-bottom: 3rem;
}

article img {
    margin: 1rem 0;
}

.call-to-action {
    display: flex;
}

.call-to-action svg {
    width: 3rem;
    height: 3rem;
}

input[name="search-bar"] {
    border-radius: 1rem;
    width: 100%;
    background: url('../img/svg/search-icon.svg') 4px 4px / 20px no-repeat;
    padding-left: 2rem;
    color: #745669;
}

.col-group {
    max-width: 113.75rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.col-group img {
    max-width: 22.5rem;
}

.col {
    flex: 1 1 17rem;
}

@media screen and (min-width: 950px) {
    .grid-container {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(8, auto);
        gap: 1rem;
    }

    .inner-container>div {
        grid-column: 1 / -1;
        grid-row: 1 / span 1;
    }

    article:first-of-type {
        grid-column: 1 / span 10;
        grid-row: 2 / span 2;
        display: flex;
    }

    article:first-of-type picture,
    article:last-of-type picture {
        width: 43%;
    }


    article:first-of-type div,
    article:last-of-type div {
        padding: 0.5rem;
        text-align: left;

    }

    article:nth-of-type(2) {
        grid-column: 8 / span 5;
        grid-row: 3 / span 3;
    }

    article:nth-of-type(2) div {
        text-align: left;
    }

    article:last-of-type {
        grid-column: 3 / span 10;
        grid-row: 5 / span 2;
        display: flex;
        align-items: flex-end;
    }

    aside {
        grid-column: 1 / -1;
        grid-row: 7 / span 1;
        display: flex;
        align-items: center;
    }

    aside>div:last-of-type {
        padding: 9rem 0 0 7rem;
        margin: unset;
    }

    section {
        grid-column: 1 / -1;
        grid-row: 8 / span 1;
    }

    .search-course {
        display: flex;
    }

    .search-course div:last-of-type {
        padding-top: 7rem;
        width: 50%;
    }
}

/* ****************** footer **************** */

footer .inner-container {
    background-color: #b793b4;
}

footer .inner-container div {
    margin: unset;
}

footer h4 {
    text-align: center;
    padding: 2rem 0;
}

footer p {
    padding-bottom: 3rem;
}

footer div div {
    text-align: center;
}

@media screen and (min-width: 950px) {

    footer {
        grid-column: 1 / -1;
        grid-row: 10 / span 1;
    }

    footer .inner-container>div {
        display: flex;
        justify-content: space-between;
    }

    footer h4,
    footer p {
        text-align: left;
    }
}