/* =========================================================
   هيئة استثمار محافظة صلاح الدين — نظام التصميم
   هوية سماوية مستمدة من الشعار — RTL — Alexandria + Tajawal
   ستايلان: theme-modern (حديث) + theme-classic (كلاسيكي محدّث)
   ========================================================= */

:root {
    /* الألوان الأساسية — تُتجاوز من لوحة التحكم (المظهر) */
    --navy:   #07314F;   /* الأزرق الداكن — الرأسية والتذييل */
    --gold:   #1B9AD8;   /* السماوي الأساسي (اسم المتغير موروث) */
    --paper:  #F3F8FC;   /* خلفية الصفحات */

    /* مشتقات */
    --sky:      var(--gold);
    --sky-2:    #3BB4F0;
    --sky-deep: #0B69AC;
    --deep:     var(--navy);
    --deep-2:   #0A3D63;
    --line:     #DCE9F3;
    --ink:      #16303F;
    --ink-soft: #46617A;
    --ink-mute: #7E93A6;
    --white:    #FFFFFF;
    --green:    #2F9E63;
    --amber:    #C98A2B;

    --wrap:   1200px;
    --radius: 12px;
    --shadow-card: 0 1px 3px rgba(7,49,79,.07), 0 6px 18px rgba(7,49,79,.05);
    --shadow-hover: 0 10px 28px rgba(11,105,172,.16);

    --font:      'Tajawal', system-ui, sans-serif;
    --font-head: 'Alexandria', 'Tajawal', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; font-family: var(--font);
    background: var(--paper); color: var(--ink);
    line-height: 1.8; font-size: 16px; direction: rtl;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.5; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ── الشريط العلوي ─────────────────────────────────────── */
.topbar { background: var(--deep); color: #BFDCEF; font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 12px; flex-wrap: wrap; }
.topbar .links { display: flex; gap: 18px; align-items: center; }
.topbar .links a { display: inline-flex; align-items: center; gap: 6px; color: #BFDCEF; }
.topbar a:hover { color: #fff; }
.tb-datetime { display: inline-flex; align-items: center; gap: 8px; }
.tb-clock { font-variant-numeric: tabular-nums; opacity: .9; }

/* الخط الفاصل السماوي (الاسم موروث goldrule) */
.goldrule { height: 3px; background: linear-gradient(90deg, var(--sky-deep), var(--sky), var(--sky-2), var(--sky)); }

/* ── الترويسة ──────────────────────────────────────────── */
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.masthead .emblem { width: 74px; height: 74px; object-fit: contain; border-radius: 50%; box-shadow: 0 2px 10px rgba(27,154,216,.25); }
.masthead .titles { display: flex; flex-direction: column; }
.masthead .titles .name { font-family: var(--font-head); font-weight: 800; font-size: 21px; color: var(--deep); }
.masthead .titles .sub { font-size: 13.5px; color: var(--ink-soft); }
.masthead .search { display: flex; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 30px; padding: 4px 14px 4px 6px; transition: border-color .2s, box-shadow .2s; }
.masthead .search:focus-within { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(27,154,216,.15); }
.masthead .search input { background: transparent; border: none; outline: none; font-family: var(--font); font-size: 14px; width: 200px; color: var(--ink); }
.masthead .search input::placeholder { color: var(--ink-mute); }
.masthead .search button { background: var(--sky); color: #fff; border: none; border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.masthead .search button:hover { background: var(--sky-deep); }

/* ── القائمة الرئيسية ──────────────────────────────────── */
.mainnav { background: linear-gradient(90deg, var(--sky-deep), var(--sky) 55%, var(--sky-2)); position: sticky; top: 0; z-index: 60; box-shadow: 0 2px 12px rgba(11,105,172,.28); }
.mainnav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.mainnav li { position: relative; }
.mainnav > .wrap > ul > li > a { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-weight: 700; font-size: 14.5px; padding: 13px 15px; transition: background .18s; }
.mainnav > .wrap > ul > li > a:hover,
.mainnav > .wrap > ul > li:hover > a { background: rgba(255,255,255,.14); }
.mainnav li.active > a { background: rgba(255,255,255,.18); box-shadow: inset 0 -3px 0 #fff; }
.mainnav .dropdown { position: absolute; top: 100%; right: 0; min-width: 230px; background: #fff; border-radius: 0 0 10px 10px; box-shadow: 0 14px 34px rgba(7,49,79,.18); padding: 6px 0; display: none; z-index: 70; border-top: 3px solid var(--sky); }
.mainnav li:hover > .dropdown { display: block; }
.mainnav .dropdown a { display: block; padding: 9px 18px; color: var(--ink); font-size: 14px; transition: background .15s, color .15s, padding .15s; }
.mainnav .dropdown a:hover { background: var(--paper); color: var(--sky-deep); padding-right: 24px; }
.navtoggle { display: none; background: transparent; border: none; color: #fff; font-family: var(--font); font-weight: 700; font-size: 15px; align-items: center; gap: 8px; padding: 12px 0; cursor: pointer; }

/* ── الشريط الإخباري ──────────────────────────────────── */
.ticker { background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker .wrap { display: flex; align-items: center; gap: 14px; }
.ticker .tag { background: linear-gradient(135deg, var(--sky-deep), var(--sky)); color: #fff; font-weight: 800; font-size: 12.5px; padding: 5px 14px; border-radius: 20px; white-space: nowrap; margin: 9px 0; }
.ticker .track { overflow: hidden; flex: 1; position: relative; }
.ticker .move { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 10px 0; animation: ticker-move var(--ticker-duration, 40s) linear infinite; }
.ticker:hover .move { animation-play-state: paused; }
.ticker .move a { color: var(--ink-soft); font-size: 14px; transition: color .15s; }
.ticker .move a:hover { color: var(--sky-deep); }
.ticker .move .dot { color: var(--sky); }
@keyframes ticker-move { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ── الأقسام العامة ───────────────────────────────────── */
.section { padding: 52px 0; }
.section.alt { background: #fff; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 24px; font-weight: 800; color: var(--deep); display: flex; align-items: center; gap: 12px; }
.section-head h2::before { content: ''; width: 22px; height: 22px; flex: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B9AD8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 21c-4.4 0-8-3.6-8-8 0-3.5 2.9-6.4 6.4-6.4 2.8 0 5.1 2.3 5.1 5.1 0 2.2-1.8 4-4 4-1.8 0-3.2-1.4-3.2-3.2 0-1.4 1.1-2.5 2.5-2.5'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; }
.section-head .more { color: var(--sky-deep); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.section-head .more:hover { color: var(--sky); }

/* ── الأزرار ──────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font); font-weight: 700; font-size: 14.5px; border-radius: 10px; padding: 11px 22px; cursor: pointer; border: none; transition: all .2s; }
.btn.solid { background: #fff; color: var(--sky-deep); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.btn.solid:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.btn.ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn.ghost:hover { background: rgba(255,255,255,.22); }
.btn.sky { background: linear-gradient(135deg, var(--sky-deep), var(--sky)); color: #fff; box-shadow: 0 4px 14px rgba(27,154,216,.35); }
.btn.sky:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(27,154,216,.4); }
.btn.line { background: #fff; color: var(--sky-deep); border: 1.5px solid var(--sky); }
.btn.line:hover { background: var(--sky); color: #fff; }

/* ── البانر الرئيسي (الستايل الحديث) ──────────────────── */
.hero { position: relative; background: linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 45%, var(--sky-deep) 100%); color: #fff; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 85% 20%, rgba(59,180,240,.22), transparent 60%), radial-gradient(ellipse 50% 60% at 10% 90%, rgba(27,154,216,.18), transparent 60%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero .kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 30px; padding: 6px 16px; font-size: 13px; font-weight: 700; color: #CFEAFA; }
.hero h1 { font-size: 38px; font-weight: 900; margin: 18px 0 12px; line-height: 1.45; }
.hero h1 .hl { color: var(--sky-2); }
.hero p.lead { color: #C9E4F6; font-size: 16.5px; max-width: 560px; margin: 0 0 26px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .art { display: flex; justify-content: center; }
.malwiya { width: min(300px, 100%); height: auto; }
.malwiya path, .malwiya line, .malwiya circle { stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.malwiya .soft { opacity: .45; stroke-width: 1.6; }
.malwiya .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: malwiya-draw 2.4s ease forwards; }
.malwiya .d1 { animation-delay: .1s; } .malwiya .d2 { animation-delay: .5s; }
.malwiya .d3 { animation-delay: .9s; } .malwiya .d4 { animation-delay: 1.3s; }
@keyframes malwiya-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
    .malwiya .draw { animation: none; stroke-dashoffset: 0; }
    .ticker .move { animation: none; }
}

/* ── شريط الإحصائيات ─────────────────────────────────── */
.stats { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(7,49,79,.05); }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats .cell { text-align: center; padding: 24px 12px; border-inline-start: 1px solid var(--line); }
.stats .cell:first-child { border-inline-start: none; }
.stats .num { font-family: var(--font-head); font-size: 34px; font-weight: 900; color: var(--sky-deep); line-height: 1.2; }
.stats .lbl { color: var(--ink-soft); font-size: 13.5px; font-weight: 700; margin-top: 4px; }

/* ── فلاتر القطاعات + بطاقات الفرص ───────────────────── */
.sec-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-chips .chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); color: var(--ink-soft); border-radius: 30px; padding: 8px 18px; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: all .2s; font-family: var(--font); }
.sec-chips .chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sky); }
.sec-chips .chip:hover { border-color: var(--sky); color: var(--sky-deep); }
.sec-chips .chip.active { background: linear-gradient(135deg, var(--sky-deep), var(--sky)); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(27,154,216,.35); }
.sec-chips .chip.active .dot { background: #fff; }
.sec-chips .chip .cnt { background: rgba(11,105,172,.1); border-radius: 12px; padding: 0 8px; font-size: 12px; }
.sec-chips .chip.active .cnt { background: rgba(255,255,255,.25); }

.opp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.opp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .22s, box-shadow .22s; box-shadow: var(--shadow-card); }
.opp-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.opp-card .thumb { height: 160px; background: linear-gradient(135deg, var(--deep-2), var(--sky-deep)); position: relative; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.opp-card .thumb svg { opacity: .5; }
.opp-card .thumb .sec-tag { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.95); color: var(--deep); font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; }
.opp-card .thumb .sec-tag .dot { width: 8px; height: 8px; border-radius: 50%; }
.opp-card .thumb .st { position: absolute; bottom: 12px; left: 12px; font-size: 11.5px; font-weight: 800; padding: 3px 11px; border-radius: 20px; color: #fff; }
.opp-card .thumb .st.available { background: var(--green); }
.opp-card .thumb .st.reserved { background: var(--amber); }
.opp-card .thumb .st.granted { background: var(--sky-deep); }
.opp-card .body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.opp-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: var(--deep); }
.opp-card h3 a:hover { color: var(--sky-deep); }
.opp-card .desc { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 12px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.opp-card .meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 12.5px; color: var(--ink-mute); flex-wrap: wrap; }
.opp-card .meta .loc { display: inline-flex; align-items: center; gap: 5px; }
.opp-card .meta .pdf { color: var(--sky-deep); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.opp-card .meta .pdf:hover { color: var(--sky); }

/* ── الخارطة الاستثمارية ─────────────────────────────── */
.map-shell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
#investMap { height: 460px; width: 100%; z-index: 1; }
.map-legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }
.map-legend .lg { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.map-legend .lg .dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px rgba(7,49,79,.2); }
.inv-pin { border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(7,49,79,.35); }
.leaflet-popup-content { font-family: var(--font); direction: rtl; text-align: right; margin: 12px 16px; }
.leaflet-popup-content .p-t { font-weight: 800; color: var(--deep); font-size: 14px; margin-bottom: 3px; }
.leaflet-popup-content .p-m { font-size: 12px; color: var(--ink-soft); }
.leaflet-popup-content a { color: var(--sky-deep); font-weight: 700; font-size: 12.5px; }

/* ── الأخبار ─────────────────────────────────────────── */
.news-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
.feat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: box-shadow .2s; }
.feat-card:hover { box-shadow: var(--shadow-hover); }
.feat-card .img { height: 280px; background: linear-gradient(135deg, var(--deep-2), var(--sky-deep)); background-size: cover; background-position: center; }
.feat-card .body { padding: 20px 22px; }
.feat-card .date { color: var(--sky-deep); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.feat-card h3 { margin: 8px 0; font-size: 20px; font-weight: 800; color: var(--deep); }
.feat-card h3 a:hover { color: var(--sky-deep); }
.feat-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.news-list-side { display: flex; flex-direction: column; gap: 12px; }
.n-row { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; transition: transform .18s, box-shadow .18s; box-shadow: var(--shadow-card); align-items: center; }
.n-row:hover { transform: translateX(-4px); box-shadow: var(--shadow-hover); }
.n-row .im { width: 88px; height: 66px; flex: none; border-radius: 8px; background: linear-gradient(135deg, var(--deep-2), var(--sky-deep)); background-size: cover; background-position: center; }
.n-row .tx { min-width: 0; }
.n-row .d { color: var(--sky-deep); font-size: 11.5px; font-weight: 700; }
.n-row h4 { margin: 3px 0 0; font-size: 14px; font-weight: 700; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.n-row h4 a:hover { color: var(--sky-deep); }

/* ── الإعلانات ───────────────────────────────────────── */
.ann-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ann-item { background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--sky); border-radius: 10px; padding: 15px 18px; box-shadow: var(--shadow-card); transition: transform .18s; }
.ann-item:hover { transform: translateY(-3px); }
.ann-item .d { color: var(--sky-deep); font-size: 12px; font-weight: 700; }
.ann-item h4 { margin: 4px 0 0; font-size: 15px; font-weight: 800; color: var(--deep); }
.ann-item h4 a:hover { color: var(--sky-deep); }
.ann-item.pinned { border-inline-start-color: var(--amber); }

/* ── الإجازات الممنوحة (خط زمني) ─────────────────────── */
.timeline { position: relative; padding-inline-start: 26px; }
.timeline::before { content: ''; position: absolute; top: 6px; bottom: 6px; inset-inline-start: 7px; width: 2.5px; background: linear-gradient(180deg, var(--sky), var(--sky-2), var(--line)); border-radius: 2px; }
.tl-item { position: relative; margin-bottom: 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; box-shadow: var(--shadow-card); }
.tl-item::before { content: ''; position: absolute; inset-inline-start: -25px; top: 20px; width: 13px; height: 13px; border-radius: 50%; background: var(--sky); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--sky); }
.tl-item .yr { display: inline-block; background: linear-gradient(135deg, var(--sky-deep), var(--sky)); color: #fff; font-weight: 800; font-size: 12px; border-radius: 20px; padding: 2px 12px; }
.tl-item h4 { margin: 7px 0 3px; font-size: 15.5px; font-weight: 800; color: var(--deep); }
.tl-item h4 a:hover { color: var(--sky-deep); }
.tl-item .co { color: var(--ink-soft); font-size: 13px; }

/* ── المركز الإعلامي ─────────────────────────────────── */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.media-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.media-box .mb-h { background: linear-gradient(135deg, var(--deep), var(--deep-2)); color: #fff; font-weight: 800; font-size: 15px; padding: 12px 18px; display: flex; align-items: center; gap: 9px; }
.media-box .mb-b { padding: 16px 18px; }
.shelf { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.shelf .mag { flex: none; width: 108px; }
.shelf .mag .cv { height: 140px; border-radius: 8px; background: linear-gradient(160deg, var(--sky-deep), var(--deep)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 800; font-size: 12.5px; text-align: center; padding: 10px; box-shadow: var(--shadow-card); transition: transform .18s; background-size: cover; background-position: center; }
.shelf .mag:hover .cv { transform: translateY(-4px); }
.shelf .mag .t { font-size: 11.5px; color: var(--ink-soft); text-align: center; margin-top: 6px; }
.album-list { display: flex; flex-direction: column; gap: 10px; }
.album-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; transition: border-color .18s, background .18s; }
.album-row:hover { border-color: var(--sky); background: var(--paper); }
.album-row .im { width: 62px; height: 46px; flex: none; border-radius: 7px; background: linear-gradient(135deg, var(--deep-2), var(--sky-deep)); background-size: cover; background-position: center; }
.album-row .t { font-size: 13.5px; font-weight: 700; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.album-row .c { font-size: 11.5px; color: var(--ink-mute); }
.video-list { display: flex; flex-direction: column; gap: 10px; }
.video-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; transition: border-color .18s, background .18s; }
.video-row:hover { border-color: var(--sky); background: var(--paper); }
.video-row .im { width: 78px; height: 48px; flex: none; border-radius: 7px; background: #000 center/cover; position: relative; }
.video-row .im::after { content: ''; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.video-row .t { font-size: 13.5px; font-weight: 700; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── كلمة الرئيس + الاستطلاع ─────────────────────────── */
.chair-poll { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }
.chairman { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 24px; display: flex; gap: 20px; }
.chairman .ph { width: 130px; height: 150px; flex: none; border-radius: 12px; background: linear-gradient(135deg, var(--deep-2), var(--sky-deep)); background-size: cover; background-position: top center; box-shadow: var(--shadow-card); }
.chairman h3 { margin: 0 0 4px; color: var(--deep); font-size: 18px; font-weight: 800; }
.chairman .role { color: var(--sky-deep); font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.chairman p { margin: 0 0 14px; color: var(--ink-soft); font-size: 14px;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.poll-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.poll-box .p-h { background: linear-gradient(135deg, var(--sky-deep), var(--sky)); color: #fff; font-weight: 800; padding: 13px 18px; font-size: 15px; }
.poll-box .p-b { padding: 16px 18px; }
.poll-box .q { font-weight: 800; color: var(--deep); font-size: 15px; margin-bottom: 14px; }
.p-opt { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.p-opt input { accent-color: var(--sky); width: 17px; height: 17px; }
.p-opt .l { font-size: 14px; font-weight: 700; color: var(--ink); flex: 1; }
.p-res { margin-bottom: 11px; }
.p-res .r-t { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 4px; }
.p-res .r-bar { height: 8px; border-radius: 6px; background: var(--paper); overflow: hidden; }
.p-res .r-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--sky-deep), var(--sky-2)); transition: width .6s ease; }
.p-total { font-size: 12.5px; color: var(--ink-mute); margin-top: 10px; }

/* ── الروابط المهمة + البانرات ───────────────────────── */
.wl-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.wl-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 12px; text-align: center; font-weight: 700; font-size: 13.5px; color: var(--ink-soft); box-shadow: var(--shadow-card); transition: all .2s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wl-item:hover { border-color: var(--sky); color: var(--sky-deep); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.wl-item svg { color: var(--sky); }
.banner-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 22px; }
.banner-strip a, .banner-strip .bn { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.banner-strip img { width: 100%; height: 100%; object-fit: cover; }

/* ── ترويسة الصفحات الداخلية ─────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--deep), var(--deep-2) 55%, var(--sky-deep)); color: #fff; padding: 34px 0; }
.page-hero h1 { margin: 0; font-size: 26px; font-weight: 800; }
.page-hero .crumbs { margin-top: 8px; font-size: 13px; color: #B9DCF2; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-hero .crumbs a { color: #DCF0FB; }
.page-hero .crumbs a:hover { color: #fff; }

/* ── محتوى منسّق (صفحات + أخبار) ─────────────────────── */
.rich { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 28px 30px; }
.rich img { border-radius: 10px; margin: 12px auto; height: auto; }
.rich h2, .rich h3 { color: var(--deep); }
.rich a { color: var(--sky-deep); font-weight: 700; }
.rich table { border-collapse: collapse; width: 100%; }
.rich table td, .rich table th { border: 1px solid var(--line); padding: 8px 12px; }
.rich blockquote { border-inline-start: 4px solid var(--sky); background: var(--paper); margin: 14px 0; padding: 12px 18px; border-radius: 8px; }

/* ── صناديق معلومات الفرصة ───────────────────────────── */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.info-cell { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; box-shadow: var(--shadow-card); }
.info-cell .k { font-size: 12px; color: var(--ink-mute); font-weight: 700; }
.info-cell .v { font-size: 15px; color: var(--deep); font-weight: 800; margin-top: 2px; }
.status-pill { display: inline-block; color: #fff; font-weight: 800; font-size: 12.5px; border-radius: 20px; padding: 3px 14px; }
.status-pill.available { background: var(--green); }
.status-pill.reserved { background: var(--amber); }
.status-pill.granted { background: var(--sky-deep); }

/* ── ترقيم الصفحات ───────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--ink-soft); padding: 0 8px; }
.pagination a:hover { border-color: var(--sky); color: var(--sky-deep); }
.pagination .active span, .pagination span.current { background: linear-gradient(135deg, var(--sky-deep), var(--sky)); color: #fff; border-color: transparent; }

/* ── التذييل ─────────────────────────────────────────── */
.footer { background: var(--deep); color: #B9D3E6; margin-top: 40px; }
.footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; padding: 44px 0 30px; }
.footer .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer .brand img { width: 52px; height: 52px; border-radius: 50%; }
.footer .brand .n { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 16.5px; }
.footer .about { font-size: 13.5px; line-height: 1.9; margin: 0; }
.footer h3 { color: #fff; font-size: 15.5px; font-weight: 800; margin: 0 0 14px; padding-bottom: 8px; position: relative; }
.footer h3::after { content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 34px; height: 2.5px; background: var(--sky); border-radius: 2px; }
.footer .links { list-style: none; margin: 0; padding: 0; }
.footer .links li { margin-bottom: 9px; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.footer a:hover { color: #fff; }
.footer .social { display: flex; gap: 9px; margin-top: 16px; }
.footer .social a { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.09); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.footer .social a:hover { background: var(--sky); color: #fff; transform: translateY(-2px); }
.footer .copy { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; text-align: center; font-size: 12.5px; }

/* =========================================================
   الستايل الكلاسيكي — ترتيب الموقع القديم بحداثة ولون سماوي
   ========================================================= */
body.theme-classic { background: #EDF4FA; }
body.theme-classic .mainnav { background: var(--deep); position: static; box-shadow: 0 2px 10px rgba(7,49,79,.25); border-top: 3px solid var(--sky); }
body.theme-classic .mainnav li.active > a { box-shadow: inset 0 -3px 0 var(--sky); }
body.theme-classic .mainnav > .wrap > ul > li > a:hover,
body.theme-classic .mainnav > .wrap > ul > li:hover > a { background: var(--sky-deep); }
body.theme-classic .mainnav .dropdown { border-top-color: var(--sky); border-radius: 0; }
body.theme-classic .masthead { background: linear-gradient(180deg, #fff, #F2F8FD); }
body.theme-classic .ticker .tag { border-radius: 4px; background: var(--sky-deep); }
body.theme-classic .section { padding: 34px 0; }
body.theme-classic .section-head h2 { font-size: 20px; }
body.theme-classic .footer { margin-top: 26px; }

/* صناديق الستايل الكلاسيكي */
.classic-home { display: grid; grid-template-columns: 1fr 320px; gap: 20px; padding: 26px 0; align-items: start; }
.c-box { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-card); margin-bottom: 20px; }
.c-box .cb-h { background: linear-gradient(90deg, var(--sky-deep), var(--sky)); color: #fff; font-weight: 800; font-size: 15px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.c-box .cb-h a.more { color: #EAF6FD; font-size: 12px; font-weight: 700; }
.c-box .cb-h a.more:hover { color: #fff; }
.c-box .cb-b { padding: 16px; }
.c-box.side .cb-h { background: var(--deep); }
.c-feat { display: flex; gap: 16px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.c-feat .im { width: 220px; height: 150px; flex: none; border-radius: 8px; background: linear-gradient(135deg, var(--deep-2), var(--sky-deep)); background-size: cover; background-position: center; }
.c-feat h3 { margin: 0 0 6px; font-size: 17px; color: var(--deep); font-weight: 800; }
.c-feat h3 a:hover { color: var(--sky-deep); }
.c-feat p { margin: 0; color: var(--ink-soft); font-size: 13.5px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.c-list { list-style: none; margin: 0; padding: 0; }
.c-list li { border-bottom: 1px dashed var(--line); padding: 9px 0; display: flex; gap: 9px; align-items: baseline; font-size: 14px; }
.c-list li:last-child { border-bottom: none; }
.c-list li::before { content: '◂'; color: var(--sky); font-size: 12px; flex: none; }
.c-list li a:hover { color: var(--sky-deep); }
.c-list li .d { color: var(--ink-mute); font-size: 11.5px; margin-inline-start: auto; white-space: nowrap; }
.c-opps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { border-bottom: 1px dashed var(--line); }
.side-links li:last-child { border-bottom: none; }
.side-links a { display: flex; align-items: center; gap: 9px; padding: 9px 4px; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); transition: color .15s, padding .15s; }
.side-links a:hover { color: var(--sky-deep); padding-right: 10px; }
.side-banner { margin-bottom: 12px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.side-banner img { width: 100%; }

/* ── تجاوب ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .opp-grid, .media-grid { grid-template-columns: repeat(2, 1fr); }
    .wl-grid { grid-template-columns: repeat(3, 1fr); }
    .hero h1 { font-size: 31px; }
}
@media (max-width: 860px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero .art { display: none; }
    .news-layout, .chair-poll, .classic-home { grid-template-columns: 1fr; }
    .stats .grid { grid-template-columns: repeat(2, 1fr); }
    .stats .cell:nth-child(odd) { border-inline-start: none; }
    .ann-list, .c-opps { grid-template-columns: 1fr; }
    .footer .cols { grid-template-columns: 1fr; gap: 26px; }
    .navtoggle { display: inline-flex; }
    .mainnav ul { display: none; flex-direction: column; width: 100%; padding-bottom: 10px; }
    .mainnav ul.open { display: flex; }
    .mainnav > .wrap > ul > li > a { width: 100%; padding: 11px 6px; }
    .mainnav .dropdown { position: static; display: block; box-shadow: none; background: rgba(255,255,255,.08); border-top: none; border-radius: 8px; margin: 0 8px 6px; }
    .mainnav .dropdown a { color: #DCEFFB; font-size: 13px; }
    .mainnav .dropdown a:hover { background: rgba(255,255,255,.1); color: #fff; }
    .masthead .search { display: none; }
}
@media (max-width: 560px) {
    .opp-grid, .media-grid { grid-template-columns: 1fr; }
    .wl-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 25px; }
    .chairman { flex-direction: column; }
    .c-feat { flex-direction: column; }
    .c-feat .im { width: 100%; }
    .section { padding: 36px 0; }
}
