/*
--------------------------------------------------------------
>>>TABLE OF CONTENTS:
RESET
TABLE OL UL
DECOR
Skip to the content
NAVIGATION
LANGUAGE SWITCHER
ENTRY NEWS
BLOG POST GRID
TITLE
POST-THMBNAIL
PAGINATION
AUDIO PLAYER
ARTICLE CONTENT
ENTRY META ARTICLE
RELATED POST
CONTACT & HELP FOOTER
BACK TO TOP
DARK MODE
FOOTER
ICON SOCIAL MEDIA
DECOR KEYFRAME ANIMATIONS
RTL SUPPORT
RESPONSIVE

--- RESET ---*/
:root {
--color-primary: #386641;
--color-secondary: #6a994e;
--color-accent: #bc4749;
--color-cream: #fff7ed;
--color-mint: #f4ffe7;
--color-brook: #dfe9da;
--color-white: #ffffff;
--color-black: #000000;
--color-snow: #fbfff6;
--color-surface: #f2e8cf;
--color-text: #333333;
--color-orange: #eb5b00;
--color-orange-light: #fa812f;
--color-gray-light: #dddddd;
--color-gray-dark: #777777;
--color-overlay-light: rgba(255, 255, 255, .97);
--RGB-B5: rgb(0 0 0 / 5%);
--RGB-W70: rgb(255 255 255 / 70%);
--radius: 0.5rem;
--shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  --font-main: "DroidArabicKufi-Regular", Arial, sans-serif;
  --font-heading: "DroidArabicKufi-Regular", Arial, sans-serif;
  --font-latin: "Georgia", "Times", "Times New Roman", serif;
  --font-tifinagh: "Tifinagh-Regular", "Georgia", serif;
}

:root body.dark-mode {
  color-scheme: dark;
--color-primary: #6a994e;
--color-secondary: #a7c957;
--color-accent: #e76f51;
--color-cream: #2b2b2b;
--color-mint: #333d29;
--color-brook: #3b3d3a;
--color-white: #111111;
--color-black: #f9f9f9;
--color-snow: #1c1c1c;
--color-surface: #2a2a2a;
--color-text: #eeeeee;
--color-gray-light: #444444;
--color-gray-dark: #bbbbbb;
--color-overlay-light: rgba(0, 0, 0, .85);
--RGB-B5: rgb(255 255 255 / 5%);
--RGB-W70: rgb(0 0 0 / 70%);
--radius: 0.5rem;
--shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

@font-face {
  font-family: 'DroidArabicKufi-Regular';
  /* ✅ كان .woff فقط (42.6KB)؛ .woff2 متوفّر (31.3KB) وهو الأصغر والأسرع */
  src: url('../fonts/DroidArabicKufi-Regular.woff2') format('woff2'),
       url('../fonts/DroidArabicKufi-Regular.woff') format('woff');
  /* ✅ الوزن الحقيقي في الملف هو 400 (usWeightClass)؛ كان مُعلَنًا 500
     مع استخدام 600/700 في العناوين ⇒ تسنين صناعي يُشوّه العربية */
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tifinagh-Regular';
  src: url('../fonts/Tifinagh-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ملاحظة ما قبل النشر: هذه ضمادة تُخفي الفائض الأفقي ولا تعالجه.
   عُولجت المصادر المعروفة (.post-swiper 100vw، الجداول، الروابط الطويلة).
   راجعها في staging قبل إزالتها لأنها قد تُبطل position:sticky. */
body,html{overflow-x:hidden}
body.dark-mode .site-footer::before{background:rgb(51 61 41 / 79%)}
*,::after,::before{box-sizing:border-box}
*{margin:0;padding:0}
canvas,img,picture,svg,video{display:block;max-width:100%;width:100%;height:auto}
button,input,select,textarea{font:inherit}a{text-decoration:none;color:inherit}
ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}
blockquote{padding:15px;border-right:4px solid var(--color-gray-light);margin:30px 0}
blockquote p:first-of-type{margin-top:0}
.Dmode svg{width:28px;height:28px}

body {
  font: 16px/1.5 var(--font-main);
  color: var(--color-text);
  background-color: var(--color-white);
}

.post-swiper .swiper-pagination-bullet {
    width: 28px;
    height: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    background: #e0e0e0;
    color: #333;
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.post-swiper .swiper-pagination-bullet-active {
    background: #007cba;
    color: #fff;
}

/* للغة الأمازيغية */
html[lang="amz"] body {
  font-family: var(--font-tifinagh);
}

/* للنصوص اللاتينية أو المقالات الإنجليزية */
html[lang="en"] body,
html[lang="fr"] body,
html[lang="es"] body {
  font-family: var(--font-latin);
}

/* العناوين */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);font-weight:600;
}

/* عناوين في الصفحات الأمازيغية */
html[lang="amz"] h1,
html[lang="amz"] h2,
html[lang="amz"] h3 {
  font-family: var(--font-tifinagh);
}
h1,h2,h3,h4,h5,h6,p{margin:0 0 1rem}
h1{font-size:2.25rem;font-weight:700}
h2{font-size:1.875rem}
h3{font-size:1.5rem}
h4{font-size:1.25rem}
h5{font-size:1.125rem}
h6,p{font-size:1rem}
h6{font-weight:500}
p{line-height:1.6;font-weight:400;margin:1rem 0}
/*--- TOP BAR ---*/
.topbar,.topbar .donate-button{position:relative}
.donate-button{background-color:var(--color-secondary)}
.stick .nav-wrapper{top:0}
.topbar{width:100%;font-size:.9rem;padding:8px 20px;direction:rtl;display:flex;justify-content:space-around;align-items:center;font-family:Arial,sans-serif;height:48px;z-index:1}
.topbar .contact-info,.topbar .social{display:flex;gap:15px;align-items:center;z-index:1}
.topbar svg{width:25px;height:25px;background:var(--RGB-W70);border-radius:3px;padding:5px}
.topbar a{color:#fff;text-decoration:none;display:flex;align-items:center;gap:5px}
.topbar a:hover use{fill:var(--color-secondary)}
.topbar .donate-button{color:var(--color-white);padding:6px 14px;border-radius:6px;font-weight:700;transition:.3s ease-out}
.donate-button:hover{background-color:var(--color-secondary)}
/* ✅ تباين: كانت الخلفية --color-secondary (#6a994e) مع نص أبيض = 3.34:1 (فشل AA).
   الآن --color-primary (#386641) = 6.68:1 ✓ */
.donate-button,.donate-button:hover{background-color:var(--color-primary)}
.donate-button:hover,.social-icons a:hover{transition:.3s ease-out;transform:scale(1.1)}
/*--- TABLE OL UL ---*/
.entry-content ol,.entry-content ul{margin:30px 0 30px 60px}
.entry-content ol ol,.entry-content ul ul{margin-top:0;margin-bottom:0}
.entry-content ol{list-style:decimal-leading-zero;margin-left:70px}
.entry-content ul li:before{position:absolute;margin-left:-20px;content:"— "}
.entry-content li{line-height:1.5;margin:20px 0;font-size:18px}
/*--- DECOR ---*/
.grad-bar{max-width:1200px;width:100%;height:4px;background:linear-gradient(-45deg,#ee7752,#e73c7e,#23a6d5,#23d5ab);background-size:400% 400%;-webkit-animation:15s infinite gradbar;-moz-animation:15s infinite gradbar;animation:15s infinite gradbar;margin:auto}
.heading:after,.section-title:after{content:" ";position:absolute;margin-top:50px;left:50%;height:40px;width:180px;border-radius:4px;transform:translateX(-50%);background:url(../images/HL.png) center no-repeat}
/*--- Skip to the content ---*/
.screen-reader-text:focus,.skip-link:focus{left:5px;text-decoration:none}
.screen-reader-text{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.screen-reader-text:focus,.skip-link{position:absolute;top:5px;padding:.75rem 1rem;color:var(--color-primary);font-size:.875rem;border-radius:var(--radius,4px);z-index:1000}
.screen-reader-text:focus{background-color:var(--color-surface);font-weight:700;box-shadow:0 0 2px rgba(0,0,0,.5);clip:auto;clip-path:none;width:auto;height:auto;white-space:normal}
.skip-link{left:-9999px;background:var(--color-surface);text-decoration:underline;font-weight:600}#header{z-index:1000;position:relative}
/*--- NAVIGATION ---*/
#site-title a,
.menu-item a:hover {
    color: var(--color-secondary);
}
.nav-wrapper {
    position: fixed;
    width: 100%;
    height: 73px;
    border-bottom: 1px solid var(--RGB-B5);
    background-color: var(--RGB-W70);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.language-switcher,
.menu-item a,
.menu-item-has-children {
    position: relative;
    display: flex;
    align-items: center;
}
.navbar {
    display: grid;
    grid-template-columns: 1fr 3fr;
    align-items: center;
    height: 70px;
    max-width: 1300px;
    margin: auto;
    justify-items: start;
}
.navbar img {
    height: 60px;
    width: auto;
    justify-self: start;
    margin: 0 10px;
}
.navbar ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(8, auto);
    gap: 1rem;
    justify-items: center;
    align-items: center;
}
.menu-menu-ar-container,
.menu-menu-en-container,
.menu-menu-es-container,
.menu-menu-fr-container {
    width: 95%;
}
.nav-item a,
.page_item a,
nav .menu-item a {
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s, background 0.3s;
}
.menu-item a {
    transition: color 0.3s ease-in-out;
}
.menu-item a:not(footer .menu-item a):hover::before {
    transform: scaleX(1);
}
.menu .menu-item a::before {
    content: "";
    position: absolute;
    top: 100%;
    width: 100%;
    height: 3px;
    background-color: var(--color-secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.stick .nav-wrapper {
    background-color: var(--color-white);
    border-bottom: none;
    box-shadow: var(--shadow);
}
.menu-toggle-2 .bar,
.stick .menu-toggle-2 .bar {
    background-color: var(--color-primary);
}
.stick #site-title a,
.stick .page_item a {
    color: var(--color-primary);
    font-weight: 700;
}
#site-title a {
    display: flex;
    align-items: center;
    font-weight: 700;
    min-width: 300px;
}
.menu-toggle-2 {
    justify-self: end;
    margin-right: 25px;
    display: none;
    cursor: pointer;
}
.menu-toggle-2 .bar {
    width: 25px;
    height: 3px;
    margin: 5px auto;
    border-radius: var(--radius);
    transition: 0.3s ease-in-out;
}
#mobile-menu.is-active .bar:nth-child(2) {
    opacity: 0;
}
#mobile-menu.is-active .bar:first-child {
    transform: translateY(8px) rotate(45deg);
}
#mobile-menu.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
/**
 * ✅ المبدّل يستخدم <a> حقيقيًا مع أيقونة SVG داخله (ic-language path)،
 *    فلا حاجة لسهم CSS. وكان السهم يُضاف عبر `span::after` ⇒ **أيقونتان
 *    ظاهرتان معًا** (svg + مثلث). أُبطل السهم للمبدّل فقط، مع إبقائه
 *    لعناصر القوائم العادية التي لا تحمل أيقونة.
 */
.language-switcher span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-surface);
    cursor: pointer;
    padding: 8px 12px;
    font-size: 14px;
    transition: 0.3s;
}
.stick .language-switcher span {
    color: var(--color-primary);
}
/* لا سهم CSS للمبدّل — الأيقونة SVG موجودة في الوسم نفسه */
.language-switcher span::after,
.language-switcher > a::after {
    content: none;
    display: none;
}
.menu-item-has-children > a::after, .language-switcher::after {
    content: "\25BC";
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1em;
    height: 1em;
    margin-left: 6px;
    font-size: 0.7em;
    line-height: 1;
    transition: transform 0.3s;
    transform-origin: center center;
    vertical-align: middle;
}
.menu-item-has-children:hover > a::after, .language-switcher:hover > a::after {
    transform: rotate(180deg);
}
[dir="rtl"] .menu-item-has-children > a::after,[dir="rtl"] .language-switcher > a::after {
    margin-right: 6px;
}
.language-switcher > .sub-menu,
.menu-item-has-children > .sub-menu {
    position: absolute;
    height: auto;
    top: 100%;
    left: 0;
    background: var(--color-white);
    border: 2px solid var(--color-secondary);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s;
    z-index: 1000;
    margin-top: 5px;
    padding: 0;
	overflow: hidden;
}
.language-switcher:hover > .sub-menu,
/* ✅ لوحة المفاتيح واللمس: التركيز داخل المبدّل يفتح قائمته.
   بدون هذا كان المبدّل **غير قابل للاستخدام بلوحة المفاتيح** على سطح
   المكتب، وغير قابل للفتح على الأجهزة اللمسية (لا hover حقيقي). */
.language-switcher:focus-within > .sub-menu,
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.language-switcher .sub-menu li:last-child,
.menu-item-has-children .sub-menu li:last-child {
    border-bottom: none;
}
.language-switcher .sub-menu a,
.menu-item-has-children .sub-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--color-text);
    text-decoration: none;
    transition: 0.2s;
    white-space: nowrap;
    font-size: 14px;
}
.language-switcher .sub-menu a:hover,
.menu-item-has-children .sub-menu a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}
.menu .sub-menu {
    grid: none;
    display: block;
}
.sub-menu .menu-item {
    padding: 0;
    margin: 0;
    display: block;
}
.sub-menu a::before {
    display: none;
}
.icon-language {
    width: 18px;
    height: 18px;
    fill: var(--color-text);
    transition: fill 0.3s;
}
.sub-menu {
    width: 190px;
}
@media (max-width: 992px) {
    .navbar ul,
    .navbar ul a {
        color: var(--color-surface);
    }
    .navbar ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        align-items: normal;
        top: 73px;
        left: 0;
        max-width: 300px;
        min-width: 250px;
        height: calc(90vh - 55px);
        transform: translateX(-101%);
        text-align: center;
        background-color: var(--color-primary);
        overflow: hidden;
        border-bottom-right-radius: 25px;
        box-shadow: 0 3px 5px -2px rgba(113, 113, 113, 0.34);
        z-index: 100;
        overflow-y: scroll;
        transition: transform 0.5s ease-out 0.1s;
    }
    .menu-item {
        padding: 0 25px;
    }
    .stick .navbar ul {
        background-color: var(--color-white);
    }
    .stick .navbar ul a {
        color: var(--color-primary);
    }
    .menu-toggle-2.is-active .nav-wrapper {
        border-bottom-left-radius: 0;
    }
    .navbar li {
        padding: 5px 25px;
        text-align: left;
    }
    [dir="rtl"] .navbar li {
        text-align: right;
    }
    .navbar li:first-child {
        margin-top: 10px;
    }
    .navbar li a {
        font-size: 1rem;
    }
    .menu-toggle-2,
    .menu-toggle-2 .bar {
        display: block;
        cursor: pointer;
    }
    .mobile-nav {
        transform: translateX(0) !important;
    }
    .navbar {
        height: auto;
    }
    .navbar img {
        padding-top: 5px;
    }
    .language-switcher .sub-menu a,
    .menu-item-has-children .sub-menu a {
        padding: 5px 15px;
    }
    .menu-item-has-children > .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: 0 0;
        padding-left: 10px;
        margin-top: 0;
    }
    .menu-item-has-children .sub-menu a {
        padding: 8px 15px;
        color: #fff;
        font-size: 0.95rem;
    }
    .menu-item-has-children .sub-menu a:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    /**
     * ✅ المبدّل: قائمة منسدلة عادية على الجوال أيضًا.
     *
     * ⚠️ كان هنا:  .language-switcher > .sub-menu { top: -220px; left: 10px; }
     *    وهو ما جعل القائمة **مفتوحة ومزاحة 220 بكسل للأعلى** فوق الشاشة.
     *    السبب المزدوج: (1) قاعدة الجوال العامة تفتح كل .menu-item-has-children،
     *    فعندما كان المبدّل يحمل ذلك الصنف وَرِث الفتح التلقائي؛ و(2) هذا
     *    السطر أزاحها خارج مكانها. حُذف الصنف من الوسم (في language5.php)
     *    وحُذف هذا السطر، فصارت مغلقة حتى يلمسها الزائر.
     */
    .language-switcher > .sub-menu {
        position: absolute;
        top: 100%;
        left: auto;
        right: 0;
        min-width: 160px;
        /* يبقى مخفيًا حتى اللمس/التركيز بدل الفتح التلقائي */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
    }
    .language-switcher:focus-within > .sub-menu,
    .language-switcher:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    /* لا سهم CSS للمبدّل على الجوال أيضًا */
    .language-switcher > a::after {
        content: none;
        display: none;
    }
}
/*--- ENTRY NEWS ---*/
.entry-news{display:flex;align-items:center;gap:12px;margin:25px 0;background:var(--RGB-B5);padding:10px;border-radius:30px}
.entry-news .home-link{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--color-gray-light);transition:background .3s,transform .2s;text-decoration:none}
.entry-news .home-link:hover{background:var(--color-secondary);transform:scale(1.1)}
.entry-news .home-link:hover .ic-home{fill:var(--color-white)}
.entry-news .ic-home{width:20px;height:20px;fill:var(--color-secondary)}
.entry-news a,.entry-news h1{font-size:1rem;font-weight:700;color:var(--color-text);margin:0}
.entry-news .general-link{
    display:inline-flex;align-items:center;gap:6px;
    margin-inline-start:auto;
    padding:6px 12px;border-radius:30px;
    background:var(--color-secondary);
    color:var(--color-white);text-decoration:none;
    font-size:.9rem;font-weight:600;line-height:1;
    white-space:nowrap;
    transition:background .3s,transform .2s;
}
.entry-news .general-link:hover{background:var(--color-primary);transform:translateY(-1px)}
.entry-news .general-link:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}
.entry-news .general-link .ic-general{width:14px;height:14px;fill:currentColor;flex:0 0 auto}
/* ✅ في RTL نعكس السهم ليشير إلى اتجاه القراءة */
[dir="rtl"] .entry-news .general-link .ic-general{transform:scaleX(-1)}
/* ⚠️ على الشاشات الضيقة النصّ طويل («المقالات العامة» · «Artículos
   generales») فيضغط الشريط. نسمح بالانكسار ونجعله بعرض كامل. */
@media only screen and (max-width:600px){
    .entry-news{flex-wrap:wrap;gap:8px}
    .entry-news .general-link{margin-inline-start:0;font-size:.82rem;padding:5px 10px;width:200px;justify-content:center;margin:revert-rule}
}
.container{max-width:1200px;padding:60px 15px;margin:15px auto}
/*--- BLOG POST GRID ---*/
.posts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px;margin:30px 0}
.post-card{border:1px solid var(--color-gray-light);border-radius:8px;padding:20px;transition:transform .3s;background:var(--color-brook)}
.post-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
/*--- TITLE ---*/
.entry-title{margin-top:1rem;display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.entry-title a{text-decoration:none;color:var(--color-text);display:flex;align-items:center;gap:10px}
.entry-title a:hover{color:var(--color-primary)}
/*--- POST-THMBNAIL ---*/
.post-thumbnail{margin-bottom:15px}
.post-thumbnail img{width:100%;height:200px;object-fit:cover;border-radius:5px;transition:opacity .3s}
/*#content img{height:auto;transition:.3s ease-out}*/
.post-thumbnail a:hover img{opacity:.9}
/*--- PAGINATION ---*/
.pagination{margin-top:40px;text-align:center}
.pagination a,.pagination span{display:inline-block;color:var(--color-secondary);padding:8px 15px;margin:0 5px;border:1px solid var(--color-gray-light);border-radius:4px;text-decoration:none}
.pagination a:hover{background:var(--color-mint)}
.pagination .current{background:var(--color-secondary);color:var(--color-white);border-color:var(--color-secondary)}
/*--- ENTRY META ARTICLE ---*/
.entry-meta{display:flex;position:relative;align-items:center}
.entry-footer,.entry-footer a,.entry-meta,.entry-meta a{font-size:16px;color:var(--color-gray-dark)}
.posts-grid .entry-meta{font-size:14px;color:var(--color-gray-dark)}
.date{margin:20px 0 0;gap:5px}
.date svg{width:1em;height:1em;fill:currentColor;display:inline-block;vertical-align:middle}
.social-share-buttons{margin:20px auto auto 0;display:flex}
.social-share-button{margin-right:10px}
.social-share-buttons svg{width:38px;height:38px;fill:var(--color-white);background:var(--color-gray-light);padding:10px;border-radius:8px}
#article-content a{color:#102ce5;border-bottom-style:dashed;border-block-width:1px}
/*--- CONTACT & HELP FOOTER ---*/
.contact-margin{padding:20px;display:flex;justify-content:center;z-index:2;position:relative}
/* ✅ تباين: كان #ffffff على #fa812f = 2.55:1 و#eb5b00 = 3.48:1 (فشل AA).
   الآن #9a3412 → #c2410c مع نص أبيض = 6.4:1 / 4.9:1 ✓ */
.contact-banner{background:linear-gradient(90deg,#9a3412,#c2410c);padding:50px;color:var(--color-white);border-radius:20px;position:relative;overflow:hidden;max-width:1000px;width:100%;margin-bottom:-50px;box-shadow:2px 5px 24px 0 rgba(0,0,0,.12)}
.contact-banner::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-image:url("data:image/svg+xml,%3Csvg fill='%23ffffff' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' stroke='%23ffffff'%3E%3Ccircle cx='11' cy='15.5' r='1.5'/%3E%3Cpath d='M12,12H10V8h2a2,2,0,0,0,0-4H10A2.0023,2.0023,0,0,0,8,6v.5H6V6a4.0045,4.0045,0,0,1,4-4h2a4,4,0,0,1,0,8Z'/%3E%3Cpath d='M22.4479,21.0337A10.971,10.971,0,0,0,19.9211,4.7446l-.999,1.73A8.9967,8.9967,0,1,1,5,14H3a10.9916,10.9916,0,0,0,18.0338,8.4478L28.5859,30,30,28.5859Z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center;background-size:100px auto;opacity:.08;pointer-events:none;z-index:0}
.contact-inner{position:relative;z-index:1}
.contact-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:15px}
.contact-text{font-size:24px;font-weight:700}
.contact-button{background-color:#9a3412;color:var(--color-white);padding:10px 25px;border-radius:25px;border:none;font-size:16px;display:inline-flex;align-items:center;gap:8px;text-decoration:none;transition:background-color .3s}
.contact-button:hover{background-color:var(--color-secondary);cursor:pointer}
.contact-button-icon{background-color:var(--color-primary);color:var(--color-white);border:2px solid var(--color-white);border-radius:50%;width:24px;height:24px;display:flex;align-items:center;justify-content:center;font-size:14px}
/*--- BACK TO TOP ---*/
.toTopB.vsbl{visibility:visible;opacity:1;transform:scale(1)}
.toTopB{display:flex;align-items:center;justify-content:center;position:fixed;right:22px;bottom:75px;width:45px;height:45px;border-radius:50%;cursor:pointer;visibility:hidden;opacity:0;z-index:10;transform:scale(0);border:none;transition:.3s}
.toTopB svg{height:100%;width:100%;transform:rotate(-90deg);stroke-width:1.5}
.toTopB svg .b{fill:var(--color-surface);stroke:var(--color-white);opacity:.9}
.toTopB svg .c,svg .line{fill:none;stroke:var(--color-primary)}
.toTopB svg .c{stroke-dasharray:100 100;stroke-dashoffset:100;stroke-linecap:round}
svg .line{stroke-linecap:round;stroke-linejoin:round;stroke-width:2}
/*--- DARK MODE ---*/
.Dmode{display:flex;align-items:center;justify-content:center;position:fixed;z-index:10;background:var(--color-surface);opacity:.9;width:45px;height:45px;border-radius:100%;right:22px;transition:.3s;bottom:20px;border:none;cursor:pointer;box-shadow:0 0 15px rgb(0 0 0 / 8%)}
.dark-mode{background:var(--color-white);color:var(--color-text)}
.Dmode svg{color:var(--color-primary)}
/*--- FOOTER ---*/
.site-footer,.topbar{background-image:url("../images/DecorA.png");position:relative}
.site-footer::before,.topbar::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:rgb(56 102 65 / 95%);z-index:1}
.site-footer p {color:#ddd}
.footer-column h4{font-weight:700;margin-bottom:20px;color:#fff}
.footer-column h4::after{content:""}
.site-footer{padding:70px 20px 20px;border-top:1px solid var(--color-accent)}
.footer-container{display:flex;flex-wrap:wrap;justify-content:space-between;max-width:1200px;margin:auto;position:relative;z-index:2;color:#ddd}
.footer-column{flex:1 1 200px;min-width:200px}
.footer-links{flex-direction:column;gap:10px;list-style:none;padding:0;margin:0}
.footer-links li{display:flex;align-items:center;font-size:1.1rem;margin:0;font-weight:400;color:var(--color-gray-dark);transition:.3s;position:relative;z-index:2}
.footer-links li::before{content:"";width:10px;height:2px;background-color:#fff;margin:0 10px;border-radius:10px;transition:.3s}
.footer-links li:hover::before{width:16px;background-color:var(--color-secondary)}
footer .menu-item a{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer;font-size:14px;color:#fff;cursor:pointer;margin-top:5px;transition:.2s ease-out .1s}
footer .menu-item a:hover{margin-right:5px;transition:.2s ease-out .1s}
.footer-brand{display:flex;flex-wrap:wrap;flex-direction:column;align-items:center;text-align:center}

/* ==========================================================================
   ✅ مبدّل اللغة في الفوتر — داخل عمود الشعار، فوقه مباشرة
   ==========================================================================
   ⚠️ الموضع: المبدّل **أول ابن** في `.footer-column.footer-brand`.
      وكان قبل العمود في الحاوية، والحاوية `display:flex; flex-wrap:wrap`
      فبكونه `flex-basis:100%` كان ينزل إلى صف منفصل **بين** الصف الأول
      وعمود الشعار — لا فوق الشعار مباشرة. والقياس أثبته:
        الصف 1 (ثلاث أعمدة) 8422 → 8628
        المبدّل             8628 → 8688   ← صف مستقل
        عمود الشعار         8716 → 9051

   ⚠️ ولماذا `flex: 0 0 100%` ما زال مكتوبًا؟
      لأن العمود نفسه `display:flex; flex-direction:column`. وفي العمود
      بهذا الاتجاه يعني `flex-basis:100%` **الارتفاع** لا العرض ⇒ كان
      سيتمدد رأسياً. فالمهم هنا هو `flex: 0 0 auto` لإلغائه.
      (نُبقيه مكتوبًا صراحةً لا اعتمادًا على قيمة افتراضية.)

   ⚠️ والمحاذاة: العمود `align-items:center`، وبعرض 100% يصير المبدّل
      ممتدًّا ثم `justify-content:center` توسّط محتواه ⇒ يبقى في المنتصف
      كما هو الآن.

   ⚠️ ولا حدّ سفلي: كان يفصل المبدّل عن ما تحته حين كان صفًّا مستقلًا.
      والآن هو داخل العمود فوق «تابعونا على:» مباشرة ⇒ الحدّ يصير خطًّا
      زائدًا في منتصف العمود.

   ⚠️ والأنماط المشتركة (الأيقونة · القائمة المنسدلة · hover و
      focus-within) تأتي من قواعد `.language-switcher` العامة — لا نُكرّرها.
   ========================================================================== */
.footer-brand .language-switcher--footer {
    flex: 0 0 auto;               /* ⚠️ يُلغي 0 0 100% الموروثة */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 18px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--RGB-B5);
}
/* في الجوال: مسافة أقل، فالعمود يتراكم رأسياً بالمحتوى نفسه */
@media only screen and (max-width: 768px) {
    .footer-brand .language-switcher--footer {
        margin-bottom: 14px;
        padding-bottom: 12px;
    }
}

/* المبدّل نفسه: حبّة واضحة على خلفية الفوتر الداكنة */
.language-switcher--footer > svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    opacity: .85;
}
.language-switcher--footer > span {
    color: var(--color-white);
    font-weight: 600;
}
.language-switcher--footer::after {
    color: var(--color-white);
}
.language-switcher--footer:hover > span,
.language-switcher--footer:focus-within > span {
    color: var(--color-secondary);
}

/* ✅ القائمة المنسدلة في الفوتر تفتح **للأعلى** لا للأسفل.
   القاعدة العامة تضعها `top:100%` (تحت المبدّل). وفي الفوتر المبدّل قريب
   من أسفل الصفحة ⇒ القائمة كانت ستخرج خارج الشاشة أو تُقصّ.
   فنقلبها إلى `bottom:100%` مع عكس اتجاه الحركة. */
.language-switcher--footer > .sub-menu {
    top: auto;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, 10px);
    margin-top: 0;
    margin-bottom: 5px;
}
.language-switcher--footer:hover > .sub-menu,
.language-switcher--footer:focus-within > .sub-menu {
    transform: translate(-50%, 0);
}

/* ✅ الجوال: المبدّل بعرض كامل والقائمة المنسدلة أيضًا */
@media only screen and (max-width: 768px) {
    .language-switcher--footer { margin-bottom: 22px; padding-bottom: 18px; }
    .language-switcher--footer > .sub-menu {
        left: 50%;
        min-width: 160px;
    }
}

.footer-logo img{max-width:150px;height:auto}
.social-icons{display:flex;gap:10px;margin:10px 0}
.social-icons svg{width:35px;height:35px;background:var(--RGB-W70);padding:7px;border-radius:50%}
.footer-bottom{max-width:200px;padding-top:20px;font-size:14px}
.footer-bottom a{color:var(--color-white);text-decoration:none}
/* ✅ في الوضع الداكن --color-white = #111111 ⇒ تباين 2.83:1 على خلفية التذييل */
body.dark-mode .footer-bottom a,body.dark-mode .footer-bottom span{color:#ffffff}
/*--- ICON SOCIAL MEDIA ---*/
.youtube use{fill:#e52d27}
.facebook use{fill:#1778f2}
.map use{fill:#cc2127}
.tel use{fill:#128c7e}
.email use{fill:#ea4335}
.rss use{fill:#ff7902}
.face svg{background:#1778f2}
.whats svg{background:#25d366}
.x use{fill:var(--color-black)}
.copy svg{background:var(--color-text)}
.prnt svg{background:var(--color-secondary)}
.designer-rotator {
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
    margin: 20px 0;
    height: 1.2em; /* يمنع اهتزاز الصفحة */
}

.designer-link {
    color: inherit;
    text-decoration: none;
    position: relative;
}

.designer-rotator .text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
    white-space: nowrap;
}

.designer-rotator .text.active {
    opacity: 1;
}

.heart {
  display: inline-block;
  width: 9px;   /* كان 16px → الآن أصغر */
  height: 9px;
  background-color: var(--color-secondary); /* الأخضر الهادئ */
  position: relative;
  transform: rotate(-45deg);
  animation: heartbeat 3s infinite ease-in-out; /* نبض بطيء ولطيف */
  margin: 0 5px;
  opacity: 0.9;
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background-color: var(--color-secondary);
  border-radius: 50%;
}

.heart::before {
  top: -5px;
  left: 0;
}

.heart::after {
  left: 5px;
  top: 0;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1) rotate(-45deg);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.15) rotate(-45deg);
    opacity: 1;
  }
}

/*--- css pages---*/
.services-page{line-height:1.6;color:var(--color-text);background-color:var(--color-primary)}
.services-page .container {
  max-width: 1200px;
  padding: 0;
  margin: auto;
}
.hero,.hero h1,.hero p,.impact-content p{color:var(--color-white)}
.partner-card,.service-card{transition:transform .3s;padding:1.5rem}
.partner-card:hover,.service-card:hover,.source-card:hover{transform:translateY(-5px)}
.hero,.impact-content,.partner-card,
.services-page .section-title,.source-link,.sources-intro{text-align:center}
.services-page .container-impact{width:90%;max-width:1200px;margin:0 auto;padding:0 15px}
.hero{background:linear-gradient(rgba(56,102,65,.8),rgba(56,102,65,.8)),url('../images/IM.webp') center/cover no-repeat;padding:5rem 0;margin-top:70px}
.hero h1{font-size:2.5rem;margin-bottom:1rem}
.hero p{font-size:1.2rem;max-width:800px;margin:0 auto}
.services-page section{padding:4rem 0;background-color:var(--color-snow)}
.services-page .section-title{margin-bottom:3rem;color:var(--color-primary);position:relative}
.services-page .section-content{background-color:var(--color-white);padding:2rem;border-radius:var(--radius);box-shadow:var(--shadow);margin:0 auto 2rem}
.about-content,.vision-mission-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem}
.about-image{background-color:var(--color-gray-light);border-radius:var(--radius);min-height:300px;display:flex;align-items:center;justify-content:center;color:var(--color-gray-dark);object-fit:cover}
.services-page .services,.services-page .vision-mission{background-color:var(--color-surface)}
.mission-card,.partner-card,.service-card,.vision-card{background-color:var(--color-white);border-radius:var(--radius);box-shadow:var(--shadow)}
.mission-card,.vision-card{padding:2rem}
.mission-list{list-style-type:none;margin-top:1rem}
.mission-list li{margin-bottom:.5rem;padding-right:1.5rem;position:relative}
.mission-list li::before{content:'✓';position:absolute;right:0;color:var(--color-secondary);font-weight:700}
.partners,.services-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}
.partner-icon{font-size:2.5rem;color:var(--color-primary);margin-bottom:1rem}
.service-icon{width:70px;height:70px;display:flex;align-items:center;justify-content:center;margin-bottom:20px;border-radius:50%;background:var(--RGB-B5)}
.program-card,.source-card{border-radius:var(--radius);box-shadow:var(--shadow)}
.programs-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem}
.program-card{background-color:var(--color-white);padding:1.5rem;border-top:4px solid var(--color-secondary)}
.services-page .impact{background-color:var(--color-primary);color:var(--color-white)}
.services-page .external-sources{background-color:var(--color-mint);padding:4rem 0}
.sources-intro{margin-bottom:2rem;font-size:1.1rem;color:var(--color-text)}
.source-icon,.source-meta,.source-title{margin-bottom:1rem}
.sources-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(350px,1fr));gap:1.5rem}
.source-card{background-color:var(--color-white);padding:1.5rem;transition:.3s;border-right:4px solid var(--color-secondary);display:flex;flex-direction:column;height:100%}
.source-link,.source-website{display:inline-block;font-weight:500}
.source-card:hover{box-shadow:0 8px 20px rgba(0,0,0,.15)}
.source-icon{font-size:2rem;color:var(--color-primary);width:70px}
.source-title{font-size:1rem;line-height:1.5;color:var(--color-text);flex-grow:1}
.source-website{background-color:var(--color-gray-light);color:var(--color-gray-dark);padding:.3rem .8rem;border-radius:20px;font-size:.85rem}
.source-link{background-color:var(--color-primary);color:var(--color-white);padding:.6rem 1.2rem;border-radius:var(--radius);text-decoration:none;transition:background-color .3s;margin-top:auto}.source-link:hover{background-color:var(--color-secondary)}
.impact-content{max-width:800px;margin:0 auto}
.services-page .site-footer::before,.services-page .topbar::before{background:rgb(56 102 65 / 72%)}@media (max-width:768px){.hero h1{font-size:2rem}
.about-content,.sources-grid,.vision-mission-grid{grid-template-columns:1fr}
.source-card{padding:1.2rem}}

/*--- DECOR KEYFRAME ANIMATIONS ---*/
@-webkit-keyframes gradbar{0%,100%{background-position:0 50%}50%{background-position:100% 50%}}
@-moz-keyframes gradbar{0%,100%{background-position:0 50%}50%{background-position:100% 50%}}
@keyframes gradbar{0%,100%{background-position:0 50%}50%{background-position:100% 50%}}
/*--- RTL SUPPORT ---*/
html[dir=rtl] .menu-toggle-2{margin-left:25px;margin-right:0}
html[dir=rtl] .entry-content ol,html[dir=rtl] .entry-content ul{margin:30px 60px 30px 0}
html[dir=rtl] .entry-content ul li:before{margin-right:-20px;content:" —"}
[dir=ltr i] .social-share-buttons{margin:20px 0 auto auto}
html[dir=rtl] .skip-link:not(:focus){right:-9999rem;left:auto}
html[dir=rtl] .toTopB{right:auto;left: 22px}
html[dir=rtl] .Dmode{right:auto;left: 22px}
.feature-item h3::before,.related-post h2::before{margin-left:10px}
.ltr{direction:ltr}

/* ==========================================================================
   ✅ التنقّل بين المقالات — زرّا «السابق» و«التالي»
   ==========================================================================
   ⚠️ الموضع في الصفحة: داخل `<main>` بعد `</article>` وقبل
      `.related-post` مباشرة (انظر single.php). وهو **خارج** المقال
      عمدًا — التنقّل ليس من محتوى المقال.
   ⚠️ والمحاذاة: `margin:36px auto` مع `max-width` يجعل الصفّ في نفس
      عمود المقال ⇒ لا يبدو الزرّ معلّقًا خارج التصميم.
   ⚠️ والاتجاه: نستخدم `grid` بعمودين متساويين بدل flex مع `order` —
      فـ`grid` يحترم ترتيب الـDOM ويُبدّل الأعمدة تلقائيًا في RTL، بلا
      `direction` يدوي ولا `order` ينقلب خطأً. وهذا مهمّ لأن القالب
      يخدم العربية (RTL) والأربع الأخرى (LTR) من نفس الأنماط.
   ⚠️ والأسهم: `#ic-angle-right` أيقونة واحدة فقط متاحة في
      `assets/svg/icons.svg` — فنعكسها للأزرار التي تشير يسارًا بـ
      `scaleX(-1)` بدل طلب أيقونة غير موجودة (وهو خطأ صامت: `<use>`
      بمعرّف مجهول يُنتج أيقونة مختفية بلا رسالة).
   ========================================================================== */
.post-nav{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    max-width:1200px;
    margin:36px auto;
    /* ⚠️ الحشو الجانبي يطابق `.container` (15px) كي تتحاذى الأزرار
       مع شبكة المقالات لا مع حدّ الشاشة. */
    padding:0 15px;
    box-sizing:border-box;
}
.post-nav-link{
    display:flex;
    align-items:center;
    gap:12px;
    min-height:74px;
    padding:14px 18px;
    border:1px solid var(--color-gray-light);
    border-radius:8px;
    background:var(--color-brook);
    color:var(--color-text);
    text-decoration:none;
    transition:background .3s,border-color .3s,transform .2s;
}
.post-nav-link:hover{
    background:var(--color-mint);
    border-color:var(--color-secondary);
    transform:translateY(-2px);
}
.post-nav-link:focus-visible{
    outline:2px solid var(--color-primary);
    outline-offset:2px;
}
/* الزرّان: «السابق» يبدأ من جهة البداية، و«التالي» يُحاذى لجهة النهاية */
.post-nav-next{
    flex-direction:row-reverse;
}
/* السهم: دائرة بنفس روح `.home-link` في شريط الأخبار */
.post-nav-arrow{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    width:36px;
    height:36px;
    border-radius:50%;
    background:var(--color-gray-light);
    transition:background .3s,transform .2s;
}
.post-nav-arrow svg{width:20px;height:20px;fill:var(--color-secondary);transition:fill .3s}
.post-nav-link:hover .post-nav-arrow{background:var(--color-secondary)}
.post-nav-link:hover .post-nav-arrow svg{fill:var(--color-white)}
/* ✅ عكس السهم حسب الجهة — لا حاجة لأيقونة ثانية */
html[dir="rtl"] .post-nav-next .post-nav-arrow svg { transform: scaleX(-1); }
html[dir="ltr"] .post-nav-prev .post-nav-arrow svg { transform: scaleX(-1); }
/* النصّ: سطر توجيه صغير + عنوان المقال */
.post-nav-text{
    display:flex;
    flex-direction:column;
    gap:3px;
    min-width:0;         /* ⚠️ ضروري ليعمل قطع النصّ الطويل داخل flex */
}
.post-nav-hint{
    font-size:.78rem;
    font-weight:600;
    color:var(--color-secondary);
    letter-spacing:.2px;
}
.post-nav-title{
    font-size:.98rem;
    font-weight:700;
    line-height:1.4;
    color:var(--color-text);
    /* ⚠️ سطران كحدّ أقصى: العناوين هنا طويلة جدًّا (بعضها 80+ حرفًا)،
       وتركها بلا حدّ يجعل الزرّين متفاوتي الارتفاع فيختلّ الصفّ. */
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
/* ⚠️ البديل حين لا يوجد مقال في جهة ما: عنصر فارغ يحفظ العمود فلا
   يتمدّد الزرّ الوحيد على العرض كاملًا. */
.post-nav-spacer{display:block}
/* ✅ الجوال: عمود واحد — الزرّان بعرض كامل متراكمان */
@media only screen and (max-width:768px){
    .post-nav{
        grid-template-columns:1fr;
        gap:12px;
        margin:26px auto;
        padding:0 15px;
    }
    .post-nav-link{min-height:auto;padding:12px 14px}
    .post-nav-arrow{width:32px;height:32px}
    .post-nav-arrow svg{width:17px;height:17px}
    .post-nav-title{font-size:.92rem}
}
/* ⚠️ وضع داكن: الزرّ بخلفية فاتحة صريحة لا تتبع متغيّرات الوضع الداكن
   (وهي تنقلب)، فنضبط الألوان هنا لتبقى مقروءة. */
body.dark-mode .post-nav-link{background:#1f2a1c;border-color:#3a4a35;color:#f2f2f2}
body.dark-mode .post-nav-link:hover{background:#26331f;border-color:var(--color-secondary)}
body.dark-mode .post-nav-title{color:#f2f2f2}
body.dark-mode .post-nav-arrow{background:#2c3a27}
/*--- RESPONSIVE ---*/
@media only screen and (max-width:768px){.topbar span{display:none}.features{flex-direction:column;padding:50px}.footer-column.active .footer-links{display:block}.contact-row{flex-direction:column;text-align:center}.contact-text{font-size:20px}.contact-button{justify-content:center}.player-controls{gap:15px}.control-group{order:1}.player-info{order:3;text-align:center;margin:10px 0}.speed-single-btn{order:2;margin:0 auto}.footer-column{padding-bottom:15px}.footer-column h4{cursor:pointer;display:flex;align-items:center;justify-content:space-between}.footer-column h4::after{content:"\25BC";font-size:.8em;margin-left:8px;transition:transform .3s}.footer-links{display:none;margin-top:5px}.footer-column.active h4::after{transform:rotate(180deg)}}
@media (max-width:480px){.contact-text{font-size:18px}.contact-button{font-size:14px;padding:8px 20px}.contact-button-icon{width:20px;height:20px;font-size:12px}.entry-meta .date{margin:10px 0 0;max-width:110px}}
/* ==========================================================================
   ✅ إضافات الوصولية والحركة — أُضيفت في مراجعة ما قبل النشر
   ========================================================================== */

/* احترام تفضيل تقليل الحركة (WCAG 2.2.2).
   كان الموقع يضم 7+ حركات لا نهائية وسلايدرات تلقائية بلا زر إيقاف. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .slider-image-hero,
  .swiper-slide {
    transition: none !important;
  }
}

/* حلقة تركيز واضحة وموحّدة (كانت :focus-visible غائبة تمامًا،
   وoutline:0 مُطبَّقًا على أزرار الأكورديون) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--color-accent, #bc4749);
  outline-offset: 2px;
  border-radius: 2px;
}

/* أهداف اللمس: الحد الأدنى الموصى به 44×44 بكسل.
   كانت أزرار «استمع للمقال» 36-40px وزر القائمة ≈25×29px والنقاط 16×16px. */
/*.menu-toggle-2 { min-width: 44px; min-height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; }*/
.webkit-tap-target,
.pagination a,
.pagination span { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* حجم خط حقول النموذج ≥16px لمنع التكبير التلقائي في iOS عند التركيز */
input, select, textarea { font-size: max(16px, 1rem); }

/* منع تجاوز الجداول والروابط الطويلة للشاشة (بدل ضمادة overflow-x:hidden) */
table { display: block; max-width: 100%; overflow-x: auto; }
iframe, embed, object { max-width: 100%; }
.entry-content, .entry-content p, .entry-content li { overflow-wrap: anywhere; word-break: break-word; }

/* منع تضخيم النص عند تدوير الشاشة في iOS */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* ==========================================================================
   ✅ نموذج البحث — كان searchform.php غير موجود فيُعرض النموذج الافتراضي
   بلا أي تنسيق من القالب
   ========================================================================== */
.search-form { max-width: 560px; margin: 0 auto 2rem; }
.search-form-inner { display: flex; gap: 8px; align-items: stretch; }
.search-form .search-field {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 16px;                /* ≥16px يمنع التكبير التلقائي في iOS */
  border: 1px solid var(--color-brook, #dfe9da);
  border-radius: var(--radius, 8px);
  background: var(--color-white, #fff);
  color: var(--color-text, #333);
}
.search-form .search-submit {
  flex: 0 0 auto;
  min-width: 48px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-primary, #386641);
  border-radius: var(--radius, 8px);
  background: var(--color-primary, #386641);
  color: #fff;
  cursor: pointer;
}
.search-form .search-submit:hover { background: var(--color-secondary, #6a994e); }
.search-form .search-submit svg { width: 20px; height: 20px; fill: currentColor; }

/* صفحة «لا نتائج» */
.no-results { text-align: center; padding: 2rem 1rem; }
.no-results p { font-size: 18px; margin-bottom: 1.5rem; }
.no-results-search { margin-top: 1.5rem; }

/* ✅ #content كان مُعرَّفًا في lightbox.css فقط (يُحمَّل في المقالات)
   ⇒ صفحات الفهرس/البحث/404 كانت بلا حشو أفقي ونصّها ملتصق بحافة الشاشة */
#content { max-width: 100%; margin: 0 auto;}
