/**
 * Modern sidebar and footer widgets.
 *
 * Compatible with core widgets, Classic Widgets and the theme's post widgets.
 */

.sidebar .widget {
	background: #fff;
	border: 1px solid var(--newsblock-line);
	border-radius: 18px;
	box-shadow:
		0 1px 2px rgba(23, 32, 42, 0.025),
		0 10px 30px rgba(23, 32, 42, 0.055);
	margin: 0 0 18px;
	overflow: hidden;
	padding: 20px;
}

.sidebar .widget .widget-title {
	align-items: center;
	border-bottom: 1px solid var(--newsblock-line);
	color: var(--newsblock-ink);
	display: flex;
	font-size: 18px;
	font-weight: 780;
	gap: 10px;
	letter-spacing: -0.015em;
	line-height: 1.25;
	margin: 0 0 14px;
	padding: 0 0 13px;
	text-transform: none;
}

.sidebar .widget .widget-title::before {
	background: var(--newsblock-accent);
	border-radius: 50%;
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--newsblock-accent) 10%, transparent);
	content: "";
	flex: 0 0 7px;
	height: 7px;
	width: 7px;
}

.sidebar .widget p {
	color: var(--newsblock-muted);
	font-size: 15px;
	line-height: 1.65;
	margin: 0 0 13px;
}

.sidebar .widget ul {
	margin: 0;
	padding: 0;
}

.sidebar .widget ul > li {
	border-bottom: 1px solid var(--newsblock-line);
	color: #98a2b3;
	font-size: 14px;
	line-height: 1.45;
	list-style: none;
	margin: 0;
	padding: 9px 0 9px 15px;
	position: relative;
}

.sidebar .widget ul > li:first-child {
	padding-top: 2px;
}

.sidebar .widget ul > li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.sidebar .widget ul > li::before {
	background: var(--newsblock-accent);
	border-radius: 50%;
	content: "";
	height: 5px;
	left: 0;
	opacity: 0.78;
	position: absolute;
	top: 17px;
	width: 5px;
}

.sidebar .widget ul > li:first-child::before {
	top: 10px;
}

.sidebar .widget ul > li a,
.sidebar .widget ul > li a:visited {
	color: #344054;
	text-decoration: none;
	transition: color 160ms ease;
}

.sidebar .widget ul > li a:hover {
	color: var(--newsblock-accent);
}

.sidebar .widget_categories ul > li,
.sidebar .widget_archive ul > li {
	align-items: baseline;
	display: flex;
	gap: 8px;
	justify-content: space-between;
}

.sidebar .widget ul .children,
.sidebar .widget ul .sub-menu {
	flex-basis: 100%;
	margin-top: 8px;
	padding-left: 8px;
}

.sidebar .widget select {
	background: #fff;
	border: 1px solid #dfe4eb;
	border-radius: 10px;
	color: #344054;
	font-size: 14px;
	min-height: 42px;
	padding: 8px 10px;
	width: 100%;
}

.sidebar .widget_search form,
.sidebar .widget_search .search-form {
	align-items: stretch;
	display: grid;
	gap: 8px;
	grid-template-columns: minmax(0, 1fr) auto;
	margin: 0;
	width: 100%;
}

.sidebar .widget_search .search-form label {
	margin: 0;
	min-width: 0;
}

.sidebar .widget_search input[type="search"] {
	background: #f8fafc;
	border: 1px solid #dfe4eb;
	border-radius: 10px;
	color: var(--newsblock-ink);
	font-size: 14px;
	height: 42px;
	min-width: 0;
	padding: 0 11px;
	width: 100%;
}

.sidebar .widget_search input[type="search"]:focus {
	background: #fff;
	border-color: var(--newsblock-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--newsblock-accent) 12%, transparent);
	outline: 0;
}

.sidebar .widget_search input[type="submit"],
.sidebar .widget_search button[type="submit"] {
	background: var(--newsblock-accent);
	border: 1px solid var(--newsblock-accent);
	border-radius: 10px;
	color: #fff;
	font-size: 12px;
	font-weight: 750;
	height: 42px;
	padding: 0 12px;
	width: auto;
}

.sidebar .widget_search input[type="submit"]:hover,
.sidebar .widget_search button[type="submit"]:hover {
	background: var(--newsblock-ink);
	border-color: var(--newsblock-ink);
}

.sidebar .widget_recent_entries .post-date {
	color: #98a2b3;
	display: block;
	font-size: 11px;
	letter-spacing: 0.025em;
	margin: 4px 0 0;
	text-transform: capitalize;
}

.sidebar .widget_posts_thumbnail ul > li {
	min-height: 66px;
	padding-left: 0;
}

.sidebar .widget_posts_thumbnail ul > li::before {
	content: none;
	display: none;
}

.sidebar .widget_posts_thumbnail .thumbnail-wrap,
.sidebar .widget_posts_thumbnail .wp-post-image,
.sidebar .widget_posts_thumbnail img {
	border-radius: 9px;
	height: 62px;
	object-fit: cover;
	width: 70px;
}

.sidebar .widget_posts_thumbnail .entry-wrap {
	line-height: 1.35;
}

.sidebar .widget_posts_thumbnail .entry-wrap a {
	color: #344054;
	font-size: 14px;
}

.sidebar .widget_posts_thumbnail .entry-meta {
	color: #98a2b3;
	font-size: 11px;
	text-transform: capitalize;
}

.sidebar .widget_archive a,
.sidebar .widget_archive option {
	text-transform: capitalize;
}

.sidebar .widget_tag_cloud .tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.sidebar .widget_tag_cloud .tagcloud a,
.sidebar .widget_tag_cloud .tagcloud a:visited {
	background: color-mix(in srgb, var(--newsblock-accent) 6%, #fff);
	border: 1px solid color-mix(in srgb, var(--newsblock-accent) 18%, #e5e9f0);
	border-radius: 999px;
	color: #475467 !important;
	font-size: 10px !important;
	height: auto;
	line-height: 1;
	margin: 0;
	padding: 7px 9px;
	text-transform: none;
}

.sidebar .widget_tag_cloud .tagcloud a::before {
	content: none;
}

.sidebar .widget_tag_cloud .tagcloud a:hover {
	background: var(--newsblock-accent);
	border-color: var(--newsblock-accent);
	color: #fff !important;
}

.sidebar .widget_calendar table,
.sidebar .wp-calendar-table {
	border-collapse: separate;
	border-spacing: 2px;
	font-size: 12px;
	text-align: center;
	width: 100%;
}

.sidebar .widget_calendar th,
.sidebar .widget_calendar td,
.sidebar .wp-calendar-table th,
.sidebar .wp-calendar-table td {
	border: 0;
	padding: 6px 3px;
}

.sidebar .widget a:focus-visible,
.sidebar .widget input:focus-visible,
.sidebar .widget select:focus-visible {
	border-radius: 4px;
	outline: 3px solid color-mix(in srgb, var(--newsblock-accent) 42%, #fff);
	outline-offset: 2px;
}

/* Footer widgets */
.site-footer {
	background:
		radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--newsblock-accent) 12%, transparent), transparent 34%),
		#1c1f24;
}

.site-footer .footer-columns {
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding: 30px 0 28px;
}

.site-footer .footer-columns::before,
.site-footer .footer-columns::after {
	content: none;
	display: none;
}

.site-footer .footer-columns .footer-column {
	box-sizing: border-box;
	float: none;
	margin: 0;
	min-width: 0;
	width: auto;
}

.site-footer .footer-columns .widget {
	background: rgba(255, 255, 255, 0.045);
	border: 1px solid rgba(255, 255, 255, 0.095);
	border-radius: 16px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.11);
	color: rgba(255, 255, 255, 0.66);
	margin: 0 0 16px;
	overflow: hidden;
	padding: 18px;
}

.site-footer .footer-columns .widget .widget-title {
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	color: #fff;
	display: flex;
	font-size: 16px;
	font-weight: 780;
	gap: 9px;
	letter-spacing: -0.01em;
	line-height: 1.25;
	margin: 0 0 13px;
	padding: 0 0 12px;
	text-transform: none;
}

.site-footer .footer-columns .widget .widget-title::before {
	background: var(--newsblock-accent);
	border-radius: 50%;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--newsblock-accent) 18%, transparent);
	content: "";
	flex: 0 0 6px;
	height: 6px;
	width: 6px;
}

.site-footer .footer-columns .widget p {
	color: rgba(255, 255, 255, 0.62);
	font-size: 14px;
	line-height: 1.65;
	margin: 0 0 12px;
}

.site-footer .footer-columns .widget ul {
	margin: 0;
	padding: 0;
}

.site-footer .footer-columns .widget ul > li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.075);
	color: rgba(255, 255, 255, 0.4);
	font-size: 13px;
	line-height: 1.45;
	list-style: none;
	margin: 0;
	padding: 8px 0 8px 13px;
	position: relative;
}

.site-footer .footer-columns .widget ul > li:first-child {
	padding-top: 1px;
}

.site-footer .footer-columns .widget ul > li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.site-footer .footer-columns .widget ul > li::before {
	background: var(--newsblock-accent);
	border-radius: 50%;
	content: "";
	height: 4px;
	left: 0;
	position: absolute;
	top: 15px;
	width: 4px;
}

.site-footer .footer-columns .widget ul > li:first-child::before {
	top: 8px;
}

.site-footer .footer-columns .widget a,
.site-footer .footer-columns .widget a:visited {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
}

.site-footer .footer-columns .widget a:hover {
	color: #fff;
	text-decoration: none;
}

.site-footer .footer-columns .widget select,
.site-footer .footer-columns .widget input[type="search"],
.site-footer .footer-columns .widget input[type="email"],
.site-footer .footer-columns .widget input[type="text"] {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 9px;
	color: #fff;
	font-size: 12px;
	min-height: 40px;
	padding: 8px 10px;
	width: 100%;
}

.site-footer .footer-columns .widget_search form,
.site-footer .footer-columns .widget_search .search-form {
	display: grid;
	gap: 8px;
	grid-template-columns: minmax(0, 1fr) auto;
}

.site-footer .footer-columns .widget_search input[type="submit"],
.site-footer .footer-columns .widget_search button[type="submit"] {
	background: var(--newsblock-accent);
	border: 1px solid var(--newsblock-accent);
	border-radius: 9px;
	color: #fff;
	font-size: 11px;
	font-weight: 750;
	min-height: 40px;
	padding: 0 10px;
	width: auto;
}

.site-footer .footer-columns .widget_posts_thumbnail ul > li {
	min-height: 56px;
	padding-left: 0;
}

.site-footer .footer-columns .widget_posts_thumbnail ul > li::before {
	content: none;
}

.site-footer .footer-columns .widget_posts_thumbnail .thumbnail-wrap,
.site-footer .footer-columns .widget_posts_thumbnail .wp-post-image,
.site-footer .footer-columns .widget_posts_thumbnail img {
	border-radius: 8px;
	height: 52px;
	object-fit: cover;
	width: 58px;
}

.site-footer .footer-columns .widget_posts_thumbnail .entry-wrap a {
	font-size: 13px;
	line-height: 1.35;
}

.site-footer .footer-columns .widget_posts_thumbnail .entry-meta,
.site-footer .footer-columns .widget_recent_entries .post-date {
	color: rgba(255, 255, 255, 0.4);
	display: block;
	font-size: 10px;
	margin-top: 3px;
	text-transform: capitalize;
}

.site-footer .footer-columns .widget_archive a,
.site-footer .footer-columns .widget_archive option {
	text-transform: capitalize;
}

.site-footer .footer-columns .widget_tag_cloud .tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.site-footer .footer-columns .widget_tag_cloud .tagcloud a {
	background: rgba(255, 255, 255, 0.065);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.72) !important;
	font-size: 9px !important;
	height: auto;
	line-height: 1;
	margin: 0;
	padding: 6px 8px;
	text-transform: none;
}

.site-footer .footer-columns .widget_tag_cloud .tagcloud a::before {
	content: none;
}

#site-bottom {
	border-top: 0;
	color: rgba(255, 255, 255, 0.5);
	padding: 20px 0;
}

#site-bottom .site-info,
#site-bottom .site-info a {
	color: rgba(255, 255, 255, 0.58);
	font-size: 12px;
}

@media only screen and (max-width: 959px) {
	.site-footer .footer-columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media only screen and (max-width: 620px) {
	.sidebar .widget {
		border-radius: 15px;
		padding: 18px;
	}

	.site-footer .footer-columns {
		gap: 14px;
		grid-template-columns: minmax(0, 1fr);
	}
}
