/* Slider News - RTL/LTR responsive card slider */
.sn-wrap,
.sn-wrap * {
	box-sizing: border-box;
}

.sn-wrap {
	width: 100%;
	position: relative;
	font-family: inherit;
}

.sn-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.sn-header-title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.sn-header-line {
	display: inline-block;
	width: 4px;
	height: 28px;
	border-radius: 4px;
	background: #0A7878;
	flex: 0 0 auto;
}

.sn-header-title {
	margin: 0;
	padding: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.35;
	color: #202020;
}

.sn-header-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #0A7878;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.sn-header-link:hover {
	opacity: .78;
}

.sn-slider {
	position: relative;
	width: 100%;
}

.sn-viewport {
	width: 100%;
	overflow: hidden;
	position: relative;
}

.sn-track {
	display: flex;
	gap: 14px;
	align-items: stretch;
	will-change: transform;
	transition: transform .45s cubic-bezier(.22,.61,.36,1);
}

.sn-wrap[dir="rtl"] .sn-track {
	flex-direction: row;
}

.sn-slide {
	flex: 0 0 calc((100% - (14px * 3)) / 4);
	min-width: 0;
}

.sn-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #d9d9d9;
	border-radius: 12px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(0,0,0,.02);
	transition: transform .22s ease, box-shadow .22s ease;
}

.sn-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.sn-card-image {
	position: relative;
	width: 100%;
	height: 205px;
	overflow: hidden;
	background: #eee;
	border-radius: 12px 12px 0 0;
	flex: 0 0 auto;
}

.sn-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.sn-card:hover .sn-card-image img {
	transform: scale(1.025);
}

.sn-category-badge {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 4px 9px;
	border-radius: 0 5px 0 0;
	background: #E85D04;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	z-index: 2;
}

.sn-card-body {
	padding: 14px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
}

.sn-card-title {
	margin: 0 0 10px;
	color: #222;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.sn-card-excerpt {
	margin: 0 0 10px;
	color: #666;
	font-size: 13px;
	line-height: 1.7;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.sn-card-date {
	margin-top: auto;
	color: #666;
	font-size: 12px;
	line-height: 1.4;
}

.sn-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid #ddd;
	border-radius: 50%;
	background: #fff;
	color: #222;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
	direction: ltr;
	font-family: Arial, sans-serif;
	box-shadow: 0 4px 14px rgba(0,0,0,.12);
	transition: .2s ease;
}

.sn-arrow:hover {
	transform: translateY(-50%) scale(1.04);
}

.sn-prev {
	left: 8px;
}

.sn-next {
	right: 8px;
}

.sn-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
}

.sn-dot {
	width: 7px;
	height: 7px;
	border: 0;
	border-radius: 50%;
	padding: 0;
	background: #bdbdbd;
	cursor: pointer;
	transition: width .2s ease, border-radius .2s ease;
}

.sn-dot.is-active {
	width: 20px;
	border-radius: 8px;
	background: #0A7878;
}

.sn-empty,
.sn-admin-notice {
	padding: 18px;
	border: 1px dashed #ccc;
	border-radius: 10px;
	background: #fafafa;
	color: #666;
	text-align: center;
}

@media (max-width: 767px) {
	.sn-header {
		gap: 12px;
	}

	.sn-header-title {
		font-size: 18px;
	}

	.sn-header-line {
		height: 22px;
	}

	.sn-header-link {
		font-size: 12px;
	}

	.sn-card-title {
		font-size: 15px;
	}

	.sn-arrow {
		width: 34px;
		height: 34px;
		font-size: 22px;
	}

	.sn-prev {
		left: 5px;
	}

	.sn-next {
		right: 5px;
	}
}
