/* 
 * Last modified: 23/07
 */

/****** Latest News ******/

.is-get-the-latest .wp-block-post-featured-image img {
	border-radius: unset;
}

.is-get-the-latest .wp-block-group {
	gap: var(--wp--preset--spacing--50);
}  

.is-get-the-latest .is-featured-news,
.is-get-the-latest .is-news-feed {
	flex: 1 1 calc(50% - 1.875rem);
}

.is-get-the-latest .is-featured-news {
	 box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0.75em 0.25em;
}

.is-get-the-latest .is-featured-news figure {
	aspect-ratio: unset !important;
}

.is-featured-news .wp-block-post-template li {
	height: 38rem;
}

.is-featured-news .block-editor-block-list__block ul,
.is-featured-news .block-editor-block-list__block ul li{
	padding-left: 0px !important;
}
.wp-block-query .block-editor-block-list__block:has( > ul) ~ .is-no-result.block-editor-block-list__block {
	visibility: hidden;
	height: 0px;
	margin: 0px;
	padding: 0px;
}

.is-get-the-latest .is-featured-news .wp-block-post-template li.wp-block-post,
.is-get-the-latest .is-news-feed ul.wp-block-post-template  {
	display: flex;
	flex-direction: column;
}

.is-get-the-latest .is-featured-news .wp-block-post-template li.wp-block-post figure {
	flex-grow: 1;
	flex-shrink: 1;
	overflow: hidden;
}

.is-get-the-latest .is-featured-news .is-featured-news-title {
	background: var(--wp--preset--color--base);
	padding: var(--wp--preset--spacing--40);
}

.is-featured-news .is-featured-news-title h2 a{ 
	color: var(--category-icon-color);
}

.is-featured-news .wp-block-post-excerpt__more-text {
	text-align: right;
}

.is-featured-news a.wp-block-post-excerpt__more-link {
	color: var(--category-icon-color);
}

.is-featured-news .wp-block-post-excerpt__more-text a {
	text-transform: uppercase;
	font-weight: 500;
	color: var(--wp--preset--color--contrast-2);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--roboto-condensed);
}

.is-featured-news .wp-block-post-excerpt__more-text a::after {
	content:'\f0a9';
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	color: var(--category-icon-color);	
	margin-left:  var(--wp--preset--spacing--10);
	font-size: 1.5em;
	position: relative;
    top: 2.5px;
	display: inline-block;
}

.is-featured-news .wp-block-post-excerpt__more-text a:hover,
.is-featured-news .wp-block-post-excerpt__more-text a:focus-visible,
.is-featured-news .wp-block-post-excerpt__more-text a:hover::after,
.is-featured-news .wp-block-post-excerpt__more-text a:focus-visible::after {
	color: var(--wp--preset--color--contrast-3);
}

.is-featured-news .wp-block-post-excerpt__more-text a:hover,
.is-featured-news .wp-block-post-excerpt__more-text a:focus-visible {
	text-decoration: underline;
}

.is-get-the-latest .is-news-feed ul.wp-block-post-template {
	gap: var(--wp--preset--spacing--50);
	height: 38rem;
	justify-content: space-between;
}

.is-news-feed ul.wp-block-post-template li {
	height: calc((38rem - 3.75rem) / 3)
}

.is-news-feed ul.wp-block-post-template li hr {
	border-width: 0 0 2px 0;
	margin: calc(var(--wp--preset--spacing--50) / 2) 0 0 0;
}

.is-news-feed ul.wp-block-post-template li:last-of-type hr {
	display: none;
}


.is-news-feed .is-latest-news-row {
	gap: var(--wp--preset--spacing--40);
}

.is-latest-news-row {
	height: 100%
}

.is-latest-news-row figure {
	flex: 0 0 45%;
	align-self: stretch;
	aspect-ratio: unset !important;
}

.is-news-feed .is-newsfeed-post-info {
	align-self: flex-start;
	gap: var(--wp--preset--spacing--20);
}

.is-get-the-latest .is-newsfeed-meta {
	gap: var(--wp--preset--spacing--10);
}

.is-get-the-latest .is-news-feed-update .is-newsfeed-meta {
	gap: 0px;
}

.is-get-the-latest .is-newsfeed-meta .is-meta-pipe {
	padding: 0 var(--wp--preset--spacing--10);
}

.is-get-the-latest .is-news-feed-update .is-newsfeed-meta .is-dynamic-field i::before {
	padding-right: var(--wp--preset--spacing--10);
}

.is-newsfeed-meta .wp-block-post-terms,
.is-newsfeed-meta .wp-block-post-date {
	color: var(--wp--preset--color--contrast-3);
	line-height:1
}

.is-newsfeed-meta .wp-block-post-terms a {
	color: var(--wp--preset--color--contrast-3);
}

@media (max-width: 949px) {
	.is-get-the-latest .is-featured-news,
	.is-get-the-latest .is-news-feed {
		flex: 0 0 100%;
	}
	
	.is-featured-news li {
		max-height: auto;
	}

	
	.is-latest-news-row {
		flex-direction: column;
	}
	.is-news-feed ul.wp-block-post-template li {
		padding: var(--wp--preset--spacing--40) 0 !important;
		border-bottom: solid 2px var(--wp--preset--color--accent-2) !important;
	}
	
	.is-news-feed ul.wp-block-post-template li:nth-child(1) {
		padding-top: var(--wp--preset--spacing--50) !important;
		border-top: solid 2px var(--wp--preset--color--accent-2);
	}
	
	.is-featured-news .wp-block-post-template li,
	.is-get-the-latest .is-news-feed ul.wp-block-post-template,
	.is-news-feed ul.wp-block-post-template li {
		height: auto;
	}
	
	.is-latest-news-row figure { 
		height: 40vw;
	}
	
	.is-news-feed ul.wp-block-post-template li hr {
		display: none;
	}
}

/****** Removing featured content if there are no Sticky Posts ******/

.is-get-the-latest .is-featured-news:has( > .wp-block-query .wp-block-query-no-results):not(.block-editor-block-list__block) {
	visibility: hidden;
	max-width: 0px;
	max-height: 0px;
}

@media (min-width: 782px) {

	.is-get-the-latest .is-featured-news:has( > .wp-block-query .wp-block-query-no-results) ~ .is-news-feed {
		max-width: 60%;
		margin-left: auto;
		margin-right: auto;
	}
}

/*.block-editor-block-list__block.is-featured-news {
	visibility: hidden;
	max-width: 0px;
	max-height: 0px;
}*/

/****** Archives Page ******/


.is-our-community-posts .wp-block-post-featured-image img {
	border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    border-top-left-radius: 0.75em;
    border-top-right-radius: 0.75em;
}

.is-our-community-posts.wp-block-query  ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.is-our-community-posts ul li {
	flex-basis: calc(33% - 2.5rem);
	min-width: 18rem;
}

.is-our-community-posts li.type-post {
	box-shadow: 0 0 0.75em 0.25em #00000026;
	border-radius: 0.75em;
}

.is-our-community-posts .wp-block-post-excerpt__more-link {
	text-transform: uppercase;
	font-weight: 500;
	color: var(--wp--preset--color--contrast-2);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--roboto-condensed);
}


.is-our-community-posts .wp-block-post-excerpt__more-link:hover,
.is-our-community-posts .wp-block-post-excerpt__more-link:focus-visible,
.is-our-community-posts .wp-block-post-excerpt__more-link:hover::after,
.is-our-community-posts .wp-block-post-excerpt__more-link:focus-visible::after {
	color: var(--wp--preset--color--contrast-3);
}


.is-our-community-posts .wp-block-post-excerpt__more-link:hover,
.is-our-community-posts .wp-block-post-excerpt__more-link:focus-visible {
	text-decoration: underline;
}

.is-our-community-posts .wp-block-post-excerpt__more-link::after {
	content:'\f0a9';
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	color: var(--category-icon-color);	
	margin-left:  var(--wp--preset--spacing--10);
	font-size: 1.5em;
	position: relative;
    top: 2.5px;
	display: inline-block;
}


.is-our-community-posts .is-our-community-post-contents .is-archive-post-meta,
.is-our-community-posts .wp-block-post-date,
.is-our-community-posts .taxonomy-category a{
	font-size: 0.775rem;
	color: var(--wp--preset--color--contrast-3);
	line-height: 1;
}

.is-our-community-posts .is-our-community-post-contents .is-archive-post-meta i {
	font-size: var(--wp--preset--font-size--small);
}

.is-our-community-posts .taxonomy-category a {
	display: block;
    height: 100%;
}

.is-community-category-list {
	display: flex;
	gap: var(--wp--preset--spacing--30);
	justify-content: center;
	flex-wrap: wrap;
}

.is-community-category-list-row {
	gap: var(--wp--preset--spacing--30);
}

.is-community-category-list-row ul {
	align-self: stretch;
	padding: 0;
}

.is-community-category-list li {
	border: solid 2px;
	border-radius: 3rem;
	padding: 0rem 1rem;
}

.is-community-category-list .cat-item-all {
	border-color: var(--wp--preset--color--accent);
	padding-left: 2rem;
	padding-right: 2rem;
}

.is-community-category-list-row::before,
.is-community-category-list-row::marker {
	display:none;
}


.is-community-category-list-row,
.is-community-category-list li a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast-3);
	font-size: 0.775rem;
	font-weight: 500;
	vertical-align: middle;
}
.is-community-category-list li i {
	padding-right: var(--wp--preset--spacing--10);
}

.is-community-category-list li:has(a:hover),
.is-community-category-list li:has(a:focus-visible) {
	border: solid 2px #D6D6D6 ;
	background: #D6D6D6 ;
}


.is-community-category-list li:has(a:hover) a,
.is-community-category-list li:has(a:hover) i,
.archive .is-community-category-list-row,
.is-community-category-list li:has(a:focus-visible) a,
.is-community-category-list li:has(a:focus-visible) i,
.archive .is-community-category-list-row {
	color: var(--wp--preset--color--contrast-2);
}

.blog .is-community-category-list-row .cat-item-all a,
.blog .is-community-category-list-row .cat-item-all a:hover,
.blog .is-community-category-list-row .cat-item-all a:focus-visible,
.is-community-category-list li a[aria-current="page"],
.is-community-category-list li a[aria-current="page"]:hover,
.is-community-category-list li a[aria-current="page"]:focus-visible,
.is-community-category-list li:has(a[aria-current="page"]) i{
	color: var(--wp--preset--color--base);
}


.blog .is-community-category-list-row .cat-item-all,
.is-community-category-list li:has(a[aria-current="page"]) {
	background: var(--wp--preset--color--contrast-3);
	border: solid 2px var(--wp--preset--color--contrast-3);
}

.is-community-category-list-row {
	justify-content: center;
}
.is-community-category-list-row ul {
	padding-left: 0px;
}

@media (max-width: 781px) {
	.is-our-community-posts ul li {
	flex-basis: 100%;
	min-width: auto;
	}
}



/****** PETITION LIST ******/

	
.is-has-readmore-arrow .wp-block-post-excerpt__more-text a {
	text-transform: uppercase;
	font-weight: 500;
	color: var(--wp--preset--color--accent-2);
	font-family: var(--wp--preset--font-family--roboto-condensed);
	font-size: var(--wp--preset--font-size--medium);
	text-decoration: none;
}

.is-has-readmore-arrow .wp-block-post-excerpt__more-text a:hover,
.is-has-readmore-arrow .wp-block-post-excerpt__more-text a:focus-visible {
	text-decoration: underline;
	color: var(--wp--preset--color--contrast-3);
}

.is-has-readmore-arrow .wp-block-post-excerpt__more-text a::after {
	content:'\f0a9';
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	color: inheret;	
	margin-left:  var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--small);
	font-size: 1.5em;
	position: relative;
    top: 2.5px;
	display: inline-block;
}

.is-petition-list .is-petition-post-info li:last-of-type div {
	border-bottom: 0px;
}
