/* Shared sitewide sidebar widgets — framework-agnostic, used by both the Porto and legacy public layouts. */

.wte-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

@media (min-width: 1024px) {
	.wte-sidebar {
		position: sticky;
		top: 1.5rem;
		align-self: flex-start;
	}
}

.wte-sidebar__card {
	background: #eff1f3;
	border-radius: 4px;
	padding: 1.5rem;
}

html.dark .wte-sidebar__card {
	background: #14162b;
}

.wte-sidebar__card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.wte-sidebar__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	flex-shrink: 0;
	border-radius: 4px;
	background: #e9ecef;
	color: #495057;
}

html.dark .wte-sidebar__badge {
	background: #232544;
	color: #d7d9e6;
}

.wte-sidebar__badge svg {
	width: 1.25rem;
	height: 1.25rem;
}

.wte-sidebar__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #4046b3;
}

html.dark .wte-sidebar__eyebrow {
	color: #9aa0ff;
}

.wte-sidebar__title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	font-weight: 700;
	color: #212529;
}

html.dark .wte-sidebar__title {
	color: #ffffff;
}

.wte-sidebar__text {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	line-height: 1.6;
	color: #495057;
}

html.dark .wte-sidebar__text {
	color: #b7bacb;
}

.wte-sidebar__link {
	display: inline-flex;
	font-size: 0.875rem;
	font-weight: 600;
	color: #4046b3;
	text-decoration: none;
}

.wte-sidebar__link:hover,
.wte-sidebar__link:focus {
	color: #2f3488;
	text-decoration: underline;
}

html.dark .wte-sidebar__link {
	color: #9aa0ff;
}

html.dark .wte-sidebar__link:hover,
html.dark .wte-sidebar__link:focus {
	color: #c2c5ff;
}

.wte-sidebar__list {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.wte-sidebar__list-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.4rem 0.5rem;
	border-radius: 4px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #495057;
	text-decoration: none;
}

.wte-sidebar__list-link:hover,
.wte-sidebar__list-link:focus {
	background: rgba(64, 70, 179, 0.08);
	color: #4046b3;
}

html.dark .wte-sidebar__list-link {
	color: #b7bacb;
}

html.dark .wte-sidebar__list-link:hover,
html.dark .wte-sidebar__list-link:focus {
	background: rgba(154, 160, 255, 0.12);
	color: #9aa0ff;
}

.wte-sidebar__list-count {
	font-size: 0.75rem;
	color: #868e96;
}

.wte-sidebar__recent-posts {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.wte-sidebar__recent-post {
	display: block;
	padding: 0.5rem;
	border-radius: 4px;
	text-decoration: none;
}

.wte-sidebar__recent-post:hover,
.wte-sidebar__recent-post:focus {
	background: rgba(64, 70, 179, 0.08);
}

.wte-sidebar__recent-post-date {
	display: block;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	color: #868e96;
}

.wte-sidebar__recent-post-title {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #212529;
}

html.dark .wte-sidebar__recent-post-title {
	color: #ffffff;
}

.wte-sidebar__services {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	margin-top: 1rem;
}

.wte-sidebar__service {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	aspect-ratio: 1 / 1;
	padding: 0.5rem;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	background: #ffffff;
	text-align: center;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #495057;
	text-decoration: none;
}

.wte-sidebar__service:hover,
.wte-sidebar__service:focus {
	border-color: #4046b3;
	background: rgba(64, 70, 179, 0.06);
	color: #212529;
}

.wte-sidebar__service svg {
	width: 1.75rem;
	height: 1.75rem;
	color: #4046b3;
}

html.dark .wte-sidebar__service {
	border-color: #2b2e4a;
	background: #14162b;
	color: #b7bacb;
}

html.dark .wte-sidebar__service:hover,
html.dark .wte-sidebar__service:focus {
	border-color: #9aa0ff;
	background: rgba(154, 160, 255, 0.08);
	color: #ffffff;
}

html.dark .wte-sidebar__service svg {
	color: #9aa0ff;
}
