/*	==========================================================================
	Setup
	==========================================================================	*/

:root {

/*	Plugin colors
	- Try to retrieve theme variables, use fallbacks
  	--------------------------------------------------------------------------	*/

	--l10-pw-bg-active: var(--primary, #133EC1);
	--l10-pw-bg-inactive: var(--light, #E6E6E9);
	--l10-pw-bg-hover: var(--light, #E6E6E9);

	--l10-pw-text-active: #fff;
	--l10-pw-text-inactive: #909295;
	--l10-pw-text-inactive-hover: rgba(33,37,41,1);

	--l10-pw-link: var(--primary, #3660a4);
	--l10-pw-link-hover: var(--primary-hover, #3d86fd);

	--l10-pw-light: var(--light, #F4F4F6);
	--l10-pw-med: var(--med, #CED4DA);

	--l10-pw-font: var(--font-main-stack), "Arial", sans-serif;

	--l10-pw-border-radius: var(--border-radius, 4px);

} /* end :root */

/*	==========================================================================
	Main Widget Styles
	==========================================================================	*/

#l10-post-widget {
	margin: 0 0 2rem 0;
}

#l10-post-widget .tabs {
	display: flex;
	width: 100%;
}

#l10-post-widget .tabs .tab {
	flex-grow: 1;
	max-width: 10rem;
	padding: 0.75rem;
	background: var(--l10-pw-bg-inactive);
	color: var(--l10-pw-text-inactive);
	cursor: pointer;
	transition: none;
	font-size: 1em;
	line-height: 1.25em;
	font-family: var(--l10-pw-font);
	text-align: center;
	border-right: 1px solid rgba(255,255,255,1);
	position: relative;
	border-radius: var(--l10-pw-border-radius) var(--l10-pw-border-radius) 0 0;
}

#l10-post-widget .tabs .tab.active {
	background: var(--l10-pw-bg-active);
	color: #fff;
	opacity: 1;
	transition: none;
}

#l10-post-widget .tabs .tab:not(.active):hover {
	/* color: var(--l10-pw-text-inactive-hover); */
}

#l10-post-widget .tabs .tab::after {
	width: 100%;
	height: 1px;
	display: block;
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	background: #fff;
}
#l10-post-widget .tabs .tab.active::after {
	display: none;
}

#l10-post-widget .tabs .tab i {
	display: block;
	text-align: center;
	margin: 0.5rem 0 1rem 0;
	font-size: 1.75rem;
}

#l10-post-widget .tabs .tab:last-child {
	border-right: none;
}

#l10-post-widget .posts {
	background: #fff;
	border: 1px solid var(--l10-pw-bg-active);
	border-top: 5px solid var(--l10-pw-bg-active);
	padding: 0;
	border-radius: 0 0 var(--l10-pw-border-radius) var(--l10-pw-border-radius);
	overflow: hidden;
}

#l10-post-widget .posts ul li a.title,
#l10-post-widget .posts p.no-posts {
	transition: 0.5s color;
	font-size: 1em;
	line-height: 1.25em;
	font-family: var(--l10-pw-font);
}

#l10-post-widget .posts p.no-posts {
	padding: 1rem;
}

/* Post list visibility */

#l10-post-widget .posts .post-list {
	display: none;
}
#l10-post-widget .posts .post-list.active {
	display: block;
}

#l10-post-widget .posts .post-list[data-columns="1"] ul {
	grid-template-columns: repeat(1, 1fr);
}
#l10-post-widget .posts .post-list[data-columns="2"] ul {
	grid-template-columns: repeat(2, 1fr);
}
#l10-post-widget .posts .post-list[data-columns="3"] ul {
	grid-template-columns: repeat(3, 1fr);
}
#l10-post-widget .posts .post-list[data-columns="4"] ul {
	grid-template-columns: repeat(4, 1fr);
}
#l10-post-widget .posts .post-list[data-columns="5"] ul {
	grid-template-columns: repeat(5, 1fr);
}
#l10-post-widget .posts .post-list[data-columns="6"] ul {
	grid-template-columns: repeat(6, 1fr);
}
#l10-post-widget .posts .post-list[data-columns="7"] ul {
	grid-template-columns: repeat(7, 1fr);
}
#l10-post-widget .posts .post-list[data-columns="8"] ul {
	grid-template-columns: repeat(8, 1fr);
}
#l10-post-widget .posts .post-list[data-columns="9"] ul {
	grid-template-columns: repeat(9, 1fr);
}
#l10-post-widget .posts .post-list[data-columns="10"] ul {
	grid-template-columns: repeat(10, 1fr);
}

.home #l10-post-widget .posts .post-list[data-type="categories"],
.home #l10-post-widget .posts .post-list[data-type="archives"] {
	max-height: 600px;
	overflow: auto;
}

.home #l10-post-widget .posts .post-list[data-type="categories"] .text,
.home #l10-post-widget .posts .post-list[data-type="archives"] .text {
	flex-direction: row;
	align-items: center;
	align-content: center;
	width: 100%;
}

.home #l10-post-widget .posts .post-list[data-type="categories"] .text h5,
.home #l10-post-widget .posts .post-list[data-type="archives"] .text h5 {
	margin: 0;
}

.home #l10-post-widget .posts .post-list[data-type="categories"] ul,
.home #l10-post-widget .posts .post-list[data-type="archives"] ul {
	display: flex;
	flex-direction: column;
}

/* The post titles */

#l10-post-widget .posts ul {
	width: 100%;
	overflow: hidden;
	display: block;
}
#l10-post-widget .posts ul li a.title,
#l10-post-widget .posts ul li a.title:visited {
	color: var(--l10-pw-link);
	text-decoration: none;
}
#l10-post-widget .posts ul li a.title:hover,
#l10-post-widget .posts ul li a.title:active {
	color: var(--l10-pw-link-hover);
	text-decoration: none;
}
#l10-post-widget .posts ul li .text {
	padding: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--l10-pw-light);
}
#l10-post-widget .posts ul li:last-of-type {
	border: none;
}
#l10-post-widget .posts ul li a.title {
	line-height: 1.5em;
	padding: 1rem;
}
#l10-post-widget .posts ul li i.fa-angle-right {
	font-size: 1.5rem;
	color: var(--l10-pw-link);
	padding: 1rem;
	transition: 0.5s all;
	position: relative;
	left: 0;
}
#l10-post-widget .posts ul li:hover i.fa-angle-right {
	color: var(--l10-pw-link-hover);
	opacity: 1;
	left: 5px;
}

/*	==========================================================================
	Homepage Widget Styles
	==========================================================================	*/

.home #l10-post-widget .posts {
}
.home #l10-post-widget .tabs .tab {
	max-width: none;
	flex-grow: 0;
	padding: 0.75rem 1.25rem;
}
.home #l10-post-widget .tabs .tab i {
	font-size: 1.25em;
	display: inline-block;
	margin: 0 0.75rem 0 0;
}
.home #l10-post-widget .posts ul {
	display: grid;
	grid-template-columns: repeat(3, 3fr);
	gap: 1rem;
	padding: 1rem;
}
@media(max-width: 1100px) {
	.home #l10-post-widget .posts ul,
	.home #l10-post-widget .posts .post-list[data-columns] ul {
		grid-template-columns: repeat(2, 2fr);
	}
}
@media(max-width: 600px) {
	.home #l10-post-widget .tabs .tab i {
		display: block;
		margin: 0 0 0.75rem 0;
		font-size: 1.5rem;
	}
	.home #l10-post-widget .posts ul,
	.home #l10-post-widget .posts .post-list[data-columns] ul {
		grid-template-columns: repeat(1, 1fr);
	}
}
@media(max-width: 500px) {
	.home #l10-post-widget .tabs .tab {
		padding: 0.75rem;
	}
}
.home #l10-post-widget .posts ul li {
	border-radius: var(--l10-pw-border-radius);
	background: #fff;
	border: 1px solid var(--med);
	/* Allow .text to flex within this div */
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: flex-start;
	flex-direction: column;
	overflow: hidden;
}
.home #l10-post-widget .posts ul li .text {
	padding: 2rem;
	border: none;
	/* Make .text fill the remaining height of the article */
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	flex-wrap: wrap;
	flex-direction: column;
	flex-grow: 1;
}
/* Anchor the read more button to the bottom of .text */
.home #l10-post-widget .posts ul li .text .site-btn {
	margin-top: auto;
}
/* Reduce article padding on phones < 400px */
@media(max-width: 400px) {
	.home #l10-post-widget .posts ul li .text {
		padding: 1rem;
	}
}
.home #l10-post-widget .posts ul li a.title {
	padding: 0;
}
.home #l10-post-widget .site-featured-img {
	width: 100%;
	aspect-ratio: 3/2;
	height: auto;
}
.home #l10-post-widget .meta {
	display: flex;
	justify-content: flex-start;
	margin: 0 0 1rem 0;
	gap: .2rem;
}
.home #l10-post-widget .category,
.home #l10-post-widget .popular {
	padding: 0.25rem 0.5rem;
	margin: 0 0.5rem 0 0;
	border-radius: var(--l10-pw-border-radius);
	border: 1px solid var(--light);
	color: rgba(25,25,25,0.5);
	background: var(--ultralight);
	font-size: 0.75rem;
}
.home #l10-post-widget .popular {
	background: rgba(255,135,15,0.2);
	border: 1px solid rgba(255,135,15,0.3);
	color: rgba(255,135,15,0.8);
}

#l10-post-widget .posts ul li .post-featured-img {
	width: 80px;
	height: 80px;
	min-width: 80px;
	margin-right: 1rem;
	border-radius: var(--border-radius);
	object-fit: cover;
}

#sidebar #l10-post-widget .posts ul li a.title { 
	display: flex;
	align-items: center;
}