/* MADAR - Somar PSU local fonts */
@font-face{font-family:'Somar PSU';src:url('fonts/SomarPSU-Regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:'Somar PSU';src:url('fonts/SomarPSU-Medium.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap;}
@font-face{font-family:'Somar PSU';src:url('fonts/SomarPSU-SemiBold.woff2') format('woff2');font-style:normal;font-weight:600;font-display:swap;}
@font-face{font-family:'Somar PSU';src:url('fonts/SomarPSU-Bold.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap;}
@font-face{font-family:'Somar PSU';src:url('fonts/SomarPSU-ExtraBold.woff2') format('woff2');font-style:normal;font-weight:800;font-display:swap;}
@font-face{font-family:'Somar PSU';src:url('fonts/SomarPSU-Black.woff2') format('woff2');font-style:normal;font-weight:900;font-display:swap;}

:root{--ink:#122c38;--green:#087b68;--paper:#faf9f5;--muted:#64767d;--line:#e2e5e0}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Cairo,Tahoma,Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}.micro{background:#122c38;color:#e2ebe7;display:flex;justify-content:space-between;padding:8px max(5vw,18px);font-size:12px}header{background:#fff;display:flex;align-items:center;gap:25px;padding:19px 5vw;border-bottom:1px solid var(--line)}.brand{font-weight:800;font-size:32px;white-space:nowrap}.brand small{font:10px Arial;letter-spacing:4px;display:block;text-align:center}.mark{color:var(--green)}nav{display:flex;gap:19px;flex-wrap:wrap;font-size:13px;font-weight:700}nav a:hover,.adminlink:hover{color:var(--green)}.adminlink{margin-right:auto;font-size:12px;white-space:nowrap}.ticker{display:flex;background:#e8f1ec;gap:20px;padding:10px 5vw;font-size:13px}.ticker b{color:#b4232c}main{max-width:1250px;margin:auto;padding:0 28px}.hero{min-height:400px;background:var(--ink);color:white;margin:30px 0 50px;border-radius:8px;padding:75px 7%;position:relative;overflow:hidden}.hero h1{font-size:clamp(35px,5vw,66px);max-width:650px;margin:12px 0}.hero p{color:#cad6d5;max-width:650px}.eyebrow{color:#48bca0;letter-spacing:2px;font:700 12px Arial}.heroactions{display:flex;gap:12px;margin-top:30px;flex-wrap:wrap}.button{display:inline-block;background:var(--green);color:white;border:0;padding:11px 24px;border-radius:5px;font-weight:700}.ghost{background:transparent;border:1px solid #80a99d;color:inherit}.orbit{position:absolute;left:5%;top:0;font-size:360px;line-height:1;color:#19776533;pointer-events:none}.section{margin-bottom:65px}.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:35px 0 22px}.sectionhead h2{font-size:30px;margin:5px 0}.sectionhead span{font-size:13px;color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card{background:white;border:1px solid var(--line);padding:24px;border-radius:7px;min-height:245px;display:flex;flex-direction:column;transition:transform .25s,box-shadow .25s}.card:hover{transform:translateY(-4px);box-shadow:0 14px 40px #10253612}.cardtop,.cardfoot{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:12px}.badge{background:#e2f3ed;color:#087b68;border-radius:3px;padding:4px 9px;font-size:12px;font-weight:700}.card h3{font-size:21px;line-height:1.6;margin:16px 0 8px}.card p{font-size:14px;line-height:1.9;color:#61717a}.cardfoot{margin-top:auto;padding-top:15px;border-top:1px solid var(--line)}.cardfoot a{color:var(--green);font-weight:700}.newsletter{background:#e9f0e9;text-align:center;padding:60px 20px;margin:50px 0}.newsletter h2{font-size:32px}.article{max-width:790px;margin:70px auto}.article h1{font-size:clamp(30px,4vw,49px);line-height:1.5}.byline{color:var(--muted);border-bottom:1px solid var(--line);padding-bottom:25px}.lead{font-size:21px;font-weight:700;line-height:1.9}.bodytext{white-space:pre-line;font-size:18px;line-height:2.2;margin:30px 0}.notice{background:#fff3dc;padding:16px;margin-top:35px;font-size:13px}.formwrap{max-width:530px;margin:65px auto;background:white;padding:35px;border:1px solid var(--line)}.formwrap.wide{max-width:850px}.formwrap label,.panel label{display:block;font-weight:700;margin:15px 0;font-size:13px}input,textarea,select{display:block;width:100%;padding:11px;border:1px solid #cbd5d1;border-radius:4px;margin-top:7px;background:white;color:var(--ink)}textarea{min-height:110px}.check input{display:inline;width:auto}.dashboard{display:grid;grid-template-columns:1fr 1fr;gap:20px}.panel{background:white;padding:26px;margin:20px 0;border:1px solid var(--line)}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%}td,th{padding:12px;text-align:right;border-bottom:1px solid var(--line)}.inline{display:inline}.danger{border:0;background:#fee;color:#a22;padding:5px}.alert{padding:12px;background:#fee;color:#a22}.empty{padding:40px;background:white}footer{background:#122c38;color:white;padding:40px 5vw;margin-top:70px}footer p{font-size:13px;color:#b9cdce}@media(max-width:850px){header{flex-wrap:wrap}nav{order:3;width:100%;overflow-x:auto;flex-wrap:nowrap;padding:5px 0}.grid{grid-template-columns:1fr 1fr}.dashboard{grid-template-columns:1fr}.orbit{opacity:.25}}@media(max-width:560px){main{padding:0 14px}.micro span:last-child{display:none}.grid{grid-template-columns:1fr}.hero{padding:50px 25px}.hero h1{font-size:34px}.orbit{display:none}header{padding:15px}.sectionhead h2{font-size:24px}}



/* MADAR — image display update: append to static/css/site.css */
.card{overflow:hidden}
.card-image{display:block;margin:-24px -24px 18px;aspect-ratio:16/10;overflow:hidden;background:#e8eeeb}
.card-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.card:hover .card-image img{transform:scale(1.035)}
.article-image{margin:28px 0 30px}
.article-image img{display:block;width:100%;height:auto;max-height:550px;object-fit:contain;border-radius:8px;background:#eef1ee}
.article-image figcaption{margin-top:8px;color:var(--muted);font-size:12px}
@media(max-width:560px){.card-image{margin:-24px -24px 16px}.article-image{margin:22px 0}}


/* MADAR featured lead — add to end of static/css/site.css */
.madar-lead{display:grid;grid-template-columns:1.2fr 1fr;direction:ltr;min-height:365px;margin:30px 0 50px;background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden}
.madar-lead-photo{display:block;min-height:365px;background:#e8eeeb;overflow:hidden}
.madar-lead-photo img{width:100%;height:100%;min-height:365px;object-fit:cover;display:block;transition:transform .35s}
.madar-lead-photo:hover img{transform:scale(1.025)}
.madar-lead-copy{direction:rtl;text-align:right;display:flex;flex-direction:column;justify-content:center;padding:35px 36px}
.madar-lead-copy h1{font-size:clamp(25px,2.8vw,39px);line-height:1.55;margin:16px 0}
.madar-lead-copy h1 a:hover{color:var(--green)}
.madar-lead-copy p{font-size:15px;line-height:1.95;color:var(--muted);margin:0 0 18px}
.madar-lead-meta{font-size:12px;color:var(--muted)}
.madar-lead-link{font-weight:700;color:var(--green);margin-top:22px}
.madar-lead-empty{background:#f0f5f2;padding:55px 7%;margin:30px 0 50px;border-radius:8px}
.madar-lead-empty h1{font-size:clamp(27px,4vw,48px)}
@media(max-width:750px){.madar-lead{grid-template-columns:1fr}.madar-lead-photo,.madar-lead-photo img{min-height:0;height:250px}.madar-lead-copy{padding:24px}.madar-lead-copy h1{font-size:27px}}

/* MADAR — Arabic Typography Update */



body,
button,
input,
textarea,
select {
    font-family: 'IBM Plex Sans Arabic', Tahoma, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 700;
    line-height: 1.6;
}

nav,
.card,
.article {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}
/* MADAR home layout — light editorial theme */
html{color-scheme:light}
body{background:#fff;color:#122c38}
main{width:100%;max-width:1250px;margin-inline:auto;padding-inline:28px}
.madar-lead{background:#fff;border:1px solid #e2e5e0;box-shadow:0 12px 35px rgba(18,44,56,.06);grid-template-columns:1.12fr 1fr;min-height:0;margin:28px 0 42px}
.madar-lead-photo{min-height:320px}
.madar-lead-photo img{min-height:320px;height:100%;max-height:470px;object-fit:cover}
.madar-lead-copy{background:#fff;color:#122c38;padding:28px 32px}
.madar-lead-copy h1{font-size:clamp(23px,2.4vw,33px);line-height:1.55;margin:12px 0}
.madar-lead-copy p{font-size:14px;line-height:1.85;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.madar-lead-copy .badge{align-self:flex-start}
.section{margin-bottom:50px}
.sectionhead{margin:22px 0 20px}
.sectionhead h2{font-size:clamp(23px,2.4vw,30px)}
.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.card{background:#fff;color:#122c38;border:1px solid #e2e5e0;padding:20px;min-height:0}
.card-image{margin:-20px -20px 16px}
.card h3{font-size:19px;line-height:1.65;margin:12px 0 8px}
.card p{font-size:13px;line-height:1.85}
.newsletter{background:#eef6f2;color:#122c38;border-radius:8px}
@media(max-width:850px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){.madar-lead{grid-template-columns:1fr}.madar-lead-photo,.madar-lead-photo img{min-height:0;height:260px}.madar-lead-copy{padding:22px}}
@media(max-width:560px){main{padding-inline:14px}.grid{grid-template-columns:1fr}.card-image{margin:-20px -20px 16px}}


/* MADAR font-only override: preserve existing layout, colors and sizing. */
html, body, body *, button, input, textarea, select {font-family:'Somar PSU',Tahoma,Arial,sans-serif !important;}
body {font-weight:400;}
nav, button, .button, input, textarea, select {font-weight:500;}
h1, h2, h3, h4, h5, h6, .brand {font-weight:700;}
.card h3, .sectionhead h2 {font-weight:600;}


/* MADAR social section: standalone styles, preserving the existing site design */
.madar-social{display:grid;grid-template-columns:1fr 1fr;gap:clamp(30px,6vw,90px);align-items:start;background:#fff;border:1px solid #e2e5e0;border-radius:10px;padding:clamp(24px,4vw,48px);margin:28px 0 52px;direction:rtl}
.madar-social h2{font-size:clamp(21px,2.2vw,29px);line-height:1.5;margin:0 0 24px;color:#122c38}
.madar-social-networks{text-align:right}
.madar-social-icons{display:flex;flex-wrap:wrap;gap:13px;align-items:center}
.madar-social-icon{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;color:white;font-size:29px;font-weight:700;line-height:1;cursor:default;user-select:none}
.madar-social-icon svg{width:29px;height:29px;display:block}
.madar-social-icon.facebook{background:#1877f2;font-family:Arial,sans-serif!important}
.madar-social-icon.x-twitter{background:#111;font-family:Arial,sans-serif!important}
.madar-social-icon.instagram{background:linear-gradient(35deg,#feda75,#fa7e1e,#d62976,#962fbf);font-family:Arial,sans-serif!important;font-size:38px}
.madar-social-icon.youtube{background:#ff0033}
.madar-social-icon.telegram{background:#28a8ea}
.madar-social-icon.linkedin{background:#0a66c2;font-family:Arial,sans-serif!important;font-size:23px}
.madar-social-whatsapp{text-align:right}
.madar-social-whatsapp h2{display:flex;align-items:center;gap:12px}
.madar-wa-icon{width:48px;height:48px;border-radius:50%;background:#25d366;color:white;display:inline-flex;align-items:center;justify-content:center;font-size:28px}
.madar-wa-button{width:100%;max-width:410px;border:0;border-radius:40px;background:#087b68;color:white;padding:13px 20px;font-size:22px;font-weight:700;opacity:.8;cursor:not-allowed}
.madar-wa-button span{margin-right:10px}
.madar-social-hint{font-size:13px;color:#64767d;margin:14px 0 0}
@media(max-width:750px){.madar-social{grid-template-columns:1fr;gap:30px}.madar-social-icons{gap:10px}.madar-social-icon{width:46px;height:46px}.madar-social h2{margin-bottom:16px}}

/* MADAR: social links managed in admin (additive rules only) */
a.madar-social-icon{cursor:pointer;transition:transform .2s,box-shadow .2s}
a.madar-social-icon:hover,a.madar-social-icon:focus-visible{transform:translateY(-3px);box-shadow:0 5px 14px #122c3825;outline-offset:3px}
a.madar-wa-active{display:inline-flex;align-items:center;justify-content:center;text-align:center;opacity:1;cursor:pointer;text-decoration:none}
a.madar-wa-active:hover{background:#066756;color:#fff}
.madar-social-admin-row{display:grid;grid-template-columns:minmax(0,1fr) 160px;align-items:end;gap:20px;padding:12px 0;border-bottom:1px solid var(--line)}
.madar-social-admin-check{display:flex!important;align-items:center;gap:9px;padding-bottom:11px}
.madar-social-admin-check input{width:auto;margin:0}
@media(max-width:560px){.madar-social-admin-row{grid-template-columns:1fr;gap:0}.madar-social-admin-check{padding-bottom:0}}

/* MADAR advertising banners */
.madar-ad{position:relative;margin:24px auto 36px;max-width:100%;text-align:center;overflow:hidden;border:1px solid #e2e5e0;border-radius:9px;background:#f7faf8;padding:12px}
.madar-ad a{display:block;line-height:0}.madar-ad img{display:block;max-width:100%;width:auto;height:auto;max-height:270px;margin:auto;object-fit:contain;border-radius:5px}
.madar-ad-label{display:block;text-align:right;font-size:11px;color:#75858b;margin:0 0 8px}.madar-ad-article img{max-height:330px}.madar-ad-thumb{width:115px;max-height:60px;object-fit:contain}.madar-ad-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.madar-ad-check{display:flex!important;gap:9px;align-items:center}.madar-ad-check input{width:auto;margin:0}.madar-ads-admin button{margin:3px}@media(max-width:650px){.madar-ad-fields{grid-template-columns:1fr}.madar-ad{margin:16px auto 26px}.madar-ad img{max-height:220px}}

/* MADAR | Aqlam cards - scoped styling */
.madar-pens{background:#293447;color:#fff;border-radius:12px;padding:clamp(24px,4vw,44px);margin:36px 0 50px}.madar-pens-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.madar-pens-heading h2{font-size:clamp(26px,3vw,36px);margin:4px 0}.madar-pens-kicker{font-size:11px;letter-spacing:2px;color:#b7c7da}.madar-pens-more{border:1px solid #8290a5;border-radius:5px;padding:9px 18px;font-weight:600;white-space:nowrap}.madar-pens-more:hover{background:#43516a}.madar-pens-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.madar-pens-card{background:#4b5669;border-radius:9px;padding:22px 18px;min-height:220px;display:flex;flex-direction:column;justify-content:space-between;transition:transform .2s,background .2s}.madar-pens-card:hover{transform:translateY(-4px);background:#59667c}.madar-pens-card h3{color:white;font-size:clamp(17px,1.65vw,22px);line-height:1.55;margin:0 0 25px}.madar-pens-author{display:flex;align-items:center;gap:11px;color:#e1e9f4;font-size:14px}.madar-pens-avatar{width:49px;height:49px;flex:0 0 49px;border-radius:50%;background:#748197;border:2px solid #fff;overflow:hidden;display:flex;align-items:center;justify-content:center;font-size:24px}.madar-pens-avatar img{width:100%;height:100%;object-fit:cover}.madar-pens-empty{grid-column:1/-1;color:#d8e0ec}.madar-article-author{display:flex;align-items:center;gap:12px;margin:15px 0;color:#47566c;font-weight:700}.madar-article-author img{width:55px;height:55px;object-fit:cover;border-radius:50%}@media(max-width:950px){.madar-pens-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.madar-pens{padding:22px 16px}.madar-pens-grid{grid-template-columns:1fr}.madar-pens-card{min-height:170px}}

/* MADAR header search */
.madar-search{position:relative;margin-inline-start:auto}.madar-search-toggle{width:42px;height:42px;display:grid;place-items:center;background:#f0f6f3;border:1px solid #d8e6df;border-radius:50%;color:#087b68}.madar-search-toggle svg{width:21px;height:21px}.madar-search-panel{position:absolute;top:calc(100% + 14px);left:0;width:min(420px,calc(100vw - 28px));background:#fff;border:1px solid #dfe8e3;box-shadow:0 18px 45px #122c3826;border-radius:12px;padding:18px;z-index:50;direction:rtl}.madar-search-panel[hidden]{display:none}.madar-search-panel label{display:block;font-weight:700;margin-bottom:10px}.madar-search-line{display:flex;gap:8px}.madar-search-line input{min-width:0;flex:1;margin:0}.madar-search-line button{background:#087b68;color:white;border:0;border-radius:5px;padding:8px 16px}.madar-search-results{margin-top:10px}.madar-search-result{display:block;padding:10px 6px;border-bottom:1px solid #edf1ee;font-size:15px}.madar-search-result:hover{background:#f2f7f4}.madar-search-result small{display:block;color:#64767d}.madar-search-hint{font-size:13px;color:#64767d;margin:12px 0 0}@media(max-width:850px){.madar-search{margin-inline-start:0}.madar-search-panel{left:auto;right:0}}

/* MADAR full-width glass search overlay */
.madar-search-panel{position:fixed;inset:0;width:100%;height:100dvh;border:0;border-radius:0;padding:0;background:transparent;box-shadow:none;z-index:1000;direction:rtl;overflow-y:auto}
.madar-search-panel[hidden]{display:none}
.madar-search-overlay{position:fixed;inset:0;background:rgba(15,22,34,.78);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.madar-search-content{position:relative;z-index:1;width:min(1050px,calc(100% - 40px));margin:clamp(65px,13vh,135px) auto 30px}
.madar-search-line{display:flex;align-items:center;gap:0;height:82px;background:rgba(235,239,245,.24);border:1px solid rgba(255,255,255,.22);border-radius:0;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);direction:rtl}
.madar-search-line input{flex:1;min-width:0;width:100%;height:100%;border:0;outline:0;box-shadow:none;background:transparent;color:#fff;font-size:clamp(25px,3vw,37px);font-weight:600;padding:0 12px;margin:0;text-align:right;direction:rtl}
.madar-search-line input::placeholder{color:#fff;opacity:.95}
.madar-search-line input::-webkit-search-cancel-button{display:none}
.madar-search-line .madar-search-submit,.madar-search-line .madar-search-close{flex:0 0 auto;display:grid;place-items:center;width:76px;height:100%;padding:0;border:0;border-radius:0;background:transparent;color:#fff}
.madar-search-submit svg{width:37px;height:37px}
.madar-search-line .madar-search-close{font:400 43px Arial,sans-serif!important;line-height:1}
.madar-search-line button:hover{background:rgba(255,255,255,.12)}
.madar-search-results{margin-top:12px;background:rgba(31,42,59,.94);border-radius:4px;overflow:hidden;color:#fff}
.madar-search-results:empty{display:none}
.madar-search-result{color:#fff;border-bottom:1px solid rgba(255,255,255,.15);padding:12px 18px}
.madar-search-result:hover{background:rgba(255,255,255,.12)}
.madar-search-result small,.madar-search-hint{color:#cbd6e4}
.madar-search-hint{padding:8px 18px}
@media(max-width:560px){.madar-search-content{width:calc(100% - 24px);margin-top:75px}.madar-search-line{height:66px}.madar-search-line .madar-search-submit,.madar-search-line .madar-search-close{width:56px}.madar-search-submit svg{width:28px;height:28px}.madar-search-line input{font-size:24px;padding:0 4px}}

/* MADAR theme switch: isolated and reversible */
.madar-theme-switch{display:inline-flex;align-items:center;gap:2px;padding:4px;border-radius:28px;background:#e9eef1;border:1px solid #d5dfe4;direction:ltr;flex:0 0 auto}
.madar-theme-option{width:37px;height:37px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:#52616d;padding:7px;transition:background .2s,color .2s}
.madar-theme-option svg{width:23px;height:23px}
html[data-theme="light"] .madar-theme-option[data-set-theme="light"],html[data-theme="dark"] .madar-theme-option[data-set-theme="dark"]{background:#758394;color:white;box-shadow:0 1px 4px #0002}
.madar-theme-option:focus-visible{outline:2px solid #087b68;outline-offset:2px}
@media(max-width:560px){.madar-theme-option{width:31px;height:31px;padding:5px}.madar-theme-switch{padding:3px}}
/* Dark palette. Explicit overrides for original light-only components. */
html[data-theme="dark"]{color-scheme:dark;--ink:#e9f1f5;--paper:#1c2434;--muted:#afbfcc;--line:#405064;--green:#36b79b}
html[data-theme="dark"] body{background:#1c2434;color:#e9f1f5}
html[data-theme="dark"] header,html[data-theme="dark"] .card,html[data-theme="dark"] .panel,html[data-theme="dark"] .formwrap,html[data-theme="dark"] .madar-lead,html[data-theme="dark"] .madar-lead-copy,html[data-theme="dark"] .madar-social{background:#303b4d;color:#edf4fa;border-color:#465469}
html[data-theme="dark"] .card h3,html[data-theme="dark"] .madar-lead-copy h1,html[data-theme="dark"] .madar-social h2,html[data-theme="dark"] .sectionhead h2{color:#f3f7fb}
html[data-theme="dark"] .card p,html[data-theme="dark"] .madar-lead-copy p,html[data-theme="dark"] .madar-social-hint,html[data-theme="dark"] .byline,html[data-theme="dark"] .cardtop,html[data-theme="dark"] .cardfoot,html[data-theme="dark"] .sectionhead span,html[data-theme="dark"] .madar-lead-meta{color:#b9c8d4}
html[data-theme="dark"] .ticker{background:#263648;color:#eaf3f6}
html[data-theme="dark"] .micro,html[data-theme="dark"] footer{background:#121a28}
html[data-theme="dark"] .newsletter,html[data-theme="dark"] .madar-lead-empty,html[data-theme="dark"] .empty{background:#303b4d;color:#edf4fa}
html[data-theme="dark"] .madar-lead-empty h1{color:#f3f7fb}
html[data-theme="dark"] .badge{background:#234d4a;color:#a0f3dd}
html[data-theme="dark"] .madar-search-toggle{background:#39495b;border-color:#5c6c7d;color:#b9eee1}
html[data-theme="dark"] .madar-theme-switch{background:#29364a;border-color:#526078}
html[data-theme="dark"] .madar-theme-option{color:#c5d4e3}
html[data-theme="dark"] .madar-theme-option[data-set-theme="dark"]{background:#718096;color:white}
html[data-theme="dark"] input,html[data-theme="dark"] textarea,html[data-theme="dark"] select{background:#253346;color:#f4f7fb;border-color:#596a7d}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#aebdc9}
html[data-theme="dark"] .madar-ad{background:#303b4d;border-color:#4c5b70}
html[data-theme="dark"] .notice{background:#493c28;color:#f5e3c3}
html[data-theme="dark"] .madar-article-author{color:#eaf2f7}
html[data-theme="dark"] .article-image img,html[data-theme="dark"] .card-image,html[data-theme="dark"] .madar-lead-photo{background:#263347}
html[data-theme="dark"] .madar-pens{background:#202b3c}
html[data-theme="dark"] .madar-pens-card{background:#435168}
html[data-theme="dark"] .madar-pens-card:hover{background:#51617a}
html[data-theme="dark"] .madar-social-icon{color:#fff}
html[data-theme="dark"] .madar-search-line input{background:transparent;color:#fff;border:0}
html[data-theme="dark"] .madar-search-line input::placeholder{color:#fff}
html[data-theme="dark"] .madar-search-results{background:rgba(31,42,59,.94)}
html[data-theme="dark"] .madar-search-result{color:#fff}
html[data-theme="dark"] .madar-search-result small{color:#cbd6e4}
html[data-theme="dark"] table th,html[data-theme="dark"] table td{border-color:#465469}

/* MADAR article sharing: scoped light/dark styles */
.madar-share{margin:36px 0 24px;padding:23px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.madar-share h2{font-size:22px;margin:0 0 16px;color:var(--ink)}
.madar-share-buttons{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.madar-share-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;min-height:43px;margin:0;padding:9px 15px;border-radius:7px;border:1px solid transparent;color:#fff!important;font-size:15px;font-weight:600;text-decoration:none;transition:filter .2s,transform .2s}
.madar-share-btn:hover{filter:brightness(1.12);transform:translateY(-2px)}
.madar-share-btn:focus-visible{outline:3px solid #7bcbb8;outline-offset:3px}
.madar-share-btn span{font-family:Arial,sans-serif!important;font-size:20px;line-height:1}
.madar-share-whatsapp{background:#167b48}.madar-share-facebook{background:#1764b5}.madar-share-x{background:#181b22}.madar-share-telegram{background:#187fa9}.madar-share-copy{background:#087b68}
.madar-share-feedback{font-size:14px;min-height:1.2em;margin:10px 0 0;color:var(--green)}
html[data-theme="dark"] .madar-share{border-color:#465469}
html[data-theme="dark"] .madar-share h2{color:#f3f7fb}
@media(max-width:560px){.madar-share-btn{padding:9px 12px;font-size:14px}.madar-share-buttons{gap:8px}}


/* MADAR grouped homepage only; header, navigation and ticker untouched. */
.madar-home-sections{margin:22px 0 48px}
.madar-category-section{margin:0 0 44px;direction:rtl}
.madar-category-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 20px}
.madar-category-heading h2{font-size:clamp(23px,2.5vw,30px);font-weight:700;margin:0;padding-right:15px;border-right:5px solid #12b69d;line-height:1.3}
.madar-category-heading h2 a:hover,.madar-category-card h3 a:hover,.madar-home-pen h3 a:hover{color:var(--green)}
.madar-category-heading h2 span{font-size:.8em;color:var(--green);padding-right:8px}
.madar-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.madar-category-card{min-width:0}
.madar-category-image{display:block;aspect-ratio:16/10;overflow:hidden;border-radius:6px;background:#e5eeec}
.madar-category-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.madar-category-card:hover img{transform:scale(1.035)}
.madar-category-card h3{font-size:clamp(17px,1.55vw,21px);line-height:1.5;margin:13px 0 7px;font-weight:700}
.madar-category-meta{font-size:13px;color:var(--muted)}
.madar-category-footer{border-bottom:1px solid var(--line);display:flex;justify-content:flex-end;margin-top:20px;padding-bottom:14px}
.madar-category-more{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:5px;padding:7px 15px;font-size:15px;font-weight:700}
.madar-category-more:hover{background:var(--green);border-color:var(--green);color:#fff}
.madar-home-pens-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
.madar-home-pen{display:flex;align-items:flex-start;gap:13px;padding:18px 12px;border-bottom:1px solid var(--line);min-width:0}
.madar-home-pen:not(:nth-child(3n)){border-left:1px solid var(--line)}
.madar-home-pen-avatar{flex:0 0 62px;width:62px;height:62px;border-radius:50%;background:#e0efea;display:grid;place-items:center;overflow:hidden;color:var(--green);font-size:24px}
.madar-home-pen-avatar img{width:100%;height:100%;object-fit:cover}
.madar-home-pen h3{font-size:18px;line-height:1.55;margin:0 0 6px}
.madar-home-pen p{color:var(--muted);font-size:14px;margin:0}
html[data-theme="dark"] .madar-category-image{background:#263347}
html[data-theme="dark"] .madar-home-pen-avatar{background:#314c4c;color:#a0f3dd}
@media(max-width:900px){.madar-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.madar-home-pens-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.madar-home-pen:not(:nth-child(3n)){border-left:0}.madar-home-pen:nth-child(odd){border-left:1px solid var(--line)}}
@media(max-width:560px){.madar-category-grid{gap:15px}.madar-category-card h3{font-size:17px}.madar-home-pens-grid{grid-template-columns:1fr}.madar-home-pen:nth-child(odd){border-left:0}.madar-category-section{margin-bottom:34px}}

/* MADAR Admin Dashboard — only admin page components */
.madar-admin-sections{margin:22px 0 60px;scroll-margin-top:18px}
.madar-admin-intro{color:var(--muted);font-size:17px;margin:0 0 22px}
.madar-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.madar-admin-tile{display:flex;flex-direction:column;align-items:flex-start;text-align:right;gap:9px;min-height:195px;width:100%;border:1px solid var(--line);border-radius:13px;background:#fff;color:#122c38;padding:25px;box-shadow:0 5px 20px #122c380b;transition:transform .2s,box-shadow .2s,border-color .2s;cursor:pointer}
.madar-admin-tile:hover,.madar-admin-tile:focus-visible{transform:translateY(-3px);border-color:#098f7c;box-shadow:0 14px 28px #122c3819;outline-offset:2px}
.madar-admin-tile-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:12px;background:#e7f5f0;font-size:27px}
.madar-admin-tile strong{font-size:21px;line-height:1.4}
.madar-admin-tile small{font-size:14px;color:#64767d}
.madar-admin-tile-arrow{margin-top:auto;color:#087b68;font-size:14px;font-weight:700}
.madar-admin-details{min-width:0}
.madar-admin-view[hidden],.madar-admin-grid[hidden],.madar-admin-intro[hidden]{display:none!important}
.madar-admin-view>.panel{margin:14px 0 25px}
.madar-admin-back{border:1px solid var(--line);background:transparent;color:var(--ink);padding:10px 18px;border-radius:7px;font-weight:700;cursor:pointer}
.madar-admin-back:hover{border-color:var(--green);color:var(--green)}
html[data-theme="dark"] .madar-admin-tile{background:#303b4d;color:#edf4fa;border-color:#465469}
html[data-theme="dark"] .madar-admin-tile-icon{background:#244c4b}
html[data-theme="dark"] .madar-admin-tile small{color:#b9c8d4}
html[data-theme="dark"] .madar-admin-tile-arrow{color:#8ee2cd}
@media(max-width:900px){.madar-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.madar-admin-grid{grid-template-columns:1fr;gap:12px}.madar-admin-tile{min-height:145px;padding:19px}.madar-admin-tile-icon{width:45px;height:45px;font-size:23px}}

/* MADARAT - embedded YouTube videos, no thumbnail cards */
.madarat-section{margin-block:28px 46px}
.madarat-tagline{margin:-8px 0 20px;color:var(--muted);font-size:17px}
.madarat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.madarat-video{min-width:0}
.madarat-player{width:100%;aspect-ratio:16/9;background:#151d25;border-radius:8px;overflow:hidden}
.madarat-player iframe{display:block;width:100%;height:100%;border:0}
.madarat-video h3{font-size:19px;line-height:1.55;margin:12px 0 4px}
.madarat-source{color:var(--muted);font-size:13px;margin:0}
@media(max-width:620px){.madarat-grid{grid-template-columns:1fr;gap:22px}.madarat-video h3{font-size:17px}}


/* MADAR advertising banner: full-width responsive image, no cropping */
.madar-ad a{display:block;width:100%;line-height:0}
.madar-ad img{display:block;width:100%;max-width:100%;height:auto;max-height:none;object-fit:contain;margin:0 auto}
@media(max-width:650px){.madar-ad img{max-height:none}}

/* MADAR — latest headlines ticker above homepage advertisement */
.madar-latest-ticker{display:flex;align-items:stretch;direction:rtl;min-height:43px;margin:22px 0 0;border-radius:8px;overflow:hidden;background:#243448;color:#fff;border:1px solid #405267}
.madar-latest-label{display:flex;align-items:center;justify-content:center;flex:0 0 auto;background:#098f7c;color:#fff;padding:8px 19px;font-weight:700;white-space:nowrap;z-index:1}
.madar-latest-window{flex:1;min-width:0;overflow:hidden;display:flex;align-items:center}
.madar-latest-track{display:flex;align-items:center;gap:35px;white-space:nowrap;width:max-content;min-width:max-content;animation:madar-headlines-scroll 65s linear infinite;will-change:transform}
.madar-latest-track a{display:inline-block;color:#fff;font-size:15px;line-height:1.6}
.madar-latest-track a:hover{text-decoration:underline;color:#a3f3df}
.madar-latest-separator{color:#48d5b8;font-size:12px}
.madar-latest-ticker:hover .madar-latest-track,.madar-latest-ticker:focus-within .madar-latest-track{animation-play-state:paused}
@keyframes madar-headlines-scroll{from{transform:translateX(0)}to{transform:translateX(50%)}}
.madar-latest-ticker + .madar-ad{margin-top:10px}
@media(max-width:560px){.madar-latest-label{padding:8px 11px;font-size:13px}.madar-latest-track a{font-size:13px}.madar-latest-ticker{min-height:40px}}
@media(prefers-reduced-motion:reduce){.madar-latest-track{animation:none;max-width:100%;overflow-x:auto}}

/* MADAR ticker: clear diamond separator after every headline */
.madar-latest-track{gap:0}
.madar-latest-track a{display:inline-flex;align-items:center;gap:24px;margin-inline-end:24px}
.madar-latest-track a::after{content:"◆";color:#48d5b8;font-size:11px;line-height:1;flex:0 0 auto;text-decoration:none}
.madar-latest-track > .madar-latest-separator{display:none}
@media(max-width:560px){.madar-latest-track a{gap:16px;margin-inline-end:16px}}

/* MADAR — compact editorial news cards and subtle image hover */
.madar-category-grid{gap:16px 18px}
.madar-category-section{margin-bottom:34px}
.madar-category-heading{margin-bottom:15px}
.madar-category-image{aspect-ratio:16/9;overflow:hidden}
.madar-category-image img{transition:transform .32s ease;transform-origin:center}
.madar-category-card:hover .madar-category-image img{transform:scale(1.03)}
.madar-category-card h3{font-size:clamp(15px,1.25vw,17px);line-height:1.5;margin:9px 0 5px}
.madar-category-meta{font-size:12px}
.madar-category-card h3 a{transition:color .2s ease}
.madar-category-card:hover h3 a{color:var(--green)}
.madar-category-footer{margin-top:15px}
/* Category/search listing cards, without changing the lead story */
.section .grid{gap:16px}
.section .card{padding:15px}
.section .card-image{margin:-15px -15px 12px;aspect-ratio:16/9}
.section .card h3{font-size:17px;line-height:1.55;margin:8px 0 5px}
.section .card p{font-size:12px;line-height:1.7}
.section .card:hover .card-image img{transform:scale(1.03)}
@media(max-width:560px){
  .madar-category-grid{gap:14px 12px}
  .madar-category-card h3{font-size:15px}
  .section .card h3{font-size:16px}
}
@media(prefers-reduced-motion:reduce){
  .madar-category-image img,.section .card-image img{transition:none}
}

/* MADAR modern Sudan clock + date; header only */
.madar-datetime{display:inline-flex;align-items:center;gap:11px;min-width:0;margin-right:auto;white-space:nowrap;direction:rtl;font-size:13px;color:#425764}
.madar-live-indicator{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:#087b68}
.madar-live-dot{width:7px;height:7px;border-radius:50%;background:#0cae90;box-shadow:0 0 0 4px rgba(12,174,144,.12);animation:madar-clock-pulse 2.2s ease-in-out infinite}
@keyframes madar-clock-pulse{50%{box-shadow:0 0 0 7px rgba(12,174,144,0)}}
.madar-digital-clock{font-family:Arial,Tahoma,sans-serif!important;font-variant-numeric:tabular-nums;font-weight:700;font-size:18px;letter-spacing:.6px;color:#122c38;direction:ltr;unicode-bidi:isolate}
.madar-datetime-divider{height:18px;width:1px;background:#d4dfdb}
.madar-datetime .madar-current-date{font-size:12px;color:#64767d}
html[data-theme="dark"] .madar-datetime{color:#d6e2ea}
html[data-theme="dark"] .madar-live-indicator{color:#72e4c7}
html[data-theme="dark"] .madar-digital-clock{color:#f3f7fb}
html[data-theme="dark"] .madar-datetime-divider{background:#596b7c}
html[data-theme="dark"] .madar-datetime .madar-current-date{color:#c0d0dc}
@media(max-width:850px){.madar-datetime{margin-right:0;margin-inline-start:auto}}
@media(max-width:560px){.madar-datetime{gap:7px;flex-wrap:wrap;justify-content:flex-end}.madar-live-indicator{font-size:11px}.madar-digital-clock{font-size:16px}.madar-datetime .madar-current-date{font-size:11px}.madar-datetime-divider{display:none}}
@media(prefers-reduced-motion:reduce){.madar-live-dot{animation:none}}


/* MADAR — subtle outline around each homepage news card */
.madar-category-card {
  border: 1px solid rgba(125, 145, 160, .32);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.madar-category-card:hover {
  border-color: #098f7c;
  box-shadow: 0 5px 18px rgba(0,0,0,.08);
}
.madar-category-card .madar-category-image {
  border-radius: 0;
}
.madar-category-card h3,
.madar-category-card .madar-category-meta {
  margin-inline: 12px;
}
html[data-theme="dark"] .madar-category-card {
  border-color: rgba(180, 198, 215, .24);
}
html[data-theme="dark"] .madar-category-card:hover {
  border-color: #36b79b;
}

/* MADAR: short summary beneath news headline */
.madar-category-summary{font-size:12px;line-height:1.75;color:#64767d;margin:5px 0 9px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
html[data-theme="dark"] .madar-category-summary{color:#b9c8d4;}

/* MADAR reader features — isolated styles */
.madar-reader-widgets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0 34px}.madar-reader-box{background:#f6faf8;border:1px solid var(--line);border-radius:12px;padding:22px;min-width:0}.madar-reader-box h2{margin:0 0 12px;font-size:23px}.madar-reader-box h3{font-size:17px;margin:0 0 16px}.madar-poll-choice{display:flex;gap:9px;align-items:center;padding:8px 0;cursor:pointer}.madar-poll-choice input{width:auto;margin:0}.madar-reader-box .button{margin-top:12px}.madar-poll-note{font-size:12px;color:var(--muted)}.madar-poll-result-row{margin:12px 0}.madar-poll-result-row span{font-size:13px}.madar-poll-bar{height:7px;background:#dceae5;border-radius:9px;overflow:hidden;margin-top:5px}.madar-poll-bar i{display:block;height:100%;background:#098f7c}.madar-popular-list{padding-right:24px;margin:0}.madar-popular-list li{padding:10px 0;border-bottom:1px solid var(--line)}.madar-popular-list a{font-weight:600}.madar-popular-list a:hover{color:var(--green)}.madar-popular-list small{display:block;color:var(--muted)}.madar-audio-controls{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:20px 0}.madar-audio-controls button{width:auto;margin:0}.madar-audio-controls [data-madar-audio-status]{font-size:13px;color:var(--muted)}html[data-theme="dark"] .madar-reader-box{background:#303b4d;color:#edf4fa;border-color:#465469}html[data-theme="dark"] .madar-poll-bar{background:#465469}@media(max-width:700px){.madar-reader-widgets{grid-template-columns:1fr}.madar-reader-box{padding:17px}}

/* MADAR: compact related articles sidebar on article pages only */
.madar-article-with-related{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:30px;align-items:start;direction:rtl;max-width:1320px;margin:0 auto}
.madar-article-with-related>.article{min-width:0;width:100%;max-width:none;margin:0}
.madar-related{min-width:0;background:#f7faf9;border:1px solid var(--line);border-radius:16px;padding:18px;position:sticky;top:20px}
.madar-related-head{padding:2px 0 14px;border-bottom:1px solid var(--line)}
.madar-related-head h2{margin:0;font-size:21px;font-weight:800}.madar-related-head p{margin:7px 0 0;font-size:13px;color:var(--muted)}
.madar-related-item{display:flex;flex-direction:row;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid var(--line);text-decoration:none;transition:transform .2s ease}
.madar-related-item:hover{transform:translateX(3px)}
.madar-related-item img,.madar-related-placeholder{width:86px;height:74px;flex:0 0 86px;object-fit:cover;border-radius:9px;background:#dce9e6}
.madar-related-placeholder{display:grid;place-items:center;font-size:25px;color:#098f7c}
.madar-related-text{min-width:0;flex:1}.madar-related-text strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:14px;line-height:1.65;color:inherit}
.madar-related-text small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.madar-related-all{display:block;text-align:center;margin-top:16px;font-size:13px;font-weight:700;color:#098f7c}.madar-related-empty{font-size:13px;color:var(--muted)}
html[data-theme="dark"] .madar-related{background:#1b2636;border-color:#344255}html[data-theme="dark"] .madar-related-item{border-color:#344255}
@media(max-width:900px){.madar-article-with-related{grid-template-columns:minmax(0,1fr)}.madar-related{position:static}.madar-related-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}}
@media(max-width:560px){.madar-related-items{grid-template-columns:1fr}.madar-related{padding:15px}.madar-related-item img,.madar-related-placeholder{width:78px;height:68px;flex-basis:78px}}

/* MADAR: slim full-width most-read strip with turquoise outline */
.madar-reader-widgets{display:flex;flex-direction:column;gap:14px;margin:18px 0 24px;width:100%}
.madar-reader-widgets>.madar-reader-box[aria-label="الأكثر قراءة"]{width:100%;max-width:none;display:flex;align-items:center;gap:18px;padding:12px 18px;border:2px solid #098f7c;border-radius:12px;background:transparent;box-shadow:none;min-height:74px}
.madar-reader-widgets>.madar-reader-box[aria-label="الأكثر قراءة"] h2{flex:0 0 auto;margin:0;font-size:16px;line-height:1.5;white-space:nowrap;color:#098f7c}
.madar-reader-widgets .madar-popular-list{flex:1;min-width:0;display:flex;align-items:stretch;gap:0;list-style:none;padding:0;margin:0;counter-reset:popular}
.madar-reader-widgets .madar-popular-list li{flex:1 1 0;min-width:0;padding:0 13px;border-bottom:0;border-inline-start:1px solid var(--line);counter-increment:popular}
.madar-reader-widgets .madar-popular-list li a{font-size:12px;line-height:1.5;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-decoration:none}
.madar-reader-widgets .madar-popular-list li small{font-size:10px;margin-top:3px}
html[data-theme="dark"] .madar-reader-widgets>.madar-reader-box[aria-label="الأكثر قراءة"]{background:#1b2636;border-color:#12b7a0}
@media(max-width:850px){.madar-reader-widgets>.madar-reader-box[aria-label="الأكثر قراءة"]{align-items:flex-start;flex-direction:column;gap:9px}.madar-reader-widgets .madar-popular-list{width:100%;overflow-x:auto;padding-bottom:5px}.madar-reader-widgets .madar-popular-list li{flex:0 0 190px}}
@media(max-width:480px){.madar-reader-widgets>.madar-reader-box[aria-label="الأكثر قراءة"]{padding:11px 12px}.madar-reader-widgets .madar-popular-list li{flex-basis:165px;padding:0 10px}}
