/* ---------------------------------------------
Put all custom CSIAC CSS here.
--------------------------------------------- */

.bold {
    font-weight: 600;
}

/* Connected Posts Global Styles
--------------------- */

.connected {
    padding: 20px 20px 0;
    background-color: #efefef;
    border: 1px solid #ccc;
    margin: 20px 0;
    font-size: 14px;
    clear: both;
}

.connected h2 {
    font-size: 24px;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
}

.connected h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.entry-content .connected ul {
    margin: 0;
}

.entry-content .connected ul > li {
    list-style-image: none;
}

@media only screen and (max-width: 575px) {

    .connected {
        margin: 20px 0;
    }
}

/* After Entry Previous/Next
--------------------------------------------- */

.previous-post-link {
    width: 40%;
}

.next-post-link {
    width: 40%;
}

.prev-next-post-links {
    margin-bottom: 50px;
}

#respond{
    clear:both;
}

/* Journal Article Archive Page
--------------------------------------------- */
.post-type-archive-journal-article h2.entry-title {
    font-size: 20px;
}

.post-type-archive-journal-article .entry-meta p {
    display: none;
}

.post-type-archive-journal-article .archive-description {
    border-bottom: 2px solid #990026;
}

/* Journal Issue Archive Page
--------------------------------------------- */
.csiac_journal_issue_info {
    display: inline;
}

.csiac_journal_issue_number {
    padding-left: 12px;
}

.csiac_journal_issue_container {
    padding-bottom: 10px;
}

.csiac_PDF_container .fa-file-pdf-o {
    padding-right: 5px;
}

.post-type-archive-journal-issue .entry {
    padding-bottom: 20px;
    border-bottom: 1px solid #DEDEDE;
    margin-bottom: 20px;
}

.post-type-archive-journal-issue .archive-description {
    border-bottom: 2px solid #990026;
}

.post-type-archive-journal-issue .archive-description p:last-child {
    margin-bottom: 20px;
}

.post-type-archive-journal-issue article {
    font-size: 14px;
}

.post-type-archive-journal-issue h2.entry-title {
    font-size: 20px;
}

.post-type-archive-journal-issue .journal-featured-image {
    float: right;
    margin-left: 20px;
}

.journal-featured-image img {
    vertical-align: top;
}

@media only screen and (max-width: 800px) {
    .post-type-archive-journal-issue .journal-featured-image {
        margin-bottom: 40px;
    }
}

@media only screen and (max-width: 440px) {
    .post-type-archive-journal-issue .journal-featured-image {
        float: none;
        margin: 20px 0 20px 0;
        text-align: center;
    }
    .post-type-archive-journal-issue h2.entry-title {
        float: none;
    }
}

/* TAG Archive Page
--------------------------------------------- */
.tag .entry {
    padding-bottom: 20px;
    border-bottom: 1px solid #DEDEDE;
    margin-bottom: 20px;
}

.tag .archive-description {
    border-bottom: 2px solid #990026;
}

.tag .archive-description p:last-child {
    margin-bottom: 20px;
}

.tag article {
    font-size: 14px;
}

.tag h2.entry-title {
    font-size: 20px;
}

.tag .posttype {
    float: right;
    margin: 0 0 10px 10px;
}

.tag .tag-feat-image img {
    margin: 0 10px 10px 0;
}

/* SEARCH Page
--------------------------------------------- */
.search .entry {
    padding-bottom: 20px;
    border-bottom: 1px solid #DEDEDE;
    margin-bottom: 20px;
}

.search .archive-description {
    border-bottom: 2px solid #990026;
}

.search .archive-description p:last-child {
    margin-bottom: 20px;
}

.search article {
    font-size: 14px;
}

.search h2.entry-title {
    font-size: 20px;
}

.search .posttype {
    float: right;
    margin: 0 0 10px 10px;
}

.search .tag-feat-image img {
    margin: 0 10px 10px 0;
}


/* People Grid
--------------------- */

.person-featured-image img {
    width: 150px;
    height: 200px;
    border: 1px solid #666;
}

.title-meta {
    padding-top: 15px;
    bottom: 0;
    left: 0;
}

.person-grid-archive .content .entry-title,
.person-profile .entry-title {
    margin-bottom: 4px;
    line-height: 1;
    font-size: 14px;
}

.person-grid-archive .content p.entry-meta,
.person-profile p.entry-meta {
    text-transform: none;
    font-size: 14px;
    margin-bottom: 0;
}

.person-grid-archive .archive-pagination {
    clear: both;
}

@media only screen and (max-width: 800px) {
    
    .person-grid-archive .one-sixth {
        margin: 0 0 40px 0;
        width: 30%;
    }
    .person-grid-archive .person-featured-image {
        width: 150px;
        height: 200px;
    }
}

@media only screen and (max-width: 720px) {

    .person-grid-archive .content .entry {
        width: 45%;
    }
}

@media only screen and (max-width: 420px) {
    .person-grid-archive .content .entry {
        width: 100%;
    }
    .person-grid-archive .person-featured-image {
        margin: 0 auto;
    }
    .person-grid-archive .entry-content {
        text-align: center;
    }
}

/* People Single Page
--------------------- */

.single-person .person-featured-image-single {
    text-align: center;
}

/*
.single-person .entry-content {
    clear: both;
} 

.single-person header.entry-header {
    background-color: #efefef;
    border: 1px solid #ccc;
    width: 100%;
    min-height: 202px;
    padding: 0 30px;
    margin-bottom: 30px;
}

.single-person h1.entry-title {
    font-size: 24px;
    color: #444;
}
*/

.single-person .content .post .entry-title {
    margin-bottom: 20px;
}

.single-person .entry-meta {
    display: none;
}

.single-person .entry-meta {
    color: #444;
}

.single-person .entry-terms {
    font-weight: 400;
}

.single-person .person-featured-image-single img {
    margin-top: 0;
    border: 1px solid #ccc;
    /*float: left;*/
    /*margin: 0 20px 30px 0;*/
    margin: 10px 0 20px 30px;
    padding: 10px;
    float: right;
}

.single-person .entry-content .more-link {
    display: inline;
}

.single-person .entry-content .events ul > li {
    padding-bottom: 20px;
}

.single-person .entry-content .events p {
    display: inline;
}

@media only screen and (max-width: 575px) {

    .single-person header.entry-header {
        min-height: auto;
        text-align: center;
        padding: 20px;
        margin: 30px 0;
    }

    .single-person h1.entry-title {
        padding: 0;
    }

    .single-person .person-featured-image-single img {
        float: none;
        margin:  0;
    }

    .single-person .entry-content {
        margin-left: 0px;
    }

}

/* Single Certification Page
--------------------- */

.cert-org {
    margin-bottom: 20px;
}

.cert-url {
    margin-bottom: 40px;
}

/*  Certification / Reports / Reference Docs ARCHIVES
--------------------- */


/* START post headers */

.csiac-doc-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-weight: 600;
    font-size: 18px;
    border-bottom: 2px solid #990026;
    padding: 10px;
}

.post-type-archive-certification .csiac-doc-header-title {
    width: 48%;
    float: left;
}

.post-type-archive-certification .csiac-doc-header-org {
    width: 48%;
    float: right;
}

.post-type-archive-reference-doc .csiac-doc-header-date, .post-type-archive-csiac-report .csiac-doc-header-date {
    width: 115px;
    float: left;
    margin-right: 30px
}

/* END post headers */



.post-type-archive-certification article:nth-child(even)
/*, .post-type-archive-reference-doc article:nth-child(even)
, .post-type-archive-csiac-report article:nth-child(even)*/ {
    background-color: #f2f2f2;
}

.post-type-archive-reference-doc .entry, .post-type-archive-csiac-report .entry {
    padding: 20px 10px;
    margin-bottom: 0;
    font-size: 14px;
    border-bottom: 1px solid #dedede;
}

.post-type-archive-certification .entry {
    padding: 5px 10px;
    margin-bottom: 0;
    font-size: 14px;
}

.post-type-archive-certification h2.entry-title {
    font-size: inherit;
    display: inline-block;
}

.post-type-archive-csiac-report h2.entry-title, .post-type-archive-reference-doc h2.entry-title {
    font-size: 18px;
    display: inline-block;
}

.post-type-archive-reference-doc .entry-content p {
    margin-bottom: 0;
}

.post-type-archive-certification .content .post .entry-title {
    margin-bottom: 0;
}

.post-type-archive-certification h2.entry-title {
    width: 48%;
}
.post-type-archive-certification .csiac-cpt-doc-entry-meta {
    width: 48%;
    float: right;
}

.post-type-archive-reference-doc h2.entry-title, .post-type-archive-csiac-report h2.entry-title{
    width: 85%;
}
.post-type-archive-reference-doc .entry-meta, .post-type-archive-csiac-report .entry-meta {
    width: 115px;
    float: left;
    margin-bottom: 0;
    margin-right: 50px;
    font-size: inherit;
    font-weight: inherit;
    display: inline-block;
    min-height: 100px;
}

.post-type-archive-csiac-report .entry-footer, .post-type-archive-csiac-report .entry-footer  {
    padding-left: 165px;
}

.post-type-archive-reference-doc .entry-content, .post-type-archive-csiac-report .entry-content {
    padding-left: 165px;
}

.post-type-archive-csiac-report .journal-featured-image {
    float: right;
    margin-left: 20px;
}

@media only screen and (max-width: 700px) {

    .post-type-archive-csiac-report .journal-featured-image, .post-type-archive-reference-doc .journal-featured-image {
        display: none;
    }

}



@media only screen and (max-width: 1080px) {

    .post-type-archive-reference-doc h2.entry-title, .post-type-archive-csiac-report h2.entry-title {
        width: 75%;
    }
}

@media only screen and (max-width: 660px) {

    .post-type-archive-reference-doc h2.entry-title, .post-type-archive-csiac-report h2.entry-title {
        width: 60%;
    }
}

@media only screen and (max-width: 420px) {

    .post-type-archive-reference-doc h2.entry-title, .post-type-archive-csiac-report h2.entry-title {
        width: 42%;
    }
}




/* Single Reference Document Page
--------------------- */

.ref-doc-url {
    margin-bottom: 40px;
}

/* Single CSIAC Report Page
--------------------- */

.single-csiac-report .csiac-report-pdf-link {
    margin-bottom: 40px;
}

.csiac-report-pdf-link .fa-file-pdf-o {
    padding-right: 5px;
}

/* Single Journal Page
--------------------- */

.single-journal-issue .journal_PDF {
    text-align: center;
    position: relative;
}

.single-journal-issue .journal-feat-image {
    float: right;   
}

.single-journal-issue .journal-feat-image_800 {
    display: none;
}

.single-journal-issue .prev-next-post-links {
    clear: right;
}

.single-journal-issue .previous-post-link, .next-post-link {
    display: inline-block;
}

.single-journal-issue .next-post-link {
    float: right;
    text-align: right;
}

.single-journal-issue .journal_articles {
    clear: right;
    margin-top: 10px;
}

.single-journal-issue .journal_articles ul {
    margin-right: -40px;
}

.single-journal-issue .journal_articles li {
    display: inline-block;
    width: 46%;
    margin: 15px 40px 15px 0;
    vertical-align: top;
}

.single-journal-issue .more-link {
    display: inline;
}
 
button, input[type="button"], .button {
    background: #990026;
}

button:hover, .button:hover {
    background: #B70321;
}

/* https://css-tricks.com/centering-css-complete-guide/ */
.single-journal-issue span.text-content {
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-weight: 600;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10%;
  font-size: 20px;
  line-height: 24px;
  opacity: 0;
  -webkit-transition: opacity 500ms;
  -moz-transition: opacity 500ms;
  -o-transition: opacity 500ms;
  transition: opacity 500ms;
}

.journal_PDF i.fa.fa-file-pdf-o {
    font-size: 60px;
    margin-bottom: 20px;
    font-weight: 300;
}

.single-journal-issue span.text-content span {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
}

.single-journal-issue a:hover span.text-content {
  opacity: 1;
}

.single-journal-issue .journal_PDF a:hover span.text-content {
  opacity: 1;
}

@media only screen and (max-width: 1090px) {

    .single-journal-issue .journal_articles li {
        margin: 15px 25px 15px 0;
    }
}

@media only screen and (max-width: 800px) {

    .single-journal-issue .journal-feat-image {
        display: none;
    }

    .single-journal-issue .journal-feat-image_800 {
        display: block;
        text-align: center;
    }
    .single-journal-issue .csiac_PDF_container {
        margin-bottom: 20px;
        text-align: center;
    }
}

@media only screen and (max-width: 700px) {

    .single-journal-issue .journal_articles ul {
        margin-right: 0px;
    }  

    .single-journal-issue .journal_articles li {
        width: 100%;
    }
}

/* Sticky Menu
--------------------------------------------- */
 
.sticky-menu {
    background-color: #fff;
    /*opacity: 0.95;*/
    border-bottom: 1px #ccc solid;
    display: none;
    position: fixed;
    width: 100%;
    z-index: 9999;
    top: 0;
}

.sticky-menu .genesis-nav-menu {
    line-height: normal;
}

.admin-bar .sticky-menu {
    top: 32px;
}

.sticky-menu ul {
    text-align: right;
}

.sticky-menu li.menu-item {
    font-size: 16px;
}

.sticky-menu li.home-logo {
    float: left;
    width: 106px;
}

.sticky-menu a {
    color: #2f2f2f;
    text-transform: uppercase;
    font-weight: 600;
}

.sticky-menu .home-logo > a {
    background: url("../images/CSIAC_logo_106x50.png") no-repeat left center;
    height: 100%;
    width: 100%;
    text-indent: -9999px;
}

.sticky-menu li.search {
    display: inline-block;
    position: relative;
}

.sticky-menu a:hover,
.sticky-menu .current-menu-item > a {
    color: #990026;
}

/*Sub Menu*/

.sticky-menu .sub-menu a {
    margin-top: 1px;
}

.sticky-menu .sub-menu a {
    color: #fff;
    padding: 10px 20px;
    text-transform: none;
}

.sticky-menu .sub-menu .current-menu-item > a {
    color: #fff;
}

.sticky-menu .sub-menu .current-menu-item > a:hover,
.sticky-menu .sub-menu a:hover {
    background-color: #B70321;
    color: #efefef;
}


/*Mobile*/

@media screen and (max-width: 860px) {
    .sticky-menu li.menu-item {
        font-size: 14px;
    }
    .sticky-menu a {
        padding: 20px 15px;
    }
}

@media screen and (max-width: 782px) {
    .admin-bar .sticky-menu {
        top: 46px;
    }
}

@media screen and (max-width: 700px) {
    .sticky-menu {
        top: 50px;
        /* Override Element Style to Hide Sticky Menu when Mobile Menu is Displayed */
        display: none !important; 
        /* Override Element Style from looping from 0 to .95 repeatedly */ 
        opacity: 0;
    }

    .admin-bar .sticky-menu {
        top: 96px;
    }
}




.menu-toggle:before {
    content: "\2630  MENU";
}
.menu-toggle:hover:before {
    content: "\2630  MENU";
}
.menu-toggle.activated:before {
    content: "\2637  MENU";
}


/* -----------------------BuddyPress Activity Feed--------------------------------------*/

#buddypress ul#activity-stream li:nth-child(odd) {
background-color: #f2f2f2;
}

#buddypress .activity-list .activity-content {
    margin: 0 0 0 0;
    padding: 0 15px;
    font-size: 80%;
}

#buddypress .activity-list .activity-content .activity-inner {
    margin: 0;
}

#buddypress .activity-list .activity-content .activity_actions{
    padding-top: 10px;
}

#buddypress .activity-list .activity-content .activity_actions button{
    height: 25px;
    font-size: 10px;
}

#buddypress .activity-list .activity-content .activity_actions .activity_actions_right{
    height: 25px;
    line-height: 25px;
    float:right;
}
#buddypress .activity-list .activity-content .activity_actions .activity_actions_right i{
    font-size: 20px;
    line-height: 25px;
}

#buddypress .activity-list img.avatar {
    border: 1px solid #d8dbdc;
}

#buddypress .activity-list .journal_img_link, #buddypress .activity-list .podcast_img_link {
    float: left;
    margin-right: 10px;
}

#buddypress ul.activity-list li h3 {
    font-weight: 600;
    font-size: 20px;
    width: 100%;
}

#buddypress .activity-list span.activity-post-type {
    color: #2f2f2f;
    font-weight: 400;
}

#buddypress .activity-list .activity-avatar {
    float: right;
}

#buddypress .activity-header {
    margin-right: 0;
}

#buddypress div.activity-meta {
    margin: 10px 0 18px 0;
}

#buddypress .activity-list .activity-content .activity-inner .more-link {
    display: inline;
}

#buddypress .activity-list .activity-content .activity-inner .more-link a {
    background: none;
    color: #990026;
    display: inline;
    float: none;
    line-height: 1.2;
    padding: 0;
}

#buddypress .activity-list .activity-content .activity-inner .more-link a:hover {
    background: none;
    color: #2f2f2f;
}

#buddypress div.activity-comments {
    margin: 0;
}

#buddypress .activity-list .activity-content .activity-meta .acomment-reply {
    position: relative;
    background: #990026;
}

#buddypress .activity-list .activity-content .activity-meta .acomment-reply:after {
    bottom: 100%;
    left: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(153, 0, 38, 0);
    border-bottom-color: #990026;
    border-width: 10px;
    margin-left: -40px;
    padding-left: 0;
}

#buddypress .activity-list .activity-content .activity-meta .acomment-reply:hover {
    position: relative;
    background: #B70321;
}

#buddypress .activity-list .activity-content .activity-meta .acomment-reply:hover:after {
    border-bottom-color: #B70321;
}

#buddypress .activity-list .activity-comments .acomment-content {
    background-color: #f2f2f2;
    padding: 10px;
}

.fav:before, .unfav:before{
    font-family: FontAwesome;
    font-size: 24px;
    margin-right: 5px;
}

.fav span, .unfav span {
    display: none;
}

.fav:before, .unfav:hover:before {
    content: "\f006";
}

.unfav:before, .fav:hover:before {
    content: "\f005";
}

.fav:hover:before, .unfav:hover:before {
    color: #990026;
}

.activity-meta .delete-activity span {
    display: none;
}

.activity-meta .delete-activity:before {
    font-family: FontAwesome;
    content: "\f1f8";
    padding-right: 5px;
}

/* ENTRY AUTHOR JOURNAL ARTICLES */

ul.entry-author, .entry-author li {
    display: inline;
}

.entry-author li:nth-last-of-type(2):after {
    content: ' and ';
}

.entry-author li:nth-last-of-type(n+3):after {
    content: ', ';
}

.entry-meta .entry-issue {
    margin-bottom: 10px;
}

.publisher-issue {
    display: inline;
    font-style: italic;
}

.csiac_PDF_container {
    margin-bottom: 20px;
}