/**
 * NIYAPRESS: News Trio Section
 * 3 columns: Local | Regional | Accidents
 */

/* Section Container */
.np-news-trio {
	background: #f9f9f9;
	padding: 30px 0;
	margin: 30px 0;
}

/* 3 Columns Grid */
.np-news-trio-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
}

/* Column Container */
.np-news-trio-column {
	background: #fff;
	border-radius: 0;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Column Header with Blue Border */
.np-news-trio-header {
	background: #fff;
	padding: 15px 20px;
	border-bottom: 3px solid #2874a6;
	direction: rtl;
	text-align: center;
}

.np-news-trio-title {
	margin: 0;
	font-size: 22px;
	font-weight: 900;
	color: #2874a6;
	font-family: 'Tajawal', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Article Card */
.np-news-trio-card {
	background: #fff;
	transition: transform 0.3s ease;
}

.np-news-trio-card:hover {
	transform: translateY(-3px);
}

.np-news-trio-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.np-news-trio-thumb {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #f5f5f5;
}

.np-news-trio-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.np-news-trio-card:hover .np-news-trio-img {
	transform: scale(1.08);
}

.np-news-trio-card-title {
	margin: 0;
	padding: 15px 20px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
	color: #1a1a1a;
	font-family: 'Tajawal', sans-serif;
	direction: rtl;
	text-align: center;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 80px;
}

.np-news-trio-card:hover .np-news-trio-card-title {
	color: #2874a6;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.np-news-trio-thumb {
		height: 180px;
	}
	
	.np-news-trio-card-title {
		font-size: 15px;
	}
}

@media (max-width: 768px) {
	.np-news-trio {
		padding: 25px 0;
	}
	
	.np-news-trio-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.np-news-trio-thumb {
		height: 200px;
	}
	
	.np-news-trio-title {
		font-size: 20px;
	}
	
	.np-news-trio-card-title {
		font-size: 16px;
		min-height: auto;
	}
}

@media (max-width: 480px) {
	.np-news-trio {
		padding: 20px 0;
		margin: 20px 0;
	}
	
	.np-news-trio-thumb {
		height: 180px;
	}
	
	.np-news-trio-header {
		padding: 12px 15px;
	}
	
	.np-news-trio-title {
		font-size: 18px;
	}
	
	.np-news-trio-card-title {
		padding: 12px 15px;
		font-size: 15px;
	}
}

/* Animation */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.np-news-trio-column {
	animation: fadeInUp 0.6s ease-out;
}

.np-news-trio-column:nth-child(2) {
	animation-delay: 0.15s;
}

.np-news-trio-column:nth-child(3) {
	animation-delay: 0.3s;
}
