/**
 * npocto Pro - Editor's Choice Slider Widget Styles
 * Matches Reference Design pixel-perfect
 */

.npocto-editor-choice-wrapper {
	width: 100%;
	position: relative;
	padding: 1rem 0;
	min-height: 260px;
	box-sizing: border-box;
}

/* Header with Title, Vertical Bar & Nav Buttons */
.npocto-ec-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 1.8rem;
}

.npocto-ec-heading-group {
	position: relative;
	padding-right: 16px;
	border-right: 4px solid #ea580c;
}

.npocto-ec-title {
	font-size: 1.55rem;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 4px 0;
	line-height: 1.3;
}

.npocto-ec-subtitle {
	font-size: 0.95rem;
	color: #334155;
	margin: 0;
}

/* Nav Arrows */
.npocto-ec-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

.npocto-ec-arrow {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	border: 1px solid #ea580c;
	background: transparent;
	color: #ea580c;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 0.9rem;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
	outline: none;
}

.npocto-ec-arrow:hover {
	background: #ea580c;
	color: #ffffff;
}

.npocto-ec-arrow svg,
.npocto-ec-arrow i {
	font-size: 14px;
	color: inherit;
	fill: currentColor;
}

/* Slider Track */
.npocto-ec-slider-container {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.npocto-ec-slider-track {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; /* Firefox */
	padding: 4px 2px 16px 2px;
}

.npocto-ec-slider-track::-webkit-scrollbar {
	display: none; /* Chrome, Safari */
}

/* Single Card */
.npocto-ec-card {
	flex: 0 0 calc(33.333% - 12px);
	min-width: 320px;
	min-height: 175px;
	scroll-snap-align: start;
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid #f1f5f9;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: row;
	align-items: stretch;
	padding: 14px;
	gap: 14px;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: transform;
	box-sizing: border-box;
}

.npocto-ec-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
	border-color: #e2e8f0;
}

/* Visual Side (Right in RTL): Thumbnail + Badges */
.npocto-ec-visual {
	flex: 0 0 42% !important;
	width: 42% !important;
	height: auto !important;
	min-height: 140px !important;
	aspect-ratio: 16 / 10;
	align-self: stretch !important;
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	background: #f1f5f9;
	flex-shrink: 0;
}

.npocto-ec-thumb-link {
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.npocto-ec-visual img, .npocto-ec-thumb { width: 100% !important; height: 100% !important; min-height: 100% !important; max-height: 100% !important;
	object-fit: cover;
	object-position: center;
	display: block;
	border-radius: 14px;
	transition: transform 0.4s ease;
}

.npocto-ec-card:hover .npocto-ec-thumb {
	transform: scale(1.08);
}

/* Bookmark Button inside Visual */
.npocto-ec-bookmark-wrap {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 5;
}

.npocto-ec-bookmark-wrap .npocto-bookmark-btn {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	font-size: 0.85rem;
	background: rgba(255, 255, 255, 0.94);
	color: #334155;
	border: 1px solid rgba(255, 255, 255, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	transition: transform 0.2s ease;
	will-change: transform;
}

.npocto-ec-bookmark-wrap .npocto-bookmark-btn:hover {
	background: #ffffff;
	color: #ea580c;
	transform: scale(1.08);
}

.npocto-ec-bookmark-wrap .npocto-bookmark-btn.is-saved {
	background: #ea580c;
	color: #ffffff;
	border-color: #ea580c;
}

.npocto-ec-bookmark-wrap .npocto-bookmark-btn svg,
.npocto-ec-bookmark-wrap .npocto-bookmark-btn i {
	font-size: 13px;
	color: inherit;
	fill: currentColor;
}

/* Category Pill on bottom of thumbnail */
.npocto-ec-category-pill {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	background: #ea580c;
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 5px 12px;
	min-height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	white-space: nowrap;
	text-decoration: none;
	z-index: 4;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.2);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease;
	will-change: transform;
	line-height: 1.4;
}

.npocto-ec-category-pill:hover {
	color: #ffffff;
	background: #c2410c;
	transform: translateX(-50%) translateY(-2px);
	box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35);
}

/* Content Side (Left in RTL) */
.npocto-ec-content { flex: 1 1 53% !important;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
}

.npocto-ec-card-title {
	font-size: 1.05rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.5;
	margin: 0 0 8px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;
	max-height: 3.1em;
}

.npocto-ec-card-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.npocto-ec-card-title a:hover {
	color: #c2410c;
}

.npocto-ec-excerpt {
	font-size: 0.85rem;
	line-height: 1.7;
	color: #334155;
	margin: 0 0 12px 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Card Meta Footer */
.npocto-ec-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	font-size: 0.8rem;
	color: #334155;
	padding-top: 8px;
}

.npocto-meta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.npocto-ec-meta-date {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #7c2d12 !important;
	font-weight: 700;
}

.npocto-ec-meta-date i,
.npocto-ec-meta-date svg {
	color: #7c2d12 !important;
	fill: currentColor;
	font-size: 0.85rem;
}

.npocto-ec-meta-author {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #0f172a;
}

.npocto-ec-meta-author i,
.npocto-ec-meta-author svg {
	color: #0f172a;
	fill: currentColor;
	font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1200px) {
	.npocto-ec-card {
		flex: 0 0 calc(50% - 9px);
	}
}

@media (max-width: 768px) {
	.npocto-ec-card {
		flex: 0 0 calc(85% - 9px);
		min-width: 290px;
	}
	.npocto-ec-visual {
		flex: 0 0 115px;
		width: 115px;
		height: 115px;
		min-height: 115px;
		max-height: 115px;
	}
}

@media (max-width: 480px) {
	.npocto-ec-card {
		flex: 0 0 100%;
		min-width: auto;
		flex-direction: column;
		align-items: stretch;
	}
	.npocto-ec-visual {
		width: 100%;
		height: 180px;
		min-height: 180px;
		max-height: 180px;
		flex: 0 0 auto;
	}
}




