/*
 Theme Name:   Mission News Child
 Template:     mission-news
 Author: 	   Compete Themes
 Version: 	   1.16
 Author URI:   https://www.competethemes.com
 Description:  This is a child theme used to customize the Mission News WordPress theme.
 License: GNU  General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/
 
@import url("../mission-news/style.min.css");

/* =Theme customization starts here
-------------------------------------------------------------- */
/* rules around polls widget */
section.widget.widget_polls-widget {
    border-style: solid;
    border-width: 1px;
    padding: 10px;
		 border-color: #e0dde0;
		text-align: center;
}
/* flexbox testo */
@media (max-width: 700px){


/*fsingle post spacing issue */
.single .entry .post-content {
    margin-top: 0px;
    padding-top: 0px;
}
}

/* Added by BURST 28/03/2019
-------------------------------- */

@media (min-width: 800px){
    .entry .post-header, 
    .archive .entry .post-header {
        float: none !important;
        margin-top: 45px !important;
    }
    body.home .entry .post-header, 
    .archive .entry .post-header {
        float: left !important;
    }
}
body.home .entry .post-header, 
.archive .entry .post-header {
    margin-top: 0 !important;
}

.single .entry .post-byline, 
.search .post-byline {
    /* float: none!important; */
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    width: 100%;
    /* background: #eee !important;
    border-radius: 4px !important;
    padding: 5px 10px !important;
    width: 24%;
    margin-right: 75% !important; */
}
@media (max-width: 799px){
.single .loop-container.single .entry .post-byline {
    margin-top: -25px!important;
}
}

.single .entry .post-content {
    padding-top: 4px !important;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 30px;
    font-weight: 700;
}
h3 {
    font-size: 1.15em;
}

.post-title {
    margin-bottom: 0;
}

/* END BURST 28/03/2019 -------------------------------- */


/* Moved from Inline CSS */
/* sidebar ad width 110918 */
@media all and (min-width: 900px) {

.sidebar-left,
.sidebar-right {
width: 300px;
}
.main { 
width: calc(98% - 600px);
}
}
/* match logo red for menu items */
.menu-primary li.menu-item a {
    color: #bf202f;
    font-weight: 500;
}
div.sticky-status {
    display: none;
}	
/* change vert space between content and featured image */
.featured-image ~ .post-content {
    margin-top: 10px;
}

/* bold article heads home */
.post-title {
  font-weight: 800;
}

/* bold article heads article page view */
h1.post-title {
    font-weight: 700;
		font-size: 32px;
}
/* widget styling */
/* bold widget heads */
h2.widget-title {
    font-weight: 900 !important;
    font-size: 1.1em !important;
}

/* polls widget */
form.wp-polls-form p {
    /* font-size: 14px; */
}
div.wp-polls-ans {
    /* font-size: 14px; */
}
form.wp-polls-form {
    margin-top: -5px;
}
section.widget.widget_polls-widget ul li {
    margin-top: -3px;
}
/* recent comments widget */
li.recentcomments {
    /* font-size: 14px; */
}
.widget_ct_mission_news_post_list ul {
    margin: 0;
    list-style: none;
	/* font-size: 14px; */
}
/* non-first child posts */

.archive .entry:first-child article.ii-article-card .featured-image,
.layout-rows .rows .featured-image, 
.layout-rows .rows-excerpt .featured-image, 
.layout-rows-excerpt .rows .featured-image, 
.layout-rows-excerpt .rows-excerpt .featured-image {
    display: inline-block;
    vertical-align: middle;
    width: 33%;
    padding-bottom: 18.8562%;
    margin-right: 12px;
    height: 0;
    overflow: hidden;
}
.layout-rows .rows .post-content, 
.layout-rows .rows-excerpt .post-content, 
.layout-rows-excerpt .rows .post-content, 
.layout-rows-excerpt .rows-excerpt .post-content {
    /* width: 66%;
    margin-left: auto; */
}

/* hide logo in footer */
#site-footer .footer-title-container {
/* .site-footer .custom-logo { */
  display: none;
}
@media (max-width: 767px) {
    #site-footer .design-credit {
        margin-top: 0;
    }
}

/* per BS left align logo */
@media all and (min-width: 50em) {

.title-container {
float: left;
text-align: left;
margin: 24px 0 48px;
} 

}
/* resize logo  */ 
img.custom-logo {
    height: 90px;
    width: 400px;
}


/* mob ad top widget to tighten up vertical space 
*/
@media all and (min-width: 37.5em) {
  .layout-double .entry:nth-child(4) {
    clear: none !important;
    border-left: solid 1px #DCDCDC;
    border-right: none !important;
    margin-left: -1px;
    padding-right: 0 !important;
    padding-left: 0.75em;
	}
	/*mob titles */
	h2.post-title a {
    font-size: 28px;
    margin-top: -50px;
}
}
@media all and (max-width: 50em) {
  .sidebar-left .widget,
  .sidebar-right .widget {
	  clear: none;
  }
}
/* mobile  */
/* @media (max-width: 700px) { */
    @media (max-width: 799px) {
.post-content {
/* font-size: 14px; */
	}
	
/* mobile top elements */
.title-container {
max-width: none;
width: 100%;
}
.search-toggle {
position: absolute;
bottom: 18px;
left: 2.778%;
}
/* per BS */
toggle-navigation {
position: absolute;
bottom: 18px;
right: 2.778%;
}
/* non-first child posts mob */
.archive .entry:first-child article.ii-article-card .featured-image,
.layout-rows .rows .featured-image, 
.layout-rows .rows-excerpt .featured-image, 
.layout-rows-excerpt .rows .featured-image, 
.layout-rows-excerpt .rows-excerpt .featured-image {
    display: inline-block;
    vertical-align: middle;
  max-width: 100%;
	min-height: 130px;
	}	
.archive .entry:first-child article.ii-article-card .featured-image {
    height: 130px!important;
    margin-bottom: 20px;
}
/* run heads to measure mob */
	 .layout-rows-excerpt .rows-excerpt.has-post-thumbnail .post-header, 
     .layout-rows-excerpt .rows.has-post-thumbnail .post-header {
    display: inline-block;
    vertical-align: middle;
    width: 98%;
}
	h1.post-title {
    font-weight: 600;
    margin-bottom: 1em;
	}
	/* post content to image spacing */
	.featured-image ~ .post-content {
    margin-top: 2.2em;
}
/* float date element mob */
.entry .post-byline, 
.archive .entry .post-byline, 
.search .entry .post-byline {
    /* margin-top: -1.5em; */
    margin-top: -1.3em;
    margin-right: 10px;
    float: left;
	font-size: 0.9em;
}
	/* float date element first-child  mob */
.blog:not(.paged) .entry:first-child .post-byline, 
.archive .entry:first-child .post-byline, 
.search .entry:first-child .post-byline {
    margin-top: 0.1em;
    margin-right: 10px;
    float: left;
	font-size: 0.9em;
}

	/* hide rule for mob */
.single aside.widget-area.widget-area-below-header.active-1 {
    border-style: none;
    border-left-width: 0;
    border-right-width: 0;
    border-top-width: 0;
    border-bottom-width: 0;
   }
/* flexbox reorder elements */
body.archive.layout-rows-excerpt #loop-container > .entry > article,
.layout-rows-excerpt .rows-excerpt>article  {
		display: flex;
    flex-direction: column;
}	
 body.archive.layout-rows-excerpt #loop-container > .entry > article > .featured-image {order: 3; } /* Will be displayed third  */
 body.archive.layout-rows-excerpt #loop-container > .entry > article > .post-header {order: 1; } /* Will be displayed first */
 body.archive.layout-rows-excerpt #loop-container > .entry > article > .post-content {order: 4; } /* Will be displayed fourth  */
 body.archive.layout-rows-excerpt #loop-container > .entry > article > .post-byline {order: 2; } /* Will be displayed second  */
 .layout-rows-excerpt .rows-excerpt>article > .featured-image {order: 3; } /* Will be displayed third  */
 .layout-rows-excerpt .rows-excerpt>article > .post-header {order: 1; } /* Will be displayed first */
 .layout-rows-excerpt .rows-excerpt>article > .post-content {order: 4; } /* Will be displayed fourth  */
 .layout-rows-excerpt .rows-excerpt>article > .post-byline {order: 2; } /* Will be displayed second  */
}

.archive .entry:first-child article.ii-article-card .featured-image > a > img {
    position: absolute;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@media all and (min-width: 800px) {
	
	.site-header .date {
		display: inline-block;
		bottom: auto;
		top: -48px;
		right: 0;
		left: auto;
	}
	.site-header .search-toggle {
		bottom: auto;
	}
	.menu-secondary-container {
		margin-left: 96px
	}
	/* Nav menu position */
	.menu-primary-items {
    position: absolute;
    padding-left: 330px;
    padding-top: 157px;
}

.menu-primary {
    height: 10px;
    margin-bottom: 100px;
}

header.site-header {
    height: 155px;
}

#top-banner {
    height: 90px;
    margin-top: 0;
    padding-top: 0;
}

#top-banner a img {
    margin-top: -35px;
}
section.main {
    margin-top: -12px;
}
.entry .featured-image,
.archive .entry .featured-image
 {
	float: left;
}
	/* search page tweaks */
	/*hide images in search listings */
	.search .entry .featured-image {
		display:none;
	}	
		.search .entry:first-child {
	border-bottom: solid 1px;
	border-bottom-color: #e5e5e5;
	margin-bottom: 40px;
	}
	.search .entry:first-child .post-header {
  float: left;
		width: 99% !important;
}
.search .entry:first-child .post-content {
    margin-top: .75em;
    /* padding-top: 3.44em; */
    padding-top: 0;
}
.search .entry:first-child .post-byline {
    margin-top: 1pt;
    margin-right: 10px;
    float: left;
}	
	.search .entry .post-header {
  float: left;
		width: 99% !important;
}
.search .entry .post-content {
    margin-top: .75em;
    /* padding-top: 3.44em; */
    padding-top: 0;
}
.search .entry .post-byline {
    margin-top: -14.1pt;
    margin-right: 10px;
    float: left;
}	
/* end search page tweaks */
.entry .post-header,
.archive .entry .post-header {
  float: left;
	width: calc(67% - 12px) !important;
}
.entry .post-byline,
.archive .entry .post-byline {
margin-top: 1.5pt;
	margin-right: 10px;
	float: left;

}

/* 1st article on homepage: feautred style */

.blog:not(.paged) .entry:first-child .post-title {
	text-align: center;
	text-transform: uppercase;
	margin-top: -10px;
}
.blog:not(.paged) .entry:first-child .post-title a {
	font-size: 32px;
	font-family: 'Oswald';
}
.blog:not(.paged) .entry:first-child {
	border: solid 1px #999999;
	padding: 22px;
	margin-bottom: 40px;
}
.blog:not(.paged) .entry:first-child .post-header {
  width: 100% !important;
}
.blog:not(.paged) .entry:first-child .post-byline {
	margin-top: 1.5pt;
    margin-right: 10px;
    float: left !important;
    padding-right: 0px;
	font-size: 15px;
}
.blog:not(.paged) .entry:first-child .post-content {
  	 margin-top: 15px;
}
.blog:not(.paged) .entry:first-child .post-content p {
  font-size: 17px;
}
.blog:not(.paged) .entry:first-child .featured-image {
	float: right;
	width: 60%;
	margin-left: 15px;
	margin-top: 4px;
}

/* Add space above 1st article on paged pages ie p.2, 3, etc. (no featured style) */
.blog.paged .entry:first-child {
    margin-top: 30px;
}


/* archive pages first post styling */
.archive .entry:first-child article:not(.ii-article-card) .featured-image {
display: inline-block;
vertical-align: middle;
width: 33%;
padding-bottom: 1.5%;
margin-right: 12px;
	margin-top: -42px;
}
.archive .entry:first-child article.ii-article-card .post-header {
    margin: 0;
    padding-top: 0;
}
.archive .entry:first-child article.ii-article-card .post-content,
.archive .entry:first-child article.ii-article-card .post-content > p {
    margin-top: 0;
}
.archive .entry:first-child .post-header { 
	/* padding-top: 70px; */
	margin-left: 35%;
	/* margin-top: -120px; */
	margin-bottom: 4px;
	}
	.archive .entry:first-child .post-content p { 
	padding-top: 0px;
	margin-top: 30px;
	margin-bottom: 4px;
	}
	.archive .entry:first-child {
	border-bottom: solid 1px;
	border-bottom-color: #e5e5e5;
	padding: 2px;
	margin-bottom: 40px;
	}
.entry article:after {
	content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}
		
/*style posts horizontal rule */

.entry.rows-excerpt {
    margin-bottom: 50px;
		border-bottom-width: 1px;
    border-left-width: 0;
    border-right-width: 0;
    border-top-width: 0;
}
	.single .entry .post-byline {
	margin-top: -13.4pt;
	margin-right: 20px;
	margin-bottom: 0px;
	float: left !important;
padding: 0px;
}
	 
.single .entry .post-content {
    margin-top: 0px;
    padding-top: 3.5em;
}
	.single .entry h1.post-title {
    width: 23em;
}
.single .entry h1.post-title {
    margin-top: -32px;
}
	/* single post */
/* centre ad between rules */
.single aside.widget-area.widget-area-below-header.active-1 {
    border-color: #b3b3b3;
    border-style: solid;
    border-left-width: 0;
    border-right-width: 0;
    border-top-width: 0;
    border-bottom-width: 1px;
    margin-bottom: 30px;
    margin-right: 30px;
    margin-left: 30px; 
	padding-bottom: 20px;
}
.single aside.sidebar.sidebar-right {
    margin-top: -10px;
}
	/* top banner vert. space adjust*/
	#top-banner-desktop a img {
    margin-top: -1.6em;
} 
}
/* end of min-width 800 */

@media all and (min-width: 50em) {
	
	.title-container {
		left: -640px;
	}
	.site-title {
		position: relative;
		right: -640px;
		display: inline-block;
	}
	.site-header .date {
		right: -1310px;
	}
}


@media all and (max-width: 50em) {

.blog .entry .featured-image,
.archive .entry .featured-image {
width: 100% !important;
height: auto !important;
}
}

.loop-container.listing .post-content p {
    /* font-size: 14px; */
    /* color: #2e2e2e; */
    margin-top: -20px;
}

/* posts style */

.post-content>p:first-child {
    margin-top: 0;
    padding-top: 5em;
}
.post-content p {
    /* font-size: 14px; */
    /* color: #2e2e2e; */
    /* margin-top: -20px; */
}
h2.post-title {
    padding-bottom: 8px;
    margin-top: -4px;
}

h2.post-title a {
    font-size: 24px;
}

/* archive header post categories text */
.archive-header {
border-bottom: none;
border-top: solid 1px #DCDCDC;
padding-top: 0.75em;
}


/* remove sidebar psuedo-elements creating vertical rule */
.content-container:after, .content-container:before {
display: none !important;
}

/* par spacing */
.single .entry.post p { 
line-height: 1.5em;
/* padding-bottom: 10px; */
}
/*pic captions */
figcaption.wp-caption-text {
    font-weight: bold;
}
/* single post top ad */
.single top-banner {
    border-bottom-width: 1px;
    border-color: #c4c4c4;
    border-style: solid;
    border-top-width: 0;
    border-right-width: 0;
    border-left-width: 0;
}
/* comments box styling */
section.comments {
    background-color: #e6e6e6;
    padding: 20px;
}
/* classads */
/*class home */

.classifiedcats {
	margin-top: 19px;
}
p.awpcp-form-submit {
    margin-top: 5px;
}
tbody tr td {
    padding: 5px;
}
div.awpcp-place-ad.awpcp-page h2 {
    padding-top: 70px;
}
/* style post an ad button */

#classiwrapper > ul > li.awpcp-classifieds-menu--menu-item.awpcp-classifieds-menu--post-listing-menu-item a {
	color: #ffffff;
    background-color: #050505;
    font-style: italic;
    padding: 10px;
    font-weight: bold;
}
/* add space below post an ad */
div.changecategoryselect {
    margin-top: 30px;
}

/* hide search field and buttons */

div.awpcp-classifieds-search-bar--query-field input {
    display: none;
}



div.awpcp-classifieds-search-bar--advanced-search-link a {
    display: none;
}
/* END custom css */



/* Added by Dimanche 21/02/22 */
#main > .navigation.pagination .page-numbers.next {
    margin-left: auto;
  }
  
  #main > .navigation.pagination .nav-links {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
  }
  
  #main > .navigation.pagination .page-numbers:not(.prev, .next) {
    display: none;
  }

/* === Article Cards === */
.layout-rows-excerpt .rows-excerpt>article.ii-article-card {
    flex-wrap: nowrap;
}
.ii-article-card {
    display: flex;
}
.ii-article-card .featured-image {
    flex: 0 0 auto;
}
.ii-article-card .card-body {
    flex: 1 1 auto;
    order: 4;
}
.ii-article-card .read-more,
.entry .post-content > p > .read-more {
    /* color: #bf202e; */
    font-size: .9em;
}
.ii-article-card .post-title.desktop-title {
    display: none;
}

@media (min-width: 800px) {

    body.home .entry .ii-article-card .post-header, 
    .archive .entry .ii-article-card .post-header {
        float: none !important;
        width: 100%!important;
    }

    .ii-article-card .post-title.mobile-title {
        display: none;
    }
    .ii-article-card .post-title.desktop-title {
        display: block;
    }
}


/* @media (max-width: 700px) { */
@media (max-width: 799px) {
    .entry .ii-article-card .post-byline, 
    .archive .entry .ii-article-card .post-byline, 
    .search .entry .ii-article-card .post-byline {
        margin-top: .1em;
    }
}


/* Partners Logo above footer
 * Using plugin GS Logo Slider
 */

.ii-logo-partner-wrapper {
    padding: 3em 5.556% 2em;
    border-top: 1px solid #DCDCDC;
    text-align: center;
}
.ii-logo-partner-wrapper .gs_logo_container {
    justify-content: center;
}
.ii-logo-partner-wrapper .section-heading {
    margin-bottom: 1em;
}
@media (max-width: 767px) {
    .ii-logo-partner-wrapper{
        padding-top: 1.5em;
        padding-bottom: 1em;
    }
}
.ii-logo-partner-wrapper .gs_logo_area { 
    width: 880px;
    max-width: 100%;
    margin: 0 auto;
}
.ii-logo-partner-wrapper .gs_logo_single--wrapper {
    height: auto!important;
}
.ii-logo-partner-wrapper .gs_logo_single {
    padding: 10px;
}
@media (max-width: 767px) {
    .ii-logo-partner-wrapper .gs_logo_single {
        padding: 4px;
    }
}



/* 
 * Donate page (using class give-page added by Give plugin) 
 */

.layout-no-sidebar-wide.give-page section#main {
    width: 100%;
    margin: 0;
    padding: 0;
    float: none;
}

.layout-no-sidebar-wide.give-page section#main .loop-container {
    width: auto;
    left: auto;
    padding: 0 5.556vw;
    max-width: 880px;
    margin: 0 auto;
}
@media (min-width: 37.5em) {
    .layout-no-sidebar-wide.give-page section#main .loop-container {
        padding: 0 2.778%;
    }
}
.layout-no-sidebar-wide.give-page .post-content p {
    margin: 1.5em 0;
}

.layout-no-sidebar-wide.give-page .entry:first-child .post-header {
    margin: 0 auto;
    width: 100%;
    left: auto;
    width: auto!important;
    text-align: center;
}

.layout-no-sidebar-wide.give-page .page.entry {
    border-bottom: none;
}

.layout-no-sidebar-wide.give-page .wp-block-column.has-background {
    border: 1px solid #bf202e;
    border-radius: 4px;
    /* background: #fff!important; */
}
.layout-no-sidebar-wide.give-page .wp-block-column.has-background {
    padding: 1em!important;
}
.layout-no-sidebar-wide.give-page .wp-block-column.has-background h3 {
    font-size: 1.8em!important;
    margin-bottom: 0;
    color: #bf202e;
}
.layout-no-sidebar-wide.give-page .wp-block-column.has-background h3 + p {
    font-size: 1.4em;
    margin: 0;
}
.layout-no-sidebar-wide.give-page .wp-block-column.has-background p,
.layout-no-sidebar-wide.give-page .wp-block-column.has-background ul, 
.layout-no-sidebar-wide.give-page .wp-block-column.has-background ol {
    margin-top: 1em;
    margin-bottom: 1em;
}

.layout-no-sidebar-wide.give-page .wp-block-column.has-background .wp-block-separator {
    color: #bf202e!important;
    background-color: #bf202e!important;
    height: 0;
    border-top: 0;
    margin: 1em 0px;
}
.layout-no-sidebar-wide.give-page .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column.has-background {
    margin-bottom: 1em;
}
@media (min-width: 600px) and (max-width: 781px) {
    .layout-no-sidebar-wide.give-page .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column.has-background:nth-child(2n) {
        margin-left: 1em;
    }
}

@media (min-width: 782px) {
    .layout-no-sidebar-wide.give-page .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column.has-background:not(:first-child) {
        margin-left: 1em;
    }
}

/* Inside Imaging Button  */
.ii-btn > a {
    border-radius: 4px;
}
.ii-btn.is-style-fill > a {
    background-color: #bf202f!important;
    color: #fff!important;
    transition: filter .2s ease;
}
.ii-btn.is-style-fill > a:hover {
    background-color: #bf202f !important;
    color: #fff!important;
    filter: brightness(1.2);
}


/* 
 * Mobile Header  
 */
@media (max-width: 799px) {
    #site-header {
        text-align: left;
        padding-top: .25em;
        padding-bottom: .25em;
        padding-top: 30px;
    }
    #site-header .date {
        display: none;
    }
    #site-header .title-container {
        width: calc(100% - 82px);
    }
    #site-header .site-title img.custom-logo {
        height: auto;
        width: 260px;
        margin-left: -14px; /* align left */
    }

    #site-header .toggle-navigation {
        margin-top: 8px;
    }

    #site-header #search-toggle {
        position: absolute;
        top: 38px;
        left: auto;
        bottom: auto;
        margin: 0;
        margin-right: 42px;
        right: 5.556vw;
        margin-right: 42px;
    }
    #below-header > section {
        margin-top: 40px;
    }
    #search-form-popup #close-search {
        margin-top: -38px;
        left: auto;
        right: 0;
    }
}
@media (min-width: 37.5em) {
    #site-header #search-toggle {
        right: 2.778vw;
    }
}
@media (min-width: 800px) {
    #site-header #search-toggle {
        right: auto;
    }
}