/*
Theme Name: Global Forest Watch Blog
Theme URI: https://github.com/Vizzuality/gfw-blog
Version: 2.0
Author: Vizzuality
Author URI: https://github.com/vizzuality
Tags: white, two-columns
License: GNU General Public License v2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html

*/

/*
HTML Boilerplate styles can be found in the html5-boilerplate/css directory.
*/

/* WordPress Required Styles */
.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
    max-width: 100%;
}

.alignleft {
	float: left;
}

.alignright {
	float: right;
}

.wp-caption {
	border: 1px solid #ddd;
	text-align: center;
	background-color: #f3f3f3;
	padding-top: 4px;
	margin: 10px;
	-moz-border-radius: 3px;
	-khtml-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
}

.wp-caption img {
	margin: 0;
	padding: 0;
	border: 0 none;
}

.wp-caption-dd {
	font-size: 11px;
	line-height: 17px;
	padding: 0 4px 5px;
	margin: 0;
}

.sticky {
	background: #f7f7f7;
	padding: 0 10px 10px;
}

.sticky h2 {
	padding-top: 10px;
}
body {
	font-family: 'Fira Sans', Georgia, serif;
	background-color: #f7f7f7;
	margin: 0 auto;
}
a {
	text-decoration: none;
	border: 0;
}
@media only screen and (max-width: 850px) {
    .admin-bar #headerGfw .m-header {
        top: 46px;
    }
}
#headerGfw {
    min-height: 58px;
}
#container {
	max-width: 1600px;
	margin: 0 auto;
}
#sidebar {
	background-color: #f7f7f7;
	width: 260px;
    float: left;
    display: inline;
    position: relative;
    z-index: 1;
}
#sidebar .title {
    font-size: 14px;
    text-transform: uppercase;
    color: rgba(0,0,0,0.5);
    display: block;
    font-weight: 500;
}
#sidebar section {
	margin: 60px 23px;
}
#sidebar section:first-of-type {
	margin: 50px 23px 0;
}
#sidebar .tags-list {
    overflow: hidden;
    width: 100%;
}
#sidebar .tags-list ul {
    height: 250px;
    overflow: auto;
    margin: 0 0 5px;
    transition: height .25s ease;
}
#sidebar .tags-list.open ul {
    overflow-y: scroll;
    height: 435px;
}
#sidebar .tags-list .title:last-child {
    cursor: pointer;
    color: #97be32;
    font-size: 11px;
    line-height: 30px;
    letter-spacing: 0.1px;
    font-weight: 300;
}
#sidebar img {
    height: 70px;
    border-radius: 50px;
    float: left;
    margin: 10px;
}
#sidebar .name {
    font-size: 12px;
    line-height: 14px;
    position: relative;
    top: 8px;
    display: block;
}
#sidebar .pro {
    top: 12px;
}
#sidebar .name a,
#sidebar .name a:visited {
    color: #97bd3d;
}
#sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
#sidebar .slug-content {
    font-size: 12px;
    color: #555;
    display: inline-block;
    padding: 3px 0 3px 3px;
    position: relative;
    top: -1px;
    left: 2px;
    width: 180px;
    text-transform: uppercase;
    height: 28px;
    line-height: 28px;
    background: #eee;
    margin: 0 10px 8px 0;
}
#sidebar .slug-content.all {
    width: auto;
    position: relative;
    left: 97px;
    display: inline-block;
    background-color: transparent;
    font-weight: 200;
    text-transform: lowercase;
    font-size: 13px;
}
#sidebar .lang .slug-content.all {
    left: 54px;
}
#sidebar .tags-list .slug-content.all input[type="checkbox"] + label {
    position: relative;
    top: 1px;
    left: 5px;
}
#sidebar .slug-content.all::first-letter {
    text-transform: uppercase;
}
#sidebar .slug-content:hover {
    color: #333;
}
#sidebar .slug-content span {
    color: #97bd3d;
    padding: 0 6px;
    background-color: white;
    display: inline-block;
    max-width: 140px;
}
#sidebar .slug-content span b {
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 140px;
    overflow: hidden;
    display: block;
    font-weight: normal;
}
#sidebar .tags-list input {
    display: none;
}
#sidebar .tags-list input[type="checkbox"] + label {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background-color: #ffffff;
    background-image: none;
    border: solid 1px #dededd;
    display: inline-block;
    cursor: pointer;
    position: relative;
    top: -5px;
}
#sidebar .tags-list input[type="checkbox"]:checked + label {
    background-image:url('img/check.svg');
    background-position: 4px 4px;
    background-size: 13px;
    background-repeat: no-repeat;
}
#sidebar ul em {
    float: right;
    font-style: initial;
    font-size: 11px;
    padding: 0 5px 0px 0;
}
#sidebar .feed a {
    color: #555555;
    font-size: 12px;
}
#sidebar .feed img {
    margin: 0 0 0 5px;
    height: 15px;
    border-radius: 0;
    float: none;
}
#sidebar .feed path {
    fill: #97bd3d;
    transition: fill .25s ease-in;
}
#sidebar .feed:hover path {
    fill: #7d9e2e;
}
/*input[type="checkbox"]:checked + label:after {
    display: block;
    background-color: #eee;
    height: 11px;
    width: 11px;
    border-radius: 100%;
    content: ' ';
    box-shadow: 0px 0px 1px #999;
    position: relative;
    left: 4px;
    top: 4px;
}*/
.f-user {
    line-height: 17px;
}
#main {
	width: calc(100% - 260px - (100px*2));
    float: left;
    background-color: white;
    padding: 50px 100px;
}
#main .columns {
	position: relative;
    -moz-column-gap: 1.5em;
    -webkit-column-gap: 1.5em;
    column-gap: 1.5em;
}
.single #main .columns{
    -moz-column-count: 1;
    -webkit-column-count: 1;
    column-count: 1;
}
#main iframe {
    max-width: 100%;
}
h2.pagetitle {
    background-color: white;
    width: calc(100% - 260px - (100px*2));
    position: relative;
    padding: 40px 100px 0;
    font-weight: 300;
    font-size: 35px;
    margin: 0px 0 -30px;
    float: left;
    color: rgb(85,85,85);
}
h2.pagetitle.tagstitle {
    display: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    height: 30px;
}
h2 .add-button {
    position: absolute;
    right: 100px;
    top: 30px;
    display: flex;
    align-items: center;
    font-size: 21px;
    font-weight: 400;
}
h2 .add-button .add-button-text {
    margin-right: 7px;
}
h2 .add-button .add-button-bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #97bd3d;
    border-radius: 100%;
    color: white;
    font-size: 26px;
    font-weight: 200;
}
h2 .stories-description {
    font-size: 21px;
    font-weight: 400;
    margin-top: 15px;
}
.tagstitle-list {
    display: none;
    margin: -10px 0 40px;
}
.tagstitle-list > span {
    display: inline-block;
    height: 22px;
    background-color: #f5fce3;
    margin: 0 10px 8px 0;

}
.tagstitle-list > span .text {
    font-size: 11px;
    letter-spacing: 0.1px;
    color: #97be32;
    line-height: 22px;
    padding: 0 10px;
    text-transform: uppercase;
    font-weight: 300;
}
.tagstitle-list > span .x {
    color: #a4c64b;
    font-weight: 100;
    display: inline;
    font-size: 22px;
    position: relative;
    height: 22px;
    vertical-align: text-bottom;
    padding: 0px 10px 0px 0;
    line-height: 22px;
    transition: all 0.25s ease;
    cursor: pointer;
}
.tagstitle-list > span .x:hover {
    color: #6F8635;
}
#main .card {
	display: inline-block;
    background: #fff;
    margin: 0 0 1.5em;
    width: 100%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border: 1px solid lightgray;
	cursor: pointer;
}
#main .card:hover {
    background: rgb(250,250,250);
}
#main .card img {
	width: 100%;
}
.post {
    max-width: 800px;
    padding: 0 0 0 100px;
}
.post p {
    color: #555;
}
.post a {
    color: #2483B2;
}
h2 {
	padding: 0 10px;
    line-height: 23px;
	font-size: 21px;
    font-weight: 400;
}
h2 a {
    color: #555;
}
h2 a:hover {color: #555;}
h2 a:visited {color: #555;}
.content footer {
	color: #555;
	font-size: 12px;
	display: flex;
    justify-content: space-between;
    padding: 0 10px 7px;
}
.content footer a {
	color: #97bd3d;
}
.content footer a:hover {
	text-decoration: underline;
}
.content footer span {
    opacity: 0.5;
}
#main-sections ul {
    height: 58px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #EDEDED;
    padding: 0;
    margin: 0;
}
#main-sections li {
    display: inherit;
    width: 100%;
    height: 58px;
    position: relative;
}
#main-sections > ul > li {
    border-right: 1px solid rgba(85, 85, 85, .2);
}
#main-sections > ul > li:last-child {
    border-right: 0;
}
#supply-chain-menu ul,
#gfw-community-menu ul {
    display: none;
    position: absolute;
    top: 58px;
    left: -1px;
    width: 100%;
    height: auto;
    z-index: 2;
    border: 1px solid rgba(85, 85, 85, .2);
    border-top: 0;
}
#supply-chain-menu li,
#gfw-community-menu li {
    display: flex;
    border-top: 1px solid rgba(85, 85, 85, .2);
}
#main-sections a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: capitalize;
    color: #333;
    opacity: 0.8;
    font-size: 14px;
    letter-spacing: 0.1px;
    transition: background-color 0.5s ease;
    width: 100%;
    text-align: center;
}
#main-sections a:hover,
#main-sections a.selected {
    background-color: white;
    opacity: 1;
    box-sizing: content-box;
}
a.logo {
	height: 90px;
  position: absolute;
  line-height:73px;
  float:left;
  margin-left: 185px;
  padding-left: 95px;
  font-size:21px;
  background:url('img/logo.png') no-repeat;
}
a.logo .ribbon {
  color: white;
  text-indent: 0px;
  position: absolute;
  bottom: 0;
  right: 5px;
  -webkit-transform: translate(5px, 8px);
  transform: translate(5px, 8px);
}
a.logo .ribbon > span {
  display: block;
  position: relative;
  z-index: 2;
  background: #b6b6ba;
  padding: 3px 5px 2px;
  line-height: 1;
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  font-family: "Fira Sans";
}
a.logo .ribbon:after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 100%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 0 5px;
  border-color: transparent transparent transparent #9c9ca1;
}

#container {
    position: relative;
    margin-top: -58px;
    padding-top: 58px;
}
header[role=banner] {
	background: #ccc url('img/8898631382_a66b6f0bc0_o.jpg?1413278637') 50%;
    -moz-background-size: cover;
    -o-background-size: cover;
    -webkit-background-size: cover;
    background-size: cover;
    min-height: 370px;
    box-shadow: inset 0 0 0 1000px rgba(51,51,51,.7);
    position: relative;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
header h1 {
    max-width: 1080px;
    padding: 0 15px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 20px;
}
header h1 a {
    font-size: 47px;
    font-weight: 400;
    line-height: 53px;
    color: #fff;
    display: block;
    /*-webkit-font-smoothing: auto;*/
}
header h1 a:visited,
header h1 a:hover {
    color: #fff;
}
header p {
    max-width: 1080px;
    line-height: 24px;
    font-size: 19px;
    color: #fff;
    font-weight: 400;
    margin: 0 auto;
    padding: 0 15px;
    display: inline;
}
@media only screen and (min-width: 850px) {
    header h1 {
        padding: 0 20px;
    }
    header p {
        padding: 0 20px;
    }
}
header p.posted {
    display: inline;
    float: right;
    margin: 15px 20px 0;
}
.description a {
    color: #fff;
}
header > span {
    float: right;
    color: #fff;
    margin: 0 40px;
    font-size: 10px;
    position: absolute;
    bottom: 0px;
    left: 0;
    text-transform: uppercase;
}
.total_posts {
    position: relative;
    font-size: 12px;
    top: -9px;
    display: flex;
    width: 1px;
}
.line-wrapper {
	width: 190px;
    height: 10px;
    display: inline-block;
}
.line-wrapper .line {
	width: 100%;
	height: 5px;
    background-color: #b6b6ba;
    display: block;
    border-radius: 5px;
    margin: 4px 0 0 0;
}
.line-wrapper .line:after {
	content: ' ';
    height: 8px;
    width: 8px;
    background-color: #b6b6ba;
    display: block;
    position: relative;
    top: -3px;
    border-radius: 10px;
    border: 2px solid #f7f7f7;
    float: right;
}
.line-wrapper .line.first {
	background-color: #97bd3d;
}
.line-wrapper .line.first:after {
	background-color: #97bd3d;
}
.search-form label:before {
    content: '...';
    display: inline-block;
    position: relative;
    width: 23px;
    height: 25px;
    color: transparent;
    background-color: #999;
    mask: url(img/search.svg) no-repeat 50% 50%;
    -webkit-mask: url(img/search.svg) no-repeat 50% 50%;
    left: -5px;
    transform: scale(1.3);
}
.search-form span { display:none; }
.search-form .search-field {
    line-height: 20px;
    -webkit-appearance: none;
    background-color: transparent;
    font-size: 12px;
    width: 180px;
    border: 0;
    border-bottom: 2px solid rgba(0,0,0,0.3);
}
.search-form .search-submit{ display:none; }
.prev-p-cont {
	position: absolute;
	left: 0;
	bottom: -52px;
	width: 100%;
	display: flex;
	justify-content: space-between;
}
.prev-p {
    position: absolute;
    top: 0;
    left: 0;
    visibility: visible;
    height: 40px;
    width: 40px;
    border-radius: 100%;
    background-color: #97bd3d;
    display: inline-block;
    cursor: pointer;
    z-index: 5;
}
.prev-p:before {
    content: '...';
    display: inline-block;
    position: relative;
    width: 23px;
    height: 13px;
    color: transparent;
    background-color: white;
    mask: url(img/arrow.svg) no-repeat 50% 50%;
    -webkit-mask: url(img/arrow.svg) no-repeat 50% 50%;
    left: 16px;
    top: 14px;
    transform: rotate(180deg) scale(1.8);
}
.prev-p.next:before {
    left: 2px;
    transform: scale(1.8);
}
.navigation-dir {
    position: relative;
    width: 40px;
    height: 40px;
    overflow: hidden;
    visibility: hidden;
}
.pagination {
    clear:both;
    padding:20px 0;
    position:relative;
    font-size:11px;
    line-height:13px;
    display: flex;
    justify-content: center;
    z-index: 4;
}

.pagination span, .pagination a {
    float: left;
    color: #555555;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    text-align: center;
    min-width: 24px;
    margin: 0 10px 0 0;
    background: none;
    text-decoration: none;
}

.pagination a:hover{
    color:#97bd3d;
}

.pagination .current{
    cursor: default;
    border-bottom: 2px solid #97bd3d;
}
#mobile-sidebar {
    display: none;
}
#mobile-sidebar ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
}
#mobile-sidebar a {
    color: #555;
    font-size: 12px;
    text-transform: capitalize;
}
@media only screen and (max-width: 1049px) {
    a.logo {
        margin-left:15px;
    }
}
@media only screen and (max-width: 850px) {
    .post {
        padding: 0;
    }
    #main-sections {
        visibility: hidden;
        margin-bottom: -120px;
    }
    #main {
        width: calc(100% - 30px);
        padding: 15px;
        padding-top: 20px;
    }
    #main .columns {
        -moz-column-count: 2;
        -webkit-column-count: 2;
        column-count: 2;
    }
    #sidebar {
        display: none;
    }
    header[role=banner] {
        min-height: 220px;
    }
    /* header h1 {
        margin: 130px 0 0;
    } */
    header h1 a {
        font-size: 34px;
    }
    header p {
        line-height: 20px;
        font-size: 15px;
        /* margin: 5px 40px 0; */
    }
    #mobile-sidebar {
        display: block;
    }
    a.logo {
        background-size: contain;
        width: 60px;
        height: 60px;
        margin-left:15px;
				padding-left: 0;
    }
    a.logo .ribbon {
        right: 1px;
    }
}
@media only screen and (max-width: 585px) {
    #mobile-sidebar li:not(:last-child) {
        display: none;
    }
    header[role=banner] {
        min-height: 250px;
    }
    header h1 {
        margin: 130px 0 0;
    }
    header h1 a {
        font-size: 30px;
        line-height: 28px;
    }
    header p {
        line-height: 20px;
        font-size: 15px;
        margin: 5px 40px 0;
    }
    #main {
        width: calc(100% - (20px*2));
        padding: 20px;
    }
    #main .columns {
        -moz-column-count: 1;
        -webkit-column-count: 1;
        column-count: 1;
    }
    #sidebar {
        display: none;
    }
}
#loadmorePostsTags {
    text-align: center;
}
#loadmorePostsTags span{
    color: white;
    background: #97bd3d;
    font-size: 12px;
    text-transform: uppercase;
    height: 36px;
    line-height: 36px;
    padding: 0px 20px;
    position: relative;
    display: inline-block;
    border-radius: 40px;
    font-weight: 400;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s linear;
}
#loadmorePostsTags span:hover {
    background: #789631;
}
@media only screen and (min-width: 1024px) {
    #main .columns {
        -moz-column-count: 2;
        -webkit-column-count: 2;
        column-count: 2;
    }
}
@media only screen and (min-width: 1200px) {
    #main .columns {
        -moz-column-count: 3;
        -webkit-column-count: 3;
        column-count: 3;
    }
}
.fb_iframe_widget {
    position: relative;
    top: -7px;
    left: -33px;
}
