@font-face{font-family:'jali arabic';src:url('/fonts/JaliArabic-Regular.woff2') format('woff2'),url('/fonts/JaliArabic-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'jali arabic';src:url('/fonts/JaliArabic-Bold.woff2') format('woff2'),url('/fonts/JaliArabic-Bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
:root{--bodybg:#f6f4ee;--bodybgx:#fff;--bodytext:#000;--menulink:#0d122b;--link-color:#003fff;--link-color-hover:#3399FF;--border-color:#ddd;--headers:#0d122b;--blockquote-back-micro:rgba(60,60,60,0.05);--blockquote-text-macro:#434648;--blockquote-border-micro:#6272a4}
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{font-size:16px;scroll-behavior:smooth;overflow-x:hidden;scrollbar-gutter:stable;direction:ltr}
html[dir=rtl]{direction:ltr}
html[dir=rtl] body,html[dir=rtl] .site-wrapper{direction:rtl}
body{font-family:jali arabic,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:19px;line-height:2.2rem;color:var(--bodytext,#000);background:var(--bodybg);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:hidden}
a,.page-content a,.post-content a,.micro-content a{color:var(--bodytext,#000)!important;text-decoration:none!important;border-bottom:3px double;text-underline-offset:3px;transition:all .2s ease;opacity:1;position:relative;font-weight:600!important}
a:hover,.page-content a:hover,.post-content a:hover,.micro-content a:hover{color:var(--link-color-hover,#3399FF)!important;text-decoration:none!important;border-bottom-color:var(--link-color-hover,#3399FF)!important;border-bottom-style:double;border-bottom-width:3px;text-underline-offset:3px;opacity:1}
.nav-link,.nav-link:hover,.sidebar-logo a,.sidebar-avatar a,.nav-previous a,.nav-next a,.nav-link-micro,.post-meta a,.meta-link,.tag-link,.tag-link-small,.category-link,.pagination-link,.post-item-postlisting a,.post-item-title a,.micro-card-date a,.sidebar-social-icons a,.home-title a,.microNavigation a,.more-posts-link,.section-title a{border-bottom:none!important}
.sidebar-social-icons a:hover{border-bottom:3px double var(--link-color-hover,#3399FF)!important}
.site-wrapper{display:flex;min-height:100vh;background:transparent;max-width:850px;margin:0 auto;width:100%;box-sizing:border-box}
.mobile-header{display:none}
.mobile-menu-toggle{display:none}
.sidebar{width:150px;background:transparent;padding:3rem 1rem;position:fixed;top:0;right:max(calc((100% - 850px)/2),0px);flex-shrink:0;box-sizing:border-box;z-index:100;height:100vh;overflow-y:auto;border-left:1px solid var(--border-color,#ddd)}
.sidebar::-webkit-scrollbar{width:6px}
.sidebar::-webkit-scrollbar-track{background:transparent}
.sidebar::-webkit-scrollbar-thumb{background:#d0d0d0;border-radius:3px}
.sidebar::-webkit-scrollbar-thumb:hover{background:#b0b0b0}
.sidebar-content{display:flex;flex-direction:column;gap:.5rem;align-items:center;text-align:center;width:100%}
.sidebar-logo{margin-bottom:.5rem;display:flex;justify-content:center;align-items:center}
.sidebar-logo a{border-bottom:none!important;text-decoration:none!important}
.sidebar-logo img{max-width:110px;width:100%;height:auto;margin:0 auto;transition:transform .3s ease}
.sidebar-logo:hover img{transform:scale(1.05)}
.sidebar-logo .logo-dark{display:none!important}
.sidebar-logo .logo-light{display:block!important}
.sidebar-avatar{margin:.5rem 0}
.sidebar-avatar a{display:block;text-decoration:none;border-bottom:none!important}
.sidebar-avatar img{width:100px;height:100px;border-radius:50%;object-fit:cover;display:block;margin:0 auto;border:1px solid #e8e9ea;box-shadow:0 2px 8px rgba(0,0,0,.1);transition:transform .3s ease,box-shadow .3s ease}
.sidebar-avatar img:hover{transform:scale(1.05);box-shadow:0 6px 16px rgba(0,0,0,.15)}
.sidebar-title{margin-top:.5rem}
.sidebar-title h1{font-size:1.2rem;font-weight:600;margin:0;color:#1a1a1a;letter-spacing:-.02em;line-height:1.3}
.sidebar-title a{text-decoration:none;color:#1a1a1a;transition:color .2s ease;border-bottom:none!important}
.sidebar-title a:hover{color:#4a5568}
.sidebar-social-icons{margin-top:.5rem;display:flex;justify-content:center;align-items:center;gap:.5rem;flex-wrap:wrap;width:100%}
.sidebar-social-icons a{display:inline-flex;align-items:center;justify-content:center;color:var(--menulink,#0d122b);text-decoration:none;border-bottom:none!important;transition:color .2s ease}
.sidebar-social-icons svg{width:20px;height:20px;color:var(--menulink,#0d122b)}
.sidebar-social-icons a:hover{color:var(--link-color-hover,#3399FF)}
.sidebar-social-icons a:hover svg{color:var(--link-color-hover,#3399FF)}
.sidebar-nav{width:100%;margin-top:0;display:flex;justify-content:center}
.nav-menu{list-style:none;display:flex;flex-direction:column;gap:.25rem;align-items:center;width:100%;padding:0;margin:0}
.nav-menu li{width:100%;display:flex;justify-content:center}
.nav-link{display:inline-block;width:100%;padding:.25rem .75rem;text-decoration:none!important;color:var(--menulink,#0d122b);font-weight:400;font-size:.875rem;text-align:center;background:#fff!important;border:1px solid #99a1af!important;border-radius:8px;box-shadow:3px 3px #000!important;position:relative;transition:all .2s ease;transform:none!important;opacity:.8!important;line-height:1.4;margin:0 0 .5rem;box-sizing:border-box}
.nav-link:hover{background:#fff!important;border-color:#000!important;border-bottom-color:#000!important;box-shadow:5px 5px #000!important;transform:translateY(-2px)!important;opacity:1!important;color:var(--menulink,#0d122b)}
.nav-link.active{border-color:#99a1af!important;background:#f0f0f0!important;color:var(--menulink,#0d122b);opacity:1!important}
.nav-link.active::before{content:'';position:absolute;right:0;top:50%;transform:translateY(-50%);width:3px;height:60%;background:#2c3e50;border-radius:2px 0 0 2px}
[dir=rtl] .nav-link.active::before{left:auto;right:0;border-radius:0 2px 2px 0}
.sidebar-theme-toggle{margin-top:.5rem;display:flex;justify-content:center;align-items:center;width:100%}
.theme-toggle-btn{display:inline-flex;align-items:center;justify-content:center;width:100%;padding:.25rem .75rem;background:transparent!important;border:none!important;border-radius:0;box-shadow:none!important;cursor:pointer;transition:none;transform:none!important;opacity:1!important;line-height:1.4;box-sizing:border-box;font-size:.875rem;color:var(--menulink,#0d122b);font-family:inherit}
.theme-toggle-btn:hover{background:transparent!important;border:none!important;box-shadow:none!important;transform:none!important;opacity:1!important}
.theme-toggle-btn svg{width:20px;height:20px;color:var(--menulink,#0d122b)}
.theme-toggle-btn .mode-sunny{display:none}
.theme-toggle-btn .mode-moon{display:block}
.main-content{width:700px;flex-shrink:0;padding:3rem 2rem;background:transparent;min-height:100vh;box-sizing:border-box;margin-right:150px}
.home-page{margin-bottom:4rem}
.home-intro{margin-bottom:2rem;font-size:14px;line-height:1.5;color:var(--bodytext,#000);padding:0}
.home-intro p{margin:0}
.home-intro a{color:var(--link-color,#003fff);text-decoration:none}
.home-intro a:hover{color:var(--link-color-hover,#3399FF);text-decoration:none!important;border-bottom:3px double var(--link-color-hover,#3399FF);text-underline-offset:3px}
.home-posts{margin-top:0}
.home-listing{position:relative;margin-bottom:10px;background:transparent!important;box-shadow:none!important}
.home-listing a{text-decoration:none}
.home-listing-micro li{overflow:hidden;text-overflow:ellipsis;max-height:1.5em;line-height:1.5em;font-size:.9em;font-weight:400;margin-top:8px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;word-wrap:anywhere}
.home-listing-micro li:last-child{margin-bottom:8px}
.home-section{margin-bottom:2rem}
.section-header{display:flex;align-items:center;justify-content:center;gap:0;flex-grow:1;margin-bottom:1rem;position:relative;width:100%}
.section-header::before{content:'';position:absolute;top:50%;left:0;right:0;height:1px;background-color:var(--border-color,#ddd);z-index:0}
.section-title{font-weight:600;white-space:nowrap;font-family:jali arabic,-apple-system,sans-serif;margin:0;font-size:1em;color:#666;text-align:center;position:relative;padding:0 1rem;margin-bottom:1rem;margin-top:1rem;background:var(--bodybg,#f6f4ee);z-index:1;margin-left:auto;margin-right:auto}
.home-section:first-child .section-title{margin-top:0}
.section-title a{color:#666;text-decoration:none;border-bottom:none!important;transition:color .2s ease}
.section-title a:hover{color:var(--link-color-hover,#3399FF);text-decoration:none!important;border-bottom:none!important}
.section-divider{height:1px;background-color:var(--border-color,#ddd);flex-grow:1;border:none;margin:0}
a.microhome{color:var(--bodytext,#000);font-weight:400!important;text-decoration:none!important;border-bottom:none!important;font-size:.9em}
a.microhome:hover{color:var(--link-color-hover,#3399FF);text-decoration:underline!important;text-underline-offset:5px;border-bottom:none!important}
.more-posts-link{display:inline-block;margin-top:1rem;color:#2c3e50;text-decoration:none;transition:color .15s ease;border-bottom:none!important}
.more-posts-link:hover{color:#1a1a1a;border-bottom:none!important}
.divider{border:none;border-top:1px solid var(--border-color,#ddd);margin:0 0 1.75rem 0}
.list-page{margin-bottom:4rem}
.page-header{margin-bottom:1.5rem;padding-bottom:.5rem;border-bottom:none}
.page-title{font-size:1.1rem;font-weight:500;margin-bottom:.5rem;color:#1a1a1a;letter-spacing:0}
.page-description{color:#4a5568;font-size:1.1rem;line-height:1.7;margin-top:.5rem}
.post-card{margin-bottom:1.5rem;padding-bottom:2.5rem;border-bottom:1px solid var(--border-color,#ddd);transition:transform .2s ease}
.post-card:hover{transform:translateX(-5px)}
.post-card:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
.post-card-title{font-size:1.1rem;font-weight:600;margin-bottom:.75rem;line-height:1.4;direction:rtl;text-align:right}
.post-card-title a{color:#1a1a1a;text-decoration:none;transition:color .2s ease;border-bottom:none!important}
.post-card-title a:hover{color:#2c3e50;text-decoration:none!important;border-bottom:3px double #2c3e50!important;text-underline-offset:3px}
.post-card-meta{color:#718096;font-size:.9rem;margin-bottom:.75rem;font-variant-numeric:tabular-nums;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;direction:rtl}
.post-card-excerpt{color:#4a5568;line-height:1.7;font-size:1.05rem;direction:rtl}
.month-group{margin-bottom:3rem}
.month-header-wrapper{display:flex;align-items:center;justify-content:center;gap:0;flex-grow:1;margin-bottom:1rem;margin-top:2rem;position:relative;width:100%}
.month-header-wrapper::before{content:'';position:absolute;top:50%;left:0;right:0;height:1px;background-color:var(--border-color,#ddd);z-index:0}
.month-header{font-size:1em;font-weight:600;white-space:nowrap;font-family:jali arabic,-apple-system,sans-serif;margin:0;color:#666;text-align:center;position:relative;padding:0 1rem;margin-bottom:1rem;margin-top:1rem;background:var(--bodybg,#f6f4ee);z-index:1;margin-left:auto;margin-right:auto}
.month-group:first-child .month-header-wrapper{margin-top:0}
.month-group:first-child .month-header{margin-top:1rem}
.posts-year{font-size:1.5rem;font-weight:600;margin-top:3rem;margin-bottom:1.5rem;color:#4a5568;padding-bottom:.5rem;border-bottom:1px solid var(--border-color,#ddd);direction:rtl}
.post-item{display:flex!important;align-items:center;flex-wrap:nowrap;gap:1rem;flex-direction:row!important;transition:transform .2s ease,box-shadow .2s ease;padding-top:10px;padding-bottom:0;justify-content:normal}
.post-item:first-child{padding-top:0}
.post-item:hover{transform:translateY(-2px)}
.post-item-postlisting{display:inline-block;font-size:.85em;font-weight:500;margin:0;line-height:1.4;flex-shrink:0;background:#fff!important;border:1px solid #99a1af!important;position:relative;transition:all .2s ease;box-shadow:3px 3px #000!important;transform:none!important;border-radius:8px;padding:.25rem .75rem;opacity:.8!important}
.post-item-postlisting:hover{background:#fff!important;border-color:#000!important;box-shadow:5px 5px #000!important;transform:translateY(-2px)!important;opacity:1!important}
.post-item-postlisting a,.post-item-postlisting a:hover,.post-item-postlisting a:focus,.post-item-postlisting a:active{color:inherit!important;text-decoration:none!important;border-bottom:none!important;font-weight:400!important}
.post-item-title-wrapper{display:flex;align-items:center;gap:1rem;flex:1;min-width:0;overflow:hidden}
.post-item-title{display:inline-block;margin:0;flex-shrink:1;font-weight:600;font-size:.9em;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.post-item-title a{color:var(--bodytext,#000);text-decoration:none!important;border-bottom:none!important;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.post-item-title a:hover{color:var(--link-color-hover,#3399FF);text-decoration:underline!important;text-underline-offset:5px;border-bottom:none!important}
.post-item-divider{height:1px;background-color:var(--border-color,#ddd);flex-grow:1;border:none;margin:0}
.post-item-date{min-width:96px;color:var(--bodytext,#000);font-size:.75em;font-variant-numeric:tabular-nums;flex-shrink:0;display:inline-block;position:relative;transition:all .2s ease;transform:none!important;padding:.25rem .75rem;opacity:.8!important;line-height:1.4;font-weight:400}
.post-item-date a{color:var(--bodytext,#000);text-decoration:none!important;border-bottom:none!important;font-weight:400!important}
.post-item-right{margin-left:auto;margin-right:0;flex-shrink:0}
.icon-star{color:#f97316;height:16px;margin-right:1rem;width:16px;display:block}
.post{margin-bottom:4rem}
.post-header{margin-bottom:0;padding-bottom:0}
.post-title{font-size:32px;font-weight:900;margin-top:0;margin-bottom:10px;line-height:1.6em;color:var(--headers,#0d122b);font-family:jali arabic,-apple-system,sans-serif;direction:rtl;text-align:right}
.post-meta{font-size:15px;font-weight:400;display:flex;align-items:center;justify-content:flex-start;gap:.5rem;flex-wrap:wrap;margin-bottom:1.25em;padding-top:0;padding-bottom:0;direction:rtl}
.post-meta time,.post-meta span,.post-meta a{display:inline-flex;align-items:center;vertical-align:middle}
.post-meta a{border-bottom:none!important}
.post-meta time{font-variant-numeric:tabular-nums}
.meta-separator{color:#cbd5e0;margin:0 .25rem}
.post-content{font-size:inherit;line-height:inherit;color:var(--bodytext,#000);max-width:100%;word-spacing:.05em;padding-top:0}
.post-content p{text-align:justify;padding-top:0;padding-bottom:0;margin-bottom:1.25em;margin-top:1.25em;direction:rtl}
.post-content h1,.post-content h2,.post-content h3,.post-content h4,.post-content h5,.post-content h6{margin-top:1.5em;margin-bottom:.75em;font-weight:800;line-height:1.3;color:var(--headers,#0d122b);direction:rtl;text-align:right}
.post-content ul,.post-content ol{margin-left:0;margin-right:30px;margin-top:0;margin-bottom:10px;direction:rtl}
.post-content li{margin-bottom:0}
.post-content blockquote,.micro-content blockquote,.micro-card-content blockquote{background:#fff!important;border:1px solid #000!important;border-right:1px solid #000!important;position:relative;box-shadow:3px 3px #000!important;border-radius:8px;padding:1.5em;margin:1.5em 0;transform:none!important;color:var(--bodytext,#000)!important}
.post-content blockquote:hover,.micro-content blockquote:hover,.micro-card-content blockquote:hover{background:#fff!important;border-color:#000!important;box-shadow:3px 3px #000!important;transform:none!important}
.post-content blockquote::before,.micro-content blockquote::before,.micro-card-content blockquote::before{display:none!important}
.post-content blockquote>:last-child,.micro-content blockquote>:last-child,.micro-card-content blockquote>:last-child{margin-bottom:0;margin-top:0}
[dir=rtl] .post-content blockquote,[dir=rtl] .micro-card-content blockquote{border-right:1px solid #000!important;border-left:1px solid #000!important}
.post-content code{background-color:rgba(0,0,0,.05);padding:.2em .4em;border-radius:3px;font-size:.9em;word-break:break-word;overflow-wrap:break-word;direction:ltr;display:inline-block}
.post-content pre{border-radius:8px;overflow-x:auto;padding:1.25em;line-height:1.6;margin:2rem 0;direction:ltr;text-align:left;max-width:100%;box-sizing:border-box}
.post-content pre code{background-color:transparent;padding:0}
[dir=rtl] .post-content pre,[dir=rtl] .post-content code{direction:ltr;text-align:left}
.post-content table{width:100%;border-collapse:collapse;margin:1.5em 0;border-radius:8px;overflow:hidden}
.post-content table th,.post-content table td{padding:.75em 1em;border-bottom:1px solid var(--border-color,#ddd)}
.post-content table th{background-color:rgba(0,0,0,.05);font-weight:600}
.post-content img,.page-content img,.micro-content img,.micro-card-content img,.microArticle img,article img{border:1px solid #000!important;box-shadow:3px 3px #000!important;border-radius:8px;max-width:100%;height:auto;margin:2rem 0;display:block}
.post-content hr{border:none;border-top:1px solid var(--border-color,#ddd);margin:3rem 0}
.post-content h1,.post-content h2,.post-content h3,.post-content h4,.post-content h5,.post-content h6,.post-content blockquote,.post-content table,.post-content img,.post-content hr{margin-top:15px;margin-bottom:5px}
.post-featured-image{margin:1.5rem 0 0}
.post-featured-image img{width:100%;height:auto;display:block;border:1px solid #000!important;box-shadow:3px 3px #000!important;border-radius:8px}
.post-footer{margin-top:3rem;padding-top:2rem;border-top:1px solid var(--border-color,#ddd)}
.post-categories{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem}
.footer-label{color:#718096;font-size:.9rem;font-weight:500}
.category-link{display:inline-block;padding:.4rem .9rem;background:#f0f1f3;color:#4a5568;text-decoration:none;border-radius:6px;font-size:.85rem;font-weight:500;transition:all .2s ease;border-bottom:none!important}
.category-link:hover{background:#e8e9ea;color:#2c3e50}
.post-navigation{margin:3.5rem 0;padding:1rem 0;border-top:1px solid var(--border-color,#ddd);border-bottom:1px solid var(--border-color,#ddd);display:flex;flex-direction:row;justify-content:space-between;gap:1rem}
.nav-previous,.nav-next{display:flex;flex-direction:column;align-items:flex-start;gap:0;background:transparent!important}
.nav-next{align-items:flex-end;text-align:left}
.nav-label{color:#718096;font-size:.8rem;font-weight:400}
.nav-previous a,.nav-next a{color:#2c3e50;text-decoration:none;font-weight:500;font-size:.85rem;transition:color .2s ease;border-bottom:none!important;background:transparent!important}
.nav-previous a:hover,.nav-next a:hover{color:#1a1a1a;text-decoration:none!important;border-bottom:none!important}
.post-toc{margin:2rem 0;padding:1.5rem;background:#f8f9fa;border-radius:8px;border:1px solid var(--border-color,#ddd)}
.toc-summary{cursor:pointer;font-weight:600;color:#2c3e50;font-size:.95rem;list-style:none;padding:.5rem 0;user-select:none}
.toc-summary::-webkit-details-marker,.toc-summary::marker{display:none}
.toc-content{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border-color,#ddd)}
.toc-content ul{list-style:none;padding-right:1.5rem;margin:.5rem 0}
.toc-content li{margin:.4rem 0}
.toc-content a{color:#4a5568;text-decoration:none;font-size:.9rem;transition:color .2s ease;border-bottom:none!important}
.toc-content a:hover{color:#2c3e50;text-decoration:none!important;border-bottom:3px double #2c3e50!important;text-underline-offset:3px}
.micro-post{max-width:100%}
.micro-post .post-header{margin-bottom:1rem;padding-bottom:0;border-bottom:none}
.micro-post .post-meta{font-size:.8em;margin-bottom:0;padding-bottom:0;color:inherit;font-weight:inherit}
.micro-content{font-size:inherit;line-height:inherit;text-align:justify}
.micro-card-content{font-size:inherit;line-height:inherit;color:var(--bodytext,#000);text-align:justify}
.micro-card-content p{margin-bottom:1rem}
.micro-header{margin-bottom:0}
.micro-intro{text-align:center;font-size:15px;line-height:1.8em;margin-top:0;margin-bottom:0;color:var(--bodytext,#000)}
.micro-divider{border:none;border-top:1px solid var(--border-color,#ddd);margin:1.5rem 0}
.micro-posts-list{display:flex;flex-direction:column;gap:2rem}
.post-card-micro{border-bottom:1px solid var(--border-color,#ddd);transition:none!important}
.post-card-micro:hover{transform:none!important}
.micro-card-date{font-size:.8em;margin-bottom:0;padding-bottom:0;font-variant-numeric:tabular-nums}
.micro-card-date a{color:var(--bodytext,#000);text-decoration:none!important;border-bottom:none!important;font-weight:600}
.micro-card-date a:hover{color:var(--link-color-hover,#3399FF);text-decoration:none!important;border-bottom:3px double var(--link-color-hover,#3399FF)!important;text-underline-offset:3px}
.micro-meta{font-size:.8rem;color:#718096;direction:rtl}
.micro-meta a{color:#718096;border-bottom:none!important}
.micro-meta a:hover{color:var(--link-color-hover,#3399FF)}
.micro-navigation{margin-top:3rem;display:flex;justify-content:space-between;gap:1rem}
.nav-link-micro{display:inline-block;padding:.5rem 0;color:#4a5568;text-decoration:none;font-weight:500;background:transparent!important;border-radius:0;transition:all .2s ease;font-size:.85rem;box-shadow:none!important;border:none!important}
.nav-link-micro:hover{background:transparent!important;color:#2c3e50;border-bottom:none!important}
.post-tags{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem;direction:rtl}
.tag-link{display:inline-block;padding:.4rem .9rem;background:#f0f1f3;color:#4a5568;text-decoration:none;border-radius:6px;font-size:.85rem;font-weight:500;transition:all .2s ease;border-bottom:none!important}
.tag-link:hover{background:#e8e9ea;color:#2c3e50;transform:translateY(-1px)}
.tag-link-small{display:inline-block;padding:.25rem .6rem;background:#f8f9fa;color:#718096;text-decoration:none;border-radius:4px;font-size:.75rem;font-weight:400;transition:all .2s ease;border-bottom:none!important}
.tag-link-small:hover{background:#e8e9ea;color:#4a5568}
.post-card-tags{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.75rem}
.tags-list{display:flex;flex-wrap:wrap;gap:1rem;margin-top:2rem}
.tag-item{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.25rem;background:#f8f9fa;color:#2c3e50;text-decoration:none;border-radius:8px;transition:all .2s ease;border:1px solid var(--border-color,#ddd);border-bottom:1px solid var(--border-color,#ddd)!important}
.tag-item:hover{background:#e8e9ea;transform:translateY(-2px);box-shadow:0 4px 8px rgba(0,0,0,.1)}
.tag-name{font-weight:500;font-size:1rem}
.tag-count{color:#718096;font-size:.85rem;font-variant-numeric:tabular-nums}
.pagination{margin-top:4rem;padding-top:2.5rem;border-top:1px solid var(--border-color,#ddd)}
.micro-list-page .pagination,.list-page .pagination{margin-top:3rem;margin-bottom:3.5rem;padding:1rem 0;border-top:1px solid var(--border-color,#ddd);border-bottom:1px solid var(--border-color,#ddd)}
.pagination-wrapper{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}
.pagination-info{color:#718096;font-size:.9rem}
.pagination-link{display:inline-block;padding:.75rem 1.5rem;color:#2c3e50;text-decoration:none;font-weight:500;background:#f8f9fa;border-radius:8px;transition:all .2s ease;border-bottom:none!important}
.micro-list-page .pagination-link,.list-page .pagination-link{padding:.5rem 0;color:#4a5568;text-decoration:none;font-weight:500;background:transparent!important;border-radius:0;transition:all .2s ease;font-size:.85rem;box-shadow:none!important;border:none!important}
.pagination-link:hover{background:#e8e9ea;color:#1a1a1a;transform:translateX(-3px)}
.micro-list-page .pagination-link:hover,.list-page .pagination-link:hover{background:transparent!important;color:#2c3e50;transform:none}
.pagination-next:hover{transform:translateX(3px)}
.micro-list-page .pagination-next:hover,.list-page .pagination-next:hover{transform:none}
.error-page{text-align:center;padding:6rem 2rem}
.error-page h1{font-size:5rem;font-weight:700;margin-bottom:1.5rem;color:#1a1a1a;letter-spacing:-.02em}
.error-page p{font-size:1.25rem;color:#4a5568;margin-bottom:2.5rem}
.error-page a{display:inline-block;padding:.75rem 1.5rem;color:#2c3e50;text-decoration:none;font-weight:500;background:#f8f9fa;border-radius:8px;transition:all .2s ease;border-bottom:none!important}
.error-page a:hover{background:#e8e9ea;color:#1a1a1a;transform:translateX(-3px)}
.comments-section{margin-top:4rem;padding-top:3rem;border-top:1px solid var(--border-color,#ddd)}
.comments-section hr{margin:2rem 0;border:none;border-top:1px solid var(--border-color,#ddd)}
.meta-link{color:#4a5568;text-decoration:none;border-bottom:none!important;transition:color .2s ease}
.meta-link:hover{color:#2c3e50;text-decoration:none!important;border-bottom:none!important}
iframe{padding:20px 0}
@media screen and (min-width:641px){.post-item{flex-direction:row!important;align-items:center;gap:.2rem!important}}
@media screen and (min-width:641px) and (max-width:768px){.post-item{flex-direction:row!important;align-items:center;gap:1rem!important}}
@media screen and (max-width:640px){.post-item{flex-direction:column!important;align-items:flex-start;gap:.5rem}.post-item-postlisting{margin-top:.5rem;margin-bottom:.5rem}.post-item-title{width:100%}}
@media (max-width:1023px){
.site-wrapper{flex-direction:column;max-width:100%;padding:0}
.mobile-header{display:flex;justify-content:flex-start;align-items:center;padding:1.5rem 1rem;border-bottom:none;position:sticky;top:0;z-index:1000;width:100%;box-sizing:border-box;flex-direction:row;background:var(--bodybg,#f6f4ee)}
.mobile-header-right{display:flex;align-items:center;gap:.75rem;order:1;flex-direction:row}
.mobile-menu-toggle{display:flex;flex-direction:column;justify-content:space-around;width:30px;height:30px;background:transparent;border:none;cursor:pointer;padding:0;z-index:1001;order:3;margin-right:auto}
.hamburger-line{width:25px;height:3px;background-color:var(--menulink,#0d122b);border-radius:3px;transition:all .3s ease;display:block}
.mobile-menu-toggle.active .hamburger-line:nth-child(1){transform:rotate(45deg) translate(8px,8px)}
.mobile-menu-toggle.active .hamburger-line:nth-child(2){opacity:0}
.mobile-menu-toggle.active .hamburger-line:nth-child(3){transform:rotate(-45deg) translate(7px,-7px)}
.mobile-logo{display:flex;align-items:center;order:2}
.mobile-logo img{max-width:125px;height:auto}
.mobile-logo .logo-dark{display:none!important}
.mobile-logo .logo-light{display:block!important}
.mobile-avatar{display:none}
.sidebar{position:fixed;top:0;left:-100%;right:auto;width:280px;max-width:85%;height:100vh;background:var(--bodybg,#f6f4ee);border-right:1px solid var(--border-color,#ddd);border-left:none;padding:1rem;z-index:999;overflow-y:auto;transition:left .3s ease;box-shadow:2px 0 8px rgba(0,0,0,.1)}
.sidebar.open{left:0}
.sidebar-overlay{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);z-index:998}
.sidebar-overlay.active{display:block}
.sidebar-content{flex-direction:column;align-items:center;gap:1rem;width:100%;padding-top:1rem}
.sidebar-avatar{display:none}
.sidebar-logo{display:none}
.sidebar-nav{width:100%;order:3;margin-top:1.5rem;padding-top:1rem}
.nav-menu{flex-direction:column;align-items:center;gap:.5rem;width:100%}
.nav-menu li{width:100%;display:flex;justify-content:center}
.nav-link{width:100%;padding:.4rem .8rem;font-size:1rem;margin:0;background:transparent!important;border:none!important;box-shadow:none!important}
.nav-link:hover{background:transparent!important;border:none!important;box-shadow:none!important}
.nav-link.active{background:#f0f0f0!important;border:none!important}
.sidebar-social-icons{order:4;margin:0}
.sidebar-social-icons svg{width:24px;height:24px}
.sidebar-theme-toggle{order:5;margin-top:.5rem}
.main-content{width:100%;margin-right:0;padding:1.5rem 1rem;max-width:100%;box-sizing:border-box;overflow-x:hidden}
.post-content,.page-content,.micro-content{max-width:100%;overflow-x:hidden;word-wrap:break-word;overflow-wrap:break-word}
body{font-size:18px;line-height:2rem}
.post-title{font-size:28px;line-height:1.6;margin-bottom:.5rem}
.post-content h2{font-size:18px}
.post-content h3{font-size:18px}
.post-content h4,.post-content h5,.post-content h6{font-size:16px}
.page-title{font-size:1.1rem}
.post-card-title{font-size:1.3rem}
.post-meta{font-size:14px;flex-wrap:wrap;margin-bottom:1.25em}
.micro-intro{font-size:13px;line-height:1.6em}
.post-content img,.page-content img,.micro-content img,.micro-card-content img,.microArticle img,article img{max-width:100%!important;width:100%!important;height:auto!important;margin:1.5rem 0;box-sizing:border-box}
.post-featured-image{margin:1rem 0 0;width:100%;max-width:100%;box-sizing:border-box}
.post-featured-image img{margin:0;max-width:100%!important;width:100%!important;height:auto!important}
.post-content pre{padding:1rem;font-size:.85rem;overflow-x:auto}
.post-content code{font-size:.85rem}
.post-content table{font-size:.9rem;display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
.post-content table th,.post-content table td{padding:.5rem .75rem}
.post-content ul,.post-content ol{margin-right:20px}
.post-content p{margin-bottom:1em;margin-top:1em}
.post-item{flex-direction:column!important;align-items:flex-start;gap:.5rem;padding-top:.75rem}
.post-item-postlisting{width:100%;text-align:center;margin-top:.5rem;order:3}
.post-item-date{order:1!important;width:100%;text-align:right;padding:0;background:transparent!important;border:none!important;box-shadow:none!important}
.post-item-title-wrapper{order:2!important;width:100%;flex-direction:column;align-items:flex-start;gap:.5rem}
.post-item-right{order:4}
.post-item-title{width:100%;white-space:normal;overflow:visible;text-overflow:clip}
.post-item-divider{display:none}
.post-card{padding-bottom:1.5rem;margin-bottom:1.5rem}
.post-card-meta{font-size:.85rem}
.post-card-excerpt{font-size:1rem}
.post-toc{padding:1rem;margin:1.5rem 0}
.toc-content{padding-top:.75rem;margin-top:.75rem}
.toc-content ul{padding-right:1rem}
.comments-section{margin-top:2rem;padding-top:2rem}
.page-header{margin-bottom:1rem}
.page-description{font-size:1rem}
.tags-list{gap:.75rem}
.tag-item{padding:.6rem 1rem;font-size:.9rem}
}
@media (min-width:768px) and (max-width:1023px){body{font-size:18px;line-height:2rem}.main-content{padding:2rem 1.5rem}.mobile-header{padding:1.5rem 1rem}.mobile-logo img{max-width:150px}.post-title{font-size:32px}.post-content h2{font-size:24px}.post-content h3{font-size:22px}.nav-link{padding:.5rem 1rem;font-size:1.1rem}.post-item-title{font-size:1rem}.micro-intro{font-size:15px}}
@media (max-width:480px){body{font-size:18px;line-height:2rem}.main-content{padding:1rem .75rem}.sidebar{padding:.75rem}.sidebar-content{gap:.5rem}.nav-link{padding:.35rem .6rem;font-size:.9rem}.post-title{font-size:24px;font-weight:900}.post-content h2{font-size:18px}.post-content h3{font-size:16px}.post-item{padding-top:.5rem}.post-card{padding-bottom:1rem;margin-bottom:1rem}.error-page{padding:3rem 1rem}.error-page h1{font-size:3rem}.error-page p{font-size:1.1rem}}
/* ===== إصلاح post-item overflow ===== */
.post-item {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  gap: .5rem;
}
.post-item-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: calc(100% - 110px);
}
.post-item-date {
  min-width: 90px;
  max-width: 90px;
  flex-shrink: 0;
  text-align: left;
  white-space: nowrap;
  font-size: .75em;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.post-item-divider {
  flex: 1;
  min-width: 20px;
}

/* ===== FIX: منع تجاوز post-item للـ sidebar ===== */
.home-page,
.list-page {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.posts-list {
  width: 100%;
  overflow: hidden;
}

.post-item {
  display: flex !important;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  gap: .4rem;
  flex-wrap: nowrap;
}

.post-item-title {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-item-title a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.post-item-divider {
  flex: 1 1 20px;
  min-width: 15px;
  max-width: 100%;
}

.post-item-date {
  flex: 0 0 90px;
  min-width: 90px;
  max-width: 90px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  font-size: .75em;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  opacity: .8;
}

.main-content {
  overflow-x: hidden;
}

/* ===== FIX: منع تجاوز post-item للـ sidebar ===== */
.home-page,
.list-page {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.posts-list {
  width: 100%;
  overflow: hidden;
}

.post-item {
  display: flex !important;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  gap: .4rem;
  flex-wrap: nowrap;
}

.post-item-title {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-item-title a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.post-item-divider {
  flex: 1 1 20px;
  min-width: 15px;
  max-width: 100%;
}

.post-item-date {
  flex: 0 0 90px;
  min-width: 90px;
  max-width: 90px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  font-size: .75em;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  opacity: .8;
}

.main-content {
  overflow-x: hidden;
}

/* ===== FINAL FIX: post-item layout ===== */
.posts-list {
  width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.post-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  gap: .4rem !important;
  flex-wrap: nowrap !important;
  padding-top: 8px !important;
  padding-bottom: 0 !important;
}
.post-item-title {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: .9em !important;
  font-weight: 600 !important;
  margin: 0 !important;
}
.post-item-title a {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.post-item-divider {
  flex: 1 1 20px !important;
  min-width: 15px !important;
  height: 1px !important;
  border: none !important;
  background-color: var(--border-color, #ddd) !important;
  margin: 0 !important;
}
.post-item-date {
  flex: 0 0 auto !important;
  min-width: 80px !important;
  max-width: 95px !important;
  font-size: .75em !important;
  white-space: nowrap !important;
  text-align: left !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  opacity: .8 !important;
}

/* ===== FINAL FIX: post-item layout ===== */
.posts-list {
  width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.post-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  gap: .4rem !important;
  flex-wrap: nowrap !important;
  padding-top: 8px !important;
  padding-bottom: 0 !important;
}
.post-item-title {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: .9em !important;
  font-weight: 600 !important;
  margin: 0 !important;
}
.post-item-title a {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.post-item-divider {
  flex: 1 1 20px !important;
  min-width: 15px !important;
  height: 1px !important;
  border: none !important;
  background-color: var(--border-color, #ddd) !important;
  margin: 0 !important;
}
.post-item-date {
  flex: 0 0 auto !important;
  min-width: 80px !important;
  max-width: 95px !important;
  font-size: .75em !important;
  white-space: nowrap !important;
  text-align: left !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  opacity: .8 !important;
}

/* ===== FINAL FIX: post-item layout ===== */
.posts-list {
  width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.post-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  gap: .4rem !important;
  flex-wrap: nowrap !important;
  padding-top: 8px !important;
  padding-bottom: 0 !important;
}
.post-item-title {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: .9em !important;
  font-weight: 600 !important;
  margin: 0 !important;
}
.post-item-title a {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.post-item-divider {
  flex: 1 1 20px !important;
  min-width: 15px !important;
  height: 1px !important;
  border: none !important;
  background-color: var(--border-color, #ddd) !important;
  margin: 0 !important;
}
.post-item-date {
  flex: 0 0 auto !important;
  min-width: 80px !important;
  max-width: 95px !important;
  font-size: .75em !important;
  white-space: nowrap !important;
  text-align: left !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  opacity: .8 !important;
}

/* ===== FIX: عناوين كاملة + فاصل متكيف ===== */
.post-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  width: 100% !important;
  box-sizing: border-box !important;
  gap: .3rem !important;
  flex-wrap: nowrap !important;
  padding-top: 8px !important;
  padding-bottom: 2px !important;
  overflow: visible !important;
}
.post-item-title {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
  word-break: break-word !important;
  font-size: .9em !important;
  font-weight: 600 !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}
.post-item-title a {
  display: inline !important;
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
  word-break: break-word !important;
}
.post-item-divider {
  flex: 1 1 20px !important;
  min-width: 15px !important;
  max-width: 100% !important;
  height: 1px !important;
  border: none !important;
  border-top: 1px solid var(--border-color, #ddd) !important;
  background: transparent !important;
  margin: 0 !important;
  align-self: center !important;
}
.post-item-date {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  font-size: .75em !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  opacity: .8 !important;
  align-self: center !important;
}
