/* ==========================NEWS & ARTICLES========================== */
.news-articles {
	width: 100%;
	margin: 60px auto 0;
	padding: 0 20px;
	box-sizing: border-box;
	background-color: #fff;
}

.news-articles-button-wrapper {
	text-align: center;
	margin: 40px 0;
}

.news-articles-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 24px;
	background-color: #FFD700;
	color: #333;
	font-size: 18px;
	font-weight: bold;
	text-decoration: none;
	border-radius: 30px;
	box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
	transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.news-articles-button:hover {
	background-color: #ffcc00;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

.news-articles-button svg {
	width: 24px;
	height: 24px;
	stroke: #333;
}

.news-articles-button span {
	font-size: 18px;
	font-weight: bold;
}

.news-articles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

/* برای نمایش فقط 3 ستون در صفحات بزرگ */
@media (min-width: 769px) {
	.news-articles-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
.news-article-item {
background-color: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); /* افزایش سایه */
	border: 1px solid #d8d8d8;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-article-item:hover {
		transform: translateY(-5px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15); /* سایه عمیق‌تر در هاور */
}

.article-image-wrapper {
	width: 100%;
	height: 200px;
	overflow: hidden;
	padding: 5px;
	border-radius: 12px 12px 0 0;
	background-color: #f9f9f9;
}

.article-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	border-radius: 12px 12px 0 0;
}

.news-article-item:hover .article-image {
	transform: scale(1.05);
}

.article-content {
	padding: 20px;
}

.author-avatar {
	text-align: center;
	margin-bottom: 10px;
}

.author-avatar img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid #FFD700;
}

.article-title {
	font-size: 18px;
	font-weight: bold;
	color: #333;
	margin: 0 0 10px 0;
}

.article-title a {
	text-decoration: none;
	color: inherit;
}

.article-title a:hover {
	color: #FFD700;
}

.article-excerpt {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	margin: 0 0 10px 0;
}

.read-more-link {
	font-size: 12px;
	color: #999;
	margin: 0;
	padding-top: 10px;
	border-top: 1px dashed #ddd;
	text-align: center;
}

.read-more-link a {
	text-decoration: none;
	color: #999;
}

.read-more-link a:hover {
	color: #FFD700;
}

/* Responsive */
@media (max-width: 768px) {
	.news-articles {
		margin: 40px auto 0;
		padding: 0 15px;
	}
	.news-articles-button {
		padding: 10px 20px;
		font-size: 16px;
	}
	.news-articles-button svg {
		width: 20px;
		height: 20px;
	}
	.news-articles-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
		gap: 20px;
	}
	.article-image-wrapper {
		height: 150px;
	}
	.article-image {
		height: 100%;
	}
	.article-title {
		font-size: 16px;
	}
	.article-excerpt {
		font-size: 13px;
	}
	.author-avatar img {
		width: 36px;
		height: 36px;
	}
}

@media (max-width: 480px) {
	.news-articles {
		margin: 30px auto 0;
	}
	.news-articles-button {
		padding: 8px 16px;
		font-size: 14px;
	}
	.news-articles-button svg {
		width: 18px;
		height: 18px;
	}
	.news-articles-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	.article-image-wrapper {
		height: 120px;
	}
	.article-image {
		height: 100%;
	}
	.article-title {
		font-size: 15px;
	}
	.article-excerpt {
		font-size: 12px;
	}
	.author-avatar img {
		width: 32px;
		height: 32px;
	}
}