nav ul li:first-of-type:before {
    content: '';
    width: 0;
    height: 0;
    background: url('../img/logo-small.png') no-repeat 0 0;
    background-size: 100%;
    text-decoration: none;
    margin: 0 auto 30px;
    display: block !important;
    position: absolute;
    opacity: 0;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    /*transition: 1s ease all;*/
}

.sticky nav > .main-menu > ul > li:first-of-type:before {
    content: '';
    width: 23px;
    height: 35px;
    opacity: 1;
    transition: 1s ease all;
}

header {
    width: 100%;
    padding: 30px 0;    
    background: #FFFFFF;
    border-bottom: 1px solid #CDCDCD;
}

header #logo {
    width: 332px;
    height: 72px;
    background: url('../img/logo.png') no-repeat 0 0;
    background-size: 100%;
    text-decoration: none;
    margin: 0 auto 30px;
    opacity: 1;
    display: block;
    position: relative;
    transition: 1s ease all;
}

div.menu-toggle { 
    display: none;
}

nav {
    font-family: 'itc-avant-garde-gothic-pro', sans-serif;
    font-weight: 300;
    font-style: normal;
}

.sticky header {
    position: fixed;
    top: 0;
    z-index: 9999;
}

.sticky header #logo {
    width: 0;
    height: 0;
    opacity: 0;
    margin: 0 auto;
    transition: 1s ease all;
}

nav ul {
    width: 100%;
    text-align: center;
    margin: 0;
}

nav ul li {
    display: inline-block;
    margin-right: 25px;
    margin-left: 25px;
    padding: 0;
}

nav ul li:before {
    display: none;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    text-decoration: none;
    font-size: 20px;
    color: #000000;
    position: relative;
}

nav ul li a:after {
    content: '';
    width: 0%;
    height: 3px;
    background: #E8681A;
    display: block;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    /*transition: 0.5s ease all;*/
}

nav ul li a:hover:after {
    width: 100%;
    /*transition: 0.5s ease all;*/
}

nav ul li a.active:after {
    content: '';
    width: 100%;
    height: 3px;
    background: #E8681A;
    display: block;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.page-template-page-blog-home nav ul li#menu-item-15251 a:after,
.single-post nav ul li#menu-item-15251 a:after {
    content: '';
    width: 100%;
    height: 3px;
    background: #E8681A;
    display: block;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.page-template-page-training-home nav ul li#menu-item-15252 a:after,
.page-template-page-training-certified-scrum nav ul li#menu-item-15252 a:after,
.page-template-page-training-leadership nav ul li#menu-item-15252 a:after,
.page-template-page-training-product-strategy nav ul li#menu-item-15252 a:after,
.page-template-page-course-comparison nav ul li#menu-item-15252 a:after {
    content: '';
    width: 100%;
    height: 3px;
    background: #E8681A;
    display: block;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.page-template-page-books-home nav ul li#menu-item-15253 a:after,
.page-template-page-books-single nav ul li#menu-item-15253 a:after {
    content: '';
    width: 100%;
    height: 3px;
    background: #E8681A;
    display: block;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.page-template-page-tools-home nav ul li#menu-item-15254 a:after,
.page-template-page-tools-single nav ul li#menu-item-15254 a:after {
    content: '';
    width: 100%;
    height: 3px;
    background: #E8681A;
    display: block;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.page-template-page-resources nav ul li#menu-item-15255 a:after,
.page-template-page-videos nav ul li#menu-item-15255 a:after,
.page-template-page-presentations nav ul li#menu-item-15255 a:after,
.page-template-page-podcasts nav ul li#menu-item-15255 a:after,
.page-template-page-photos nav ul li#menu-item-15255 a:after,
.page-template-page-vlog nav ul li#menu-item-15255 a:after {
    content: '';
    width: 100%;
    height: 3px;
    background: #E8681A;
    display: block;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.page-template-page-about nav ul li#menu-item-15256 a:after {
    content: '';
    width: 100%;
    height: 3px;
    background: #E8681A;
    display: block;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.page-template-page-contact nav ul li#menu-item-15257 a:after {
    content: '';
    width: 100%;
    height: 3px;
    background: #E8681A;
    display: block;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

li.menu-item-has-children {
    position: relative;
}

ul.sub-menu {
    width: 300px;
    position: absolute;
    top: 22px;
    left: 0;
    text-align: left;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
}

ul.sub-menu > li > .sub-menu {
    left: 298px;
}

ul.sub-menu.open {
    opacity: 1;
    pointer-events: all;
}

ul.sub-menu li {
    display: block;
    margin: 0;
    background: #FFF;
    border-top: 1px solid #CCC;
    border-left: 1px solid #CCC;
    border-right: 1px solid #CCC;
    border-bottom: none;
}

ul.sub-menu li:last-of-type {
    border-bottom: 1px solid #CCC;
}

ul.sub-menu li a {
    font-size: 15px;
    padding: 10px 20px;
    display: block;
}

ul.sub-menu li a:hover {
    background: #CCC;
    color: #FFF;
}

ul.sub-menu li a:after {
    display: none !important;
}

.blog-article {
    border-bottom: 1px solid #CDCDCD;
    padding-bottom: 30px;
}

.blog-article {
    display: flex;
    flex-wrap: nowrap;
    flex-basis: 100%;
    margin-bottom: 30px;
}

.blog-article.single {
    width: 100%;
    display: flex;
}

.blog-article.single .feat-img {
    width: 100px;
    height: 100px;
    display: block;
    margin-top: 8px;
    margin-right: 20px;
    border-radius: 50%;
    background-size: cover;
    background-position: 50% 50%;
}

.blog-article a.header-link {
    color: #000000 !important;
    text-decoration: none;
}

.blog-article.single a {
    font-family: 'PT Sans', sans-serif;
    font-size: 16px;
    line-height: 26px;
    display: inline-block;
    color: #000000;
    text-decoration: underline;
}

.blog-article.single h2 {
    font-family: 'PT Sans', sans-serif;
    font-size: 28px;
    line-height: 40px;
    font-weight: bold;
    margin: 0 15px 10px 0;
}

.dates {
  display: flex;
}

span.date {
  margin-right: 10px;
  float: left;
  clear: both;
  display: block;
  margin-bottom: 10px;
}

.dates > span {
  font-weight: normal !important;
}

.blog-article.single p {
    font-family: 'PT Sans', sans-serif;
    font-size: 16px;
    line-height: 22px;
    margin: 0 0 5px 0;
    font-weight: normal;
}

.blog-article.single a {
    font-family: 'PT Sans', sans-serif;
    font-size: 16px;
    line-height: 26px;
    display: inline-block;
    color: #000000;
    text-decoration: underline;
}

.blog-article a.read-more {
    display: block;
    color: black;
    position: relative;
    font-weight: bold;
    margin: 10px 0 0 0;
    bottom: 0;
}

.blog-article a.read-more:after {
    content: ' >';
}

@media (max-width: 568px) {
    .blog-article.single {
        flex-wrap: wrap;
    }

    .blog-article-left {
        width: 100%;
    }

    .blog-article.single .feat-img {
        width: 100%;
        height: 150px;
        border-radius: 0;
        margin-bottom: 15px;
    }

    .blog-article-right {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 959px) {

    .blog-article.single h2 {
        font-size: 26px;
        line-height: 34px;
    }

}

@media (max-width: 768px) and (min-width: 569px) {
    .blog-article.single h2 {
        font-size: 26px;
        line-height: 34px;
    }
}


@media (min-width: 768px) and (max-width: 959px) {

    header #logo {
        width: 280px;
        height: 60px;
    }
    
    h1 {
        font-size: 48px;
        line-height: 54px;
        margin: 40px auto;
    }

    .container-narrow {
        max-width: 760px;
    }

    nav ul li a {
        font-size: 18px;
    }

    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }

    .cta {
        font-size: 15px;
    }
}

@media (max-width: 768px) and (min-width: 569px) {

    header #logo {
        width: 280px;
        height: 60px;
    }
    
    h1 {
        font-size: 48px;
        line-height: 54px;
        margin: 40px auto;
    }

    .container-narrow {
        width: -webkit-calc(100% - 30px);
        width: calc(100% - 30px);
        max-width: 740px;
        padding-left: 15px;
        padding-right: 15px;
    }

    nav ul li a {
        font-size: 16px;
        line-height: 24px;
    }

    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }

}

@media (max-width: 568px) {

    body.nav-open {
        overflow: hidden;
    }

    .container-narrow {
        max-width: 375px;
        padding-left: 20px;
        padding-right: 20px;
    }

    header {
        padding: 15px 0 15px;
    }

    header #logo img,
    .sticky header #logo img {
        display: none;	
    }
	
    header #logo,
    .sticky header #logo {
        width: 225px;
        height: 50px;
        margin: 0 auto;
        opacity: 1;
		background: url('/wp-content/themes/romanpichler2019/assets/img/logo.png') no-repeat 0 0;
		background-size: 100%;		
    }

    div.menu-toggle {
        width: 25px;
        height: 25px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 25px;
        display: inline-block;
        cursor: pointer;
        z-index: 1001;
        transition: 0.4s ease all;
    }

    .bar1, .bar2, .bar3 {
        width: 25px;
        height: 2px;
        background-color: #CDCDCD;
        margin: 5px 0;
        transition: 0.4s ease all;
        border-radius: 3px;
    }

    .nav-open .bar1 {
        -webkit-transform: rotate(-45deg) translate(-4px, 3px);
        transform: rotate(-45deg) translate(-4px, 3px);
    }

    .nav-open .bar2 {
        opacity: 0;
    }

    .nav-open .bar3 {
        -webkit-transform: rotate(45deg) translate(-6px, -7px);
        transform: rotate(45deg) translate(-6px, -7px);
    }

    nav {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: -100%;
        background: #FFFFFF;
        margin-top: 80px;
        z-index: 9999;
        transition: 0.5s ease all;
        overflow-y: auto;
    }

    .nav-open nav {
        left: 0;
        transition: 0.5s ease all;
    }
    
    nav ul li {
        width: 100%;
        display: block;
        text-align: center;
        margin: 0;
        border-bottom: 1px solid #cccccc;
    }

    nav ul li:first-child {
        border-top: 1px solid #cccccc;
    }
    
    nav ul li a {
        width: -webkit-calc(100% - 10px);
        width: calc(100% - 10px);
        height: 100%;
        display: block;
        padding: 20px 5px;
    }
    
    nav ul li a:after {
        bottom: -2px;
    }

    nav ul li a.active:after {
        bottom: -2px;
    }

    .blog-article.single {
        flex-wrap: wrap;
    }

    .blog-article-left {
        width: 100%;
    }

    .blog-article.single .feat-img {
        width: 100%;
        height: 150px;
        border-radius: 0;
        margin-bottom: 15px;
    }

    .blog-article-right {
        width: 100%;
    }

    .blog-article.single h2 {
        font-size: 22px;
        line-height: 30px;
    }
	
}

@media (max-width: 320px) {

    header #logo,
    .sticky header #logo {
        width: 180px;
        height: 39px;
    }

    nav {
        margin-top: 69px;
    }

}

@media (max-width: 568px) {

    ul.sub-menu {
        width: 100%;
        height: 0;
        position: relative;
        top: auto;
    }

    ul.sub-menu.open {
        height: auto;
        top: 2px;
    }

    ul.sub-menu li {
        background: #F5F5F5;
    }

    ul.sub-menu li a {
        font-size: 17px;
        padding: 20px 10px;
    }

    li.menu-item-has-children ul.sub-menu li:first-child {
        display: block;
    }

}

@media (max-width: 1024px) {
    li.menu-item-has-children ul.sub-menu li:first-child {
        display: block;
    }
}