/* الصفحات العامة: المدوّنة (وتتّسع لاحقًا للصفحة الرئيسية وصفحات الصفوف) */
@font-face { font-family: "Naskh"; src: url("/fonts/NotoNaskhArabic-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
:root { --ink: #18213F; --muted: #5D6580; --line: #E1E7F5; --ac: #1F6BFF; --bg: #F6F8FD; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Tahoma, "Segoe UI", Arial, sans-serif; line-height: 1.7; }
a { color: var(--ac); }
.pub-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.pub-top { background: #fff; border-bottom: 1px solid var(--line); }
.pub-top .pub-wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.pub-brand { font-family: "Naskh", serif; font-size: 26px; font-weight: 700; text-decoration: none; color: var(--ac); }
.pub-nav { margin-inline-start: auto; display: flex; gap: 14px; align-items: center; }
.pub-nav a { text-decoration: none; color: var(--ink); font-weight: 700; }
.pub-nav a[aria-current] { color: var(--ac); }
.pub-login { background: var(--ac); color: #fff !important; padding: 8px 16px; border-radius: 12px; }
.pub-main { padding-top: 24px; padding-bottom: 40px; }

.blog-head h1 { font-family: "Naskh", serif; font-size: 34px; margin: 0 0 4px; }
.blog-head p { color: var(--muted); margin: 0 0 14px; }
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.blog-cats a { text-decoration: none; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.blog-cats a[aria-current] { background: var(--ac); border-color: var(--ac); color: #fff; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.blog-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(24,33,63,.08); }
.blog-card img, .blog-card .ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: linear-gradient(135deg, #E3ECFF, #FFF0C2); display: block; }
.blog-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.blog-card h2 { font-family: "Naskh", serif; font-size: 21px; line-height: 1.5; margin: 0; }
.blog-card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.blog-meta { color: var(--muted); font-size: 13px; }
.blog-pages { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.blog-pages a, .blog-pages span { padding: 6px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.post { max-width: 760px; margin: 0 auto; }
.post h1 { font-family: "Naskh", serif; font-size: 36px; line-height: 1.5; margin: 6px 0 8px; }
.post .cover { width: 100%; border-radius: 22px; margin: 14px 0 10px; aspect-ratio: 16 / 9; object-fit: cover; }
.post .content { font-family: "Naskh", serif; font-size: 20px; line-height: 2; }
.post .content img { max-width: 100%; height: auto; border-radius: 14px; }
.post .content iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
.post .content h2, .post .content h3 { line-height: 1.5; margin: 1.4em 0 .4em; }
.post .content blockquote { margin: 1em 0; padding: 8px 18px; border-inline-start: 4px solid var(--ac); background: #fff; border-radius: 10px; }
.post .content table { border-collapse: collapse; width: 100%; font-size: 17px; }
.post .content td, .post .content th { border: 1px solid var(--line); padding: 6px 10px; }
.post-cta { margin: 30px 0; background: #FFF6DE; border: 2px solid #FFB020; border-radius: 22px; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.post-cta b { font-family: "Naskh", serif; font-size: 22px; }
.post-cta a { background: var(--ac); color: #fff; text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 14px; }
.related h2 { font-family: "Naskh", serif; }
@media (max-width: 600px) { .post h1 { font-size: 28px; } .post .content { font-size: 18px; } }
.pub-nav a:focus-visible, .pub-brand:focus-visible { outline: 3px solid #FFB020; outline-offset: 3px; border-radius: 6px; }
@media (max-width: 560px) { .pub-hide-sm { display: none; } }


/* الترحيب في الرأس لمن دخل */
.pub-hello { font-weight: 700; color: var(--ink); }
.pub-out { margin: 0; }
.pub-out button { background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; padding: 0; }
.pub-out button:hover { color: var(--ac); text-decoration: underline; }
@media (max-width: 560px) { .pub-hello { font-size: 14px; } .pub-out { display: none; } }

/* أسفل الموقع: شريط بلون الحبر، أربعة أعمدة */
.pub-foot { background: #1B2A5E; color: #C9D3EE; margin-top: 56px; font-size: 15px; }
.pub-foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; padding-top: 44px; padding-bottom: 34px; }
.pf-logo { font-family: "Naskh", serif; font-size: 30px; font-weight: 700; color: #fff; text-decoration: none; }
.pf-brand p { margin: 8px 0 16px; max-width: 34ch; line-height: 1.8; }
.pf-col { display: flex; flex-direction: column; gap: 9px; }
.pf-col h2 { font-family: "Naskh", serif; font-size: 18px; color: #FFB020; margin: 4px 0 6px; font-weight: 700; }
.pub-foot a { color: #E3E9F8; text-decoration: none; }
.pub-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.pub-foot a:focus-visible { outline: 2px solid #FFB020; outline-offset: 3px; border-radius: 4px; }
.pf-contact a, .pf-addr { display: inline-flex; gap: 8px; align-items: center; }
.pf-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pf-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.pf-social a:hover { background: #FFB020; color: #1B2A5E; border-color: #FFB020; text-decoration: none; }
.pf-social svg { width: 20px; height: 20px; }
.pf-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0; font-size: 13.5px; color: #9FAED6; }
@media (max-width: 860px) { .pub-foot-grid { grid-template-columns: 1fr 1fr; } .pf-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .pub-foot-grid { grid-template-columns: 1fr; } }

@media (max-width: 400px) { .pub-hide-xs { display: none; } }
