/*
 * Theme Name: Courage Foundation
 * Description: The theme for the Free Courage Foundation website.
 * Tags: white, red, clean, two-columns, translation-ready, custom-menu
 */

/* Custom font definitions */

/* Don't show dotted outlines when user clicks an element (in Fx). */
:focus { outline: none; }
::-moz-focus-inner { border: 0; }


/* Table for Allied Campaigns page */
.page-id-63 .entry-content table tr td { 
    vertical-align: top; 
    padding: 15px; 
    padding-left: 0px; 
}
.page-id-63 .entry-content table tr td:first-of-type { 
    text-align: center; 
    max-width: 240px;
    width: 35%;
}
.page-id-63 .entry-content table tr td:first-of-type img { 
    max-width: 240px;
}

/* Donate buttons */
#paypaldonate { float: right; }
#bitcoindonate { float: left; }
#bitcoindonate img { 
    height: 47px;
}
#bitcoinaddress { clear: both; }

/* Mobile navigation icon; hide by default */
.nav-mobile-icon a { 
    color: #333; 
    padding: 10px;
    display: block;
}
.nav-mobile-icon a:hover { 
    color: #000;
}
.nav-mobile-icon {
    display: none;
    color: #333;
    width: 40px;
    border: 1px solid #E2E4E9;
    text-align: center;
    margin: 0 auto;

    background: #fefefe; /* Old browsers */
    /* IE9 SVG, needs conditional override of 'filter' to 'none' */
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZlZmVmZSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlZGVjZWQiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
    background: -moz-linear-gradient(top,  #fefefe 0%, #edeced 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fefefe), color-stop(100%,#edeced)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #fefefe 0%,#edeced 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #fefefe 0%,#edeced 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #fefefe 0%,#edeced 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #fefefe 0%,#edeced 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fefefe', endColorstr='#edeced',GradientType=0 ); /* IE6-8 */
}

/* News box for supported people */
section#content article div.newsbox {
  display: inline-block;
  background-color: #fafafa;
  border: 1px solid #ededed;
  clear: both;
  margin: 10px 0;
  padding: 3px 15px;
}

section#content article { margin-bottom: 15px; }

/* Style site switcher */
#siteswitcher {
    color: #666;
    margin-top: 0px;
    margin-bottom: 10px;
    background-color: #eee;
    display: inline-block;
    clear: both;
    padding: 5px;
    right: 0;
    z-index: 9999;
    position: absolute;
    border-left: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}
#siteswitcher a { color: #666; }
#siteswitcher .button {
    cursor: pointer;
    text-align: right;
    font-style: italic;
}
#siteswitcher .sites {
    display: none;
}
#siteswitcher .sites ul.siteswitcher { 
    list-style: none; 
    margin: 0;
    padding: 0;
}
#siteswitcher .sites ul.siteswitcher > li {
    border-bottom: 1px solid #ccc;
}
#siteswitcher .sites ul.siteswitcher > li > i {
    padding-right: 5px;
}
#siteswitcher .sites ul.siteswitcher > li > a {
    padding: 10px 0;
    display: inline-block;
}
#siteswitcher .sites ul.siteswitcher > li:last-of-type {
    border-bottom: none;
}

html, body { height: 100%; }

html {
    background-color: #fafafa;
}

body {
    margin: 0px;
    padding: 0px;
    font-family: "Ubuntu", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 19px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    border-left: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    color: #181818; /* A slightly lighter black */
}

button {
    cursor: pointer;
}

a { color: #003f6c; text-decoration: none; }
div#main a:hover { 
    background-color: #003f6c !important; 
    color: #fff !important; 
    /*text-decoration: underline;*/
}

nav.paging-navigation {
    border-top: 1px solid #C6C6C6;
    padding: 15px 0px;
    margin-bottom: 20px;
}
nav.paging-navigation .nav-links a { 
    color: #003f6c;
    margin: 0px; 
    padding: 0px; 
    display: inline;
}
nav.paging-navigation .nav-links .nav-next { float: right; }
nav.paging-navigation .nav-links .nav-previous { float: left; }

p.journosourcepdf { 
    position: absolute;
    margin-top: -4px;
    font-size: 14px; 
    width: 325px; 
    text-align: center; 
}

.widget_search input[type=text] {
    width: 92%;
}

.widget {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.widget:last-of-type { border-bottom: none; }

img { border: none; } /* Required for IE */

div#main {
    width: 100%;
    display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;      /* TWEENER - IE 10 */
    display: -webkit-flex;     /* NEW - Chrome */
    display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
    background-color: #ffffff;
}
.home div#main { margin-top: 0px; padding-bottom: 25px; }

.shop div#main,
.donate div#main { 
    padding: 0px !important; 
}
.shop div#main section#content, 
.donate div#main section#content { 
    margin: 0px !important; 
    padding: 0px !important; 
}

div#main aside#sidebar { 
    max-width: 351px;
    padding: 20px; 
    padding-left: 0;
    padding-top: 0px;
    font-size: 14px;
}
div#main section#content { 
    margin-left: 20px;
    padding-right: 20px; 
    -webkit-box-flex: 1;      /* OLD - iOS 6-, Safari 3.1-6 */
    -moz-box-flex: 1;         /* OLD - Firefox 19- */
    -webkit-flex: 1;          /* Chrome */
    -ms-flex: 1;              /* IE 10 */
    flex: 1;                  /* NEW, Spec - Opera 12.1, Firefox 20+ */
}
div#main section#content div.entry-content { 
    line-height: 25px;
}

div#main aside#sidebar .widget_courage_news_widget {
    padding: 0 20px;
    margin-left: -20px;
    font-size: 14px;
}
div#main aside#sidebar .widget_courage_news_widget ul { list-style: none; padding-left: 0px; }

div#main aside#sidebar .widget_courage_news_widget h3 { margin-bottom: 0px; }
div#main aside#sidebar .widget_courage_news_widget p { margin-top: 0px; }
div#main aside#sidebar .widget_courage_news_widget h3 a {
    color: #dc0000;
    text-decoration: none;
}
.nojs div#main aside#sidebar .widget_courage_news_widget h3 a { font-weight: bold; }

div#wrapper {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100%;
    padding-bottom: -66px;
    position: relative;
    margin-bottom: -59px; /* equal to footer height */
}
div#wrapper:after {
    content: "";
    display: block;
}

footer, div#wrapper:after {
    /* .push must be same height as footer */
    height: 59px;
}

h1, h2, h3, h4, h5, h6 {
    color: #003f6c;
    line-height: 1em;
    margin-top: 5px;
}
h1, h2 { font-weight: normal; }
h3, h4, h5, h6 { font-weight: bold; }

h1 { font-size: 32px; }
h2 { font-size: 20px; }

#wrapper > header { 
    padding-top: 35px;
}

header div#logo a { text-decoration: none; }

header p#tagline {
    margin-top: 0;
    padding-top: 0;
    font-style: italic;
    color: #333;
}

header div#logo {
    padding-left: 15px;
    float: left;
    width: auto;
}
header div#logo img { 
    max-height: 50px; 
    max-width: 100%;
}

header div#search {
    float: right;
    margin-top: 0px;
    width: 351px;
    height: 65px;
    padding-right: 20px;
}
header div#search .social_language { 
    font-size: 14px;
}
header div#search .social_language .language_switcher { 
    float: right; 
    font-weight: bold;
    text-align: right;
}

header div#search .social_language #social_notice {
    display: none;
    font-size: 10px;
    line-height: 10px;
    position: absolute;
    background-color: #fefefe;
    padding: 1px 4px 4px;
    color: #333;
    opacity: 0.9;
    width: 37px;
}

div#newsletterwidget-3 {
    background-color: #d47c7c;
    padding: 3px 15px 15px;
    color: #ffffff;
}

div#newsletterwidget-3 div.newsletter-widget {
    display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;      /* TWEENER - IE 10 */
    display: -webkit-flex;     /* NEW - Chrome */
    display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
}

div#newsletterwidget-3 h2 { color: #ffffff; }
div#newsletterwidget-3 input[type=submit] { 
    -webkit-box-flex: 1;      /* OLD - iOS 6-, Safari 3.1-6 */
    -moz-box-flex: 1;         /* OLD - Firefox 19- */
    -webkit-flex: 1;          /* Chrome */
    -ms-flex: 1;              /* IE 10 */
    flex: 1;                  /* NEW, Spec - Opera 12.1, Firefox 20+ */
}
div#newsletterwidget-3 input[type=text] { 
    -webkit-box-flex: 2;      /* OLD - iOS 6-, Safari 3.1-6 */
    -moz-box-flex: 2;         /* OLD - Firefox 19- */
    -webkit-flex: 2;          /* Chrome */
    -ms-flex: 2;              /* IE 10 */
    flex: 2;                  /* NEW, Spec - Opera 12.1, Firefox 20+ */
}

div#newsletterwidget-3 input[type=text] {
    background-color: #ffffff;
    color: #61696b;
    padding: 5px 10px;
    border: 0;
}
div#newsletterwidget-3 input[type=submit] {
    background-color: #003f6c;
    color: #ffffff;
    font-weight: bold;
    border: 0;
    padding: 5px 10px;
}

div#courage_newsletter_subscription_widget-2 {
    margin-top: 20px;
    margin-bottom: 20px;
    position: relative;
}
div#courage_newsletter_subscription_widget-2 label.error {
    color: #D8000C;
    border: 1px solid #D8000C;
    background-color: #FFBABA;
    position: absolute;
    padding: 5px 10px;
    margin-top: 40px;
    left: 0px;
    width: 100%;
    font-size: 14px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

div#courage_newsletter_subscription_widget-2 input[type=email],
div#newsletterwidget-2 input[type=text],
header div#search input {
    padding-left: 30px;
    border: 1px solid #e2e4e9;
    height: 30px;
    
    width: 100%;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */

    background: #fefefe; /* Old browsers */
    font-size: 14px;

    /* IE9 SVG, needs conditional override of 'filter' to 'none' */

    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZlZmVmZSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlZGVjZWQiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);

    background: -moz-linear-gradient(top,  #fefefe 0%, #edeced 100%); /* FF3.6+ */

    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fefefe), color-stop(100%,#edeced)); /* Chrome,Safari4+ */

    background: -webkit-linear-gradient(top,  #fefefe 0%,#edeced 100%); /* Chrome10+,Safari5.1+ */

    background: -o-linear-gradient(top,  #fefefe 0%,#edeced 100%); /* Opera 11.10+ */

    background: -ms-linear-gradient(top,  #fefefe 0%,#edeced 100%); /* IE10+ */

    background: linear-gradient(to bottom,  #fefefe 0%,#edeced 100%); /* W3C */

    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fefefe', endColorstr='#edeced',GradientType=0 ); /* IE6-8 */
}

div#courage_newsletter_subscription_widget-2 input[type=email],
div#newsletterwidget-2 input[type=text] {
    padding-left: 10px;
    border: none;
    width: 100%;
}

div#courage_newsletter_subscription_widget-2 span { 
    display: inline-block; 
    overflow: hidden;
    border: 1px solid #e2e4e9;
    width: 68%;
}

aside#cta {
    background-color: #ececec;
    clear: both;
    display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;      /* TWEENER - IE 10 */
    display: -webkit-flex;     /* NEW - Chrome */
    display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
    padding: 0px;
    border: 1px solid #cdcdcd;
    margin: 0px -1px;
    color: #6c6c6c;
}

div.clear { clear: both; }
div.social { 
    float: left; 
}

aside#cta div#cta_left { 
    min-width: 460px;
    width: 40%; 
    -webkit-box-flex: 1;      /* OLD - iOS 6-, Safari 3.1-6 */
    -moz-box-flex: 1;         /* OLD - Firefox 19- */
    -webkit-flex: 1;          /* Chrome */
    -ms-flex: 1;              /* IE 10 */
    flex: 1;                  /* NEW, Spec - Opera 12.1, Firefox 20+ */
    text-align: center;
    overflow: hidden;
}

aside#cta div#cta_right { 
    width: 60%;
    -webkit-box-flex: 2;      /* OLD - iOS 6-, Safari 3.1-6 */
    -moz-box-flex: 2;         /* OLD - Firefox 19- */
    -webkit-flex: 2;          /* Chrome */
    -ms-flex: 2;              /* IE 10 */
    flex: 2;                  /* NEW, Spec - Opera 12.1, Firefox 20+ */
    position: relative;
    padding-left: 20px;
}

aside#cta div#cta_donate_block { 
    overflow: auto; 
    margin-bottom: 15px; 
}

aside#cta p#cta_button_text {
    margin: 1px 20px 8px 0px;
}

.widget_courage_donate_button_widget a#cta_donate_button,
aside#cta a#cta_donate_button {
    margin-right: 20px;
    font-size: 22px;
    color: white;
    font-weight: bold;
    padding: 20px 20px 0px;
    background-color: #0069B4;
    /*background-color: #DB6E00;*/
    /*background-color: #17B878;*/
}
aside#cta a#cta_donate_button {
    float: left;
    text-decoration: none;
    text-align: center;
    height: 37px;
    vertical-align: middle;
    display: table-cell;
}
.widget_courage_donate_button_widget a#cta_donate_button {
    display: block;
    margin: 0px;
    text-decoration: none;
    text-align: center;
    height: 37px;
}
.widget_courage_donate_button_widget a#cta_donate_button:hover {
    background-color: #003F6C !important;
}

aside#cta div#cta_right div#payment_methods {
    background: #cdcdcd;
    font-weight: bold;
    margin-left: -20px;
    height: 31px;
    font-size: 14px;
    padding-top: 12px;
    padding-left: 20px;
    padding-bottom: 12px;
    width: 100%;
}
aside#cta div#cta_right div#payment_methods img {
    position: relative;
    top: 6px;
    padding-left: 5px;
}

aside#cta blockquote {
    margin: 30px 0px;
    padding: 0px;
    padding-right: 115px;
    font-size: 22px;
    line-height: 26px;
    font-weight: bold;
}

.archive article,
.category article,
.search-results article { border-bottom: 1px solid #f0f0f0; }

.archive article:last-of-type,
.category article:last-of-type,
.search-results article:last-of-type { border-bottom: none; }

input[type=submit] {
    background-color: #003f6c; 
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
    height: 32px;
    font-size: 14px;
    padding: 5px;
    color: white;
    border: 0;
}

div#wrapper > nav {
    background-color: #dc0000; 
    font-size: 20px;
    min-height: 50px;
    margin-top: -20px;
}

body > footer {
    height: 59px;
    background-color: #61696b;
    font-size: 16px;
    padding-left: 20px;
    position: relative;
    color: #ffffff;
    clear: both;
}
/* Opera fix */
body:before {
    content: "";
    height: 100%;
    float: left;
    width: 0;
    margin-top: -32767px;
}

div#courage_newsletter_subscription_widget-2 input[type=submit],
div#newsletterwidget-2 input[type=submit] {
    float: right;
    margin-left: 5px;
    width: 27%;
}

footer > p  { 
    float: left; 
    margin: 0;
    margin-top: 10px;
}

footer div.menu-footer-menu-container { 
    text-align: right; 
    float: right;
    margin: 0px;
    padding: 0px;
}
footer div.menu-footer-menu-container a { 
    padding: 20px;
}
footer div.menu-footer-menu-container a:hover { 
    background-color: #50585A;
}

footer ul.footer-menu { 
    margin-top: 0px; 
    padding-top: 0px; 
}
    
body > footer a,
nav a { 
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px;
}

footer li,
nav li {
    float: left;
}

nav .current-menu-item {
    background-color: #850000;
}

nav .current-submenu-item { font-weight: bold; }

nav ul#menu-main-menu > li:first-of-type,
footer li:first-of-type { padding-left: 0px; }

footer li:last-of-type,
nav li:last-of-type { margin-right: 0px; }

footer ul,
nav ul {
    list-style: none;
    padding: 0px;
    position: relative;
}

av { 
    position: relative; 
    clear: both;
}

.nojs nav li.current-menu-parent,
nav li.active-menu a,
nav ul.sub-menu { 
    background-color: #850000;
    color: #fff;
}
.nojs nav li.current-menu-parent a,
nav li.active-menu a {
    color: #fff;
}
.nojs nav li.current-menu-parent,
.nojs nav li.active-menu {
    border: 1px solid #f6f6f6;
}
.nojs nav ul.sub-menu { display: none; }
.nojs nav .current-menu-parent ul { display: block; }
.nojs nav ul.sub-menu li.current-menu-item { font-weight: bold; }
nav ul.sub-menu { 
    width: 100%;
    left: 0px;
    position: absolute;
    padding: 7px 0px;
}

/* Hack to make submenu work without JS */
.nojs nav ul.sub-menu a:hover { 
    background-color: #850000 !important;
    color: #fff !important;
}

/* On hover main menu item, show submenu item */
.nojs nav ul#menu-main-menu > li:hover > ul.sub-menu {
    display: block;
    z-index: 999;
}

nav ul#menu-main-menu > li> a:hover {
    background-color: #cb0000;
}
nav ul#menu-main-menu > li#menu-item-42 > a {
    background-color: #cb0000;
}
nav ul#menu-main-menu > li.active-menu > a:hover {
    background-color: #850000;
}

.nojs div#main { margin-top: 50px; }
.nojs .home div#main { margin-top: 0px; }
/* end hack :) */

.widget_courage_toc_widget ul { 
    list-style: none; 
    padding: 0px;
}
.widget_courage_toc_widget li {
    padding: 5px 0px;
}
.widget_courage_toc_widget a {
    font-size: 16px;
}

.widget_courage_toc_widget li.level-3 {
    margin-left: 20px;
}
.widget_courage_toc_widget li.level-4 {
    margin-left: 40px;
}
.widget_courage_toc_widget li.level-5 {
    margin-left: 60px;
}

.widget_courage_toc_widget a,
nav ul.sub-menu a {
    margin: 0px;
    text-decoration: none;
    color: #fff;
}

nav ul.sub-menu a {
    font-size: 14px;
    padding: 5px 20px;
}

.entry-meta,
div.breadcrumbs a,
div.breadcrumbs {
    color: #6C6C6C;
    font-size: 14px;
}

i.es_search_icon {
    position: absolute;
    margin-top: 7px;
    margin-left: 8px;
}

.search #content p { font-size: 14px; }

/* Images */
.alignleft {
	float: left;
}

.alignright {
	float: right;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

img.alignleft {
	margin: 5px 20px 5px 0;
}

.wp-caption.alignleft {
	margin: 5px 10px 5px 0;
}

img.alignright {
	margin: 5px 0 5px 20px;
}

.wp-caption.alignright {
	margin: 5px 0 5px 10px;
}

img.aligncenter {
	margin: 5px auto;
}

img.alignnone {
	margin: 5px 0;
}

.wp-caption .wp-caption-text,
.entry-caption,
.gallery-caption {
	color: #000;
    margin-top: 0px;
	font-style: italic;
	font-weight: 300;
    text-align: center;
    font-size: 0.9em;
}

img.wp-smiley,
.rsswidget img {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

.wp-caption.alignleft + ul,
.wp-caption.alignleft + ol  {
	list-style-position: inside;
}

/* Contact form styling */
.wpcf7 p { margin-bottom: 6px; }
#commentform label,
.wpcf7 label {
    -webkit-box-flex: 1;      /* OLD - iOS 6-, Safari 3.1-6 */
    -moz-box-flex: 1;         /* OLD - Firefox 19- */
    -webkit-flex: 1;          /* Chrome */
    -ms-flex: 1;              /* IE 10 */
    flex: 1;                  /* NEW, Spec - Opera 12.1, Firefox 20+ */
    font-weight: bold;
    clear: both;
    display: inline-block;
    min-width: 250px;
    vertical-align: top;
}
#commentform label { min-width: 150px; }
.wpcf7 label > span { 
    color: grey; 
    font-style: italic;
    font-size: .8em; 
}
#commentform textarea,
.wpcf7 input, .wpcf7 textarea, .wpcf7 label {
    padding: 3px;
}
#commentform textarea, #commentform input,
.wpcf7 input, .wpcf7 textarea, .wpcf7 select { 
    -webkit-box-flex: 3;      /* OLD - iOS 6-, Safari 3.1-6 */
    -moz-box-flex: 3;         /* OLD - Firefox 19- */
    -webkit-flex: 3;          /* Chrome */
    -ms-flex: 3;              /* IE 10 */
    flex: 3;                  /* NEW, Spec - Opera 12.1, Firefox 20+ */
    font-size: 1em;
    font-family: 'Ubuntu', Helvetica, Arial, sans-serif;
    max-width: 450px;
    border-radius: 0;
    border: 1px solid #cccccc;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 textarea, .wpcf7 select { 
    width: 100%;
}
#commentform textarea, #commentform input[type=text] {
    max-width: 450px;
}
#commentform textarea,
.wpcf7 textarea { flex: 3; }

#comments article.comment { margin-top: 10px !important; }
#comments .comment-meta { display: inline-block; }
#comments .avatar,
#comments .authormeta { float: left; }
#comments .avatar { margin-right: 5px; }

/* Noscript notice */
div#noscript_notice {
    background-color: #FFFF88;
    color: black;
    display: block;
    padding: 10px 20px 5px;
    font-size: 0.8em;
}
div#noscript_notice h1 { 
    font-size: 1em;
    font-weight: bold;
    margin-top: 0px;
}

/* frontpage stuff */
.news_thumbnail {
    float: left;
    margin-right: 15px;
}
.news_thumbnail img { max-width: 115px; max-height: 115px; }
.no-flexbox .featured_thumbnail img { max-width: 351px; max-height: 125px; }
.flexbox .featured_thumbnail img { 
    max-width: 351px;
    max-height: 125px;
    width: 100%; 
    height: 100%; 
}
.news_thumbnail, .news_excerpt {
    display: table-cell;
    vertical-align: top;
}

header.entry-header h2,
.featured_excerpt h2,
.news_excerpt h2 { margin-top: 0px; margin-bottom: 0px; }

header.entry-header .post_date,
.featured_excerpt .post_date,
.news_excerpt .post_date { 
    color: #aaa; 
    text-transform: uppercase; 
    font-size: .8em; 
    margin-top: 0px;
}

.news_item { 
    clear: both; 
    margin: -10px;
    padding: 10px;
    margin-bottom: 10px;
    min-height: 130px;
    border-bottom: 1px solid #c4c4ae;
}

.featured_item {
    display: block;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.featured_item:last-of-type { border-bottom: none; }

.news_item.sticky {
    background-color: #f0f0f0;
}
.news_item:last-of-type { border-bottom: none; }

.news_box { 
    background-color: #fafafa;
    border: 1px solid #aaa;
}
.news_box { 
    padding: 10px;
}
.featured_box h1.featured_box_header,
.news_box h1.news_box_header {
    font-size: 20px;
    text-transform: uppercase;
    font-weight: normal;
    color: #555;
    border-bottom: 1px solid #aaa;
    background: #ccc; 
    margin: -10px;
    padding: 10px;
    margin-bottom: 10px;
}

div.upload_error { color: #f00; font-weight: bold; }

/* IE < 10 crap */
.ie div#main aside#sidebar { float: left; }
.ie div#main section#content { float: left; width: 59%; }
.ie aside#cta { height: 285px; }
.ie aside#cta div#cta_right { width: 60%; float: left; height: 285px; }
.ie aside#cta div#cta_left { width: 38%; float: left; }
.ie footer { clear: both; }

/* Chrom(e)(ium) specific CSS */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    nav ul.submenu {
        border-left: 1px solid #dc0000;
        border-right: 1px solid #dc0000;
        border-bottom: 1px solid #dc0000;
        margin-left: -1px;
    }
}

/* Mobile-specific styles */
/* Smartphones (portrait and landscape) */
@media only screen
/*and (min-width: 320px)*/
and (max-width: 767px) {
    .no-flexbox .featured_box_wrapper { 
        display: inline-block;
    }
    .no-flexbox .featured_item { 
        margin-right: 20px;
        float: left;
        display: block;
    }
    .no-flexbox .featured_item:last-of-type { margin-right: 0; }
    .featured_box_wrapper { 
        flex-direction: column;
        text-align: left;
    }
    .featured_item { 
        width: 100%; 
        max-width: auto;
        margin: 0 auto;
        padding: 0;
        border-right: 0;
    }
    div#main {
        display: block;
        position: relative;
        margin-top: 15px;
        background-color: #ffffff;
    }

    body > div#wrapper > nav { height: auto; }
    nav ul#menu-main-menu { padding: 0px; }
    nav ul#menu-main-menu li { display: block; margin-top: 0px; }
    nav ul#menu-main-menu li.active-menu > a { padding-bottom: 0px; }
    footer li, nav li { display: inline-block; float: none; overflow: hidden; }
    aside#sidebar { width: auto; }
    aside#cta { display: block; overflow: auto; }
    aside#cta div#cta_right { width: 100%; display: block; border: none; }
    aside#cta div#cta_left { display: none; }
    aside#cta blockquote { padding: 0px; }
    aside#cta div#cta_donate_block { margin-bottom: 5px; overflow: hidden; }
    aside#cta a#cta_donate_button { display: block; margin-bottom: 5px; width: 89%; }
    aside#cta p#cta_button_text { width: 100%; }
    div#main aside#sidebar .widget_courage_news_widget { width: 101%; }
    aside#cta div#cta_right div#payment_methods {
        position: relative;
        height: 50px;
        overflow: auto;
        display: block;
        clear: both;
        padding: 2px 20px;
        margin: 0px;
        margin-left: -20px;
    }
    aside#cta div#cta_right div#payment_methods img {
        position: relative;
        padding-left: 0px;
    }
    body > div#wrapper > nav { height: inherit; }
    body > footer { margin-top: inherit; }
    body > div#wrapper > nav li, body > footer li { padding: 0px; }

    nav ul.sub-menu {
        position: inherit;
        margin: 0px;
        width: inherit;
        left: 0px;
    }
    /*div#main aside#sidebar .widget_courage_news_widget { padding: 0px 16px; }*/

    header div#search { 
        float: none; 
        margin-top: 0px; 
        margin-left: 20px;
        padding-top: 10px;
        width: auto !important;
        clear: both;
        margin-bottom: 0px;
    }

    header div#search #duckduckgo-search-1 input { width: 91%; }

    header div#logo { 
        text-align: center;
        margin: 0 20px;
        padding: none;
        float: none;
        padding: 0;
    }

    div#main section#content { 
        margin-left: 0px;
        padding-right: 0px;
    }

    div#main aside#sidebar {
        max-width: none;
    }

    div#main section#content,
    div#main aside#sidebar { 
        margin: 0 20px;
        padding: 10px 0;
    }

    .featured_item {
        margin-bottom: 15px !important;
        padding-bottom: 15px !important;
    }
    .featured_item:last-of-type { 
        margin-bottom: 0px !important;
        padding-bottom: 0px !important;
    }

    .flexbox .featured_thumbnail img { 
        max-width: none;
        max-height: none;
    }

    aside#sidebar #courage_newsletter_subscription_widget-2 input,
    aside#sidebar #courage_newsletter_subscription_widget-2 span {
        width: 48%;
    }
    aside#sidebar #courage_newsletter_subscription_widget-2 input[type=email] {
        width: 100% !important;
    }

    nav { margin-top: -10px; margin-bottom: -20px; }
    .nav-mobile-icon { display: block; }
    nav { display: none; }
    .news_thumbnail { display: none; }

    #wrapper > header { margin-bottom: 0px; padding-top: 25px; }
    footer div.menu-footer-menu-container { 
        float: none;
    }
    footer ul.footer-menu { margin: 0px; padding: 0px; }

    #siteswitcher { 
        width: 100%; 
        position: relative;
        margin: 0;
        padding: 10px 20px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }
    #siteswitcher ul > li { 
        padding: 10px 0px; 
    }
}

/* Smartphones (portrait) */

@media only screen
and (min-width: 480px)
and (max-width: 767px)
{
    .no-flexbox .featured_box_wrapper { 
        display: inline-block;
    }
    .no-flexbox .featured_item { 
        margin-right: 20px;
        float: left;
        display: block;
    }
    .no-flexbox .featured_item:last-of-type { margin-right: 0; }
    div#main {
        display: block;
        position: relative;
        margin-top: 15px;
    }

    header div#search { 
        float: none; 
        margin-top: 0px; 
        margin-left: 20px;
        padding-top: 10px;
        width: auto !important;
        clear: both;
        margin-bottom: 0px;
    }

    header div#search #duckduckgo-search-1 input { width: 91%; }

    aside#sidebar { width: auto; }

    aside#cta { display: block; overflow: auto; }
    aside#cta div#cta_right { width: 100%; display: block; border: none; }
    aside#cta div#cta_left { display: none; }
    aside#cta blockquote { padding: 0px; }
    aside#cta div#cta_donate_block { margin-bottom: 5px; overflow: hidden; }
    aside#cta a#cta_donate_button { display: block; margin-bottom: 5px; width: 89%; }
    aside#cta p#cta_button_text { width: 100%; }
    div#main aside#sidebar .widget_courage_news_widget { width: 101%; }
    aside#cta div#cta_right div#payment_methods {
        position: relative;
        height: 50px;
        overflow: auto;
        display: block;
        clear: both;
        padding: 2px 20px;
        margin: 0px;
        margin-left: -20px;
    }
    aside#cta div#cta_right div#payment_methods img {
        position: relative;
        padding-left: 0px;
    }

    div#main aside#sidebar .widget_courage_news_widget { padding: 0px 16px; }

    div#main aside#sidebar {
        max-width: auto !important;
    }

    .nav-mobile-icon { display: block; }
    nav { display: none; }
    .news_thumbnail { display: none; }

    .flexbox .featured_thumbnail img { 
        max-width: none;
        max-height: none;
    }
}

/* Smaller tablets */
@media only screen
and (min-width: 640px)
and (max-width: 767px) {
    aside#sidebar .featured_thumbnail, 
    aside#sidebar .featured_excerpt, 
    aside#sidebar #courage_newsletter_subscription_widget-2 input,
    aside#sidebar #courage_newsletter_subscription_widget-2 span {
        width: 48%;
    }
    aside#sidebar #courage_newsletter_subscription_widget-2 input[type=email] {
        width: 100% !important;
    }

    aside#sidebar .featured_item { display: inline-block; clear: both; }
    aside#sidebar .featured_thumbnail { float: left; overflow: hidden; }
    .flexbox .featured_thumbnail img { 
        max-width: none;
        max-height: none;
    }
    aside#sidebar .featured_excerpt { float: right; }
}

/* Tablets (portrait and landscape) */
@media only screen
and (min-width: 481px)
and (max-width: 1200px) {
    .no-flexbox .featured_box_wrapper { 
        display: inline-block;
    }
    .no-flexbox .featured_item { 
        margin-right: 20px;
        float: left;
        display: block;
    }
    .no-flexbox .featured_item:last-of-type { margin-right: 0; }

    div#main aside#sidebar {
        max-width: auto !important;
    }
    .flexbox .featured_thumbnail img { 
        max-width: none;
        max-height: none;
    }
}

/* iPads (landscape) */
/* iPads (portrait) */

/* iPhone 4 */
@media
only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5) {
}
