/**
 * Sidebar Items & Slider Widgets Styling
 * For News Steam Plus
 */

/* General Container */
.ns-sidebar-posts-widget {
	width: 100%;
}

.ns-sidebar-posts-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ns-sidebar-post-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
	position: relative;
	transition: transform 0.2s ease, padding 0.2s ease;
}

.ns-sidebar-post-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.ns-sidebar-post-item:hover {
	transform: translateX(3px);
}

/* Rank / Number Badge for No-Thumb (Items 1 - 3) */
.ns-sidebar-posts-widget.ns-no-thumb .ns-post-rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	min-width: 24px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: #64748b;
	margin-top: 2px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.ns-sidebar-posts-widget.ns-no-thumb .ns-post-rank.rank-1 {
	background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.ns-sidebar-posts-widget.ns-no-thumb .ns-post-rank.rank-2 {
	background: linear-gradient(135deg, #f97316, #c2410c);
}

.ns-sidebar-posts-widget.ns-no-thumb .ns-post-rank.rank-3 {
	background: linear-gradient(135deg, #f59e0b, #b45309);
}

/* Thumbnails (Items 4 - 6) */
.ns-post-thumb-wrap {
	position: relative;
	width: 84px;
	height: 68px;
	min-width: 84px;
	border-radius: 8px;
	overflow: hidden;
	background-color: #f1f5f9;
	flex-shrink: 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ns-post-thumb-wrap a.ns-thumb-link {
	display: block;
	width: 100%;
	height: 100%;
}

.ns-post-thumb-wrap img.ns-post-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.ns-sidebar-post-item:hover .ns-post-thumb-wrap img.ns-post-thumb {
	transform: scale(1.08);
}

.ns-thumb-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1e293b, #334155);
	color: #fff;
	font-weight: 700;
	font-size: 20px;
}

.ns-post-rank-badge {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 18px;
	height: 18px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.ns-post-rank-badge.rank-1 {
	background: #ef4444;
}

.ns-post-rank-badge.rank-2 {
	background: #f97316;
}

.ns-post-rank-badge.rank-3 {
	background: #f59e0b;
}

/* Content Area */
.ns-post-content {
	flex: 1;
	min-width: 0;
}

.ns-post-cat-pill {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: var(--color-primary, #0284c7);
	background: rgba(2, 132, 199, 0.08);
	padding: 1px 6px;
	border-radius: 4px;
	margin-bottom: 4px;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.ns-post-cat-pill:hover {
	background: var(--color-primary, #0284c7);
	color: #fff;
}

.ns-post-title {
	margin: 0 0 5px 0;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ns-post-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ns-post-title a:hover {
	color: var(--color-primary, #0284c7);
}

.ns-post-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 11px;
	color: #64748b;
}

.ns-post-meta i {
	margin-right: 2px;
	font-size: 10px;
}

.ns-meta-comments {
	color: #f97316;
	font-weight: 600;
}

/* ========================================================
   Item 7: Sidebar Posts Slider Widget
   ======================================================== */
.ns-sidebar-slider-container {
	position: relative;
	width: 100%;
}

.ns-sidebar-slider {
	border-radius: 12px;
	overflow: hidden;
	position: relative;
}

.ns-slider-item {
	outline: none;
}

.ns-slider-card {
	position: relative;
	height: 240px;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.ns-slider-img-link {
	position: absolute;
	inset: 0;
	display: block;
	z-index: 1;
}

.ns-slider-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.ns-slider-card:hover .ns-slider-img {
	transform: scale(1.05);
}

.ns-slider-fallback {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #1e293b, #0f172a);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
	font-size: 40px;
}

.ns-slider-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.45) 45%, rgba(15, 23, 42, 0.95) 100%);
	pointer-events: none;
}

.ns-slider-content {
	position: relative;
	z-index: 2;
	padding: 16px;
	color: #fff;
	pointer-events: none;
}

.ns-slider-content a {
	pointer-events: auto;
}

.ns-slider-cat {
	display: inline-block;
	background: var(--color-primary, #0284c7);
	color: #fff !important;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 4px;
	margin-bottom: 6px;
	letter-spacing: 0.4px;
	text-decoration: none;
}

.ns-slider-title {
	margin: 0 0 8px 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ns-slider-title a {
	color: #fff !important;
	text-decoration: none;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
	transition: color 0.2s ease;
}

.ns-slider-title a:hover {
	color: #7dd3fc !important;
}

.ns-slider-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.85);
}

.ns-slider-meta i {
	margin-right: 3px;
}

/* Slider Controls (Arrows & Dots) */
.ns-sidebar-slider .ns-slider-arrow {
	position: absolute;
	top: 14px;
	z-index: 5;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	cursor: pointer;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 11px;
	transition: background 0.2s ease, transform 0.2s ease;
}

.ns-sidebar-slider .ns-slider-arrow:hover {
	background: var(--color-primary, #0284c7);
	transform: scale(1.1);
}

.ns-sidebar-slider .slick-prev.ns-slider-arrow {
	right: 48px;
	left: auto;
}

.ns-sidebar-slider .slick-next.ns-slider-arrow {
	right: 14px;
}

.ns-sidebar-slider .slick-dots {
	position: absolute;
	bottom: 6px;
	right: 14px;
	left: auto;
	width: auto;
	display: flex !important;
	gap: 4px;
	padding: 0;
	margin: 0;
	list-style: none;
	z-index: 5;
}

.ns-sidebar-slider .slick-dots li {
	margin: 0;
	padding: 0;
	width: auto;
	height: auto;
}

.ns-sidebar-slider .slick-dots li button {
	width: 6px;
	height: 6px;
	padding: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	border: none;
	font-size: 0;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ns-sidebar-slider .slick-dots li.slick-active button {
	width: 14px;
	border-radius: 4px;
	background: #fff;
}
