.zin-news {
	--zin-bg: var(--bg, #06131c);
	--zin-deep: var(--bg-deep, #030a10);
	--zin-panel: var(--panel, #0b1822);
	--zin-purple: #2d143d;
	--zin-gold: var(--gold, #d8a52f);
	--zin-gold-light: var(--gold-light, #f2cf70);
	--zin-text: var(--text, #f4ead2);
	--zin-muted: var(--muted, #b9b0a4);
	--zin-border: var(--border, rgba(216, 165, 47, .34));
	position: relative;
	padding: 92px 0;
	color: var(--zin-text);
	background:
		radial-gradient(circle at 90% 10%, rgba(78, 36, 95, .19), transparent 35%),
		linear-gradient(180deg, rgba(3, 10, 16, .38), rgba(8, 18, 27, .88));
	direction: rtl;
	font-family: Vazirmatn, Tahoma, Arial, sans-serif;
	text-align: right;
}

.zin-news *,
.zin-news *::before,
.zin-news *::after {
	box-sizing: border-box;
}

.zin-news__container {
	width: min(calc(100% - 40px), var(--container, 1220px));
	margin-inline: auto;
}

.zin-news__heading {
	margin: 0 0 36px;
	text-align: center;
}

.zin-news__heading > span {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	color: var(--zin-gold);
	font-size: 1.05rem;
	font-weight: 900;
	letter-spacing: .02em;
}

.zin-news__heading > span::before,
.zin-news__heading > span::after {
	width: 82px;
	height: 1px;
	content: "";
	background: linear-gradient(90deg, transparent, var(--zin-gold));
}

.zin-news__heading > span::after {
	transform: scaleX(-1);
}

.zin-news__heading h2 {
	margin: 9px 0 0;
	color: var(--zin-gold-light);
	font-size: clamp(1.8rem, 3vw, 2.8rem);
	font-weight: 900;
	line-height: 1.35;
}

.zin-news__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px 18px;
}

.zin-card {
	display: flex;
	min-width: 0;
	overflow: hidden;
	flex-direction: column;
	background: linear-gradient(180deg, #111d29, #071018);
	border: 1px solid var(--zin-border);
	border-radius: 9px;
	box-shadow: 0 14px 32px rgba(0, 0, 0, .24);
	isolation: isolate;
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.zin-card:hover,
.zin-card:focus-within {
	border-color: var(--zin-gold);
	box-shadow: 0 20px 44px rgba(0, 0, 0, .34);
	transform: translateY(-5px);
}

.zin-card__image {
	position: relative;
	display: block;
	height: 218px;
	overflow: hidden;
	background: linear-gradient(140deg, #183247, var(--zin-purple) 65%, #071018);
}

.zin-card__image::after {
	position: absolute;
	inset: auto 0 0;
	height: 50%;
	content: "";
	pointer-events: none;
	background: linear-gradient(180deg, transparent, rgba(3, 10, 16, .55));
}

.zin-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s ease;
}

.zin-card:hover .zin-card__image img {
	transform: scale(1.055);
}

.zin-card__placeholder {
	position: absolute;
	inset: 0;
	display: block;
	background:
		radial-gradient(circle at 24% 25%, rgba(242, 207, 112, .25), transparent 28%),
		linear-gradient(145deg, #193346, #2d143d 58%, #071018);
}

.zin-card__placeholder::before {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 62px;
	height: 62px;
	content: "";
	border: 1px solid rgba(242, 207, 112, .55);
	border-radius: 50%;
	box-shadow: 0 0 0 10px rgba(216, 165, 47, .06);
	transform: translate(-50%, -50%);
}

.zin-card__source {
	position: absolute;
	z-index: 2;
	top: 13px;
	right: 13px;
	padding: 5px 11px;
	color: #fff6e4;
	background: rgba(45, 20, 61, .94);
	border: 1px solid rgba(216, 165, 47, .65);
	border-radius: 5px;
	font-size: .72rem;
	font-weight: 800;
	line-height: 1.65;
}

.zin-card__body {
	display: flex;
	min-height: 272px;
	padding: 21px;
	flex: 1;
	flex-direction: column;
}

.zin-card h3 {
	display: -webkit-box;
	min-height: 88px;
	margin: 0 0 11px;
	overflow: hidden;
	color: #f4eadb;
	font-size: 1.04rem;
	font-weight: 900;
	line-height: 1.75;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.zin-news a {
	color: inherit;
	text-decoration: none;
}

.zin-card h3 a:hover,
.zin-card h3 a:focus {
	color: var(--zin-gold-light);
}

.zin-card__body > p {
	display: -webkit-box;
	min-height: 79px;
	margin: 0 0 18px;
	overflow: hidden;
	color: var(--zin-muted);
	font-size: .84rem;
	line-height: 1.9;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

[data-show-excerpt="0"] .zin-card__body > p {
	display: none;
}

.zin-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 13px;
	color: #9f978c;
	border-top: 1px solid rgba(255, 255, 255, .08);
	font-size: .74rem;
}

.zin-card__meta > span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

[data-show-date="0"] .zin-card__meta > span {
	display: none;
}

.zin-card__meta a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: none;
	color: var(--zin-gold);
	font-weight: 900;
}

.zin-card__meta a:hover,
.zin-card__meta a:focus {
	color: var(--zin-gold-light);
}

.zin-news__attribution {
	margin: 21px 0 0;
	color: #948c81;
	font-size: .75rem;
	text-align: left;
}

.zin-news__attribution a {
	color: var(--zin-gold);
	font-weight: 800;
}

.zin-news__message {
	margin: 0;
	padding: 26px;
	color: var(--zin-muted);
	background: rgba(11, 24, 34, .82);
	border: 1px solid var(--zin-border);
	border-radius: 9px;
	text-align: center;
}

.zin-news[data-zin-refreshing="1"] .zin-news__dynamic {
	opacity: .72;
	transition: opacity .2s ease;
}

@media (max-width: 900px) {
	.zin-news__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.zin-news {
		padding: 64px 0;
	}

	.zin-news__container {
		width: min(calc(100% - 28px), var(--container, 1220px));
	}

	.zin-news__grid {
		grid-template-columns: 1fr;
	}

	.zin-card__image {
		height: 222px;
	}

	.zin-card__body {
		min-height: 0;
	}

	.zin-card h3 {
		min-height: 0;
	}

	.zin-news__heading > span::before,
	.zin-news__heading > span::after {
		width: 34px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zin-card,
	.zin-card__image img,
	.zin-news__dynamic {
		transition: none;
	}

	.zin-card:hover,
	.zin-card:focus-within {
		transform: none;
	}
}
