/* ==========================================================================
   Tiznik News Core - Frontend Styles
   بخش‌های صفحه اصلی، آرشیو دسته، Single News
   ========================================================================== */

.tnc-home-section,
.tnc-related-news,
.tnc-single-news {
	direction: rtl;
	font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
	color: #1e2433;
}

/* ---------- Section header ---------- */
.tnc-home-section {
	margin-bottom: 32px;
}

.tnc-home-section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.tnc-home-section__title {
	font-size: 20px;
	font-weight: 800;
	margin: 0;
	position: relative;
	padding-inline-start: 12px;
	border-inline-start: 4px solid #2563eb;
}

.tnc-home-section__more {
	font-size: 13px;
	font-weight: 600;
	color: #2563eb;
	text-decoration: none;
}

.tnc-home-section__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

/* ---------- Card ---------- */
.tnc-card {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(30, 36, 51, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tnc-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(30, 36, 51, 0.12);
}

.tnc-card__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.tnc-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tnc-badge--breaking {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
}

.tnc-card__body {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tnc-card__category {
	font-size: 11px;
	font-weight: 700;
	color: #7c3aed;
}

.tnc-card__title {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
}

.tnc-card__title a {
	color: #1e2433;
	text-decoration: none;
}

.tnc-card__title a:hover {
	color: #2563eb;
}

.tnc-card__summary {
	margin: 0;
	font-size: 13px;
	color: #6b7280;
	line-height: 1.7;
}

.tnc-card__time {
	font-size: 12px;
	color: #9ca3af;
}

/* ---------- Single News ---------- */
.tnc-single-news {
	max-width: 780px;
	margin: 0 auto 40px;
}

.tnc-single-news__header {
	margin-bottom: 16px;
}

.tnc-single-news__category {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	color: #7c3aed;
	text-decoration: none;
	margin-inline-end: 8px;
}

.tnc-single-news__title {
	font-size: 26px;
	font-weight: 800;
	line-height: 1.5;
	margin: 10px 0;
}

.tnc-single-news__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 13px;
	color: #6b7280;
}

.tnc-single-news__thumb {
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 20px;
}

.tnc-single-news__thumb img {
	width: 100%;
	display: block;
}

.tnc-single-news__summary {
	font-size: 16px;
	font-weight: 600;
	color: #374151;
	border-inline-start: 3px solid #2563eb;
	padding-inline-start: 12px;
	margin-bottom: 20px;
}

.tnc-single-news__content {
	font-size: 16px;
	line-height: 2;
	color: #1e2433;
}

.tnc-single-news__content p {
	margin: 0 0 16px;
}

.tnc-single-news__source {
	margin-top: 24px;
	padding: 14px;
	background: #f4f6fb;
	border-radius: 12px;
	font-size: 13px;
}

.tnc-single-news__source a {
	color: #2563eb;
}

.tnc-related-news {
	max-width: 1000px;
	margin: 0 auto 40px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.tnc-single-news__title {
		font-size: 20px;
	}

	.tnc-home-section__grid {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
}
