/* Homepage styles */

div.important-posts {
	padding: 16px;
	border-radius: 24px;
}

div.important-posts > div.promo-post-list {
	display: flex;
	gap: 16px;
	justify-content: center;
}

div.important-posts > div.promo-post-list > article {
	width: auto;
	max-width: 50%;
}

div.important-posts {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
@media only screen and (max-width: 1000px) {

	div.important-posts div.promo-post-list article {
		width: calc((100% - 16px) / 2)
	}
	div.important-posts div.promo-post-list {
		flex-wrap: wrap;
	}

}


@media only screen and (max-width: 700px) {
	div.important-posts div.promo-post-list article {
		width: 100%;
		max-width: 100%;
	}

}

h2#news-heading {
	gap: 16px;
	justify-content: flex-start;
	align-content: center;
}

h2#news-heading:before {
	content: " ";
	width: 32px;
	aspect-ratio: 1;
	background-image: var(--promo-news-icon);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100%;
}

h2#news-heading:after {
	content: attr(data-filter-name);
	font-size: 60%;
	opacity: 0.6;
}

h2#news-heading:not([data-filter-name]):after,
h2#news-heading[data-filter-name=""]:after {
	display: none;
}

div.news-heading-background {
	position: relative;
	border-radius: 16px;
	z-index: 2;
	overflow: hidden;
	border: 2px solid var(--theme-palette-color-6);
}

div.promo-blur {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px;
	background: linear-gradient(90deg, var(--theme-palette-color-19) 50%, rgba(255,255,255,0) 100%);
	z-index: 2;
}

div.news-heading-background:before {
	content: " ";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	background-position: center;
	z-index: 1;
	filter: blur(10px);
	background-image: var(--promo-heading-background-image, none);
	background-size: cover;
	transition: background-image 0.35s ease-in-out;
}

div#last-news {
	transition: all 0.3s;
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: relative!important;
	z-index: 1;
}

div#last-news div.ct-dynamic-filter {
	display: flex;
	gap: 8px;
	justify-content: flex-start;
	margin-bottom: 0px;
}

div#last-news div.ct-dynamic-filter a {
	background: var(--theme-palette-color-13);
	color: var(--theme-palette-color-15);
	border-radius: 8px;
	padding: 8px 15px;
	font-weight: 500;
	font-size: 12px;
	text-transform: uppercase;
	border: 1px solid var(--theme-palette-color-6);
}

div#last-news div.ct-dynamic-filter a:hover {
	background: var(--theme-palette-color-6);
}

div#last-news div.ct-dynamic-filter a.active {
	background: var(--theme-palette-color-6);
}


div#last-news div#news-post-list {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

div#last-news div#news-post-list div.promo-post-list {
	display: flex;
	gap: 16px;
	justify-content: space-between;
}

div#last-news div#news-post-list div.promo-left-columns {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: calc((100% - 16px) / 3 * 2);
}

div#last-news div#news-post-list div.promo-left-columns div.big-post article {
	width: 100%;
}

div#last-news div#news-post-list div.promo-left-columns div.big-post article a {
	aspect-ratio: auto;
	height: 100%;
}

div#last-news div#news-post-list div.promo-left-columns div.big-post article a img, div#last-news div#news-post-list div.promo-left-columns div.big-post, div.promo-post-list.news, div#last-news div#news-post-list div.promo-left-columns div.big-post article a img, div#last-news div#news-post-list div.promo-left-columns div.big-post, div.promo-post-list.news article {
/*height: 100%; */
}

div#last-news div#news-post-list div.promo-left-columns div.big-post {

}

div#last-news div#news-post-list div.promo-right-columns {
	width: calc((100% - 16px) / 3);
	display: flex;
}


div#last-news div#news-post-list div.promo-right-columns div.promo-post-list {
	flex-direction: column;
}

div#last-news div#news-post-list div.promo-right-columns div.promo-post-list article {
	width: 100%;
}

div#last-news div#news-2 article ul.entry-meta.promo-author-date {
	margin-top: 16px;
}


@media only screen and (max-width: 1000px) {
	div#last-news div#news-post-list div.promo-left-columns div.big-post article > a {
		aspect-ratio: 16 / 9;
}

div#last-news div#news-post-list div.promo-left-columns div.big-post article a img, div#last-news div#news-post-list div.promo-left-columns div.big-post, div.promo-post-list.news, div#last-news div#news-post-list div.promo-left-columns div.big-post article a img, div#last-news div#news-post-list div.promo-left-columns div.big-post, div.promo-post-list.news article {
height: auto;
}

div#news-post-list {
	flex-direction: column;
}

	div#last-news div#news-post-list div.promo-left-columns, div#last-news div#news-post-list div.promo-right-columns {
		width: 100%;
	}

}


@media only screen and (max-width: 700px) {
	div#last-news div#news-post-list div.promo-left-columns div.three-small-posts div.promo-post-list {
		flex-direction: column;
	}
	div#last-news div#news-post-list div.promo-left-columns div.three-small-posts div.promo-post-list article {
		width: 100%;
	}

}

div#last-news div.news-heading-background::after {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
	z-index: -1; 
	content: "";
}

h2#article-heading {
	gap: 16px;
	justify-content: flex-start;
	align-content: center;
}

h2#article-heading:before {
	content: " ";
	width: 32px;
	aspect-ratio: 1;
	background-image: var(--promo-article-icon);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100%;
}

h2#article-heading:after {
	display: none;
}

div.articles-heading-background {
	position: relative;
	border-radius: 16px;
	z-index: 2;
	overflow: hidden;
	border: 2px solid var(--theme-palette-color-6);
}

div.promo-blur {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px;
	background: linear-gradient(90deg, var(--theme-palette-color-19) 50%, rgba(255,255,255,0) 100%);
	z-index: 2;
}

div.articles-heading-background:before {
	content: " ";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	background-position: center;
	z-index: 1;
	filter: blur(10px);
	background-image: var(--promo-heading-background-image, none);
	background-size: cover;
	transition: background-image 0.35s ease-in-out;
}

div#last-articles {
	transition: all 0.3s;
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: relative!important;
	z-index: 1;
}

div#last-articles div.ct-dynamic-filter {
	display: flex;
	gap: 8px;
	justify-content: flex-start;
	margin-bottom: 0px;
}

div#last-articles div.ct-dynamic-filter a {
	background: var(--theme-palette-color-13);
	color: var(--theme-palette-color-15);
	border-radius: 8px;
	padding: 8px 15px;
	font-weight: 500;
	font-size: 12px;
	text-transform: uppercase;
	border: 1px solid var(--theme-palette-color-6);
}

div#last-articles div.ct-dynamic-filter a:hover {
	background: var(--theme-palette-color-6);
}

div#last-articles div.ct-dynamic-filter a.active {
	background: var(--theme-palette-color-6);
}

div.promo-post-list.articles {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

div.promo-post-list.articles article {
	width: calc((100% - (16px * 3)) / 4);
}

@media only screen and (max-width: 1000px) {
	div.promo-post-list.articles article {
		width: calc((100% - 16px) / 2);
	}
}


@media only screen and (max-width: 700px) {
	div.promo-post-list.articles article {
		width: 100%;
	}

}

div#last-articles div.articles-heading-background::after {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
	z-index: -1; 
	content: "";
}
