/* المدونة — مكتبة مدى */
.post-featured { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-2xl); padding: 18px; margin-bottom: 36px; box-shadow: var(--shadow-soft); }
.post-featured-media { display: block; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16 / 10; }
.post-featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-featured:hover .post-featured-media img { transform: scale(1.03); }
.post-featured-body { padding: 10px 10px 10px 18px; }
.post-featured-body h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 12px 0 10px; }
.post-featured-body h2 a, .post-card h3 a { color: var(--ink-900); }
.post-featured-body h2 a:hover, .post-card h3 a:hover { color: var(--brand-700); }
.lead-sm { color: var(--ink-700); font-size: 1.03rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--ink-500); font-size: .86rem; font-weight: 600; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-50); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb-ph { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--navy-800)); }
.post-thumb-ph.big .icon { width: 64px; height: 64px; }
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-card h3 { font-size: 1.12rem; margin: 4px 0 2px; line-height: 1.5; }
.post-card p { color: var(--ink-500); font-size: .93rem; margin: 0 0 8px; flex: 1; }

.post-head { padding: 40px 0 26px; background: radial-gradient(700px 300px at 85% 0%, var(--brand-100), transparent 70%), linear-gradient(180deg, #fff, var(--surface-muted)); }
.post-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.post-head .lead { font-size: 1.12rem; color: var(--ink-700); }
.post-author { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-700); font-weight: 700; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-600); color: #fff; font-weight: 800; font-size: .9rem; }
.post-cover { width: 100%; border-radius: var(--radius-2xl); margin: 8px 0 26px; box-shadow: var(--shadow-card); aspect-ratio: 16 / 8; object-fit: cover; }
.post-body { font-size: 1.1rem; line-height: 2.05; padding-top: 20px; }
.post-body h2 { color: var(--navy-800); }
.share-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 20px 0; margin: 20px 0 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-bar b { margin-inline-end: 6px; }
@media (max-width: 860px) { .post-featured { grid-template-columns: minmax(0, 1fr); padding: 12px; } .post-featured-body { padding: 8px; } }

/* صفحة 404 */
.error-page { padding: 64px 0 40px; }
.error-art { position: relative; width: 220px; height: 150px; margin: 0 auto 22px; }
.error-art b { position: absolute; inset: auto 0 0; font-size: 4.2rem; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--brand-500), var(--navy-700)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err-book { position: absolute; bottom: 62px; width: 34px; height: 84px; border-radius: 4px 6px 6px 4px; box-shadow: var(--shadow-soft); }
.err-book.b1 { inset-inline-start: 58px; background: var(--brand-500); }
.err-book.b2 { inset-inline-start: 96px; background: var(--navy-700); height: 92px; }
.err-book.b3 { inset-inline-start: 134px; background: var(--gold-500); transform: rotate(-16deg); transform-origin: bottom left; }
.error-search { display: flex; gap: 10px; max-width: 520px; margin: 22px auto 0; }
.error-search .input { flex: 1; }
@media (max-width: 520px) { .error-search { flex-direction: column; } }
