/* =============================================
   MAIN.CSS — التنسيقات العامة والمشتركة
   (هيكل الموقع، المتغيرات، الأساسيات، الأدوات)
   ملاحظة: تنسيقات الهيدر في header-layouts.css
   ============================================= */

/* ═══════════════════════════════════════════════
   01. VARIABLES & FOUNDATIONS (المتغيرات والأساسيات)
═══════════════════════════════════════════════ */
:root {
    --blue: #1a7dc4;
    --blue-dark: #155f96;
    --blue-light: #2e9de4;
    --orange: #f5a520;
    --orange-dark: #d4880e;
    --red: #d42020;
    --ink: #0f1923;
    --ink-mid: #1e2d3d;
    --cream: #f8f5ef;
    --light: #f0ece4;
    --muted: #7a8899;
    --border: #ddd6c8;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(15, 25, 35, .06);
    --shadow: 0 8px 24px rgba(15, 25, 35, .10);
    --shadow-lg: 0 16px 48px rgba(15, 25, 35, .15);
    --radius: 8px;
    --radius-lg: 12px;
    --ff-title: 'Noto Kufi Arabic', serif;
    --ff-body: 'Cairo', sans-serif;
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
    --primary: var(--blue);
    --secondary: var(--orange);
    --accent: var(--red);
    --bg: var(--cream);
    --surface: var(--white);
    --text: var(--ink);
    --text-muted: var(--muted);
    --header-bg: var(--white);
    --footer-bg: var(--ink);
}

body.dark-mode {
    --bg: #0f1923;
    --surface: #1a2636;
    --text: #e8e0d4;
    --text-muted: #8a9bac;
    --border: #2a3a4a;
    --light: #162030;
    --header-bg: #111c28;
    --footer-bg: #080e14;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .2);
    --shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

/* ═══════════════════════════════════════════════
   02. RESET & BASE (إعادة التعيين والأساسيات)
═══════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: var(--ff-body);
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    font-size: 15px;
    line-height: 1.7;
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}
ul, ol { list-style: none; }
button, input, textarea { font-family: inherit; font-size: inherit; }

/* ═══════════════════════════════════════════════
   03. LAYOUT & UTILITIES (التخطيط والأدوات)
═══════════════════════════════════════════════ */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}
.swt-homepage {
    min-height: 60vh;
}
.two-col {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}
.half-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.half-col > .sec-head { margin-top: 32px; }
.half-col > .sec-head:first-child { margin-top: 0; }
.divider {
    height: 3px;
    background: linear-gradient(to left, var(--primary) 0%, var(--secondary) 50%, transparent 100%);
    margin: 44px 0 0;
    border-radius: 2px;
}
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
.swt-section {
    position: relative;
}
.cards-shadow .news-card,
.cards-shadow .interview-card,
.cards-shadow .video-card,
.cards-shadow .invest-sub-card {
    box-shadow: var(--shadow);
}
.cards-bordered .news-card,
.cards-bordered .interview-card,
.cards-bordered .video-card,
.cards-bordered .invest-sub-card {
    box-shadow: none;
    border: 1.5px solid var(--border);
}
.cards-flat .news-card,
.cards-flat .interview-card,
.cards-flat .video-card,
.cards-flat .invest-sub-card {
    box-shadow: none;
}
.cards-flat .news-card:hover,
.cards-flat .interview-card:hover,
.cards-flat .video-card:hover {
    box-shadow: var(--shadow-sm);
}
.cards-rounded .news-card,
.cards-rounded .interview-card,
.cards-rounded .video-card,
.cards-rounded .invest-sub-card {
    border-radius: 20px;
}
.cards-rounded .news-card .thumb img,
.cards-rounded .interview-card .thumb img {
    border-radius: 20px 20px 0 0;
}

/* ═══════════════════════════════════════════════
   04. TYPOGRAPHY (الطباعة والعناوين)
═══════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-title);
    color: var(--text);
    line-height: 1.4;
    font-weight: 700;
}
h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(22px, 3.5vw, 32px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); }
h4 { font-size: clamp(16px, 2vw, 20px); }
h5 { font-size: clamp(14px, 1.8vw, 18px); }
h6 { font-size: clamp(13px, 1.5vw, 16px); }
p {
    margin-bottom: 1em;
}
a {
    text-decoration: none;
    color: var(--primary);
    transition: color var(--transition);
}
a:hover {
    color: var(--blue-dark);
}
::selection {
    background: var(--primary);
    color: var(--white);
}

/* ═══════════════════════════════════════════════
   05. FORM ELEMENTS (عناصر النماذج)
═══════════════════════════════════════════════ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-family: var(--ff-body);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 125, 196, 0.12);
}
textarea {
    min-height: 120px;
    resize: vertical;
}
label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text);
}
.form-group {
    margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════
   06. BUTTONS (الأزرار)
═══════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--ff-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--blue-dark);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-secondary {
    background: var(--secondary);
    color: var(--ink);
}
.btn-secondary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}
.btn-sm {
    padding: 6px 16px;
    font-size: 12px;
}
.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* ═══════════════════════════════════════════════
   07. TABLES (الجداول)
═══════════════════════════════════════════════ */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}
th, td {
    border: 1px solid var(--border);
    padding: 12px;
    text-align: right;
}
th {
    background: var(--light);
}

/* ═══════════════════════════════════════════════
   08. ALERTS (التنبيهات)
═══════════════════════════════════════════════ */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin: 20px 0;
    border-right: 4px solid;
}
.alert-info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #0d47a1;
}
.alert-warning {
    background: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}
body.dark-mode .alert-info {
    background: #0d2b3e;
    color: #bbdef5;
}
body.dark-mode .alert-warning {
    background: #3e2a1f;
    color: #ffcc80;
}

/* ═══════════════════════════════════════════════
   09. UI COMPONENTS (مكونات واجهة المستخدم)
═══════════════════════════════════════════════ */
/* Badges (شارات) */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}
.badge-primary {
    background: var(--primary);
    color: var(--white);
}
.badge-secondary {
    background: var(--secondary);
    color: var(--ink);
}

/* Skeleton loading (تحميل هيكلي) */
.skeleton {
    background: linear-gradient(90deg, var(--border) 25%, var(--light) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════
   10. MEDIA (الوسائط — صور، فيديو، معارض)
═══════════════════════════════════════════════ */
embed, iframe, object {
    max-width: 100%;
}
.wp-block-embed {
    margin: 24px 0;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin: 24px 0;
}
.gallery-item {
    overflow: hidden;
    border-radius: var(--radius);
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}
figcaption,
.wp-caption-text {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 8px 0;
}

/* ═══════════════════════════════════════════════
   11. CODE (الأكواد والبرمجة)
═══════════════════════════════════════════════ */
pre, code {
    font-family: 'Courier New', monospace;
    direction: ltr;
    text-align: left;
}
code {
    background: var(--light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--red);
}
pre {
    background: var(--ink);
    color: #e0e0e0;
    padding: 20px;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: 24px 0;
    line-height: 1.6;
}
pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 13px;
}
kbd {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.85em;
    font-family: inherit;
}

/* ═══════════════════════════════════════════════
   12. FOOTER (نُقل من الأصل)
═══════════════════════════════════════════════ */
.site-footer {
    background: var(--footer-bg);
    padding: 56px 0 0;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-brand p {
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    margin-top: 16px;
    line-height: 1.8;
}
.footer-logo img {
    height: 52px;
    width: auto;
    filter: brightness(10);
}
.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}
.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
    transition: all var(--transition);
}
.social-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}
.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    font-family: var(--ff-title);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-col ul li a {
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-col ul li a::before {
    content: '‹';
    color: var(--primary);
    font-size: 18px;
}
.footer-col ul li a:hover {
    color: var(--white);
    padding-right: 6px;
}
.footer-bottom {
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, .3);
    flex-wrap: wrap;
    gap: 12px;
}

/* ═══════════════════════════════════════════════
   13. UI ELEMENTS (شريط التقدم، زر العودة للأعلى)
═══════════════════════════════════════════════ */
#reading-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--progress-height, 4px);
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}
#reading-progress.below-header {
    top: auto;
    bottom: 0;
}
#reading-progress .bar {
    height: 100%;
    width: 0%;
    background: var(--progress-color, var(--primary));
    transition: width 0.08s linear;
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
}
#back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    z-index: 50;
    border: none;
    font-size: 20px;
}
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}
#back-to-top:hover {
    background: var(--blue-dark);
    transform: translateY(-4px);
}

/* ═══════════════════════════════════════════════
   14. GLOBAL EXTRAS (إضافات عامة)
═══════════════════════════════════════════════ */
/* Breadcrumb (مسار التنقل) */
.breadcrumb {
    padding: 12px 0;
    font-size: 12px;
    color: var(--text-muted);
    direction: rtl;
}
.breadcrumb a {
    color: var(--primary);
}
.breadcrumb span {
    margin: 0 6px;
}

/* Newsletter widget (ويدجت النشرة البريدية) */
.newsletter-widget {
    background: var(--primary);
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: white;
}
.newsletter-widget input {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border: none;
    border-radius: var(--radius);
}
.newsletter-widget button {
    background: var(--secondary);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: bold;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════
   15. SITE WRAPPER (غلاف الموقع — Flexbox sticky footer)
═══════════════════════════════════════════════ */
.site-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.site-main {
    flex: 1;
}

/* ═══════════════════════════════════════════════
   16. TICKER BAR (شريط الأخبار العاجلة — يُستخدم في الهيدر)
═══════════════════════════════════════════════ */
.ticker-bar {
    background: var(--ink);
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 36px;
}
.ticker-label {
    background: var(--red);
    color: var(--white);
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.ticker-track {
    flex: 1;
    overflow: hidden;
    margin-right: 12px;
}
.ticker-inner {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
    padding-right: 100%;
}
.ticker-inner span {
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ticker-inner span::before {
    content: '◆';
    color: var(--secondary);
    font-size: 7px;
}
@keyframes tickerScroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* ═══════════════════════════════════════════════
   17. DATE BAR (شريط التاريخ — يُستخدم في الهيدر)
═══════════════════════════════════════════════ */
.date-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}
.date-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
}
.date-bar .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 12px;
}
.date-bar .weather {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   18. MOBILE NAVIGATION PANEL (قائمة الجوال المنزلقة #mobile-nav)
═══════════════════════════════════════════════ */
#mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--surface);
    z-index: 1000;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    padding: 20px 0;
}
#mobile-nav.open {
    right: 0;
}
body.menu-open {
    overflow: hidden;
}
#mobile-nav .mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
#mobile-nav .mobile-menu li {
    border-bottom: 1px solid var(--border);
}
#mobile-nav .mobile-menu li:last-child {
    border-bottom: none;
}
#mobile-nav .mobile-menu a {
    display: block;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: all var(--transition);
    border-right: 3px solid transparent;
}
#mobile-nav .mobile-menu a:hover,
#mobile-nav .mobile-menu a:focus {
    background: var(--light);
    color: var(--primary);
    border-right-color: var(--primary);
}
#mobile-nav .mobile-menu .current-menu-item > a {
    color: var(--primary);
    border-right-color: var(--primary);
    background: rgba(26, 125, 196, 0.05);
}
#mobile-nav .mobile-menu .sub-menu {
    display: none;
    list-style: none;
    background: var(--light);
}
#mobile-nav .mobile-menu .sub-menu li {
    border-bottom: 1px solid var(--border);
}
#mobile-nav .mobile-menu .sub-menu a {
    padding: 10px 20px 10px 32px;
    font-size: 13px;
    font-weight: 400;
}
#mobile-nav .mobile-menu li.submenu-open > .sub-menu {
    display: block;
}
#mobile-nav .mobile-menu .submenu-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    background: var(--bg);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
    transition: all var(--transition);
}
#mobile-nav .mobile-menu .submenu-toggle:hover {
    background: var(--primary);
    color: var(--white);
}
#mobile-nav .mobile-menu li {
    position: relative;
}
/* Mobile nav backdrop */
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-nav-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

/* ═══════════════════════════════════════════════
   19. SEARCH BAR (شريط البحث المنسدل #search-bar)
═══════════════════════════════════════════════ */
#search-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}
#search-bar.open {
    max-height: 70px;
    padding: 14px 20px;
}
#search-bar form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}
#search-bar input[type="search"] {
    flex: 1;
    border: 2px solid var(--border);
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 10px 16px;
    font-size: 14px;
}
#search-bar button[type="submit"] {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    font-size: 14px;
    transition: background var(--transition);
}
#search-bar button[type="submit"]:hover {
    background: var(--blue-dark);
}

/* ═══════════════════════════════════════════════
   20. HEADER TOOLS BUTTONS (أزرار أدوات الهيدر .tool-btn)
═══════════════════════════════════════════════ */
.header-tools {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tool-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: all var(--transition);
    flex-shrink: 0;
}
.tool-btn:hover {
    background: var(--primary);
    color: var(--white);
}
.tool-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.tool-btn .moon { display: block; }
.tool-btn .sun { display: none; }
body.dark-mode .tool-btn .moon { display: none; }
body.dark-mode .tool-btn .sun { display: block; }
.tool-btn.menu-toggle {
    display: none;
}

/* ═══════════════════════════════════════════════
   21. DEFAULT HEADER LAYOUT (تنسيق الهيدر الافتراضي .site-header)
═══════════════════════════════════════════════ */
.site-header {
    background: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all var(--transition);
}
.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
}
.site-header .site-logo img {
    height: 46px;
    width: auto;
    transition: height var(--transition);
}
.site-header .main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}
.site-header .main-nav .main-menu {
    display: flex;
    align-items: center;
    gap: 0;
}
.site-header .main-nav .main-menu a {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--transition);
}
.site-header .main-nav .main-menu a:hover {
    color: var(--primary);
}
.logo-fallback {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
}
.logo-fallback .logo-icon {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    font-family: var(--ff-title);
}
.logo-fallback .logo-text {
    font-size: 18px;
    font-weight: 800;
    font-family: var(--ff-title);
    line-height: 1.2;
}

/* ═══════════════════════════════════════════════
   22. WORDPRESS BLOCK STYLES (تنسيقات بلوكات ووردبريس)
═══════════════════════════════════════════════ */

/* WP Block: Alignments (محاذاة) */
.alignleft {
    float: left;
    margin: 0 1.5em 1em 0;
}
.alignright {
    float: right;
    margin: 0 0 1em 1.5em;
}
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* WP Block: Separator (الفاصل) */
hr,
.wp-block-separator {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 32px 0;
}
.wp-block-separator.is-style-wide {
    height: 2px;
}
.wp-block-separator.is-style-dots {
    height: auto;
    background: none;
    text-align: center;
    letter-spacing: 12px;
    font-size: 20px;
    color: var(--text-muted);
}
.wp-block-separator.is-style-dots::before {
    content: '···';
}

/* WP Block: Drop Cap (الحرف الكبير) */
.has-drop-cap:not(:focus)::first-letter {
    float: right;
    font-size: 3.5em;
    line-height: 0.8;
    margin: 0.1em 0 0 0.15em;
    font-weight: 800;
    font-family: var(--ff-title);
    color: var(--primary);
}

/* WP Block: Quote (الاقتباس) */
blockquote {
    border-right: 4px solid var(--primary);
    background: var(--light);
    padding: 1.2em 1.8em;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 2em 0;
    font-style: italic;
    color: var(--text-muted);
}
blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    font-style: normal;
}
blockquote cite::before {
    content: '— ';
    color: var(--primary);
}

/* WP Block: Pullquote (الاقتباس البارز) */
.wp-block-pullquote {
    border: none;
    padding: 2em 0;
    text-align: center;
    font-size: 1.4em;
    line-height: 1.6;
    border-top: 4px solid var(--primary);
    border-bottom: 4px solid var(--primary);
    margin: 2em 0;
}

/* WP Block: Image caption (وصف الصورة) */
.wp-block-image figcaption {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 8px 0;
}

/* WP Block: Table (الجدول) */
.wp-block-table {
    overflow-x: auto;
    margin: 24px 0;
}

/* WP Block: Columns (الأعمدة) */
.wp-block-columns {
    gap: 24px;
    margin-bottom: 24px;
}

/* WP Block: Cover (الغلاف) */
.wp-block-cover {
    min-height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 32px;
}

/* Sticky post (المقال المثبت) */
.sticky {
    position: relative;
}
.sticky::before {
    content: 'مثبت';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--secondary);
    color: var(--ink);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 0 0 0 var(--radius);
    z-index: 2;
}

/* Avatar (الصورة الرمزية) */
.avatar {
    border-radius: 50%;
    border: 2px solid var(--border);
}

/* Tag Cloud (سحابة الوسوم) */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}
.tagcloud a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--light);
    color: var(--text-muted);
    font-size: 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.tagcloud a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Calendar Widget (ويدجت التقويم) */
.wp-calendar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.wp-calendar-table caption {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}
.wp-calendar-table th,
.wp-calendar-table td {
    border: 1px solid var(--border);
    padding: 8px;
    text-align: center;
}
.wp-calendar-table th {
    background: var(--light);
    font-weight: 600;
}
.wp-calendar-table td a {
    color: var(--primary);
    font-weight: 600;
}

/* Skip to content (تخطي للمحتوى — إمكانية الوصول) */
.skip-link {
    position: absolute;
    top: -100px;
    right: 0;
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    z-index: 10000;
    font-size: 14px;
    font-weight: 600;
    transition: top 0.3s ease;
}
.skip-link:focus {
    top: 0;
}

/* ═══════════════════════════════════════════════
   23. RESPONSIVE BREAKPOINTS (نقاط التوقف — العامة فقط)
═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}
@media (max-width: 820px) {
    .two-col,
    .archive-grid {
        grid-template-columns: 1fr;
    }
    .half-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    /* Mobile Navigation Responsive (قائمة الجوال) */
    .tool-btn.menu-toggle {
        display: flex !important;
    }
    .site-header .main-nav {
        display: none;
    }
}
@media (max-width: 560px) {
    .container {
        padding: 0 16px;
    }
    .half-grid {
        grid-template-columns: 1fr;
    }
    .half-col > .sec-head {
        margin-top: 44px;
    }
    /* Ticker & Date Bar responsive (شريط الأخبار والتاريخ على الشاشات الصغيرة) */
    .date-bar .inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .ticker-bar {
        height: 32px;
    }
    .ticker-label {
        padding: 3px 10px;
        font-size: 10px;
    }
    .ticker-inner span {
        font-size: 12px;
    }
}
@media print {
    .site-header, .ticker-bar, .date-bar, .site-footer,
    #back-to-top, #reading-progress {
        display: none !important;
    }
    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }
    .container {
        max-width: 100%;
        padding: 0;
    }
    a {
        color: #000;
        text-decoration: underline;
    }
}
