/* Theme Name: The Journalist 2018 */

@import url('https://fonts.googleapis.com/css?family=Archivo+Narrow:400,600,700|Archivo:400,700');
@import url('https://fonts.googleapis.com/css?family=Noto+Serif');
:root {
    --base: #BE1A1A;
    --spotlight: #BE1A1A;
    --kau-kauru: #f47d43;
    --pioneers: #82b5e0;
    --the-craft: #7f7ea8;
    --art: #752763;
    --books: #4d9379;
    --academic-papers: #cdb48b;
}
.color_base {
    color: var(--base);
}
.color_spotlight, .color_uhuru-now {
    color: var(--spotlight);
}
.color_kau-kauru {
    color: var(--kau-kauru);
}
.color_pioneers {
    color: var(--pioneers);
}
.color_the-craft {
    color: var(--the-craft);
}
.color_art {
    color: var(--art);
}
.color_books {
    color: var(--books);
}
.color_academic-papers {
    color: var(--academic-papers);
}
.bg_base {
    background: var(--base);
}
.bg_spotlight, .bg_uhuru-now {
    background: var(--spotlight);
}
.bg_kau-kauru {
    background: var(--kau-kauru);
}
.bg_pioneers {
    background: var(--pioneers);
}
.bg_the-craft {
    background: var(--the-craft);
}
.bg_art {
    background: var(--art);
}
.bg_books {
    background: var(--books);
}
.bg_academic-papers {
    background: var(--academic-papers);
}

body {
    font-family: 'Archivo Narrow', sans-serif;
    color: #555;
    background: #F2F2F2;
    padding: 0;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1300px;
}

/* HEADER **************************************/

header, nav {
    background: #fff;
    border-bottom: 1px solid #eee;
}

header img {
    width: 100%;
    max-width: 250px;
}

.hamburger {
    position: absolute;
    top: 2.1em;
    right: 1em;
    z-index: 501;
    transform: scale(.8);
}

button.hamburger:focus {
    outline: none;
}

.hamburger:hover {
    opacity: 1;
}

.hamburger.is-active .hamburger-inner:after, 
.hamburger.is-active .hamburger-inner:before {
    background-color: #fff !important;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 500;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform .2s, opacity .2s;
    /*overflow-y: scroll;*/
}

nav.is-active {
    transform: translateX(0%);
    opacity: 1;
}

nav .container {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

nav .nav-item[class*="bg_"] {
    background: none;
}

nav .nav-link {
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
}

.nav-link i {
    font-size: 0.8em;
    position: relative;
    bottom: 1px;
}

.nav li ul {
    display: none;
}

.nav li ul.active {
    display: block;
    font-size: 0.9em;
    padding: 0;
}

.social-search a {
    color: #fff;
    font-size: 1.4em;
    display: inline-block;
    padding: 0 1em;
}

a {
    color: var(--base);
}

a:hover {
    color: var(--base);
    text-decoration: underline;
}

.search-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 2em;
    background: rgba(0,0,0,0.8);
    z-index: 9999999;
}

.search-field {
    width: 90%;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.close-search {
    position: absolute;
    color: #fff;
    top: 1em;
    right: 1em;
    cursor: pointer;
}

/* ARTICLES ************************************/

.articles-list .article-box {
}

.articles-list .article-box article {
    background: #fff;
    height: 100%;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
    border-radius: 2px;
    overflow: hidden;
    transition: box-shadow .7s;
	cursor: pointer;
}

.articles-list .article-box article:hover {
	box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.articles-list .article-box .featured-image {
    position: relative;
}

.articles-list .article-box .featured-image img {
    width: 100%;
}

.articles-list .article-box .featured-image .category-tag {
    position: absolute;
    top: 0em;
    right: 0em;
}

.articles-list .article-box .featured-image .category-tag a {
    display: block;
    height: 100%;
    padding: 0.2em 0.5em;
    color: #fff;
    font-size: 0.8em;
    text-transform: uppercase;
    font-weight: 600;
}

.articles-list .article-box .article-details {
    padding: 1em;
    overflow: hidden;
}

.articles-list .article-box .article-details h2 {
    font-size: 1.3em;
    font-weight: 600;
}

.articles-list .article-box .article-details h2 a {
    color: #000;
    text-decoration-color: var(--base);
}

.articles-list .article-box .article-details h2 a:hover {
	text-decoration: none;
}

.articles-list .article-box .article-details h4 {
    font-size: 0.9em;
}

.articles-list article p {
    font-family: 'Archivo', sans-serif;
    font-weight: 400;
    margin-bottom: 0;
}

.contributor-img img {
    width: 100%;
}

/* ARTICLES LIST *******************************/

.articles-list-grid {
    background: #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.articles-list-grid .box-heading {
    padding: 0.5em 1em;
    border-bottom: 1px solid #eee;
}

.articles-list-grid .box-heading h2 {
    margin: 0;
    font-size: 1.3em;
}

.articles-list-grid .box-heading h2 i {
    margin-right: 0.5em;
}

.articles-list-grid article {
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.articles-list-grid .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 400%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity .4s, background-size .4s;
}

.articles-list-grid article:hover .background-image {
    opacity: .1;
    background-size: 200%;
    pointer-events: none;
}

.articles-list-grid .article-details {
    padding: 1em;
}

.articles-list-grid .article-details h2 {
    font-size: 1.3em;
    font-weight: 600;
}

.articles-list-grid .article-details h2 a {
    color: #000;
    text-decoration-color: var(--base);
}

.articles-list-grid .article-details h4 {
    font-size: 0.9em;
}

.articles-list-grid article p {
    font-family: 'Archivo', sans-serif;
    font-weight: 400;
    margin-bottom: 0;
}

/* PAGINATION **********************************/

.pagination {
	width: 100%;
	overflow: hidden;
	display: block;
}

.pagination-issue a {
	font-size: 1.3em;
}

.previous-issue {
	float: left;
}

.next-issue {
	float: right;
}

.previous-issue i {
	margin-right: 0.7em;
}

.next-issue i {
	margin-left: 0.7em;
}




/* ARTICLE *************************************/

article {
    background: #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
    border-radius: 2px;
    overflow: hidden;
}

.article-content {
    padding: 2em 0.5em;
}

.article-content p {
    font-family: 'Noto Serif', serif;
    font-size: 1em;
    line-height: 1.7em;
}

.article-header {
    position: relative;
}

/*.share-button {
    position: fixed;
    bottom: 0em;
    left: 0em;
}*/

.article-header img {
    width: 100%;
}

.article-content h1 {
    /*font-size: 1em;*/
    color: #000;
}

.article-content h4 {
    font-size: 1em;
}

.article-content h3 {
    color: #000;
}

.article-content p {
    margin-bottom: 2em;
}

.article-content .intro {
    font-family: 'Archivo Narrow', sans-serif;
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1.4em;
    color: #000;
    margin-bottom: 2em;
    text-align: center;
}

.article-content .dropcap:first-letter {
    /*float: left;
    font-size: 4em;
    color: #000;*/
}

article.single-article .category-tag {
    position: relative;
    left: 50%;
    width: auto;
    display: inline-block;
    transform: translateX(-50%);
    margin-bottom: 2em;
}

article .category-tag a {
    display: block;
    height: 100%;
    padding: 0.2em 0.5em;
    color: #fff;
    font-size: 0.8em;
    text-transform: uppercase;
    font-weight: 600;
}

article .article-date {
    font-size: 0.9em;
    text-transform: uppercase;
    text-align: center;
}

article .article-references p {
    font-size: 0.9em;
    font-family: 'Archivo', sans-serif !important;
    font-weight: 400; 
}

/* CATEGORY ************************************/

.toggle-category-intro {
    cursor: pointer;
    display: inline-block;
    padding: 0.1em 0.5em;
}

.category-details h1, .category-details h2 {
    color: #fff;
    position: relative;
    width: auto;
    display: table;
    padding: 0.1em 0.5em;
    margin: 0;
}

.category-details h1 {
    font-size: 1.8em;
    font-weight: 700;
}

.category-details h2 {
    font-size: 1.4em;
}

.category-intro {
    background: #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
    border-radius: 2px;
    display: none;
    padding: 2em;
    column-count: 2;
}



.category-intro, .category-intro * {
    font-family: 'Noto Serif', serif !important;
    font-size: 1em;
    line-height: 1.7em;
}

.category-intro.active {
    display: block;
}


/* FOOTER **************************************/

footer {
    background: #333;
    color: #ccc;
    padding: 1em 0;
}

footer img {
    max-width: 200px;
}

footer .sponsors a {
    display: block;
    height: 100%;
    padding: 0.5em;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 2px;
}

footer .sponsors img {
    width: 100%;
}

footer h3 {
    font-size: 1.3em;
    color: #fff;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5em;
}

footer form input.form-control, footer form textarea.form-control {
    width: 100%;
    margin-bottom: 0.5em;
    border-radius: 2px;
    padding: 0.5em;
    border: 1px solid #666;
    background: rgba(255,255,255,0.2);
}

footer form textarea {
    height: 220px;
}

/* SIDEBAR *************************************/
.widget {
    background: #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
    border-radius: 2px;
    padding: .5em;
}

.editors-choice-img img {
    width: 100%;
}

.articles-list-sidebar h2 {
    font-size: 1.2em;
    font-weight: 600;
}

.articles-list-sidebar h2 a {
    color: #000;
}

.articles-list-sidebar h4 {
    font-size: 0.9em;
    font-weight: 400;
}

.widget h3 {
    color: #000;
    border-bottom: 1px solid #000;
    font-size: 1.2em;
}

.widget .form-control {
    margin-bottom: 0.5em;
}

.widget img {
    max-width: 100%;
}

/* CONTRIBUTORS *********************************/

.the-contributor {
    background: #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
    border-radius: 2px;
    overflow: hidden;
    height: 100%;
}

.the-contributor h2 {
    font-size: 1em;
    padding: 0.2em;
    font-weight: bold;
    margin-top: 0.3em;
}

.the-contributor a {
    color: #000;
}

.the-contributor img {
    width: 100%;
}

/* GENERAL *************************************/

.is-fixed {
    position: fixed;
}

a {
    color: var(--base);
}

.btn-primary {
    background-color: var(--base);
    border-color: var(--base);
}

.btn-primary:hover {
    background-color: var(--base);
    border-color: var(--base);
}



img {
    max-width: 100%;
}

.wp-caption {
    max-width: au !important;
	width: auto-flow !important;

}

.wp-caption p {
    font-size: 0.8em;
    margin-top: 0.3em;
    font-family: 'Archivo', sans-serif !important;
	}

blockquote {
    border-left: 2px solid #000;
    padding-left: 1.5em;
    padding-right: 1.5em;
    margin-left: 1.5em;
}


/* MEDIA QUERIES *******************************/

/* XS */
@media (max-width: 320px) {
    .hamburger {
        transform: scale(.7);
        top: 1.8em;
    }
}


/* SM */
@media (min-width: 576px) {
    .hamburger {
        top: 1em;
    }

    /* SLIDESHOW ************************************/

    .cycle-slideshow {
        width: 100%;
        height: 50vh;
        max-height: 350px;
        position: relative;
        overflow: hidden;
        border-radius: 2px;
        box-shadow: 0 0 4px rgba(0,0,0,0.2);
    }

    .cycle-slideshow .slide {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: 50% 50%;
        position: relative;
        cursor: pointer;
    }

    .cycle-slideshow .issue-number, .cycle-slideshow .category-tag {
        position: absolute;
        top: 0;
        left: 0;
        padding: 0.2em 0.5em;
        text-transform: uppercase;
        font-size: 0.8em;
        z-index: 200;
    }

    .cycle-slideshow .issue-number {
        background: #333;
        color: #fff;
    }

    .cycle-slideshow .category-tag {
        left: initial;
        right: 0;
    }

    .cycle-slideshow .category-tag a {
        color: #fff;
    }

    .cycle-slideshow .category-tag a:hover {
        text-decoration: none;
    }

    .cycle-slideshow .slide-caption {
        position: absolute;
        bottom: 0;
        left: 0;    
    }

    .cycle-slideshow .slide-caption h2 {
        display: inline-block;
        background: #fff;
        padding: 0.2em 0.5em;
        margin: 0;
        font-size: 1.3em;
        font-weight: 700;
        color: #000;
    }

    .cycle-slideshow .slide-caption p.lead {
        display: inline-block;
        background: #fff;
        padding: 0.2em 0.5em;
        margin: 0;
    }

    .articles-list article p {
        font-size: 0.9em;
    }


}

/* MD */
@media (min-width: 768px)  {
    
    .container {
        width: 98%;
        max-width: 1300px;
    }

	.articles-list .article-box {
        
    }

    .articles-list article p {
        font-size: 1em !important;
    }

    .alignleft {
        float: left;
        margin-right: 1.5em;
    }

    .alignright {
        float: right;
        margin-left: 1.5em;
    }

    .article-content {
        padding: 2em 3em;
    }
}

/* LG */
@media (min-width: 992px) {
    nav {
        position: relative;
        height: unset;
        background: #fff;
        
        transform: translateX(0%);
        opacity: 1;
        transition: transform .2s, opacity .2s;
    }

    nav .container {
        position: relative;
        transform: translateY(0%);
    }

    nav .nav-item {
        background transparent;
        transition: background .2s;
    }

    

    nav .nav-item.bg_base:hover,nav .nav-item.bg_base.active { background: var(--base); }
    nav .nav-item.bg_spotlight:hover,nav .nav-item.bg_spotlight.active { background: var(--spotlight); }
    nav .nav-item.bg_kau-kauru:hover,nav .nav-item.bg_kau-kauru.active { background: var(--kau-kauru); }
    nav .nav-item.bg_the-craft:hover,nav .nav-item.bg_the-craft.active { background: var(--the-craft); }
    nav .nav-item.bg_art:hover,nav .nav-item.bg_art.active { background: var(--art); }
    nav .nav-item.bg_books:hover,nav .nav-item.bg_books.active { background: var(--books); }
    nav .nav-item.bg_pioneers:hover,nav .nav-item.bg_pioneers.active { background: var(--pioneers); }
    nav .nav-item.bg_academic-papers:hover,nav .nav-item.bg_academic-papers.active { background: var(--academic-papers); }   

    nav .nav-item a {
        transition: color .2s;
    }
    
    nav .nav-item:hover a, nav .nav-item.active a {
        color: #fff;
    }

    nav .nav-link {
        color: #333;
        text-align: center;
        font-weight: bold;
        font-size: 1em;
    }

    .has-children {
        position: relative;
    }

    .has-children:hover ul {
        display: block;
    }


    .nav li ul {
        position: absolute;
        list-style: none;
        background: rgba(0,0,0,0.8);
        z-index: 100;
        top: 2.5em;
        left: 0;
        padding: 0;
        font-size: 0.9em;
    }

    .nav li ul li a:hover {
        color: var(--base);
    }

    .social-search a {
        color: #333;
        font-size: 1em;
        display: inline-block;
        padding: 0 0.5em;
    }

}

/* XL */
@media (min-width: 1200px) {

}