/* =========================================================
   RH Sidebar Post Boxes
   ========================================================= */

.rh-post-boxes {
	--rh-columns: 3;

	width: 100%;
	display: grid;
	grid-template-columns: repeat(var(--rh-columns), minmax(0, 1fr));
	gap: 18px;

	font-family: inherit;
	box-sizing: border-box;
}


/* ---------------------------------------------------------
   Box
   --------------------------------------------------------- */

.rh-post-box {
	width: 100%;
	min-width: 0;

	background: #fff;

	border: 1px solid #e5eaf0;
	border-radius: 10px;

	overflow: hidden;
	box-sizing: border-box;
}


/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.rh-post-box__header {
	display: flex;
	align-items: center;
	justify-content: space-between;

	gap: 10px;

	padding: 13px 15px;

	border-top: 3px solid #0f2747;
	border-bottom: 1px solid #e5eaf0;

	background: #fff;

	box-sizing: border-box;
}


.rh-post-box__title {
	margin: 0;
	padding: 0;

	font-size: 18px;
	font-weight: 800;
	line-height: 1.5;

	color: #0f2747;
}


.rh-post-box__archive {
	display: inline-flex;
	align-items: center;

	gap: 4px;

	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;

	color: #687386;

	text-decoration: none;
	white-space: nowrap;

	transition: color .2s ease;
}


.rh-post-box__archive:hover {
	color: #0f2747;
}


/* ---------------------------------------------------------
   Tabs
   --------------------------------------------------------- */

.rh-post-box__tabs {
	display: flex;
	width: 100%;

	border-bottom: 1px solid #e5eaf0;

	background: #f8fafc;

	box-sizing: border-box;
}


.rh-post-box__tab {
	position: relative;

	flex: 1;

	margin: 0;
	padding: 10px 8px;

	border: 0;
	outline: none;

	background: transparent;

	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;

	color: #7a8494;

	cursor: pointer;

	appearance: none;

	transition:
		color .2s ease,
		background .2s ease;
}


.rh-post-box__tab:hover {
	color: #0f2747;
	background: #fff;
}


.rh-post-box__tab.is-active {
	color: #0f2747;
	background: #fff;
}


.rh-post-box__tab.is-active::after {
	content: "";

	position: absolute;

	right: 15%;
	bottom: -1px;
	left: 15%;

	height: 2px;

	background: #0f2747;
}


/* ---------------------------------------------------------
   Panels
   --------------------------------------------------------- */

.rh-post-box__panel {
	display: none;
}


.rh-post-box__panel.is-active {
	display: block;
}


/* ---------------------------------------------------------
   Posts
   --------------------------------------------------------- */

.rh-post-box__items {
	list-style: none;

	margin: 0;
	padding: 0;
}


.rh-post-box__item {
	display: flex;
	align-items: flex-start;

	gap: 10px;

	margin: 0;
	padding: 12px 14px;

	border-bottom: 1px solid #edf0f4;

	box-sizing: border-box;

	transition: background .2s ease;
}


.rh-post-box__item:last-child {
	border-bottom: 0;
}


.rh-post-box__item:hover {
	background: #f8fafc;
}


/* ---------------------------------------------------------
   Number
   --------------------------------------------------------- */

.rh-post-box__number {
	flex: 0 0 28px;

	font-size: 12px;
	font-weight: 800;
	line-height: 1.7;

	color: #0f2747;

	opacity: .75;
}


/* ---------------------------------------------------------
   Content
   --------------------------------------------------------- */

.rh-post-box__content {
	flex: 1;
	min-width: 0;
}


.rh-post-box__item-title {
	margin: 0 0 6px;
	padding: 0;

	font-size: 14px;
	font-weight: 700;
	line-height: 1.75;
}


.rh-post-box__item-title a {
	display: block;

	color: #172033;
	text-decoration: none;

	transition: color .2s ease;
	font-size: 13px!important;
    font-weight: 500!important;
}


.rh-post-box__item-title a:hover {
	color: #0f2747;
}


/* ---------------------------------------------------------
   Meta
   --------------------------------------------------------- */

.rh-post-box__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;

	gap: 8px;

	font-size: 10px;
	font-weight: 500;
	line-height: 1.5;

	color: #8993a3;
}


.rh-post-box__views {
	display: inline-flex;
	align-items: center;
}


/* ---------------------------------------------------------
   Empty
   --------------------------------------------------------- */

.rh-post-box__empty {
	margin: 0;
	padding: 18px 14px;

	font-size: 12px;
	line-height: 1.8;

	color: #8993a3;

	text-align: center;
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 1024px) {

	.rh-post-boxes {
		grid-template-columns: repeat(
			var(--rh-columns),
			minmax(0, 1fr)
		);
	}

	.rh-post-box__title {
		font-size: 16px;
	}

	.rh-post-box__item-title {
		font-size: 13px;
	}

}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 767px) {

	.rh-post-boxes {
		grid-template-columns: repeat(
			var(--rh-columns),
			minmax(0, 1fr)
		);

		gap: 14px;
	}


	.rh-post-box__header {
		padding: 11px 12px;
	}


	.rh-post-box__title {
		font-size: 16px;
	}


	.rh-post-box__archive {
		font-size: 10px;
	}


	.rh-post-box__tab {
		padding: 9px 6px;
		font-size: 11px;
	}


	.rh-post-box__item {
		padding: 11px 12px;
		gap: 8px;
	}


	.rh-post-box__number {
		flex-basis: 25px;
		font-size: 11px;
	}


	.rh-post-box__item-title {
		font-size: 13px;
		line-height: 1.7;
	}


	.rh-post-box__meta {
		font-size: 9px;
	}

}


/* ---------------------------------------------------------
   Elementor Editor
   --------------------------------------------------------- */

.elementor-editor-active .rh-post-box__tab {
	cursor: pointer;
}