/**
 * NIYAPRESS: Economy Grid Section (4 horizontal articles)
 * Dark blue/gray theme for اقتصاد - matching the design image
 */

/* Section Container */
.np-economy-grid {
	background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
	padding: 40px 0;
	margin: 30px 0;
}

/* Section Header with centered orange badge */
.np-economy-header {
	text-align: center;
	margin-bottom: 30px;
	direction: rtl;
}

.np-economy-title {
	margin: 0;
	font-size: 28px;
	font-weight: 900;
	color: #fff;
	font-family: 'Tajawal', sans-serif;
	background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
	display: inline-block;
	padding: 10px 40px;
	border-radius: 8px;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

/* Single Row - 4 Articles */
.np-economy-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.np-economy-card {
	background: transparent;
	border-radius: 0;
	overflow: hidden;
	transition: transform 0.3s ease;
}

.np-economy-card:hover {
	transform: translateY(-5px);
}

.np-economy-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.np-economy-thumb {
	position: relative;
	width: 100%;
	height: 220px;
	overflow: hidden;
	background: #000;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.np-economy-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.np-economy-card:hover .np-economy-img {
	transform: scale(1.1);
}

.np-economy-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
	padding: 20px 15px;
	direction: rtl;
	text-align: right;
}

.np-economy-card-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	color: #fff;
	font-family: 'Tajawal', sans-serif;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.np-economy-card:hover .np-economy-card-title {
	text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

/* Responsive Design */
@media (max-width: 1024px) {
	.np-economy-row {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px;
	}
	
	.np-economy-thumb {
		height: 200px;
	}
	
	.np-economy-card-title {
		font-size: 14px;
	}
}

@media (max-width: 768px) {
	.np-economy-grid {
		padding: 30px 0;
	}
	
	.np-economy-title {
		font-size: 24px;
		padding: 8px 30px;
	}
	
	.np-economy-row {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.np-economy-thumb {
		height: 220px;
	}
	
	.np-economy-card-title {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.np-economy-grid {
		padding: 25px 0;
		margin: 20px 0;
	}
	
	.np-economy-thumb {
		height: 200px;
	}
	
	.np-economy-card-title {
		font-size: 15px;
	}
}

/* Animation */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.np-economy-card {
	animation: fadeInUp 0.6s ease-out;
}

.np-economy-card:nth-child(2) {
	animation-delay: 0.15s;
}

.np-economy-card:nth-child(3) {
	animation-delay: 0.3s;
}

.np-economy-card:nth-child(4) {
	animation-delay: 0.45s;
}
