/* Custom blog sidebar — Digicart card UI */

.single-post .section-padding,
.blog .section-padding,
.archive .section-padding,
.search .section-padding,
.category .section-padding,
.tag .section-padding,
.author .section-padding {
	background: var(--cp-bg, #faf7f6);
	padding-top: 1.25rem;
	padding-bottom: 4rem;
}

.single-post .section-padding > .container > .row,
.blog .section-padding > .container > .row,
.archive .section-padding > .container > .row,
.search .section-padding > .container > .row,
.category .section-padding > .container > .row,
.tag .section-padding > .container > .row,
.author .section-padding > .container > .row {
	align-items: flex-start;
}

.single-post .dostart-post,
.blog .dostart-post,
.archive .dostart-post,
.search .dostart-post {
	margin-top: 0;
}

.cp-sidebar,
.blog-sidebar.cp-sidebar {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.cp-sidebar *,
.cp-sidebar *::before,
.cp-sidebar *::after {
	box-sizing: border-box;
}

.cp-sidebar a {
	text-decoration: none;
	border: 0 !important;
}

.cp-sidebar__stack {
	position: sticky;
	top: 6.25rem;
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.cp-side-card {
	margin: 0;
	padding: 1.25rem 1.2rem 1.3rem;
	background: #fff;
	border: 1px solid var(--cp-line, #e6ebf0);
	border-radius: 20px;
	box-shadow: 0 14px 36px rgba(26, 35, 50, 0.05);
}

.cp-side-card__title {
	margin: 0 0 0.95rem;
	padding: 0 0 0.65rem;
	font-size: 1.02rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.3;
	color: var(--cp-ink, #1a2332);
	position: relative;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.cp-side-card__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 2.1rem;
	height: 3px;
	border-radius: 99px;
	background: var(--cp-accent, #ff6d60);
}

.cp-side-card__eyebrow {
	margin: 0 0 0.55rem;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cp-accent-dark, #e55548);
}

.cp-side-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.65rem 1rem;
	border-radius: 12px;
	background: var(--cp-accent, #ff6d60);
	color: #fff !important;
	font-size: 0.95rem;
	font-weight: 700;
	box-shadow: 0 8px 18px rgba(255, 109, 96, 0.26);
	transition: background 0.18s ease, transform 0.18s ease;
}

.cp-side-btn:hover {
	background: var(--cp-accent-dark, #e55548);
	transform: translateY(-1px);
}

/* Search */
.cp-side-search {
	position: relative;
}

.cp-side-search__input {
	width: 100%;
	height: 48px;
	padding: 0 3.4rem 0 1rem;
	border: 1px solid var(--cp-line, #e6ebf0);
	border-radius: 12px;
	background: #faf7f6;
	color: var(--cp-ink, #1a2332);
	font-size: 0.95rem;
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cp-side-search__input:focus {
	outline: none;
	border-color: var(--cp-accent, #ff6d60);
	background: #fff;
	box-shadow: 0 0 0 4px var(--cp-accent-soft, #ffece9);
}

.cp-sidebar .cp-side-search__btn {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 40px;
	height: 40px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 10px;
	background: var(--cp-accent, #ff6d60) !important;
	color: #fff !important;
	cursor: pointer;
	transition: background 0.18s ease;
}

.cp-sidebar .cp-side-search__btn:hover {
	background: var(--cp-accent-dark, #e55548) !important;
}

/* Promo banners — image clean, copy below, no overlay */
.cp-side-banner {
	overflow: hidden;
	padding: 0;
	background: #fff;
	border: 1px solid var(--cp-line, #e6ebf0);
	border-radius: 20px;
	box-shadow: 0 14px 36px rgba(26, 35, 50, 0.05);
}

.cp-side-banner__media {
	display: block;
	line-height: 0;
	overflow: hidden;
}

.cp-side-banner--easymedia .cp-side-banner__media {
	background: #f3f7ff;
}

.cp-side-banner--woopaddle .cp-side-banner__media {
	background: #f4f7fb;
}

.cp-side-banner__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: center;
	transition: transform 0.35s ease;
}

.cp-side-banner:hover .cp-side-banner__media img {
	transform: scale(1.03);
}

.cp-side-banner__body {
	padding: 1.05rem 1.15rem 1.2rem;
}

.cp-side-banner__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cp-accent-dark, #e55548);
}

.cp-side-banner__title {
	margin: 0 0 0.4rem;
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.cp-side-banner__title a {
	color: var(--cp-ink, #1a2332);
}

.cp-side-banner__title a:hover {
	color: var(--cp-accent, #ff6d60);
}

.cp-side-banner__text {
	margin: 0 0 0.95rem;
	color: var(--cp-muted, #667085);
	font-size: 0.92rem;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

/* Posts */
.cp-side-posts {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cp-side-posts li + li {
	margin-top: 0.85rem;
	padding-top: 0.85rem;
	border-top: 1px solid #f1ecea;
}

.cp-side-posts__item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.cp-side-posts__thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--cp-accent-soft, #ffece9);
}

.cp-side-posts__thumb img,
.cp-side-posts__placeholder {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: cover;
}

.cp-side-posts__placeholder {
	background: linear-gradient(135deg, #ffece9, #ffd4ce);
}

.cp-side-posts__meta {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.22rem;
}

.cp-side-posts__name {
	color: var(--cp-ink, #1a2332);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.cp-side-posts__item:hover .cp-side-posts__name {
	color: var(--cp-accent, #ff6d60);
}

.cp-side-posts time {
	color: var(--cp-muted, #667085);
	font-size: 0.78rem;
	font-weight: 600;
}

/* Topics */
.cp-side-topics {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.cp-side-topics a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.55rem 0.75rem;
	border-radius: 12px;
	background: #faf7f6;
	color: var(--cp-ink, #1a2332);
	font-size: 0.95rem;
	font-weight: 700;
	transition: background 0.18s ease, color 0.18s ease;
}

.cp-side-topics a:hover {
	background: var(--cp-accent-soft, #ffece9);
	color: var(--cp-accent-dark, #e55548);
}

.cp-side-topics em {
	font-style: normal;
	min-width: 1.6rem;
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
	background: #fff;
	color: var(--cp-muted, #667085);
	font-size: 0.75rem;
	font-weight: 800;
	text-align: center;
}

/* Hire */
.cp-side-card--hire {
	text-align: center;
	padding: 1.35rem 1.2rem 1.4rem;
}

.cp-side-hire__status {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 0.9rem;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cp-muted, #667085);
}

.cp-side-hire__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
	animation: cp-side-pulse 2s ease-in-out infinite;
}

@keyframes cp-side-pulse {
	0%,
	100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.15); opacity: 0.7; }
}

.cp-side-hire__visual {
	width: 72px;
	height: 72px;
	margin: 0 auto 0.85rem;
}

.cp-side-hire__visual svg {
	display: block;
	width: 100%;
	height: 100%;
}

.cp-side-hire__title {
	margin: 0 0 0.35rem;
	font-size: 1.12rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.3;
	color: var(--cp-ink, #1a2332);
}

.cp-side-hire__text {
	margin: 0 0 1.05rem;
	color: var(--cp-muted, #667085);
	font-size: 0.92rem;
}

/* Kill leftover parent widget chrome if a plugin injects one */
.cp-sidebar .widget-title::before,
.blog-sidebar .widget-title::before {
	content: none !important;
	display: none !important;
}

@media (max-width: 991px) {
	.cp-sidebar {
		margin-top: 2rem;
	}

	.cp-sidebar__stack {
		position: static;
	}
}
