/**
 * NIYAPRESS: Variety Horizontal Section (منوعات)
 * Orange badge design - 4 horizontal articles
 * Matching sports section style from reference image
 */

/* ========================================
   SECTION CONTAINER
   ======================================== */

.np-variety-horizontal-section {
	background: #2c3e50;
	padding: 40px 0;
	margin: 0;
}

/* ========================================
   SECTION HEADER WITH ORANGE BADGE
   ======================================== */

.np-variety-horizontal-header {
	text-align: center;
	margin-bottom: 30px;
}

.np-variety-horizontal-badge {
	display: inline-block;
	background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
	color: #ffffff;
	font-size: 24px;
	font-weight: 900;
	font-family: 'Tajawal', sans-serif;
	padding: 12px 40px;
	border-radius: 8px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0;
	box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
	position: relative;
}

.np-variety-horizontal-badge::before {
	content: '';
	position: absolute;
	top: -3px;
	left: -3px;
	right: -3px;
	bottom: -3px;
	background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
	border-radius: 10px;
	z-index: -1;
	opacity: 0.3;
	filter: blur(8px);
}

/* ========================================
   4 HORIZONTAL ARTICLES GRID
   ======================================== */

.np-variety-horizontal-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	direction: rtl;
}

.np-variety-horizontal-card {
	background: #34495e;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.np-variety-horizontal-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 24px rgba(255, 152, 0, 0.3);
}

.np-variety-horizontal-link {
	display: block;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

/* ========================================
   ARTICLE THUMBNAIL
   ======================================== */

.np-variety-horizontal-thumb {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #2c3e50;
}

.np-variety-horizontal-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
	display: block;
}

.np-variety-horizontal-card:hover .np-variety-horizontal-img {
	transform: scale(1.1);
}

.np-variety-horizontal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
	opacity: 0.6;
	transition: opacity 0.3s ease;
}

.np-variety-horizontal-card:hover .np-variety-horizontal-overlay {
	opacity: 0.8;
}

/* ========================================
   ARTICLE CONTENT
   ======================================== */

.np-variety-horizontal-content {
	padding: 20px;
	direction: rtl;
	text-align: right;
	min-height: 100px;
	display: flex;
	align-items: center;
}

.np-variety-horizontal-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
	color: #ffffff;
	font-family: 'Tajawal', sans-serif;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	transition: color 0.3s ease;
}

.np-variety-horizontal-card:hover .np-variety-horizontal-title {
	color: #ff9800;
}

/* ========================================
   ANIMATION
   ======================================== */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.np-variety-horizontal-card {
	animation: fadeInUp 0.6s ease-out;
}

.np-variety-horizontal-card:nth-child(1) {
	animation-delay: 0s;
}

.np-variety-horizontal-card:nth-child(2) {
	animation-delay: 0.1s;
}

.np-variety-horizontal-card:nth-child(3) {
	animation-delay: 0.2s;
}

.np-variety-horizontal-card:nth-child(4) {
	animation-delay: 0.3s;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
	.np-variety-horizontal-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
	
	.np-variety-horizontal-badge {
		font-size: 22px;
		padding: 10px 35px;
	}
	
	.np-variety-horizontal-thumb {
		height: 180px;
	}
	
	.np-variety-horizontal-title {
		font-size: 15px;
	}
}

@media (max-width: 768px) {
	.np-variety-horizontal-section {
		padding: 30px 0;
	}
	
	.np-variety-horizontal-header {
		margin-bottom: 20px;
	}
	
	.np-variety-horizontal-badge {
		font-size: 20px;
		padding: 10px 30px;
	}
	
	.np-variety-horizontal-grid {
		grid-template-columns: 1fr;
		gap: 15px;
		padding: 0 15px;
	}
	
	.np-variety-horizontal-thumb {
		height: 220px;
	}
	
	.np-variety-horizontal-content {
		padding: 15px;
		min-height: 80px;
	}
	
	.np-variety-horizontal-title {
		font-size: 16px;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}
}

@media (max-width: 480px) {
	.np-variety-horizontal-section {
		padding: 20px 0;
	}
	
	.np-variety-horizontal-badge {
		font-size: 18px;
		padding: 8px 25px;
	}
	
	.np-variety-horizontal-thumb {
		height: 200px;
	}
	
	.np-variety-horizontal-content {
		padding: 12px;
	}
	
	.np-variety-horizontal-title {
		font-size: 15px;
	}
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
	.np-variety-horizontal-section {
		background: white !important;
		padding: 20px 0 !important;
	}
	
	.np-variety-horizontal-badge {
		color: #000 !important;
		background: #ddd !important;
		box-shadow: none !important;
	}
	
	.np-variety-horizontal-card {
		background: white !important;
		box-shadow: none !important;
		border: 1px solid #ddd !important;
	}
	
	.np-variety-horizontal-title {
		color: #000 !important;
	}
	
	.np-variety-horizontal-overlay {
		display: none !important;
	}
}
