/* بطاقة التحميل داخل المقال */
.dlc-box {
	--c: #475569;
	--c-bg: #f1f5f9;
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 24px 0;
	padding: 16px 18px;
	background: #fff;
	color: #1e293b;
	border: 1px solid #e2e8f0;
	border-inline-start: 5px solid var(--c);
	border-radius: 14px;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
	direction: rtl;
	text-align: right;
	line-height: 1.6;
	box-sizing: border-box;
}

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

.dlc-box--pdf   { --c: #dc2626; --c-bg: #fef2f2; }
.dlc-box--word  { --c: #2563eb; --c-bg: #eff6ff; }
.dlc-box--excel { --c: #16a34a; --c-bg: #f0fdf4; }
.dlc-box--ppt   { --c: #ea580c; --c-bg: #fff7ed; }
.dlc-box--zip   { --c: #7c3aed; --c-bg: #f5f3ff; }
.dlc-box--audio { --c: #db2777; --c-bg: #fdf2f8; }
.dlc-box--video { --c: #0891b2; --c-bg: #ecfeff; }
.dlc-box--apk   { --c: #059669; --c-bg: #ecfdf5; }

.dlc-box__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 64px;
	background: var(--c-bg);
	color: var(--c);
	border: 2px solid var(--c);
	border-radius: 8px 16px 8px 8px;
	font: 800 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
	letter-spacing: 0.04em;
	direction: ltr;
}

.dlc-box__info {
	flex: 1 1 auto;
	min-width: 0;
}

.dlc-box .dlc-box__title {
	display: block;
	margin: 0;
	color: #0f172a;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.5;
	word-break: break-word;
}

.dlc-box .dlc-box__meta,
.dlc-box .dlc-box__desc {
	display: block;
	color: #64748b;
	font-size: 0.85rem;
}

.dlc-box .dlc-box__desc {
	margin-top: 2px;
	color: #475569;
}

.dlc-box a.dlc-box__btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	background: var(--c);
	color: #fff;
	border: 0;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: none;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.dlc-box a.dlc-box__btn:hover,
.dlc-box a.dlc-box__btn:focus {
	color: #fff;
	text-decoration: none;
	filter: brightness(0.92);
	transform: translateY(-1px);
}

.dlc-box a.dlc-box__btn:focus-visible {
	outline: 3px solid var(--c);
	outline-offset: 3px;
}

@media (max-width: 560px) {
	.dlc-box {
		flex-wrap: wrap;
		padding: 14px;
	}
	.dlc-box__info {
		flex: 1 1 calc(100% - 80px);
	}
	.dlc-box a.dlc-box__btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dlc-box a.dlc-box__btn {
		transition: none;
	}
}
