:root{--blue:#173f7a;--blue2:#2563a8;--ink:#171d2b;--muted:#6c7483;--line:#e7eaf0;--soft:#f6f8fb;--white:#fff;--radius:20px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Tahoma,Arial,sans-serif;background:#fff;color:var(--ink);line-height:1.8}.container{width:min(1180px,calc(100% - 32px));margin:auto}a{color:inherit;text-decoration:none}.topbar{border-bottom:1px solid var(--line);background:#fff}.topbar-inner{height:60px;display:flex;align-items:center;justify-content:space-between;gap:20px}.mini-nav{display:flex;gap:22px;font-size:14px}.search{display:flex;background:#f2f4f7;border-radius:999px;overflow:hidden;width:290px}.search input{border:0;background:transparent;padding:12px 16px;width:100%;outline:0}.search button{border:0;background:transparent;padding:0 16px;font-size:20px}.brand-area{padding:28px 0}.brand-inner{display:flex;justify-content:flex-start}.brand{display:inline-flex;flex-direction:column;align-items:center}.brand-mark{background:linear-gradient(145deg,#2d5fa9,#173a70);color:#fff;padding:20px 25px;border-radius:24px;font-size:30px;font-weight:900;box-shadow:0 12px 30px #173f7a22}.brand small{margin-top:7px;color:var(--muted)}.main-nav{border-top:1px solid var(--line);border-bottom:1px solid var(--line);box-shadow:0 8px 25px #1111}.nav-scroll{display:flex;gap:32px;overflow:auto;white-space:nowrap;font-weight:700;padding:15px 0}.nav-scroll a:hover{color:var(--blue2)}.page-shell{padding:36px 0 70px}.hero-row{display:flex;align-items:center;justify-content:space-between;gap:40px;border:1px solid var(--line);border-radius:28px;padding:36px;background:linear-gradient(135deg,#fff,#f5f9ff)}.hero-row h1{font-size:clamp(28px,4vw,48px);line-height:1.35;margin:8px 0}.hero-row p{color:var(--muted);max-width:720px}.eyebrow{color:var(--blue2);font-weight:800}.hero-badge{width:160px;height:160px;border-radius:34px;background:var(--blue);color:#fff;display:grid;place-items:center;text-align:center;font-size:26px;line-height:1.2;box-shadow:0 20px 50px #173f7a33}.ad-slot{margin:26px 0;border:1px dashed #bac4d3;background:#fafbfc;color:#8991a0;min-height:90px;border-radius:14px;display:grid;place-items:center;text-align:center;padding:15px}.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 430px;gap:24px}.section-title{display:flex;align-items:end;justify-content:space-between;border-bottom:2px solid var(--ink);margin-bottom:18px}.section-title h1,.section-title h2{margin:0 0 8px}.section-title span{color:var(--muted);font-size:13px;margin-bottom:10px}.post-strip{display:grid;grid-template-columns:minmax(0,1fr) 215px;gap:18px;padding:14px 0;border-bottom:1px solid var(--line);align-items:center}.post-copy h2{font-size:21px;line-height:1.4;margin:4px 0;font-weight:700}.post-copy h2 a:hover{color:var(--blue2)}.post-copy p{margin:4px 0 8px;color:var(--muted);font-size:15px;line-height:1.7}.post-meta{display:flex;gap:13px;color:#7c8492;font-size:13px}.post-meta a{color:var(--blue2);font-weight:700}.more{display:inline-flex;color:var(--blue2);font-weight:800}.thumb{display:block;border-radius:18px;overflow:hidden;background:#eef2f7;aspect-ratio:16/10}.thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:.3s}.thumb:hover img{transform:scale(1.035)}.sidebar{position:relative}.widget{border:1px solid var(--line);border-radius:18px;padding:20px;margin-bottom:20px}.widget h3{margin-top:0}.widget p{color:var(--muted)}.cat-link{display:block;padding:9px 0;border-bottom:1px solid var(--line)}.vertical{min-height:260px}.single-post{max-width:850px;margin:auto}.single-post h1{font-size:clamp(30px,4vw,48px);line-height:1.4}.breadcrumb,.single-meta{color:var(--muted);font-size:14px}.cover{width:100%;max-height:470px;object-fit:cover;border-radius:22px;margin:24px 0}.article-content{font-size:18px}.article-content h2,.article-content h3{margin-top:34px}.article-content img{max-width:100%;height:auto;border-radius:15px}.static-page{max-width:800px;margin:auto}.contact-form{display:grid;gap:14px}.contact-form input,.contact-form textarea{border:1px solid var(--line);border-radius:12px;padding:14px;font:inherit}.btn{border:0;border-radius:12px;background:var(--blue);color:#fff;padding:13px 22px;font-weight:800}.empty{padding:50px;text-align:center;background:var(--soft);border-radius:18px}.site-footer{background:#101827;color:#d9dfeb;padding-top:48px}.footer-grid{display:grid;grid-template-columns:2fr 1fr;gap:30px}.footer-grid a{display:block;margin:5px 0}.copyright{text-align:center;border-top:1px solid #ffffff18;margin-top:35px;padding:18px;color:#9da7b7}@media(max-width:850px){.content-layout{grid-template-columns:1fr}.sidebar{order:2}.hero-badge{display:none}.post-strip{grid-template-columns:1fr 150px}.post-copy h2{font-size:20px}}@media(max-width:600px){.topbar-inner{height:auto;padding:12px 0;align-items:stretch;flex-direction:column}.search{width:100%}.brand-area{padding:18px 0}.hero-row{padding:24px}.post-strip{grid-template-columns:1fr}.thumb{order:-1;aspect-ratio:16/9}.post-copy h2{font-size:21px}.footer-grid{grid-template-columns:1fr}.page-shell{padding-top:22px}}


/* آخر المواضيع — إضافة مستقلة تحافظ على التصميم الحالي */
.latest-topics-widget{padding:16px}
.latest-topics-widget h3{margin:0 0 8px;padding-bottom:9px;border-bottom:2px solid var(--blue2)}
.latest-topics-list{display:flex;flex-direction:column}
.latest-topic-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line);transition:.2s}
.latest-topic-item:last-child{border-bottom:0}
.latest-topic-item:hover{transform:translateX(3px)}
.latest-topic-thumb{width:72px;height:58px;flex:0 0 72px;display:block;object-fit:cover;border-radius:10px;background:#eef2f7}
.latest-topic-copy{min-width:0;display:flex;flex:1 1 auto;flex-direction:column;gap:3px;text-align:right}
.latest-topic-copy strong{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;line-height:1.5}
.latest-topic-copy small{color:var(--muted);font-size:10px}
.latest-empty{margin:0}
@media(max-width:1050px) and (min-width:851px){.content-layout{grid-template-columns:minmax(0,1fr) 360px}}


/* ضبط المساحة بعد حذف مقدمة الصفحة */
.ad-slot:first-of-type{margin-top:18px}
@media(min-width:1060px){
  .content-layout{align-items:start}
}


/* الإعلانات المُدارة من لوحة التحكم */
.managed-ad-slot{
    width:100%;
    margin:22px 0;
    padding:12px;
    overflow:hidden;
    text-align:center;
    background:#fafbfc;
    border:1px dashed #cbd3df;
    border-radius:14px;
}
.managed-ad-slot:empty{display:none}
.managed-ad-slot ins{max-width:100%}
.sidebar-managed-ad,.most-read-managed-ad{margin:16px 0}
.post-title-ad{margin:20px 0}
.post-middle-ad{margin:28px 0}
.post-bottom-ad{margin:30px 0 0}

/* الأكثر قراءة ومشاهدة */
.most-viewed-widget h3{
    margin:0 0 8px;
    padding-bottom:9px;
    border-bottom:2px solid var(--blue2);
}
.most-viewed-list{display:flex;flex-direction:column}
.most-viewed-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:11px 0;
    border-bottom:1px solid var(--line);
    transition:.2s;
}
.most-viewed-item:last-child{border-bottom:0}
.most-viewed-item:hover{transform:translateX(3px)}
.most-viewed-item img{
    width:72px;
    height:58px;
    flex:0 0 72px;
    display:block;
    object-fit:cover;
    border-radius:10px;
    background:#eef2f7;
}
.most-viewed-copy{
    min-width:0;
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    gap:3px;
    text-align:right;
}
.most-viewed-copy strong{
    display:-webkit-box;
    overflow:hidden;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    font-size:13px;
    line-height:1.5;
}
.most-viewed-copy small{color:var(--muted);font-size:10px}


.faq-public{margin-top:32px}.faq-public details{border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin:10px 0}.faq-public summary{font-weight:800;cursor:pointer}.related-posts{margin-top:34px}.related-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.related-grid a{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}.related-grid img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}.related-grid strong{display:block;padding:10px 12px;font-size:14px}.cover{aspect-ratio:16/9}
@media(max-width:650px){.related-grid{grid-template-columns:1fr}}

/* =========================================================
   MTA TECH — الهيدر المصغر
   ========================================================= */

.topbar{
    display:none !important;
}

.site-header-compact{
    background:#fff;
    border-bottom:1px solid var(--line);
}

.brand-area{
    padding:0 !important;
    background:#fff;
    border-bottom:1px solid #edf1f6;
}

.brand-inner{
    min-height:116px;
    height:116px;
    position:relative;
    display:flex !important;
    align-items:center;
    justify-content:flex-start !important;
    overflow:hidden;
}

.brand-logo-link{
    display:block !important;
    width:430px;
    max-width:58%;
    height:98px;
    flex:0 0 auto;
    background-image:url('../img/mta-tech-logo.png');
    background-repeat:no-repeat;
    background-position:right center;
    background-size:contain;
}

.brand-logo-link .brand-mark,
.brand-logo-link small{
    display:none !important;
}

.search-compact{
    position:absolute;
    left:0;
    bottom:10px;
    width:220px !important;
    height:34px;
    display:flex !important;
    align-items:center;
    background:#f4f6f9;
    border:1px solid #e3e8ef;
    border-radius:999px;
    overflow:hidden;
    box-shadow:none;
}

.search-compact input{
    height:32px;
    padding:5px 12px !important;
    font-size:12px;
    line-height:1;
}

.search-compact button{
    height:32px;
    min-width:38px;
    padding:0 10px !important;
    font-size:17px;
    cursor:pointer;
}

.main-nav{
    background:#fff;
    border-top:0 !important;
    border-bottom:1px solid var(--line);
    box-shadow:0 5px 16px rgba(17,24,39,.035) !important;
}

.nav-scroll{
    min-height:52px;
    display:flex;
    align-items:center;
    gap:30px;
    padding:10px 0 !important;
}

.page-shell{
    padding-top:26px !important;
}

@media(max-width:1050px) and (min-width:851px){
    .brand-inner{
        height:104px;
        min-height:104px;
    }

    .brand-logo-link{
        width:360px;
        max-width:58%;
        height:88px;
    }

    .search-compact{
        width:200px !important;
        bottom:9px;
    }
}

@media(max-width:850px){
    .brand-inner{
        height:98px;
        min-height:98px;
        justify-content:center !important;
    }

    .brand-logo-link{
        width:330px;
        max-width:82%;
        height:78px;
        background-position:center;
    }

    .search-compact{
        width:170px !important;
        height:30px;
        bottom:6px;
        left:8px;
    }

    .search-compact input{
        height:28px;
        font-size:11px;
        padding:4px 10px !important;
    }

    .search-compact button{
        height:28px;
        min-width:34px;
        font-size:15px;
    }

    .nav-scroll{
        min-height:46px;
        gap:22px;
        padding:8px 0 !important;
        font-size:14px;
    }
}

@media(max-width:560px){
    .brand-inner{
        height:90px;
        min-height:90px;
        align-items:flex-start;
        padding-top:7px;
    }

    .brand-logo-link{
        width:270px;
        max-width:88%;
        height:66px;
    }

    .search-compact{
        left:50%;
        transform:translateX(-50%);
        width:185px !important;
        bottom:4px;
    }

    .page-shell{
        padding-top:18px !important;
    }
}


/* =========================================================
   MTA TECH — إصلاح نهائي للشعار والهيدر
   الشعار يمين + أكبر درجتين + البحث يسار داخل شريط الأقسام
   ========================================================= */

.brand-area{
    display:block !important;
    padding:0 !important;
    background:#fff !important;
    border-bottom:1px solid #edf1f6 !important;
}

.brand-inner{
    height:92px !important;
    min-height:92px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important; /* RTL = أقصى اليمين */
    overflow:hidden !important;
}

.brand-logo-link{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:265px !important;
    max-width:34vw !important;
    height:84px !important;
    background:none !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
}

.brand-logo-link img{
    display:block !important;
    width:auto !important;
    height:78px !important;
    max-width:255px !important;
    max-height:78px !important;
    object-fit:contain !important;
    object-position:right center !important;
}

/* شريط الأقسام */
.main-nav{
    background:linear-gradient(90deg,#0b3e88,#0c4f9e) !important;
    border:0 !important;
    box-shadow:none !important;
}

.nav-wrap{
    min-height:62px !important;
    display:flex !important;
    align-items:center !important;
    gap:26px !important;
    padding:0 !important;
}

/* الروابط تبقى جهة اليمين/الوسط */
.nav-scroll{
    display:flex !important;
    align-items:center !important;
    gap:34px !important;
    padding:0 !important;
    color:#fff !important;
    white-space:nowrap !important;
}

.nav-scroll a{
    color:#fff !important;
    padding:18px 0 !important;
}

.nav-scroll a:hover{
    color:#dcecff !important;
}

/* البحث داخل نفس الشريط وأقصى اليسار */
.nav-search{
    display:flex !important;
    align-items:center !important;
    margin-right:auto !important;
    margin-left:0 !important;
    width:310px !important;
    height:42px !important;
    background:#fff !important;
    border:1px solid rgba(255,255,255,.5) !important;
    border-radius:999px !important;
    overflow:hidden !important;
    box-shadow:0 4px 14px rgba(0,0,0,.10) !important;
}

.nav-search input{
    width:100% !important;
    height:40px !important;
    padding:7px 15px !important;
    border:0 !important;
    outline:0 !important;
    background:transparent !important;
    font-size:13px !important;
}

.nav-search button{
    display:block !important;
    height:40px !important;
    min-width:44px !important;
    padding:0 12px !important;
    border:0 !important;
    background:transparent !important;
    font-size:18px !important;
    cursor:pointer !important;
}

/* لا يوجد سطر بحث منفصل */
.search-compact{
    display:none !important;
}

.page-shell{
    padding-top:28px !important;
}

/* شاشات متوسطة */
@media(max-width:1050px) and (min-width:851px){
    .brand-inner{
        height:86px !important;
        min-height:86px !important;
    }

    .brand-logo-link{
        width:240px !important;
        height:78px !important;
    }

    .brand-logo-link img{
        height:72px !important;
        max-width:230px !important;
    }

    .nav-search{
        width:260px !important;
    }

    .nav-scroll{
        gap:24px !important;
    }
}

/* الجوال */
@media(max-width:850px){
    .brand-inner{
        height:76px !important;
        min-height:76px !important;
    }

    .brand-logo-link{
        width:215px !important;
        max-width:68vw !important;
        height:68px !important;
    }

    .brand-logo-link img{
        height:62px !important;
        max-width:205px !important;
    }

    .nav-wrap{
        min-height:56px !important;
        gap:12px !important;
    }

    .nav-scroll{
        flex:1 1 auto !important;
        overflow:auto !important;
        gap:20px !important;
        font-size:14px !important;
    }

    .nav-search{
        flex:0 0 185px !important;
        width:185px !important;
        height:36px !important;
    }

    .nav-search input{
        height:34px !important;
        font-size:11px !important;
        padding:5px 10px !important;
    }

    .nav-search button{
        height:34px !important;
        min-width:36px !important;
        font-size:15px !important;
        padding:0 8px !important;
    }
}

/* الجوال الصغير */
@media(max-width:560px){
    .brand-inner{
        height:70px !important;
        min-height:70px !important;
    }

    .brand-logo-link{
        width:190px !important;
        height:62px !important;
    }

    .brand-logo-link img{
        height:56px !important;
        max-width:180px !important;
    }

    .nav-search{
        flex-basis:145px !important;
        width:145px !important;
    }

    .nav-scroll{
        gap:15px !important;
    }

    .nav-scroll a{
        font-size:13px !important;
    }
}


/* =========================================================
   تكبير الشعار 4 درجات - دون تغيير بقية الهيدر
   ========================================================= */
.brand-inner{
    height:108px !important;
    min-height:108px !important;
}

.brand-logo-link{
    width:345px !important;
    max-width:42vw !important;
    height:100px !important;
}

.brand-logo-link img{
    width:auto !important;
    height:94px !important;
    max-width:335px !important;
    max-height:94px !important;
    object-fit:contain !important;
    object-position:right center !important;
}

/* شاشات متوسطة */
@media(max-width:1050px) and (min-width:851px){
    .brand-inner{
        height:100px !important;
        min-height:100px !important;
    }
    .brand-logo-link{
        width:310px !important;
        height:92px !important;
    }
    .brand-logo-link img{
        height:86px !important;
        max-width:300px !important;
        max-height:86px !important;
    }
}

/* الجوال */
@media(max-width:850px){
    .brand-inner{
        height:88px !important;
        min-height:88px !important;
    }
    .brand-logo-link{
        width:265px !important;
        max-width:72vw !important;
        height:80px !important;
    }
    .brand-logo-link img{
        height:74px !important;
        max-width:255px !important;
        max-height:74px !important;
    }
}

/* الجوال الصغير */
@media(max-width:560px){
    .brand-inner{
        height:80px !important;
        min-height:80px !important;
    }
    .brand-logo-link{
        width:230px !important;
        height:72px !important;
    }
    .brand-logo-link img{
        height:66px !important;
        max-width:220px !important;
        max-height:66px !important;
    }
}


/* تكبير إضافي درجتين */
.brand-inner{height:116px!important;min-height:116px!important;}
.brand-logo-link{width:380px!important;height:108px!important;max-width:45vw!important;}
.brand-logo-link img{
height:102px!important;
max-height:102px!important;
max-width:370px!important;
width:auto!important;
object-fit:contain!important;
object-position:right center!important;
}


/* =========================================================
   تمييز عناوين الأقسام بشريط شفاف أنيق
   أحدث المقالات + آخر المواضيع + الأكثر قراءة ومشاهدة
   ========================================================= */

/* عنوان أحدث المقالات */
.section-title{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:58px;
    margin-bottom:20px !important;
    padding:10px 18px !important;
    border:1px solid rgba(37,99,168,.14) !important;
    border-bottom:1px solid rgba(37,99,168,.22) !important;
    border-radius:16px;
    background:
        linear-gradient(90deg,rgba(37,99,168,.08),rgba(255,255,255,.70),rgba(37,99,168,.035));
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    box-shadow:0 8px 24px rgba(23,63,122,.06);
    overflow:hidden;
}

.section-title::before{
    content:"";
    position:absolute;
    right:0;
    top:0;
    bottom:0;
    width:5px;
    background:linear-gradient(180deg,var(--blue2),#4aa8ff);
    border-radius:0 16px 16px 0;
}

.section-title h1,
.section-title h2{
    margin:0 !important;
    position:relative;
    z-index:1;
    font-size:30px;
    line-height:1.35;
}

.section-title span{
    margin:0 !important;
    position:relative;
    z-index:1;
    color:var(--muted);
    font-size:13px;
}

/* آخر المواضيع + الأكثر قراءة ومشاهدة */
.latest-topics-widget > h3,
.most-viewed-widget > h3{
    position:relative;
    min-height:50px;
    display:flex;
    align-items:center;
    margin:-2px -2px 14px !important;
    padding:10px 16px !important;
    border:1px solid rgba(37,99,168,.13) !important;
    border-bottom:1px solid rgba(37,99,168,.20) !important;
    border-radius:14px;
    background:
        linear-gradient(90deg,rgba(37,99,168,.09),rgba(255,255,255,.78),rgba(37,99,168,.035));
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    box-shadow:0 7px 20px rgba(23,63,122,.055);
    overflow:hidden;
}

.latest-topics-widget > h3::before,
.most-viewed-widget > h3::before{
    content:"";
    position:absolute;
    right:0;
    top:0;
    bottom:0;
    width:4px;
    background:linear-gradient(180deg,var(--blue2),#4aa8ff);
    border-radius:0 14px 14px 0;
}

/* لمسة سفلى دقيقة بدلاً من الخط الأزرق القديم */
.latest-topics-widget > h3::after,
.most-viewed-widget > h3::after,
.section-title::after{
    content:"";
    position:absolute;
    right:18px;
    bottom:0;
    width:72px;
    height:2px;
    border-radius:4px;
    background:linear-gradient(90deg,var(--blue2),rgba(37,99,168,0));
}

/* الجوال */
@media(max-width:850px){
    .section-title{
        min-height:52px;
        padding:9px 14px !important;
        border-radius:14px;
    }

    .section-title h1,
    .section-title h2{
        font-size:24px;
    }

    .latest-topics-widget > h3,
    .most-viewed-widget > h3{
        min-height:46px;
        padding:9px 13px !important;
        border-radius:12px;
    }
}


/* =========================================================
   بطاقة الأقسام — هوية زجاجية متناسقة مع الموقع
   ========================================================= */

.categories-widget{
    position:relative;
    overflow:hidden;
    border:1px solid rgba(37,99,168,.13) !important;
    background:
        linear-gradient(145deg,rgba(255,255,255,.96),rgba(242,248,255,.88)) !important;
    box-shadow:0 10px 28px rgba(23,63,122,.06);
}

/* عنوان الأقسام بنفس هوية بقية العناوين ولكن بلمسة أغمق */
.categories-widget > h3{
    position:relative;
    min-height:50px;
    display:flex;
    align-items:center;
    margin:-2px -2px 14px !important;
    padding:10px 16px !important;
    border:1px solid rgba(37,99,168,.14) !important;
    border-bottom:1px solid rgba(37,99,168,.22) !important;
    border-radius:14px;
    color:#123663;
    background:
        linear-gradient(90deg,rgba(23,63,122,.14),rgba(37,99,168,.075),rgba(255,255,255,.84));
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    box-shadow:0 7px 20px rgba(23,63,122,.055);
    overflow:hidden;
}

.categories-widget > h3::before{
    content:"";
    position:absolute;
    right:0;
    top:0;
    bottom:0;
    width:4px;
    background:linear-gradient(180deg,#173f7a,#35a8ff);
    border-radius:0 14px 14px 0;
}

.categories-widget > h3::after{
    content:"";
    position:absolute;
    right:18px;
    bottom:0;
    width:72px;
    height:2px;
    border-radius:4px;
    background:linear-gradient(90deg,#2563a8,rgba(37,99,168,0));
}

.categories-list{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.categories-widget .cat-link{
    position:relative;
    display:grid;
    grid-template-columns:34px 1fr 24px;
    align-items:center;
    gap:10px;
    min-height:48px;
    padding:9px 12px !important;
    border:1px solid rgba(37,99,168,.08) !important;
    border-radius:12px;
    background:rgba(255,255,255,.78);
    transition:transform .22s ease,background .22s ease,border-color .22s ease,box-shadow .22s ease;
    overflow:hidden;
}

.categories-widget .cat-link::before{
    content:"";
    position:absolute;
    right:0;
    top:8px;
    bottom:8px;
    width:3px;
    border-radius:4px;
    background:linear-gradient(180deg,#2563a8,#4ab8ff);
    opacity:.28;
    transition:.22s;
}

.categories-widget .cat-link:hover{
    transform:translateX(-3px);
    background:linear-gradient(90deg,rgba(224,240,255,.92),rgba(255,255,255,.96));
    border-color:rgba(37,99,168,.22) !important;
    box-shadow:0 7px 18px rgba(23,63,122,.07);
    color:#173f7a;
}

.categories-widget .cat-link:hover::before{
    opacity:1;
}

.cat-icon{
    width:30px;
    height:30px;
    display:grid;
    place-items:center;
    border-radius:9px;
    color:#fff;
    background:linear-gradient(145deg,#173f7a,#2b70bd);
    box-shadow:0 5px 12px rgba(23,63,122,.16);
    font-size:13px;
}

.cat-name{
    min-width:0;
    font-size:15px;
    font-weight:700;
}

.cat-arrow{
    color:#2563a8;
    font-size:15px;
    transition:.22s;
}

.categories-widget .cat-link:hover .cat-arrow{
    transform:translateX(-3px);
}

/* الجوال */
@media(max-width:850px){
    .categories-widget > h3{
        min-height:46px;
        padding:9px 13px !important;
        border-radius:12px;
    }

    .categories-widget .cat-link{
        min-height:46px;
        grid-template-columns:32px 1fr 22px;
        padding:8px 10px !important;
    }

    .cat-icon{
        width:28px;
        height:28px;
    }
}


/* تجهيزات ما قبل الإطلاق */
.error-page{text-align:center;padding:50px 20px}
.error-code{font-size:clamp(72px,13vw,140px);font-weight:900;line-height:1;color:var(--blue2);opacity:.16}
.trust-page h2{margin-top:30px}
.admin-link-danger{border:0;background:transparent;color:#b42318;font:inherit;cursor:pointer;padding:0}
@media(max-width:480px){
  .container{width:min(100% - 20px,1180px)}
  .article-content{font-size:16px}
  .single-post h1{font-size:28px}
}


/* ===== تحسينات الإطلاق العالمي ===== */
img{max-width:100%}
:focus-visible{outline:3px solid rgba(37,99,168,.35);outline-offset:3px;border-radius:6px}
.pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin:32px 0 8px;flex-wrap:wrap}
.pagination a,.pagination span{padding:9px 14px;border:1px solid var(--line);border-radius:10px;background:#fff}
.pagination a{color:var(--blue2);font-weight:800}
.author-box{margin-top:34px;padding:20px;border:1px solid rgba(37,99,168,.15);border-radius:16px;background:linear-gradient(135deg,#fff,#f5f9ff)}
.author-box strong{font-size:18px}.author-box p{margin:6px 0;color:var(--muted)}.author-box a{color:var(--blue2);font-weight:800}
.form-note{color:var(--muted);font-size:12px}
.article-content{overflow-wrap:anywhere}.article-content pre{max-width:100%;overflow:auto}.article-content table{display:block;max-width:100%;overflow:auto;border-collapse:collapse}.article-content iframe,.article-content video{max-width:100%}
@media(max-width:850px){
 .nav-wrap{gap:10px!important}.nav-search{width:210px!important;flex:0 0 210px!important}.nav-scroll{min-width:0;overflow-x:auto!important;scrollbar-width:thin}
 .content-layout{gap:18px}.widget{padding:16px}.single-post{width:100%}
}
@media(max-width:600px){
 .brand-inner{height:92px!important;min-height:92px!important}.brand-logo-link{width:245px!important;max-width:72vw!important;height:84px!important}.brand-logo-link img{height:78px!important;max-height:78px!important;max-width:235px!important}
 .main-nav .container{width:calc(100% - 20px)}.nav-wrap{display:grid!important;grid-template-columns:minmax(0,1fr) 150px!important;align-items:center!important}.nav-search{width:150px!important;flex:none!important;height:36px!important}.nav-search input{font-size:11px!important;padding:6px 9px!important}.nav-search button{min-width:34px!important;padding:0 8px!important}.nav-scroll{gap:18px!important;padding:9px 0!important}.nav-scroll a{font-size:13px!important}
 .section-title h1,.section-title h2{font-size:23px!important}.section-title{align-items:center!important}.post-strip{padding:12px 0}.post-copy p{font-size:14px}.single-post h1{font-size:28px!important}.article-content{font-size:16px!important}.site-footer{padding-top:32px}
}

.admin-alert{padding:13px 16px;border-radius:12px;margin:12px 0}.admin-alert-success{background:#ecfdf3;color:#067647;border:1px solid #abefc6}.admin-alert-error{background:#fef3f2;color:#b42318;border:1px solid #fecdca}


/* =========================================================
   MTA TECH — هوية الصور الدائرية
   صور أحدث المقالات + آخر المواضيع + الأكثر مشاهدة
   ========================================================= */

/* أحدث المقالات: تحويل الصورة الرئيسية إلى أيقونة دائرية مميزة */
.post-strip{
    grid-template-columns:minmax(0,1fr) 156px !important;
    gap:24px !important;
}

.post-strip .thumb{
    width:142px !important;
    height:142px !important;
    aspect-ratio:1/1 !important;
    border-radius:50% !important;
    justify-self:center;
    overflow:hidden !important;
    padding:5px;
    background:
        linear-gradient(#fff,#fff) padding-box,
        linear-gradient(145deg,#173f7a,#35a8ff) border-box !important;
    border:2px solid transparent;
    box-shadow:
        0 10px 26px rgba(23,63,122,.12),
        0 0 0 5px rgba(37,99,168,.035);
    transition:transform .28s ease, box-shadow .28s ease;
}

.post-strip .thumb img{
    width:100% !important;
    height:100% !important;
    aspect-ratio:1/1 !important;
    border-radius:50% !important;
    object-fit:cover !important;
    transition:transform .35s ease !important;
}

.post-strip .thumb:hover{
    transform:translateY(-3px);
    box-shadow:
        0 15px 32px rgba(23,63,122,.17),
        0 0 0 6px rgba(53,168,255,.06);
}

.post-strip .thumb:hover img{
    transform:scale(1.06) !important;
}

/* آخر المواضيع: صور كروية صغيرة */
.latest-topic-thumb{
    width:62px !important;
    height:62px !important;
    flex:0 0 62px !important;
    border-radius:50% !important;
    object-fit:cover !important;
    padding:3px;
    border:2px solid rgba(37,99,168,.22);
    background:#fff;
    box-shadow:0 6px 16px rgba(23,63,122,.09);
    transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}

.latest-topic-item:hover .latest-topic-thumb{
    transform:scale(1.06);
    border-color:#35a8ff;
    box-shadow:0 8px 20px rgba(23,63,122,.14);
}

/* الأكثر قراءة: نفس الهوية حتى لا يبدو السايدبار غير متناسق */
.most-viewed-item img{
    width:58px !important;
    height:58px !important;
    flex:0 0 58px !important;
    border-radius:50% !important;
    object-fit:cover !important;
    padding:3px;
    border:2px solid rgba(37,99,168,.18);
    background:#fff;
    box-shadow:0 5px 14px rgba(23,63,122,.08);
    transition:.22s ease;
}

.most-viewed-item:hover img{
    transform:scale(1.06);
    border-color:#35a8ff;
}

/* يجعل النص والصورة متوازنين أكثر */
.latest-topic-item,
.most-viewed-item{
    min-height:78px;
}

.latest-topic-copy strong,
.most-viewed-copy strong{
    font-size:13px;
    line-height:1.55;
}

/* التابلت */
@media(max-width:1050px) and (min-width:851px){
    .post-strip{
        grid-template-columns:minmax(0,1fr) 138px !important;
        gap:18px !important;
    }

    .post-strip .thumb{
        width:126px !important;
        height:126px !important;
    }
}

/* الجوال */
@media(max-width:850px){
    .post-strip{
        grid-template-columns:minmax(0,1fr) 125px !important;
        gap:16px !important;
    }

    .post-strip .thumb{
        width:112px !important;
        height:112px !important;
    }
}

/* الجوال الصغير: نبقي الصورة دائرية ولا نرجعها مستطيلة */
@media(max-width:600px){
    .post-strip{
        grid-template-columns:1fr !important;
        text-align:right;
    }

    .post-strip .thumb{
        order:-1 !important;
        width:118px !important;
        height:118px !important;
        justify-self:center !important;
        margin-bottom:4px;
    }

    .latest-topic-thumb{
        width:56px !important;
        height:56px !important;
        flex-basis:56px !important;
    }

    .most-viewed-item img{
        width:54px !important;
        height:54px !important;
        flex-basis:54px !important;
    }
}
