.ashb{
	--ashb-navy:#01193A;
	--ashb-gold:#C9A227;
	--ashb-text:#2C2C2C;
	--ashb-muted:#6B7280;
	--ashb-line:#E6E9EE;
	--ashb-soft:#F4F6F9;
	color:var(--ashb-text);
	font-family:inherit;
}

.ashb *{box-sizing:border-box}

/* سرتیتر */
.ashb-head{
	display:flex;
	align-items:baseline;
	justify-content:space-between;
	gap:16px;
	margin-bottom:20px;
	padding-bottom:14px;
	border-bottom:1px solid var(--ashb-line);
}
.ashb-head.is-noline{
	border-bottom:0;
	padding-bottom:0;
}
.ashb-head h2{
	margin:0;
	font-size:24px;
	font-weight:700;
	color:var(--ashb-navy);
	letter-spacing:-.2px;
}
.ashb-all{
	font-size:13.5px;
	font-weight:500;
	color:var(--ashb-gold);
	text-decoration:none;
	white-space:nowrap;
}
.ashb-all:hover{text-decoration:underline}

/* شبکه */
.ashb-grid{
	display:grid;
	grid-template-columns:repeat(4,minmax(0,1fr));
	gap:16px;
}

/* کارت */
.ashb-card{
	display:flex;
	flex-direction:column;
	border-radius:14px;
	overflow:hidden;
	background:#fff;
	border:1px solid rgba(201,162,39,.45);
	text-decoration:none;
	color:inherit;
	transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
}
.ashb-card:hover{
	border-color:var(--ashb-gold);
	box-shadow:0 10px 24px rgba(1,25,58,.10);
	transform:translateY(-3px);
}
.ashb-card:focus-visible{
	outline:2px solid var(--ashb-gold);
	outline-offset:3px;
}

/* عکس */
.ashb-media{
	position:relative;
	aspect-ratio:16/10;
	background:var(--ashb-soft);
	overflow:hidden;
}
.ashb-media img{
	width:100%;
	height:100%;
	object-fit:cover;
	display:block;
	transition:transform .3s ease;
}
.ashb-zoom-yes .ashb-card:hover .ashb-media img{transform:scale(1.04)}

.ashb-cat{
	position:absolute;
	inset-block-start:10px;
	inset-inline-end:10px;
	font-size:11.5px;
	font-weight:700;
	line-height:1;
	padding:7px 10px;
	border-radius:8px;
	background:rgba(1,25,58,.86);
	color:#fff;
}

/* متن */
.ashb-body{
	display:flex;
	flex-direction:column;
	flex:1;
	padding:14px;
}

.ashb-title{
	margin:0;
	font-size:15px;
	font-weight:700;
	line-height:1.75;
	color:var(--ashb-navy);
	display:-webkit-box;
	-webkit-line-clamp:2;
	-webkit-box-orient:vertical;
	overflow:hidden;
	transition:color .18s ease;
}

.ashb-excerpt{
	margin:8px 0 0;
	font-size:12.5px;
	line-height:1.9;
	color:var(--ashb-muted);
	display:-webkit-box;
	-webkit-line-clamp:2;
	-webkit-box-orient:vertical;
	overflow:hidden;
}

.ashb-meta{
	display:flex;
	align-items:center;
	gap:8px;
	margin-top:12px;
	padding-top:10px;
	border-top:1px solid var(--ashb-line);
	font-size:11.5px;
	color:var(--ashb-muted);
}
.ashb-meta i{
	font-style:normal;
	opacity:.5;
}

/* چینش دستی */
.ashb-dir-col .ashb-card{flex-direction:column}
.ashb-dir-row .ashb-card{flex-direction:row}
.ashb-dir-row .ashb-media{
	flex:0 0 116px;
	aspect-ratio:auto;
}

/* تبلت */
@media (max-width:1024px){
	.ashb-body{padding:13px}
}

/* موبایل */
@media (max-width:767px){
	.ashb-head{
		margin-bottom:14px;
		padding-bottom:10px;
	}
	.ashb-head h2{font-size:18px}
	.ashb-all{font-size:12px}

	/* حالت خودکار: کارت افقی */
	.ashb:not(.ashb-dir-col) .ashb-card{
		flex-direction:row;
		border-radius:12px;
	}
	.ashb:not(.ashb-dir-col) .ashb-media{
		flex:0 0 116px;
		aspect-ratio:auto;
	}

	.ashb-card:hover{transform:none;box-shadow:none}
	.ashb-card:hover .ashb-media img{transform:none}

	.ashb-cat{
		inset-block-start:6px;
		inset-inline-end:6px;
		font-size:10px;
		padding:5px 7px;
	}

	.ashb-body{padding:11px 12px}

	.ashb-title{
		font-size:13.5px;
		line-height:1.6;
	}

	.ashb-noexc-yes .ashb-excerpt{display:none}

	.ashb-meta{
		margin-top:auto;
		padding-top:8px;
		font-size:10.5px;
	}
}

@media (prefers-reduced-motion:reduce){
	.ashb-card,
	.ashb-media img{transition:none}
	.ashb-card:hover{transform:none}
	.ashb-card:hover .ashb-media img{transform:none}
}
