﻿/* الخط المعتمد لمستشفيات الحمادي */
@font-face {
    font-family: 'Sakkal Majalla';
    src: local('Sakkal Majalla'), local('Majalla UI');
}

html, body {
    font-family: 'Sakkal Majalla', 'Majalla UI', Tahoma, sans-serif !important;
    /* حجم خط متجاوب مع حجم الشاشة */
    font-size: clamp(18px, 1.1vw + 0.5rem, 20px);
    font-weight:bold
    /* الشرح:
     - أصغر حجم 14px للجوالات
     - يزيد تدريجيًا حسب عرض الشاشة (1.1vw)
     - لا يتجاوز 20px على الشاشات الكبيرة
  */
}
h1, h2, h3 {
   /* font-weight: 800;*/
    text-align: center;
    line-height: 1.3;
}

h1 {
    font-size: clamp(22px, 2.5vw, 36px);
}

h2 {
    font-size: clamp(22px, 2vw, 30px);
}

h3 {
    font-size: clamp(22px, 1.6vw, 26px);
}

:root {
    --brand: #007d8a;
    --brand-700: #0a6570;
    --ink: #0c1a20;
    --muted: #6c7a81;
    --bg: #f5fbfa;
    --card: #ffffff;
    --border: #ddebea;
    --chip: #e8f1dc;
    --accent: #ecf9f7;
    --fs-base: clamp(16px, 1.6vw, 18px);
    --fs-title: clamp(20px, 2.1vw, 26px);
    --fs-h: clamp(18px, 1.9vw, 22px);
    --fs-small: clamp(12px, 1.2vw, 13px);
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: system-ui, Tahoma, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.85;
    font-size: var(--fs-base);
}

/* Header */
:root {
    --hdr-h: 0px;
}
/* متغير عالمي لارتفاع الهيدر */

.hdr {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: linear-gradient(0deg,var(--brand-700), var(--brand));
    color: #fff;
    border-bottom: 1px solid color-mix(in oklab, #000 10%, transparent);
}


.hdr-wrap {
    max-width: 1280px;
    margin: auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

    .brand img {
        height: 100px;
        width: auto;
        object-fit: contain
    }

    .brand h1 {
        margin: 0;
        font-size: clamp(18px, 2vw, 22px);
        letter-spacing: .2px
    }

.tag {
    font-size: var(--fs-small);
    opacity: .95
}

/* Scroll progress */
.prog {
    position: fixed;
    inset-inline: 0;
    top: var(--hdr-h);
    height: 3px;
    background: linear-gradient(90deg,#fff 0%, transparent 0%);
    z-index: 900;
}


/* Layout */
.wrap {
    max-width: 1280px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
}

@media (max-width: 1100px) {
    .wrap {
        grid-template-columns: 1fr
    }
}

.side {
    position: sticky;
    top: 96px;
    align-self: start;
    z-index: 10
}

.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,.05);
}

    .panel h3 {
        margin: 4px 6px 22px;
        font-size: var(--fs-small);
        color: var(--muted);
        font-weight: 800
    }

/* Right menu buttons */
.svc {
    display: flex;
    flex-direction: column;
    gap: 10px
}
    /* الزر الفعّال: أكبر + توهّج نصي لطيف */
    .svc .active {
        background: linear-gradient(0deg, var(--brand-700), var(--brand));
        color: #fff;
        border-color: #fff;
        /* تكبير بسيط */
        font-size: 1.08em;
        /* توهّج للنص */
        text-shadow: 0 0 6px color-mix(in oklab, #ffffff 70%, var(--brand) 30%), 0 0 12px color-mix(in oklab, var(--brand) 55%, #ffffff 45%);
        /* إبراز خارجي بسيط */
        box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 28%, transparent), 0 6px 14px color-mix(in oklab, var(--brand-700) 22%, transparent);
    }

    /* جميع أزرار قائمة الخدمات بنفس تدرّج الهيدر + خط أبيض */
    .svc button {
        background: linear-gradient(0deg, var(--brand-700), var(--brand));
        color: #fff;
        border: 1px solid var(--brand-700);
        border-radius: 12px;
        padding: 10px 14px;
        font-weight: 600;
        cursor: pointer;
        /* أضفنا تكبير/توهج سلسين */
        transition: font-size .12s ease, text-shadow .12s ease, transform .12s ease, filter .12s ease, box-shadow .12s ease;
        box-shadow: 0 2px 0 color-mix(in oklab, var(--brand-700) 40%, transparent);
    }


        .svc button:hover,
        .svc button:focus {
            filter: brightness(1.05);
            outline: 2px solid color-mix(in oklab, var(--brand) 35%, transparent);
            outline-offset: 2px;
        }

        .svc button:active {
            transform: translateY(1px);
        }



.chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--chip);
    font-size: var(--fs-small);
    margin-inline-start: 6px;
    color: #2b571b
}

.help {
    margin: 12px 4px 0;
    padding: 10px 12px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: #fcfffe;
    color: #2a4e55;
    font-size: var(--fs-small)
}

/* Content */
.content {
    display: flex;
    flex-direction: column;
    gap: 18px
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 14px 30px rgba(0,0,0,.05)
}

/* عنوان بارز “ملون + إطار” + Sticky */
.title {
    --ring: color-mix(in oklab, var(--brand) 18%, transparent);
    position: sticky;
    top: 76px;
    z-index: 20;
    margin: 0 0 14px;
    font-size: var(--fs-title);
    font-weight: 900;
    color: var(--brand-700);
    padding: 14px 16px;
    border: 2px solid var(--brand-700);
    background: linear-gradient(0deg, var(--accent), #fff 65%), radial-gradient(100% 100% at 0 0, color-mix(in oklab, var(--brand) 6%, transparent), transparent);
    border-radius: 14px;
    box-shadow: 0 0 0 4px var(--ring);
}

@media (max-width: 720px) {
    .title {
        top: 72px
    }
}

.lead {
    margin: 0 0 10px;
    color: #14343b;
    font-size: clamp(16px, 1.7vw, 19px)
}

.ul {
    margin: 0;
    padding: 0 20px
}

    .ul li {
        margin: 8px 0
    }

/* Stepper */
.steps {
    display: grid;
    gap: 12px
}

.step {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: border-color .18s, box-shadow .18s, background .18s
}

.step-h {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    width: 100%;
    background: #fff;
    border: 0;
    cursor: pointer;
    padding: 16px 18px;
    font-size: clamp(16px,1.6vw,18px);
    transition: background .18s, color .18s;
}

    .step-h .l {
        display: flex;
        align-items: center;
        gap: 12px
    }

.badge {
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #fff;
    background: var(--brand);
    font-size: clamp(14px,1.5vw,16px)
}

.step-h .r {
    color: var(--brand-700);
    font-size: clamp(14px, 1.6vw, 18px);
    border: 2px solid var(--brand-700);
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1fbfa;
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 14%, transparent);
}

.step-b {
    display: none;
    padding: 16px 18px;
    border-top: 1px dashed var(--border)
}

.step.open .step-b {
    display: block
}

.step:not(.open) .step-h:hover {
    background: #f0fbfa
}

.step:not(.open):hover {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in oklab,var(--brand) 16%, transparent)
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 2px solid var(--brand-700);
    background: linear-gradient(180deg, #eafffd, #ffffff 60%);
    cursor: pointer;
    font-weight: 900;
    color: var(--brand-700);
    font-size: clamp(14px,1.6vw,18px);
    box-shadow: 0 6px 18px rgba(0,125,138,.18), 0 0 0 4px color-mix(in oklab,var(--brand) 10%, transparent);
    transition: transform .08s ease, box-shadow .18s ease;
}

    .cta::before {
        content: "↗";
        font-weight: 900;
        transform: translateY(-1px)
    }

    .cta:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 22px rgba(0,125,138,.22), 0 0 0 5px color-mix(in oklab,var(--brand) 14%, transparent)
    }

    .cta:active {
        transform: translateY(0)
    }

.hint {
    font-size: var(--fs-small);
    color: var(--muted)
}

blockquote {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fcfffe;
    color: #2a4e55
}

/* Fullscreen modal/gallery */
.back {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,.72);
    z-index: 150
}

.mdl {
    background: #fff;
    width: min(1080px,96vw);
    max-height: 92vh;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border)
}

.mdl-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: #f5faf9
}

    .mdl-h h4 {
        margin: 0;
        font-size: var(--fs-h);
        color: var(--brand-700)
    }

.mdl-b {
    padding: 12px;
    overflow: auto
}

.mdl img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff
}

.x {
    border: 2px solid var(--brand-700);
    background: #fff;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: clamp(16px,1.8vw,18px)
}

/* Footer */
.ftr {
    max-width: 1280px;
    margin: 38px auto 22px;
    padding: 0 20px;
    color: var(--muted);
    font-size: var(--fs-small);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* === Mobile drawer for right menu === */
.fab {
    position: fixed;
    inset-inline-end: 16px;
    bottom: 16px;
    z-index: 140;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    border: 2px solid var(--brand-700);
    background: #fff;
    color: var(--brand-700);
    font-size: 30px;
    line-height: 1;
    display: none;
    box-shadow: 0 10px 28px rgba(0,0,0,.12), 0 0 0 4px color-mix(in oklab,var(--brand) 12%, transparent);
    cursor: pointer;
}

.drawer {
    position: fixed;
    inset: 0;
    z-index: 145;
    background: rgba(0,0,0,.5);
    display: none;
    align-items: stretch;
    justify-content: flex-end
}

    .drawer .sheet {
        width: min(86vw,360px);
        height: 100%;
        background: #fff;
        border-inline-start: 1px solid var(--border);
        transform: translateX(100%);
        transition: transform .2s ease-in-out;
        display: flex;
        flex-direction: column;
    }

    .drawer .sheet-h {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        border-bottom: 1px solid var(--border);
        background: #f5faf9
    }

    .drawer .sheet-b {
        padding: 12px;
        overflow: auto
    }

    .drawer.open {
        display: flex
    }

        .drawer.open .sheet {
            transform: translateX(0)
        }

/* Hide side on mobile, show FAB */
@media (max-width: 1100px) {
    .side {
        display: none
    }

    .fab {
        display: flex;
        align-items: center;
        justify-content: center
    }
}
/* لوحة ألوان للخدمة الثانية (تيف + أسمنتي) */
:root {
    --cement: #2f3b3f; /* أسمنتي غامق */
    --cement-700: #1f2629; /* أغمق للنص والحدود */
    --brand2: color-mix(in oklab, var(--brand) 60%, var(--cement) 40%);
    --accent2: color-mix(in oklab, var(--brand) 14%, #ffffff 86%);
}

/* عنوان الخدمة الثانية */
#svc2 .title {
    color: var(--cement-700);
    border-color: var(--cement-700);
    background: linear-gradient(0deg, var(--accent2), #ffffff 65%), radial-gradient(100% 100% at 0 0, color-mix(in oklab, var(--brand2) 10%, transparent), transparent);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand2) 22%, transparent);
}

/* شارة الترتيب */
#svc2 .badge {
    background: var(--brand2);
}

/* كبسولة "انقر للفتح/الطي" */
#svc2 .step-h .r {
    color: var(--cement-700);
    border-color: var(--cement-700);
    background: color-mix(in oklab, var(--brand2) 12%, #ffffff 88%);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand2) 18%, transparent);
}

/* تفاعل الهوفر على الخطوات عند كونها مطوية */
#svc2 .step:not(.open):hover {
    border-color: var(--brand2);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand2) 20%, transparent);
}

/* زر CTA داخل الخدمة الثانية */
#svc2 .cta {
    border-color: var(--cement-700);
    color: var(--cement-700);
    background: linear-gradient(180deg, color-mix(in oklab, var(--brand2) 10%, #ffffff 90%), #ffffff 60%);
    box-shadow: 0 6px 18px rgba(47,59,63,.18), 0 0 0 4px color-mix(in oklab, var(--brand2) 12%, transparent);
}

    #svc2 .cta:hover {
        box-shadow: 0 8px 22px rgba(47,59,63,.22), 0 0 0 5px color-mix(in oklab, var(--brand2) 16%, transparent);
    }

/* تمييز زر الخدمة الثانية في القائمة اليمنى عند التفعيل */
/* توحيد نمط الزر الفعّال لكل الخدمات ليطابق الهيدر */
.svc button[data-svc="svc2"].active {
    border-color: var(--brand-700);
    background: linear-gradient(0deg, var(--brand-700), var(--brand));
    color: #fff;
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 28%, transparent);
}

/* الشعار يمين والنص يسار داخل الهيدر */
.hdr-wrap {
    justify-content: center !important; /* يوسّط مجموعة الشعار+النص ككل */
}

.brand {
    margin-inline: auto; /* يبقي المجموعة في الوسط */
    display: flex;
    flex-direction: row !important; /* صف واحد (RTL يجعل العنصر الأول يمين) */
    align-items: center;
    gap: 12px !important;
}

    /* تنسيق النص بجانب الشعار */
    .brand > div {
        text-align: right; /* محاذاة عربية أنظف */
    }

    /* الشعار يبقى أول عنصر وبالتالي يظهر يمين في RTL */
    .brand img {
        order: 0; /* توضيح فقط */
    }
/* تكبير المودال */
.mdl {
    width: min(1400px, 98vw) !important;
    max-height: 96vh !important;
}

/* منطقة العرض داخل المودال */
.mdl-b {
    padding: 0 !important;
    background: #fff;
}

/* حاوية التحريك العمودي للصورة */
.pan-zone {
    position: relative;
    height: min(88vh, 900px); /* مساحة أكبر للعرض */
    overflow: hidden; /* نخفي الزائد ونسمح بالسحب */
    background: #fff;
}

    /* الصورة القابلة للسحب عموديًا */
    .pan-zone img {
        display: block;
        margin: 0 auto;
        max-width: min(98vw, 1380px); /* تمنع تمدد أفقي زائد */
        height: auto; /* نترك الارتفاع طبيعي */
        user-select: none;
        -webkit-user-drag: none;
        touch-action: none; /* لتحسين السحب على اللمس */
        cursor: grab;
        transform: translate3d(0, var(--y, 0px), 0);
        will-change: transform;
    }

    .pan-zone.dragging img {
        cursor: grabbing;
    }
/* تكبير المودال أكثر */
.mdl {
    width: min(1600px, 98vw) !important;
    max-height: 98vh !important;
}

/* اجعل مساحة العرض شبه بكامل الشاشة */
.mdl-b {
    padding: 0 !important;
}

.pan-zone {
    height: calc(98vh - 56px) !important; /* 56px تقريبًا لعنوان المودال والأزرار */
    overflow: hidden;
    background: #fff;
}

    /* اجعل الصورة تتمدد لارتفاع الحاوية (تكبير مرئي) */
    .pan-zone img {
        height: 100% !important; /* تملأ الارتفاع */
        width: auto !important; /* يحافظ على التناسب */
        max-width: none !important; /* يسمح بالتكبير الأفقي عند الحاجة */
    }

/* تحسين العرض على الجوال */
@media (max-width: 720px) {
    .mdl {
        width: 100vw !important;
        border-radius: 0;
    }

    .pan-zone {
        height: calc(100vh - 52px) !important;
    }
}
/* ملء مساحة المودال تقريباً */
.mdl {
    width: min(1600px, 98vw);
    max-height: 98vh;
}

.mdl-b {
    padding: 0;
}

.pdf-view {
    width: 100%;
    height: calc(98vh - 52px);
    border: 0;
}

@media (max-width: 720px) {
    .mdl {
        width: 100vw;
        border-radius: 0;
    }

    .pdf-view {
        height: calc(100vh - 48px);
    }
}

.mdl {
    width: min(1600px, 98vw);
    max-height: 98vh;
}

.mdl-b {
    padding: 0;
}

.pdf-view {
    width: 100%;
    height: calc(98vh - 52px);
    border: 0;
}

@media (max-width: 720px) {
    .mdl {
        width: 100vw;
        border-radius: 0;
    }

    .pdf-view {
        height: calc(100vh - 48px);
    }
}

/* عرض خدمة واحدة فقط كنمط أكورديون */
.content article.card[id^="svc"] {
    display: none;
}

    .content article.card[id^="svc"].open {
        display: block;
    }
/* هيدر ثابت أثناء التمرير */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--card, #fff);
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
/* أكورديون "خطوات الاستخدام" */
.accordion-one {
    border: 1px solid var(--border, #ddebea);
    border-radius: 14px;
    background: var(--card, #fff);
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
    overflow: hidden;
    margin-block: 16px;
}

    .accordion-one > summary {
        cursor: pointer;
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 18px;
        font-weight: 700;
        font-size: 1.05rem;
        color: var(--ink, #0c1a20);
        background: linear-gradient(180deg, #fff, #fafcfc);
        border-bottom: 1px solid var(--border, #ddebea);
    }

        .accordion-one > summary::-webkit-details-marker {
            display: none;
        }

        .accordion-one > summary i {
            transition: transform .25s ease;
            font-style: normal;
        }

    .accordion-one[open] > summary i {
        transform: rotate(180deg);
    }

    .accordion-one .accordion-body {
        padding: 16px 18px;
        animation: accFade .24s ease;
    }

    .accordion-one .steps-list {
        margin: 0;
        padding: 0;
        display: grid;
        gap: 10px;
    }

        .accordion-one .steps-list li {
            list-style: none;
            border: 1px dashed var(--border, #ddebea);
            border-radius: 12px;
            padding: 12px 14px;
            background: #fff;
        }

    .accordion-one .hint {
        display: inline-block;
        background: var(--chip, #e8f1dc);
        color: var(--ink, #0c1a20);
        padding: 4px 10px;
        border-radius: 999px;
        font-size: .85rem;
        margin-inline-start: 6px;
    }

@keyframes accFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* === Accordion (Blue Design) === */
.accordion-one {
    border: 1px solid #cfe3ff;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.08);
    overflow: hidden;
    margin-block: 16px;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

    .accordion-one:hover {
        box-shadow: 0 10px 26px rgba(13, 110, 253, 0.18);
        transform: translateY(-1px);
        border-color: #9cc3ff;
    }

    .accordion-one > summary {
        cursor: pointer;
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 18px;
        font-weight: 800;
        font-size: 1.06rem;
        color: #0b2540;
        background: linear-gradient(180deg, #f5f9ff 0%, #eef5ff 100%);
        border-bottom: 1px solid #d8e8ff;
        transition: background .25s ease, color .25s ease;
    }

        .accordion-one > summary::-webkit-details-marker {
            display: none;
        }

        .accordion-one > summary span {
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

            .accordion-one > summary span::before {
                content: "";
                inline-size: 10px;
                block-size: 10px;
                border-radius: 50%;
                background: #1e88e5;
                box-shadow: 0 0 0 4px rgba(30,136,229,0.15);
            }

        .accordion-one > summary i {
            font-style: normal;
            color: #1e88e5;
            transition: transform .25s ease, color .25s ease;
        }

    .accordion-one[open] > summary i {
        transform: rotate(180deg);
    }

    .accordion-one > summary:hover {
        background: linear-gradient(180deg, #edf4ff 0%, #e6f0ff 100%);
        color: #082038;
    }

    .accordion-one > summary:focus-visible {
        outline: 3px solid rgba(30,136,229,0.35);
        outline-offset: 2px;
        border-radius: 12px;
    }

    .accordion-one .accordion-body {
        padding: 16px 18px;
        animation: accFade .24s ease;
        background: #ffffff;
    }

    .accordion-one .steps .step {
        border: 1px solid #e7f0ff;
        border-radius: 12px;
        background: #fff;
        margin-block: 10px;
        overflow: hidden;
        transition: border-color .2s ease, box-shadow .2s ease;
    }

        .accordion-one .steps .step:hover {
            border-color: #cfe3ff;
            box-shadow: 0 6px 14px rgba(30,136,229,0.10);
        }

    .accordion-one .steps .step-h {
        width: 100%;
        background: linear-gradient(180deg, #f7fbff, #f2f7ff);
        border: 0;
        padding: 12px 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        transition: background .2s ease;
    }

        .accordion-one .steps .step-h:hover {
            background: linear-gradient(180deg, #eef6ff, #e7f1ff);
        }

    .accordion-one .steps .badge {
        background: #1e88e5;
        color: #fff;
        min-inline-size: 28px;
        min-block-size: 28px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        font-weight: 700;
        box-shadow: 0 0 0 4px rgba(30,136,229,0.15);
    }

    .accordion-one .steps .step-b {
        padding: 12px 14px 16px;
        border-top: 1px dashed #d8e8ff;
        background: #ffffff;
    }

    .accordion-one .hint {
        display: inline-block;
        background: #e9f3ff;
        color: #0b2540;
        padding: 4px 10px;
        border-radius: 999px;
        font-size: .85rem;
        margin-inline-start: 6px;
        border: 1px solid #cfe3ff;
    }

@keyframes accFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* إبراز أزرار الدعوة داخل الخطوات */
.cta {
    background: #1e88e5;
    color: #fff;
    border: 1px solid #1e88e5;
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

    .cta:hover {
        background: #1565c0;
        border-color: #1565c0;
        box-shadow: 0 8px 20px rgba(21,101,192,0.25);
        transform: translateY(-1px);
    }
/* مودال ملء الشاشة */
.back.fullscreen {
    position: fixed;
    inset: 0;
    padding: 0;
    margin: 0;
    background: rgba(0,0,0,.55);
    z-index: 9999;
}

    .back.fullscreen .mdl {
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        background: var(--card, #fff);
        box-shadow: none;
    }

    .back.fullscreen .mdl-h {
        position: sticky;
        top: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border, #ddebea);
        background: linear-gradient(180deg, #fff, #f8fbff);
    }

        .back.fullscreen .mdl-h h4 {
            margin: 0;
            font-size: 1.05rem;
            font-weight: 800;
            color: var(--ink, #0c1a20);
        }

        .back.fullscreen .mdl-h .x {
            inline-size: 38px;
            block-size: 38px;
            border-radius: 10px;
            border: 1px solid var(--border, #ddebea);
            background: #fff;
            cursor: pointer;
            font-size: 20px;
            line-height: 1;
            transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
        }

            .back.fullscreen .mdl-h .x:hover {
                transform: translateY(-1px);
                box-shadow: 0 10px 20px rgba(0,0,0,.08);
                background: #f6fbff;
            }

    .back.fullscreen .mdl-b {
        flex: 1;
        padding: 12px 16px 16px;
        background: #fff;
        display: flex; /* توسيط المحتوى */
        align-items: center;
        justify-content: center;
        overflow: auto; /* يسمح بالتمرير عند صغر الشاشة */
    }

        /* الصورة تستغل أقصى مساحة ممكنة وتتكيف مع تغيّر حجم المودال */
        .back.fullscreen .mdl-b img {
            display: block;
            width: min(100%, calc(100vw - 48px)); /* تكبير عرضيًا بما يناسب العرض */
            height: auto;
            max-height: calc(100vh - 140px); /* تكبير رأسيًا مع مراعاة الهيدر */
            object-fit: contain; /* بدون قص */
            border: 1px solid var(--border, #ddebea);
            border-radius: 12px;
            background: #fff;
        }


        .back.fullscreen .mdl-b .pdf-embed {
            display: block;
            width: min(100%, calc(100vw - 48px));
            height: calc(100vh - 140px); /* يراعي ارتفاع هيدر المودال */
            border: 1px solid var(--border, #ddebea);
            border-radius: 12px;
            background: #fff;
        }
    /* تمكين طبقة منع النقر فوق PDF مع السماح بالتمرير الخارجي */
    .back.fullscreen .mdl-b {
        position: relative;
    }

.pdf-readonly {
    position: relative;
    display: block;
    width: min(100%, calc(100vw - 48px));
    height: calc(100vh - 140px);
    border: 1px solid var(--border, #ddebea);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

    .pdf-readonly .pdf-embed {
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
    }

    /* طبقة تمنع كل النقرات فوق الـPDF */
    .pdf-readonly .noclick-layer {
        position: absolute;
        inset: 0;
        background: transparent;
        cursor: default;
        z-index: 2;
        /* تمنع تحديد/سحب */
        -webkit-user-select: none;
        user-select: none;
    }

/* حجم تضمين PDF داخل المودال */
.back.fullscreen .mdl-b .pdf-embed {
    display: block;
    width: min(100%, calc(100vw - 48px));
    height: calc(100vh - 140px);
    border: 1px solid var(--border, #ddebea);
    border-radius: 12px;
    background: #fff;
}
/* ترقيم تسلسلي داخل إطار أنيق */
.numlist {
    counter-reset: step;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .numlist li {
        position: relative;
        padding-inline-start: 44px; /* مساحة للإطار يسار/يمين بحسب الاتجاه */
        margin: 8px 0;
        line-height: 1.8;
    }

        .numlist li::before {
            content: counter(step);
            counter-increment: step;
            position: absolute;
            inset-inline-start: 0; /* يدعم RTL/LTR */
            top: 0.15em;
            min-inline-size: 30px;
            min-block-size: 30px;
            display: grid;
            place-items: center;
            font-weight: 800;
            border: 2px solid #1e88e5;
            border-radius: 10px; /* إطار أنيق بزوايا ناعمة */
            color: #1e88e5;
            background: #f5f9ff;
            box-shadow: 0 2px 8px rgba(30,136,229,0.10);
        }
/* تمكين التمرير داخل جسم المودال */
.back.fullscreen .mdl-b {
    overflow: auto;
    -webkit-overflow-scrolling: touch; /* نعومة على الجوال */
}

/* مقاس حاوية الـPDF كما هو */
.pdf-readonly {
    position: relative;
    display: block;
    width: min(100%, calc(100vw - 48px));
    height: calc(100vh - 140px);
    border: 1px solid var(--border, #ddebea);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
/* السماح بالتمرير داخل PDF في مودال الخدمة الرابعة فقط */
#m4-letter .noclick-layer {
    display: none; /* إزالة طبقة المنع لهذا المودال فقط */
}

/* مساحة عرض مريحة داخل المودال للتمرير */
#m4-letter .pdf-readonly {
    height: calc(100vh - 120px); /* يراعي ارتفاع الهيدر داخل المودال */
}

body {
    padding-top: var(--hdr-h);
}
/* يبعد المحتوى تحت الهيدر الثابت */


/* زر التالي الجديد — يظهر فقط عند نهاية القسم */
.next-wrap {
    position: sticky;
    bottom: 18px;
    display: none; /* افتراضيًا مخفي — يُظهره السكربت عند بلوغ نهاية القسم */
    justify-content: flex-end;
    margin-top: 18px;
    z-index: 50;
}

    .next-wrap.show { /* يُفعّلها السكربت */
        display: flex;
    }

.next-arrow {
    --btn-bg: linear-gradient(0deg, var(--brand-700), var(--brand));
    --btn-shadow: 0 10px 24px color-mix(in oklab, var(--brand-700) 20%, transparent);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--btn-bg);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--btn-shadow);
    transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

    .next-arrow:hover {
        filter: brightness(1.06);
        transform: translateY(-1px);
    }

    .next-arrow:active {
        transform: translateY(0);
    }

    .next-arrow:focus-visible {
        outline: 3px solid color-mix(in oklab, var(--brand) 35%, transparent);
        outline-offset: 3px;
    }

    .next-arrow .txt {
        letter-spacing: .2px;
    }

    /* أيقونة سهم SVG حقيقي (يمين) */
    .next-arrow .ico {
        inline-size: 20px;
        block-size: 20px;
        display: inline-block;
    }

/* العنصر «مرسال» في آخر كل قسم ليُشغّل ظهور الزر */
.end-sentinel {
    inline-size: 100%;
    block-size: 1px; /* غير مرئي تقريبًا */
    margin-top: 1px;
}
/* حاوية زر التالي — تظهر فقط عند نهاية القسم */
.next-wrap {
    position: sticky;
    bottom: 24px;
    display: none; /* افتراضيًا مخفي */
    justify-content: flex-end;
    z-index: 50;
    pointer-events: none; /* حتى لا تحجب التمرير */
}

    .next-wrap.show {
        display: flex;
    }

.next-arrow {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    /* تصميم جديد كليًا */
    background: linear-gradient(90deg, var(--brand-700), var(--brand));
    color: #fff;
    font-weight: 800;
    letter-spacing: .2px;
    /* ظل ولمسة ارتفاع */
    box-shadow: 0 8px 22px color-mix(in oklab, var(--brand-700) 22%, transparent), 0 2px 0 color-mix(in oklab, #000 20%, transparent);
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

    .next-arrow:hover {
        filter: brightness(1.06);
        transform: translateY(-1px);
    }

    .next-arrow:active {
        transform: translateY(0);
    }

    .next-arrow:focus-visible {
        outline: 3px solid color-mix(in oklab, var(--brand) 35%, transparent);
        outline-offset: 3px;
    }

    .next-arrow .txt {
        font-size: 0.95rem;
    }

    /* سهم حقيقي (SVG) — اتجاه يمين */
    .next-arrow .ico {
        inline-size: 22px;
        block-size: 22px;
        flex: 0 0 auto;
    }

/* مرسال نهاية القسم (شبه غير مرئي) */
.end-sentinel {
    inline-size: 100%;
    block-size: 1px;
    margin-top: 1px;
}
/* شارة عنوان اللوح الجانبي (التفاصيل) */
/* عنوان اللوحة: في الوسط، وإطار بعرض القائمة */
.panel-title {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin: 0 0 12px 0;
    padding: 10px 16px;
    border: 1px solid var(--brand-700);
    border-radius: 14px;
    background: #fff;
    color: var(--brand-700);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: .2px;
}


/* أزرار قائمة الخدمات كبسولات كاملة العرض مثل الصورة */
.svc {
    display: grid;
    gap: 10px;
}

    /* أزرار القائمة — نص متوسط تمامًا كما طلبت */
    .svc button {
        width: 100%;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-radius: 16px;
        border: 1px solid var(--brand-700);
        background: linear-gradient(0deg, var(--brand-700), var(--brand));
        color: #fff;
        font-weight: 700;
        font-size: 0.95rem;
        letter-spacing: 0.2px;
        box-shadow: 0 3px 0 color-mix(in oklab, var(--brand-700) 35%, transparent);
        transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
        cursor: pointer;
    }


        .svc button:hover,
        .svc button:focus {
            filter: brightness(1.05);
            outline: 3px solid color-mix(in oklab, var(--brand) 30%, transparent);
            outline-offset: 2px;
        }

        .svc button:active {
            transform: translateY(1px);
        }

    /* الزر الفعّال (نظرة عامة أو أي خدمة) — إبراز واضح */
    .svc .active {
        border-color: #fff;
        box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 28%, transparent), 0 8px 18px color-mix(in oklab, var(--brand-700) 22%, transparent);
        font-size: 1.08em; /* تكبير طفيف كما طَلَبت سابقًا */
        text-shadow: 0 0 6px color-mix(in oklab, #ffffff 70%, var(--brand) 30%), 0 0 12px color-mix(in oklab, var(--brand) 55%, #ffffff 45%);
    }
/* محاذاة كل النصوص في الصفحة */
body, p, li, .lead, .card, article, section {
    text-align: justify;
    text-justify: inter-word; /* يوزع المسافات بالتساوي بين الكلمات */
}
