.techmag-smart-sidebar {
	--tm-sidebar-bg: transparent;
	--tm-sidebar-box-bg: #fff;
	--tm-sidebar-title: #0f172a;
	--tm-sidebar-text: #475569;
	--tm-sidebar-accent: #0ea5e9;
	--tm-sidebar-border: #e2e8f0;
	--tm-sidebar-gap: 18px;
	--tm-sidebar-radius: 16px;
	--tm-sidebar-input-bg: #f8fafc;
	--tm-sidebar-input-color: #0f172a;
	--tm-sidebar-input-border: #e2e8f0;
	--tm-sidebar-button-bg: #0ea5e9;
	--tm-sidebar-button-color: #fff;
	--tm-sidebar-button-hover: #0284c7;
	--tm-sidebar-control-radius: 12px;
	--tm-sidebar-search-gap: 8px;
	--tm-sidebar-post-title: #111827;
	--tm-sidebar-post-hover: #0ea5e9;
	--tm-sidebar-number-color: #fff;
	--tm-sidebar-number-bg: #0ea5e9;
	--tm-sidebar-number-radius: 999px;
	--tm-sidebar-date: #64748b;
	--tm-sidebar-category: #0ea5e9;
	--tm-sidebar-item-border: #e2e8f0;
	--tm-sidebar-item-hover: #f8fafc;
	--tm-sidebar-thumb-size: 64px;
	--tm-sidebar-thumb-radius: 12px;
	--tm-sidebar-list-gap: 10px;
	--tm-sidebar-link-color: #111827;
	--tm-sidebar-link-hover: #0ea5e9;
	--tm-sidebar-links-box-bg: #f1f1f138;
	--tm-sidebar-links-title: #f8fbff;
	--tm-sidebar-links-title-line: #38bdf8;
	--tm-sidebar-link-bg: #f8fafc;
	--tm-sidebar-link-border: #e2e8f0;
	--tm-sidebar-link-radius: 12px;
	--tm-sidebar-links-gap: 10px;
	--tm-sidebar-sticky-offset: 24px;
	background: var(--tm-sidebar-bg);
	color: var(--tm-sidebar-text);
	direction: rtl;
	display: grid;
	gap: var(--tm-sidebar-gap);
	inline-size: 100%;
	margin-inline: auto;
}

.techmag-smart-sidebar--sticky {
	position: sticky;
	top: var(--tm-sidebar-sticky-offset);
}

.techmag-smart-sidebar--glass {
	--tm-sidebar-box-bg: rgba(255, 255, 255, .76);
	--tm-sidebar-border: rgba(148, 163, 184, .28);
}

.techmag-smart-sidebar--solid {
	--tm-sidebar-bg: #f1f5f9;
	--tm-sidebar-box-bg: #fff;
	padding: 14px;
}

.techmag-smart-sidebar--dark-tech {
	--tm-sidebar-bg: #070b16;
	--tm-sidebar-box-bg: #0f172a;
	--tm-sidebar-title: #f8fafc;
	--tm-sidebar-text: #cbd5e1;
	--tm-sidebar-border: rgba(148, 163, 184, .22);
	--tm-sidebar-input-bg: rgba(15, 23, 42, .9);
	--tm-sidebar-input-color: #f8fafc;
	--tm-sidebar-input-border: rgba(148, 163, 184, .28);
	--tm-sidebar-post-title: #f8fafc;
	--tm-sidebar-item-hover: rgba(56, 189, 248, .08);
	--tm-sidebar-link-color: #f8fafc;
	--tm-sidebar-link-bg: rgba(255, 255, 255, .04);
	--tm-sidebar-link-border: rgba(148, 163, 184, .22);
	padding: 14px;
}

.techmag-sidebar-box {
	background: var(--tm-sidebar-box-bg);
	border: 1px solid var(--tm-sidebar-border);
	border-radius: var(--tm-sidebar-radius);
	color: var(--tm-sidebar-text);
	overflow: hidden;
	padding: 18px;
}

.techmag-smart-sidebar--glass .techmag-sidebar-box {
	backdrop-filter: blur(14px);
}

.techmag-sidebar-box__title {
	align-items: center;
	color: var(--tm-sidebar-title);
	display: flex;
	font-size: 15px;
	font-weight: 850;
	gap: 8px;
	letter-spacing: 0;
	line-height: 1.6;
	margin: 0 0 14px;
}

.techmag-sidebar-box__mark {
	background: var(--tm-sidebar-accent);
	border-radius: 999px;
	block-size: 8px;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--tm-sidebar-accent) 15%, transparent);
	flex: 0 0 auto;
	inline-size: 8px;
}

.techmag-sidebar-search {
	display: flex;
	gap: var(--tm-sidebar-search-gap);
}

.techmag-sidebar-search input[type="search"] {
	-webkit-appearance: none;
	background: var(--tm-sidebar-input-bg);
	border: 1px solid var(--tm-sidebar-input-border);
	border-radius: var(--tm-sidebar-control-radius);
	color: var(--tm-sidebar-input-color);
	flex: 1 1 auto;
	font-size: 14px;
	inline-size: 100%;
	line-height: 1.7;
	min-block-size: 44px;
	min-inline-size: 0;
	outline: none;
	padding-inline: 12px;
	transition: border-color .16s ease, box-shadow .16s ease;
}

.techmag-sidebar-search input[type="search"]:focus {
	border-color: var(--tm-sidebar-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tm-sidebar-accent) 16%, transparent);
}

.techmag-sidebar-search button {
	align-items: center;
	background: var(--tm-sidebar-button-bg);
	border: 0;
	border-radius: var(--tm-sidebar-control-radius);
	color: var(--tm-sidebar-button-color);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 850;
	gap: 7px;
	justify-content: center;
	line-height: 1;
	min-block-size: 44px;
	padding-inline: 14px;
	transition: background .16s ease, transform .16s ease;
	white-space: nowrap;
}

.techmag-sidebar-search button:hover,
.techmag-sidebar-search button:focus-visible {
	background: var(--tm-sidebar-button-hover);
	transform: translateY(-1px);
}

.techmag-sidebar-search__icon {
	block-size: 17px;
	fill: currentColor;
	inline-size: 17px;
}

.techmag-sidebar-latest,
.techmag-sidebar-links {
	display: grid;
	gap: var(--tm-sidebar-list-gap);
	list-style: none;
	margin: 0;
	padding: 0;
}

.techmag-sidebar-latest__item {
	align-items: center;
	border: 1px solid var(--tm-sidebar-item-border);
	border-radius: 14px;
	display: flex;
	gap: 10px;
	padding: 10px;
	position: relative;
	transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.techmag-sidebar-latest__item:hover {
	background: var(--tm-sidebar-item-hover);
	border-color: color-mix(in srgb, var(--tm-sidebar-accent) 38%, var(--tm-sidebar-item-border));
	transform: translateY(-1px);
}

.techmag-sidebar-latest__number {
	align-items: center;
	background: var(--tm-sidebar-number-bg);
	border-radius: var(--tm-sidebar-number-radius);
	color: var(--tm-sidebar-number-color);
	display: inline-flex;
	font-size: 12px;
	font-weight: 850;
	inline-size: 26px;
	justify-content: center;
	line-height: 1;
	min-block-size: 26px;
}

.techmag-sidebar-latest__thumb {
	background: color-mix(in srgb, var(--tm-sidebar-accent) 10%, var(--tm-sidebar-input-bg));
	border-radius: var(--tm-sidebar-thumb-radius);
	block-size: var(--tm-sidebar-thumb-size);
	display: block;
	inline-size: var(--tm-sidebar-thumb-size);
	overflow: hidden;
}

.techmag-sidebar-latest__thumb img {
	block-size: 100%;
	display: block;
	inline-size: 100%;
	object-fit: cover;
}

.techmag-sidebar-latest__placeholder {
	background:
		linear-gradient(135deg, transparent 45%, color-mix(in srgb, var(--tm-sidebar-accent) 28%, transparent) 45% 55%, transparent 55%),
		radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--tm-sidebar-accent) 28%, transparent), transparent 34%);
	block-size: 100%;
	display: block;
	inline-size: 100%;
}

.techmag-sidebar-latest__body {
	flex: 1 1 auto;
	min-inline-size: 0;
}

.techmag-sidebar-latest__title,
.techmag-sidebar-link__title {
	color: var(--tm-sidebar-post-title);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.75;
	text-decoration: none;
}

.techmag-sidebar-latest__title:hover,
.techmag-sidebar-latest__title:focus-visible {
	color: var(--tm-sidebar-post-hover);
}

.techmag-sidebar-latest__meta {
	align-items: center;
	color: var(--tm-sidebar-date);
	display: flex;
	flex-wrap: wrap;
	font-size: 12px;
	gap: 6px;
	line-height: 1.8;
	margin-block-start: 4px;
}

.techmag-sidebar-latest__cat {
	color: var(--tm-sidebar-category);
	font-weight: 750;
}

.techmag-sidebar-box.techmag-sidebar-links-box {
	background: var(--tm-sidebar-links-box-bg) !important;
	padding-block-start: 14px;
}

.techmag-sidebar-links-box .techmag-sidebar-box__title {
	color: var(--tm-sidebar-links-title) !important;
	font-size: 13px;
	justify-content: center;
	margin-block-end: 12px;
	position: relative;
	text-align: center;
}

.techmag-sidebar-links-box .techmag-sidebar-box__title::after {
	background: linear-gradient(90deg, transparent, var(--tm-sidebar-links-title-line), transparent);
	block-size: 1px;
	content: "";
	inline-size: 56px;
	inset-inline-start: 18px;
	position: absolute;
	top: 50%;
}

.techmag-sidebar-links-box .techmag-sidebar-box__mark {
	display: none;
}

.techmag-sidebar-links {
	display: grid;
	gap: var(--tm-sidebar-links-gap);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.techmag-sidebar-link {
	margin: 0;
	min-inline-size: 0;
}

.techmag-sidebar-link:last-child:nth-child(odd) {
	grid-column: 1 / -1;
	justify-self: center;
	inline-size: min(100%, 56%);
}

.techmag-sidebar-link__inner {
	align-items: center;
	background: var(--tm-sidebar-link-bg);
	border: 1px solid var(--tm-sidebar-link-border);
	border-radius: var(--tm-sidebar-link-radius);
	color: var(--tm-sidebar-link-color);
	display: flex;
	font-size: 12px;
	font-weight: 800;
	justify-content: center;
	line-height: 1.4;
	min-block-size: 31px;
	padding: 8px 12px;
	text-align: center;
	text-decoration: none;
	transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
	white-space: nowrap;
}

.techmag-sidebar-link__inner:hover,
.techmag-sidebar-link__inner:focus-visible {
	border-color: currentColor;
	color: var(--tm-sidebar-link-hover);
	transform: translateY(-1px);
}

.techmag-sidebar-link__inner:hover .techmag-sidebar-link__title,
.techmag-sidebar-link__inner:focus-visible .techmag-sidebar-link__title {
	color: var(--tm-sidebar-link-hover);
}

.techmag-sidebar-link__title {
	color: var(--tm-sidebar-link-color);
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
}

.techmag-sidebar-banner-box {
	padding: 10px;
}

.techmag-sidebar-banner-label {
	color: color-mix(in srgb, var(--tm-sidebar-text) 58%, transparent);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.3;
	margin-block-end: 6px;
	text-align: left;
}

.techmag-sidebar-banner {
	aspect-ratio: 1 / 1;
	border-radius: 5px;
	display: block;
	inline-size: min(100%, 500px);
	margin-inline: auto;
	overflow: hidden;
	text-decoration: none;
}

.techmag-sidebar-banner img {
	block-size: 100%;
	border-radius: 5px !important;
	display: block;
	inline-size: 100%;
	object-fit: cover;
}

.techmag-sidebar-empty {
	color: var(--tm-sidebar-text);
	font-size: 13px;
	line-height: 1.9;
	margin: 0;
}

@media (max-width: 767px) {
	/* Flatten the two desktop columns into one intentional mobile reading flow. */
	.elementor-location-single .elementor-element-fc0c8a2 > .e-con-inner {
		align-items: stretch;
		flex-direction: column;
		flex-wrap: nowrap;
	}

	.elementor-location-single .elementor-element-fc0c8a2 > .e-con-inner > .elementor-element-5eb68f5,
	.elementor-location-single .elementor-element-fc0c8a2 > .e-con-inner > .elementor-element-43e2df0 {
		display: contents;
	}

	.elementor-location-single .elementor-element-43e2df0.elementor-sticky {
		inset: auto !important;
		position: static !important;
		width: auto !important;
	}

	.elementor-location-single .elementor-element-43e2df0.elementor-sticky__spacer {
		display: none !important;
	}

	.elementor-location-single .elementor-element-fc0c8a2 > .e-con-inner > .elementor-element {
		inline-size: 100%;
		max-inline-size: 100%;
	}

	.elementor-location-single .elementor-element-3887b3b { order: 0; }
	.elementor-location-single .elementor-element-4faac25 { order: 1; }
	.elementor-location-single .elementor-element-f1999e5 { order: 2; }
	.elementor-location-single .elementor-element-6aeae4e { order: 3; }
	.elementor-location-single .elementor-element-8e29558 { order: 4; }
	.elementor-location-single .elementor-element-7238f90 { order: 5; }
	.elementor-location-single .elementor-element-c93d39c { order: 6; }
	.elementor-location-single .elementor-element-2cad066 { order: 7; }

	.elementor-location-single .elementor-element-f1999e5,
	.elementor-location-single .elementor-element-6aeae4e,
	.elementor-location-single .elementor-element-8e29558,
	.elementor-location-single .elementor-element-7238f90,
	.elementor-location-single .elementor-element-c93d39c,
	.elementor-location-single .elementor-element-2cad066 {
		margin-block-start: 20px;
	}

	.techmag-smart-sidebar {
		--tm-sidebar-gap: 12px !important;
		--tm-sidebar-list-gap: 7px !important;
		--tm-sidebar-thumb-size: 56px !important;
		font-size: 15px !important;
		max-inline-size: none;
		position: static;
	}

	.techmag-sidebar-box {
		padding: 12px !important;
	}

	.techmag-sidebar-box__title {
		font-size: 14px !important;
		margin-block-end: 10px;
	}

	.techmag-sidebar-banner {
		inline-size: min(100%, 240px);
	}

	.techmag-sidebar-search {
		align-items: stretch;
		flex-direction: row;
	}

	.techmag-sidebar-search input[type="search"] {
		font-size: 13px;
		min-block-size: 40px;
	}

	.techmag-sidebar-search button {
		inline-size: 44px;
		min-block-size: 40px;
		padding-inline: 0;
	}

	.techmag-sidebar-latest__item {
		gap: 8px;
		padding: 8px !important;
	}

	.techmag-sidebar-latest__title,
	.techmag-sidebar-link__title {
		font-size: 13px !important;
		line-height: 1.55;
	}

	.techmag-sidebar-latest__meta {
		font-size: 10px;
	}

	.techmag-sidebar-link__inner {
		font-size: 11px;
		min-block-size: 29px;
		padding: 6px 8px;
	}
}
