.ct-featured-posts {
	--ctfp-accent: var(--channel-accent, #9754e9);
	--ctfp-accent-bright: var(--channel-accent-bright, #c14bff);
	--ctfp-gradient: var(--gradient-primary, linear-gradient(to right, #c14bff, #9754e9, #6c5dd3));
	--ctfp-link: #1967d3;
	--ctfp-text: #111827;
	--ctfp-heading: #111827;
	--ctfp-muted: #64748b;
	--ctfp-card: #ffffff;
	--ctfp-border: rgba(151, 84, 233, 0.16);
	--ctfp-shadow: rgba(151, 84, 233, 0.08);

	box-sizing: border-box;
	color: var(--ctfp-text);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	margin: 24px 0;
	max-width: 100%;
	width: 100%;
}

.ct-featured-posts *,
.ct-featured-posts *::before,
.ct-featured-posts *::after {
	box-sizing: inherit;
}

.ct-featured-posts__header {
	align-items: center;
	border-bottom: 3px solid transparent;
	border-image: var(--ctfp-gradient) 1;
	display: flex;
	gap: 14px;
	justify-content: space-between;
	margin: 0 0 16px;
	padding: 0 0 10px;
}

.ct-featured-posts__title {
	background: var(--ctfp-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: var(--ctfp-accent);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0;
	-webkit-text-fill-color: transparent;
}

.ct-featured-posts__more {
	color: var(--ctfp-link);
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
}

.ct-featured-posts__more:hover,
.ct-featured-posts__post-title a:hover {
	color: var(--ctfp-accent-bright);
}

.ct-featured-posts__grid {
	align-items: start;
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	max-width: 100%;
}

.ct-featured-posts__side-list {
	display: grid;
	gap: 10px;
	min-width: 0;
}

.ct-featured-posts__card {
	background: var(--ctfp-card);
	border: 1px solid var(--ctfp-border);
	border-radius: 6px;
	box-shadow: none;
	min-width: 0;
	overflow: hidden;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ct-featured-posts__card:hover {
	border-color: rgba(151, 84, 233, 0.45);
	box-shadow: 0 4px 14px var(--ctfp-shadow);
	transform: translateY(-1px);
}

.ct-featured-posts__card--small {
	display: grid;
	gap: 10px;
	grid-template-columns: 118px minmax(0, 1fr);
	min-height: 0;
}

.ct-featured-posts__card--small.ct-featured-posts__card--no-thumb {
	grid-template-columns: 1fr;
}

.ct-featured-posts__image-link {
	display: block;
	text-decoration: none;
}

.ct-featured-posts__image {
	aspect-ratio: 16 / 9;
	background: rgba(151, 84, 233, 0.08);
	display: block;
	overflow: hidden;
	width: 100%;
}

.ct-featured-posts__card--small .ct-featured-posts__image-link,
.ct-featured-posts__card--small .ct-featured-posts__image {
	width: 118px;
}

.ct-featured-posts__image img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.ct-featured-posts__body {
	min-width: 0;
	padding: 14px 16px 14px;
}

.ct-featured-posts__card--small .ct-featured-posts__body {
	align-self: start;
	padding: 8px 10px 8px 0;
}

.ct-featured-posts__card--small.ct-featured-posts__card--no-thumb .ct-featured-posts__body {
	padding-left: 10px;
}

.ct-featured-posts__badge {
	background: var(--ctfp-gradient);
	border-radius: 999px;
	color: #ffffff;
	display: inline-flex;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	margin: 0 0 10px;
	padding: 7px 10px;
	text-decoration: none;
	text-transform: uppercase;
}

.ct-featured-posts__post-title {
	color: var(--ctfp-heading);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.3;
	margin: 0;
	overflow-wrap: break-word;
}

.ct-featured-posts__card--large .ct-featured-posts__post-title {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.28;
	margin-bottom: 10px;
}

.ct-featured-posts__card--small .ct-featured-posts__post-title {
	display: -webkit-box;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.28;
	margin-bottom: 7px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.ct-featured-posts__post-title:last-child {
	margin-bottom: 0;
}

.ct-featured-posts__post-title a {
	color: inherit;
	text-decoration: none;
}

.ct-featured-posts__date {
	color: var(--ctfp-muted);
	display: block;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	margin-top: 0;
}

body.ctdm-dark .ct-featured-posts,
body.dark-mode .ct-featured-posts {
	--ctfp-link: #55d6ff;
	--ctfp-text: #d7e0ec;
	--ctfp-heading: #63d8ff;
	--ctfp-muted: rgba(215, 224, 236, 0.62);
	--ctfp-card: #151d29;
	--ctfp-border: rgba(151, 84, 233, 0.18);
	--ctfp-shadow: rgba(151, 84, 233, 0.1);
}

body.ctdm-dark .ct-featured-posts__card,
body.dark-mode .ct-featured-posts__card {
	background: var(--ctfp-card);
}

body.ctdm-dark .ct-featured-posts__image,
body.dark-mode .ct-featured-posts__image {
	background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
	.ct-featured-posts__grid {
		grid-template-columns: 1fr;
	}

	.ct-featured-posts__title {
		font-size: 22px;
	}

	.ct-featured-posts__card--large .ct-featured-posts__post-title {
		font-size: 22px;
	}

	.ct-featured-posts__card--small {
		grid-template-columns: 120px minmax(0, 1fr);
	}

	.ct-featured-posts__card--small .ct-featured-posts__image-link,
	.ct-featured-posts__card--small .ct-featured-posts__image {
		width: 120px;
	}

	.ct-featured-posts__card--small .ct-featured-posts__post-title {
		font-size: 15px;
		-webkit-line-clamp: 3;
	}
}

@media (max-width: 560px) {
	.ct-featured-posts {
		margin: 22px 0;
	}

	.ct-featured-posts__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
		margin-bottom: 14px;
	}

	.ct-featured-posts__title {
		font-size: 21px;
	}

	.ct-featured-posts__card--large .ct-featured-posts__post-title {
		font-size: 21px;
	}

	.ct-featured-posts__card--small {
		gap: 9px;
		grid-template-columns: 110px minmax(0, 1fr);
	}

	.ct-featured-posts__card--small .ct-featured-posts__image-link,
	.ct-featured-posts__card--small .ct-featured-posts__image {
		width: 110px;
	}

	.ct-featured-posts__body {
		padding: 13px 14px 13px;
	}

	.ct-featured-posts__card--small .ct-featured-posts__body {
		padding: 8px 9px 8px 0;
	}

	.ct-featured-posts__card--small .ct-featured-posts__post-title {
		font-size: 14px;
		line-height: 1.28;
		-webkit-line-clamp: 3;
	}

	.ct-featured-posts__date {
		font-size: 12px;
	}
}

/* Final compact tuning for Channel Tech Featured Posts */

.ct-featured-posts {
  margin-top: 0;
}

.ct-featured-posts__header {
  align-items: flex-end;
  margin-bottom: 14px;
  padding-bottom: 9px;
}

.ct-featured-posts__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
}

.ct-featured-posts__more {
  padding-bottom: 2px;
  font-size: 14px;
  font-weight: 650;
}

.ct-featured-posts__post-title {
  font-weight: 600;
}

.ct-featured-posts__card--large .ct-featured-posts__post-title {
  font-size: 21px;
  line-height: 1.28;
  font-weight: 600;
}

.ct-featured-posts__card--small .ct-featured-posts__post-title {
  font-size: 14px;
  line-height: 1.32;
  font-weight: 600;
}

.ct-featured-posts__date {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

body.ctdm-dark .ct-featured-posts__date,
body.dark-mode .ct-featured-posts__date {
  color: rgba(226, 232, 240, 0.58);
}

body.ctdm-dark .ct-featured-posts__post-title,
body.dark-mode .ct-featured-posts__post-title {
  color: #67d7ff;
}