/* Chapter Trending — בסגנון הקיים של [featured_books] */

.ct-section,
.ct-section * {
	font-family: 'Varela Round', sans-serif;
	box-sizing: border-box;
}

.ct-section {
	direction: rtl;
	max-width: 1100px;
	margin: 32px auto;
	padding: 0 16px;
}

.ct-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.ct-title {
	font-size: 18px;
	font-weight: 700;
	color: #222;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ct-flame {
	font-size: 20px;
	line-height: 1;
}

.ct-more {
	font-size: 13px;
	color: #9b59b6;
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
}

.ct-more:hover {
	text-decoration: underline;
}

.ct-grid {
	display: grid;
	grid-template-columns: repeat(var(--ct-cols, 3), minmax(0, 1fr));
	gap: 14px;
}

.ct-card {
	background: #fff;
	border: 1px solid #f0f0f2;
	border-radius: 14px;
	overflow: hidden;
	display: block;
	text-decoration: none;
	color: inherit;
	transition: transform 0.18s, box-shadow 0.18s;
}

.ct-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(123, 79, 166, 0.12);
}

.ct-card-media {
	position: relative;
}

.ct-card-img {
	width: 100%;
	max-width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	background: linear-gradient(135deg, #7B4FA6, #c084fc);
}

.ct-card-img--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

.ct-rank {
	position: absolute;
	top: 8px;
	inset-inline-start: 8px;
	min-width: 26px;
	height: 26px;
	padding: 0 7px;
	border-radius: 20px;
	background: rgba(155, 89, 182, 0.92);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ct-card-body {
	padding: 12px 14px 14px;
}

.ct-cat {
	display: inline-block;
	font-size: 10px;
	color: #7B4FA6;
	background: #f3eeff;
	padding: 2px 8px;
	border-radius: 20px;
	margin-bottom: 6px;
}

.ct-card-title {
	font-size: 14px;
	font-weight: 700;
	color: #222;
	line-height: 1.3;
	margin: 0 0 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 36px;
}

.ct-card-author {
	font-size: 12px;
	color: #888;
	margin-bottom: 8px;
}

.ct-stats {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.ct-stat {
	font-size: 11px;
	color: #999;
	white-space: nowrap;
}

.ct-pill {
	display: inline-block;
	font-size: 10px;
	background: #f3eeff;
	color: #7B4FA6;
	padding: 3px 9px;
	border-radius: 20px;
	font-weight: 600;
}

@media (max-width: 900px) {
	.ct-grid {
		grid-template-columns: repeat(min(3, var(--ct-cols, 3)), minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.ct-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.ct-title {
		font-size: 16px;
	}
}
