@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');

/*Overlay colour: #8fdde7 opacity: 0.7*/

body {
    background-color: #ebf1fc;
    padding: 0px;
    font-family: "Source Serif 4", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
}

a {
    text-decoration: none;
}

h1,h2,h3,h4,h5 {
    font-family: "Noto Serif", serif;
    font-optical-sizing: auto;
    font-weight:400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

h1, h2 {
    font-size: 50px;
    line-height: 1.2;
}

h3 {
    font-size: 22px;
    font-weight: 500;
}

h4 {
    font-size: 22px;
    font-weight: 600;
}

h5 {
    font-size: 20px;
    font-weight: 800;
}

a {
    background-color: #b6e5d8;
    color: #29735f;
    padding: 14px 24px;
    border-radius: 48px;
    border: none;
    cursor: pointer;
}

a:hover {
    background-color: #dcf2ec;
}

main {
    background-color: #f4fcfd;
    border-radius: 8px;
    max-width: 2400px;
    margin: auto;
    overflow: hidden;
}

header {
    padding: 24px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: -20px;
}

header > * {
    margin-top: 24px;
}

header .logo{
    font-family: "Source Serif 4", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 28px;
    min-width: 240px;
    background-image: url(assets/logo.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 288px;
    height: 80px;
    background-color: unset;
    padding: 0;
    border-radius: 0;
    border: none;
    cursor: pointer;
    display: block;
}

header ul {
    display: flex;
    list-style: none;
    background-color: #b6e5d8;
    color: #000;
    padding: 12px 16px;
    border: none;
    border-radius: 48px;
    justify-content: space-between;
    width: 350px;
    margin: 0;
}

header ul li a {
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 48px;
}

header ul li a:hover {
    background-color: #dcf2ec;
}

section#hero {    
    background-image: url(assets/1.png);
    position: relative;
    z-index: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

section#hero div.flex-container {
    width: 100%;
    padding: 80px 44px;
    display: flex;
    position: relative;
    z-index: 2;
}

section#hero div.section-overlay {
    position: absolute;
    background-color: #8fdde7;
    opacity: 0.7;
    width: 100%;
    height: 100%;
    z-index: 1;
}

section#hero div {
    width: 100%;
}

section#hero div.left p {
    width: 80%;
    max-width: 700px;
}

section#hero div.right {
    background-image: url(assets/2.png);
    margin-left: 24px;
    height: 600px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 40px;
    display: none;
}

section#hero h3 {
    padding: 56px 0;
}

section#why {
    padding: 80px 40px;
}

section#why h3 {
    padding: 56px 0;
}

section#why div.flex-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: -40px;
}

section#why div.flex-container > div {
    width: 25%;
    padding: 0 20px;
    min-width: 184px;
    flex-grow: 1;
    margin-top: 40px;
}

section#why h4 {
    margin: 30px 0;
    padding-top: 30px;
    border-top: 1px solid #d2d2d2;
}

section#why div.icon {
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

section#why div.icon.a {
    background-image: url(assets/3.png);
}

section#why div.icon.b {
    background-image: url(assets/4.png);
}

section#why div.icon.c {
    background-image: url(assets/5.png);
}

section#why div.icon.d {
    background-image: url(assets/6.png);
}

section#featured {
    padding: 80px 14px;
}

section#featured div.flex-container {
    display: flex;
    background-color: #8fdde7;
    border-radius: 40px;
    padding: 20px 24px;
    flex-direction: column-reverse;
}

section#featured div.flex-container > div {
    width: 100%;
}

section#featured div.left {
    padding: 44px 4px;
}

section#featured div.left h5 {
    margin-bottom: 40px;
    color: #4a8188;
}

section#featured div.left p {
    padding: 56px 0;
}

section#featured div.right {
    background-image: url(assets/9.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 20px;
    height: 600px;
}

section#about {
    padding: 80px 40px;
    max-width: 1800px;
    margin: auto;
}

section#about h2 {
    padding-bottom: 88px;
}

section#about div.flex-container{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: -80px;
}

section#about div.flex-container > div{
    width: 50%;
    padding: 0 20px;
    min-width: 300px;
    flex-grow: 1;
    margin-top: 80px;
}

section#about div.image {
    height: 400px;
    border-radius: 40px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

section#about div.image.a{

    background-image: url(assets/7.png);
}

section#about div.image.b{

    background-image: url(assets/8.png);
}

section#about div.image p.title {
    padding: 16px 20px;
    margin: 0 0 20px 0;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
}

section#about div.image p.title.a {
    background-color: #d2f0f2;
}

section#about div.image p.title.b {
    background-color: #8fdde7;
}

section#about div p {
    margin: 24px 0 56px 0;
    font-size: 20px;
    font-weight: 500;
}

section#contact {
    background-color: #d2f0f2;
    padding: 88px 40px
}

section#contact h2 {
    text-align: center;
    margin-bottom: 88px;
}

footer {
    padding: 88px 48px; 
}

section#register {
    padding: 80px 14px;
}

section#register div.flex-container {
    display: flex;
    background-color: #8fdde7;
    border-radius: 40px;
    padding: 20px 24px;
    flex-direction: column;
}

section#register div.flex-container > div {
    width: 100%;
}

section#register div.left {
    padding: 44px 4px;
}

section#register div.left h5 {
    margin-bottom: 40px;
    color: #4a8188;
}

section#register div.left h4 {
    margin-bottom: 40px;
}

section#register div.left p {
    padding: 56px 0;
}

section#register div.left ul li {
    padding: 10px 0 10px 10px;
}

section#register div.right {
    border-radius: 20px;
    background-color: #fff;
    overflow: hidden;
    padding: 4px;
}

@media only screen and (min-width:1000px) {
    body {
        padding: 32px;
    }

    h1, h2 {
        font-size: 72px;
    }

    h3 {
        font-size: 26px;
    }
    
    h4 {
        font-size: 26px;
    }

    header {
        padding: 24px 48px;
    }

    header ul {
        width: 400px;
    }

    section#hero div {
        width: 50%;
    }

    section#hero div.right {
        display: block;
    }

    section#why {
        padding: 80px 184px;
    }

    section#featured {
        padding: 80px 44px;
    }

    section#featured div.flex-container {
        flex-direction: row;
    }

    section#featured div.flex-container > div {
        width: 50%;
    }

    section#featured div.left {
        padding: 44px;
    }

    section#featured div.right {
        padding-left: 24px;
        height: 800px;
    }

    section#about {
        padding: 80px 184px;
    }

    section#contact {
        padding: 88px 180px
    }

    section#register {
        padding: 0px 44px;
    }

    section#register div.flex-container {
        flex-direction: row;
    }

    section#register div.flex-container > div {
        width: 50%;
    }

    section#register div.left {
        padding: 44px;
    }

    section#register div.right {
        padding: 20px;
    }
}