/* ==========================================================================
   Donna Alxia News - עיצוב מותאם לעמודי קטגוריה
   ========================================================================== */

.dan-category-page {
	direction: rtl;
	background: #f7f7f8;
}

/* ---------- Hero ---------- */
.dan-cat-hero {
	background: linear-gradient(135deg, #b3131f 0%, #7a0d15 100%);
	padding: 56px 0 40px;
	color: #fff;
}

.dan-cat-hero-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.dan-cat-hero-label {
	display: inline-block;
	font-size: 13px;
	letter-spacing: .05em;
	background: rgba(255,255,255,.15);
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 12px;
}

.dan-cat-hero-title {
	font-size: 40px;
	font-weight: 800;
	margin: 0 0 8px;
	line-height: 1.2;
}

.dan-cat-hero-desc {
	font-size: 16px;
	opacity: .9;
	max-width: 640px;
}

/* ---------- Grid ---------- */
.dan-cat-grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 24px 64px;
}

.dan-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.dan-card {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,.06);
	transition: transform .2s ease, box-shadow .2s ease;
	display: flex;
	flex-direction: column;
}

.dan-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

/* כתבה ראשית - תופסת שורה מלאה */
.dan-card--featured {
	grid-column: 1 / -1;
	flex-direction: row;
}

.dan-card--featured .dan-card-media {
	width: 55%;
	flex-shrink: 0;
}

.dan-card--featured .dan-card-body {
	width: 45%;
}

.dan-card--featured .dan-card-title {
	font-size: 28px;
}

.dan-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #eee;
}

.dan-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}

.dan-card:hover .dan-card-media img {
	transform: scale(1.05);
}

.dan-card-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #b3131f;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 999px;
}

.dan-card-body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.dan-card-meta {
	font-size: 13px;
	color: #888;
	margin-bottom: 8px;
}

.dan-card-dot {
	margin: 0 4px;
}

.dan-card-title {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 10px;
}

.dan-card-title a {
	color: #1a1a1a;
	text-decoration: none;
}

.dan-card-title a:hover {
	color: #b3131f;
}

.dan-card-excerpt {
	font-size: 14px;
	color: #555;
	line-height: 1.6;
	margin: 0 0 14px;
	flex: 1;
}

.dan-card-readmore {
	font-size: 14px;
	font-weight: 700;
	color: #b3131f;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	width: fit-content;
}

.dan-card-readmore:hover {
	text-decoration: underline;
}

/* ---------- Pagination ---------- */
.dan-cat-pagination {
	margin-top: 40px;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.dan-cat-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border-radius: 8px;
	background: #fff;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.dan-cat-pagination .page-numbers.current {
	background: #b3131f;
	color: #fff;
}

.dan-no-posts {
	text-align: center;
	padding: 60px 0;
	color: #777;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.dan-cards {
		grid-template-columns: repeat(2, 1fr);
	}
	.dan-card--featured {
		flex-direction: column;
	}
	.dan-card--featured .dan-card-media,
	.dan-card--featured .dan-card-body {
		width: 100%;
	}
}

@media (max-width: 600px) {
	.dan-cat-hero-title {
		font-size: 28px;
	}
	.dan-cards {
		grid-template-columns: 1fr;
	}
}
