/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
    box-sizing: border-box;
}
/* 2. Remove default margin */
* {
    margin: 0;
}
/* 5. Improve media defaults */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}
/* 6. Inherit fonts for form controls */
input, button, textarea, select {
    font: inherit;
}
/* 7. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}
/* 8. Improve line wrapping */
p {
    text-wrap: pretty;
}

a{
    cursor: pointer;
}

.text-center{
    text-align: center;
}

/*
* Headlines
*/

h2{
    color: #3e5665;
    font-weight: 700;
    font-size: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.bg{
    background-color: #f9f9f9;
    padding: 40px 10px;
}

a{
    text-decoration: none;
    color: #3e5665;
}

a:hover{
    color: #ac8a70;
}

/*
* Start website
*/

body{
    background: white;
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-weight: 400;
    text-transform: none;
    font-size: 17px;
    line-height: 1.5;
}

.container{
    margin: 0 auto;
    max-width: 1120px;
    padding: 0 10px;
}

.logo{
    margin: 50px 0;
    display: block;
    text-align: center;

    img{
        display: inline-block;
        max-width: 35%;
        vertical-align: middle;
        height: auto;
    }
}


/*Navbar*/
.navbar{
    background-color: #ac8a70;

    ul{
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    li a{
        font-size: 20px;
        color: white;
        display: block;
        text-decoration: none;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
        font-weight: 400;
    }
}

.pageThumbnailContainer{
    background-color: #3e5665;
    text-align: center;
}

.thumbnail-gray{
    background: #f9f9f9;
}

.pageThumbnail{
    margin: 0 auto 90px auto;
    display: block;
    height: auto;
    max-width: 1120px;
}


/*hr*/
hr{
    margin: 100px auto 140px auto;
    display: block;
    border: 1px solid #ac8a70;
    max-width: 1120px;
}

/*Slide*/

.slide{
    margin-bottom: 55px;
    display: block;

    h3{
        text-transform: uppercase;
        font-weight: 400;
        font-size: 30px;
        color: #3e5665;
    }

    .bar{
        background: #eee;
        color: white;
        border-radius: 3px;

        .barAnimate{
            background: #3e5665;
            display: block;
            text-align: right;
            padding: 8px;
            border-radius: 3px;
            font-size: 70%;

            &.animate{
                animation: barAnimation 1.5s ease-in-out forwards;
            }
        }
    }
}

/* CSS Animation */
@keyframes barAnimation {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}


/*Card*/

.cardContainer{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px 20px;
    justify-content: center;
    align-items: stretch;

}

.card{
    background: white;
    padding: 20px;
    text-align: center;

    i{
        fill: #ac8a70;
        color: #ac8a70;
        border-color: #ac8a70;
        font-size: 50px;
        margin-bottom: 10px;
    }

    .quote{
        display: block;
        font-style: italic;
        color: #7f7f7f;
        font-size: 1.3em;
    }

    .avatar img{
        display: block;
        margin: 20px auto;
        border-radius: 50%;
    }

    .name{
        font-weight: 600;
    }

    .postion{
        color: #ac8a70;
        font-size: 90%;
    }
}

.md-content{
    color: #7f7f7f;
    max-width: 778px;
}

p{
    margin-bottom: 1.5em;
}


.offer{
    text-align: center;

    .count{
        color: #3e5665;
        font-weight: 600;
        font-size: 69px;
        display: block;
    }
    .label{
        text-transform: uppercase;
        font-weight: 600;
        color: #ac8a70;
        font-size: 26px;
        margin-bottom: 10px;
    }
}


/*Footer*/

footer{
    background-color: #f9f9f9;
    text-align: center;
    padding: 40px;

    i{
        display: block !important;
        color: #3e5665;
        border-color: #3e5665;
        font-size: 50px !important;
        text-align: center;
        margin-bottom: 20px;
    }

    .flex{
        display: flex;
        justify-content: center;
        align-content: center;
        gap: 50px 100px;
        flex-direction: column;
    }

}

/*Flexbox*/

.nowrap{
    flex-wrap: nowrap;
}

.flex100 div{
    flex-basis: 100%
}

.flex30 div{
    flex-basis: 30%
}

.flex40 div{
    flex-basis: 40%
}

.w70{
    margin: 0 auto;
    max-width: 780px;
 }

@media only screen and (min-width: 800px) {
    .navbar ul{
         flex-direction: row;
         justify-content: center;
         gap: 4em;

     a{
         border: 0;
     }
    }

    .cardContainer{
        flex-direction: row;
    }

    footer .flex{
        flex-direction: row;
    }
}