@import url('https://fonts.googleapis.com/css?family=Lato');
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500');
@import url('https://fonts.googleapis.com/css?family=Abril+Fatface:400,500');

*{
    padding: 0;
    margin: 0;
}


h1{

    font-family: 'Abril Fatface', cursive;
    font-size: 2.8em;
    font-weight: 400;
    color: white;
    margin-bottom: 10px;
}

h2{
    font-family: "Montserrat";
    color: #cac9c9;
    font-weight: 400;
}

h3{
    font-family: "Montserrat";
    font-weight: 500;
    font-size: 0.8em;
    color: #cac9c9;
    text-transform: uppercase;
}

h4{

    font-family: 'Abril Fatface', cursive;
    font-size: 2em;
    font-weight: 400;
    color: #1E1E1E;
    margin-bottom: 5px;
}

h5{

    font-family: 'Abril Fatface', cursive;
    font-size: 2em;
    font-weight: 400;
    color: #1E1E1E;
}

p{
    font-family: "Open Sans";
    color: #cac9c9;
    font-size:1.2em;
    font-weight: 300;
    line-height: 1.5;
}

a{
    text-decoration: none;
}



.nav{
    min-height: 10vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.nav #left img{
    height: 70px;
    width: auto;
    margin: 5px 0;
    margin-left: 15vw;
}

.nav #right{
    margin-right: 15vw;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 10px;
}

.nav #right img{
    height: 20px;
    width: auto;
    margin: 3px 3px;
}

.wrapper{

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: 15em;
    grid-gap: 35px;
    margin: 35px 15%;

}

.box{
    padding:  15px 15px;
    /* margin: 15px 0; */

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-wrap{
    padding: 0 30px;
}

.hero {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    position: relative;

    grid-area: 1 / 1 / span 2 / span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero::before {
    background-image: url(../img/blog-bg1.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.4;
}
.hero::after {
    background-color: #563d7c;
    content: "";
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.7;
}

.hero:hover {
    background-color: #563d7c;
}

.content-wrap{
    padding: 0 30px;
    border: 0;
}

#post-a{
    background: url('../img/blog-bg2.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#post-a .card{
    background: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    padding: 15px 10px;
}

#post-a .card:hover{
    opacity: 0.6;
}

#post-b{
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    position: relative;
}
#post-b::before {
    background-image: url(../img/blog-bg3.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.4;
}
#post-b::after {
    background-color: #2976b1;
    content: "";
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.7;
}

#post-b:hover{
    background-color: #2976b1;
}

#post-c{
    grid-area: 3 / 2 / span 2 / span 1;
    background: url('../img/blog-bg4.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
#post-c h4{
    color: rgb(185, 178, 162);
}
#post-c .card{
    background: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    padding: 15px 10px;
}
#post-c .card:hover{
    opacity: 0.6;
}
#post-d{
    background: url('../img/blog-bg5.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

}

#outro{
    min-height: 30vh;
    background: url('../img/outro-ultra.png');
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top:10px;
}

#outro .box-icons{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 15px;
    justify-content: center;
    align-items: center;
    margin: 25px 0;
}

.icon-a{
    background: url('../img/icons/icon-fb.png');
    background-size: cover;
    width: 40px;
    height: 40px;
}
.icon-a:hover{
    background: url('../img/icons/icon-fb-color.png');
    background-size: cover;
}

.icon-b{
    background: url('../img/icons/icon-twitter.png');
    background-size: cover;
    width: 40px;
    height: 40px;
}
.icon-b:hover{
    background: url('../img/icons/icon-twitter-color.png');
    background-size: cover;
}

.icon-c{
    background: url('../img/icons/icon-mail.png');
    background-size: cover;
    width: 40px;
    height: 40px;
}
.icon-c:hover{
    background: url('../img/icons/icon-mail-color.png');
    background-size: cover;
}

#footer{
    min-height: 15vh;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#footer img{
    height: 50px;
    margin-top: 8px;
}


@media (max-width: 980px) {
    .wrapper{
        grid-template-columns: 1fr 1fr;
    }
    .hero::before {
        background-image: url(../img/blog-bg1.jpg);
    }
    #post-c{
        grid-area: auto;
    }
}

@media (max-width: 630px) {
    .wrapper{
        grid-template-columns: 1fr;
        grid-auto-rows: 45vh;
    }
    .hero {
        grid-area: 1 / 1 / span 2 / span 1;
    }

    .hero::before {
        background-image: url(../img/blog-bg1.jpg);
    }

    #post-c{
        grid-area: auto;
    }
}