﻿#header {
    position: relative;
}

    #header:before {
        position: absolute;
        content: "";
        top: 0;
        left: 0;
        right: 0;
        height: 15px;
        background: url(../images/bg-beige.jpg) repeat;
    }

    #header > div {
        position: relative;
        height: 200px;
        padding-top: 45px;
        padding-left: 0;
        padding-right: 0;
        border-bottom: 3px solid #463333;
    }

.section > div {
    max-width: 1300px;
    padding: 0 20px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

#header .logo {
    width: 375px;
    margin: 0 auto;
    z-index: 10;
    position: relative;
}

    #header .logo img {
        display: block;
    }

#header nav {
    position: absolute;
    font-family: oswald, Arial, sans-serif;
    top: 70px;
    left: 40px;
    right: 40px;
    font-size: 14px;
    line-height: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    z-index: 5;
}

    #header nav ul {
        display: inline-block;
    }

nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#header nav li {
    display: inline-block;
    margin: 0 20px;
    width: 100px;
    position: relative;
}

#header nav a {
    color: #232323;
    display: inline-block;
    padding: 70px 0 0;
    background: url(../images/blog.svg) no-repeat center top;
    text-decoration: none;
}

#header nav li.blog {
    margin-right: 290px;
}

#header nav li {
    display: inline-block;
    margin: 0 20px;
    width: 100px;
    position: relative;
}

#header nav a {
    color: #232323;
    display: inline-block;
    padding: 70px 0 0;
    background: url(../images/book.svg) no-repeat center top;
    text-decoration: none;
}

#header nav li.blog a {
    background: url(../images/blog.svg) no-repeat center 5px;
}

#header nav li.about {
    margin-left: 290px;
}

    #header nav li.about a {
        background: url(../images/male.png) no-repeat center top;
    }

#header nav li.guides a {
    background: url(../images/guide.svg) no-repeat center 5px;
}

#header .search {
    position: absolute;
    top: 25px;
    right: 20px;
    z-index: 1;
}

    #header .search .field {
        display: inline-block;
        overflow: hidden;
        position: relative;
        vertical-align: middle;
    }

    #header .search [type="text"] {
        padding: 6px 10px;
        font-size: 14px;
        border: none;
        border-left: solid 2px #333;
        width: 200px;
        background: #e5e0cf;
        right: 0;
        position: relative;
        transition: 0.25s ease;
    }

    #header .search [type="submit"] {
        position: absolute;
        top: 0;
        left: -100000px;
    }

    #header .search .toggle {
        display: inline-block;
        padding: 0;
        border: none;
        background: 0 0;
        vertical-align: middle;
        margin: 0 0 0 5px;
    }

        #header .search .toggle svg {
            position: relative;
            top: 3px;
        }

#header nav li.blog a,
#header nav li.guides a {
    background-size: 50px !important;
}

#header nav li a {
    background-size: 40px !important;
}
#header nav li.about a {
    background-size: 49px !important;
}

#header nav li:after {
    position: absolute;
    left: 50%;
    bottom: -10px;
    margin-left: -20px;
    width: 40px;
    height: 2px;
    background: #f53145;
    content: "";
    display: none;
}

#header nav li:hover:after,
#header nav li.current-menu-item:after,
body.post-type-archive-guide #header nav li.guides:after,
body.single-guide #header nav li.guides:after,
body.blog #header nav li.blog:after {
    display: block;
}

#header .search .toggle {
    display: inline-block;
    padding: 0;
    border: none;
    background: 0 0;
    vertical-align: middle;
    margin: 0 0 0 5px;
}

@media only screen and (max-width: 1200px) {
    #header nav li.blog {
        margin-right: 230px;
    }

    #header nav li.about {
        margin-left: 230px;
    }
}

@media only screen and (max-width: 1050px) {
    #header nav li.blog {
        margin-right: 210px;
    }

    #header nav li.about {
        margin-left: 210px;
    }

    #header nav li {
        margin: 0 10px;
    }
}

@media only screen and (max-width: 951px) {
    #header > div {
        height: 320px;
    }

    .section > div {
        /* padding-left: 40px;
    padding-right: 40px; */
        overflow: hidden;
    }

    #header nav {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        padding: 40px 0 0;
    }

        #header nav li,
        #header nav li.blog,
        #header nav li.about {
            width: auto;
            margin: 0 30px;
        }
}

@media only screen and (max-width: 700px) {
    #header nav li,
    #header nav li.blog,
    #header nav li.about {
        margin: 0 20px;
    }
}

@media only screen and (max-width: 540px) {
    #header nav {
        font-size: 13px;
        line-height: 17px;
        letter-spacing: normal;
        margin: 0 -20px;
        padding: 30px 0 0;
    }

        #header nav li,
        #header nav li.blog,
        #header nav li.about {
            margin: 0 5px;
        }

            #header nav li.blog a,
            #header nav li.guides a {
                background-size: 40px !important;
            }

            #header nav li a,
            #header nav li.about a {
                background-size: 30px !important;
            }

    #header .logo {
        width: 100%;
        padding: 12px;
    }

    #header nav a {
        padding: 55px 0 0;
        font-weight: 600;
    }
}
