﻿/* ===========================================
       ✅ DGA Breadcrumb Layout — Final Optimized Version
       =========================================== */
/* WCAG helpers */
.skip-link {
    position: absolute;
    top: -1000px;
    left: 0;
    background: #fff;
    color: #000;
    padding: .75rem 1rem;
    z-index: 10000;
    border: 2px solid #000
}

    .skip-link:focus {
        top: .5rem;
        left: .5rem
    }

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0
}



@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important
    }
}

/* ---- من كودك الأصلي (أبقيته كما هو) ---- */
.card-top-img-container {
    & .card-body

{
    & .cat-img

{
    height: 17.5rem;
}

}

.text-ellipsis {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    cursor: default;
}

.read-more {
    color: #2b727e;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 5px;
}

}
/* تحسين بسيط لمظهر زر اقرأ المزيد مع حالة تركيز واضحة */
.read-more-btn {
    background: none;
    border: 2px solid transparent;
    padding: .125rem .25rem;
    border-radius: .375rem
}

    .read-more-btn:focus {
        border-color: #1B8354
    }

/* Start Page EngOffice*/


header {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    z-index: 1000 !important;
}

/* ✅ تباعد الجسم لضبط موضع الهيدر والـ breadcrumb */
body {
    padding-top: 115px;
}

    /* الصفحات التي تحتوي على breadcrumb */
    body:has(.dga-breadcrumb) {
        padding-top: 125px;
    }

/* للجوال */
@media (max-width: 576px) {
    body {
        padding-top: 6rem;
    }

        body:has(.dga-breadcrumb) {
            padding-top: 7rem;
        }
}

/* ✅ إلغاء الفاصل بين عناصر breadcrumb الافتراضي */
.breadcrumb-item + .breadcrumb-item::before {
    content: none !important;
}

/* ===========================================
   🌿 تصميم الـ Breadcrumb نفسه
   =========================================== */
.dga-header {
    background: transparent;
    position: static;
    z-index: auto;
}

.dga-nav {
    background-color: #1b8354;
    padding: 6px 0;
    position: relative;
}

/* الشريط */
.dga-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    direction: rtl;
    color: #f9f9f9;
    font-size: 14px;
    line-height: 1.7;
    padding: 0.25rem 1rem 0.4rem;
    text-align: right;
    gap: 3px 6px;
    /*margin-top: 10px;*/
    background-color: #1b8354;
    position: relative;
    z-index: 10; /* يمنع اختفائه خلف العناصر الأخرى */
}

    /* الروابط داخل breadcrumb */
    .dga-breadcrumb .breadcrumb-item {
        color: #f1f1f1;
        text-decoration: none;
        font-weight: 400;
        transition: color 0.2s ease;
    }

        .dga-breadcrumb .breadcrumb-item:hover {
            color: #d4f1e2;
            text-decoration: underline;
        }

        /* السهم بين العناصر */
        .dga-breadcrumb .breadcrumb-item:not(:last-child)::after {
            content: "›";
            color: rgba(255, 255, 255, 0.75);
            margin: 0 6px;
            font-size: 12px;
            position: relative;
            top: -1px;
        }

        /* العنصر النشط */
        .dga-breadcrumb .breadcrumb-item.active {
            font-weight: 600;
            color: #ffffff;
            pointer-events: none;
        }

/* 📱 تحسين المظهر على الجوال */
@media (max-width: 576px) {
    .dga-breadcrumb {
        font-size: 13px;
        padding: 0.35rem 0.75rem;
        gap: 2px 5px;
        margin-top: 35px;
    }

        .dga-breadcrumb .breadcrumb-item:not(:last-child)::after {
            margin: 0 5px;
            font-size: 11px;
        }
}

/* 🎯 لأجهزة iPad Air 5 فقط (عرض 820px) */
@media (width: 820px) and (height: 1180px), (min-width: 810px) and (max-width: 830px) {
    body {
        padding-top: 120px;
    }

        body:has(.dga-breadcrumb) {
            padding-top: 150px; /* 🔹 المسافة المناسبة لظهور الشريط الأخضر تحت الهيدر */
        }
}

/* End Page EngOffice*/


/* Start Page Evidence*/

.searching .head > .form-group {
    height: 40px;
    margin: 0
}

.searching .head .icon {
    top: 50%;
    transform: translateY(-50%);
    right: 1rem
}

.searching input.search {
    height: 100%;
    padding: .5rem 3rem !important;
    box-shadow: none
}

    .searching input.search:hover,
    .searching input.search:focus,
    .searching input.search:active {
        border-color: #00958a
    }

@media (max-width:768px) {
    .searching input.search {
        padding-right: 3rem;
        padding-left: .5rem
    }
}

.input-group-append {
    position: relative;
    display: inline-block
}

#evidencePage .dropdown-menu {
    display: none;
    position: absolute;
    padding: 0;
    overflow: hidden;
    left: 0;
    cursor: pointer;
    min-width: fit-content
}

    #evidencePage .dropdown-menu.show {
        display: block
    }

.dropdown-item {
    padding: .25rem 1.5rem !important
}

#evidencePage .tab-pane {
    display: none
}

    #evidencePage .tab-pane.show {
        display: block
    }

#evidencePage .boxs {
    min-height: 110px;
    padding: 1em
}

#evidencePage .box {
    border: 1px solid #384250;
    padding: 1.75rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    border-radius: .5rem
}

    #evidencePage .box h6 {
        font-size: 1rem;
        font-weight: 400;
        color: #384250;
        margin: 0
    }

    #evidencePage .box img {
        cursor: pointer
    }

.no-text {
    color: #161616;
    font-size: 1.125rem;
    line-height: 1.75rem
}

/* زر أساسي */
.btn.rp-primary-btn {
    background: #1B8354;
    border: 1px solid #1B8354;
    color: #fff !important;
    border-radius: 999px
}

    .btn.rp-primary-btn:hover {
        filter: brightness(.95)
    }

.boxs a {
    text-decoration: none;
}

    .boxs a:hover {
        text-decoration: underline;
    }

.searching input.search:hover, .searching input.search:focus, .searching input.search:active {
    border-color: #00958a;
}


.icon1 {
    top: 50%;
    transform: translateY(-50%);
    right: 1rem;
}





/* End Page Evidence*/

/* Start Engoffice Page */


/*page IndexEngoffice*/
:root {
    --brand: #1b8354;
    --brand-50: #f5faf8;
    --brand-200: #cfeadf;
    --border: #e5e7eb;
    --shadow: 0 8px 24px rgba(16,24,40,.08);
}

body {
    background: #eee;
}

a, a:hover, a:focus, a:active {
    text-decoration: none !important;
}


#pills-tabContent .rp-pane {
    display: none !important;
}

    #pills-tabContent .rp-pane.is-active {
        display: block !important;
    }


.title {
    color: var(--brand);
    font-size: 1.5rem;
    /*margin-top: .5rem;*/
}

.card-like {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.tabs-wrap {
    max-width: 1200px;
    margin-inline: auto;
}

.nav-pills {
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

    .nav-pills .nav-link {
        padding: 0;
        border-radius: 0;
    }

.rp-pill, .ds-live-event-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px 14px;
    min-width: 7rem;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: transform .07s, box-shadow .12s, border-color .12s;
}

.nav-link.active .rp-pill {
    border-color: var(--brand);
    box-shadow: var(--shadow);
}

.rp-pill:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    border-color: var(--brand-200);
}

.rp-pill img {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    opacity: .9;
}

.head-set {
    margin: 0;
    color: var(--brand);
    font-weight: 700;
}

.pill-count {
    display: inline-block;
    font-size: .75rem;
    color: #fff;
    background: var(--brand);
    border-radius: 999px;
    padding: .1rem .45rem;
    margin-inline-start: .35rem;
}

.table-wrap {
    margin-top: 1rem;
}

.table.card-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
}

.card-table thead tr {
    background: var(--brand);
    color: #fff;
}

.card-table thead th {
    border: none;
    padding: 12px 14px;
    text-align: center;
    vertical-align: middle;
    font-weight: 700;
}

.card-table tbody tr:nth-child(odd) {
    background: #fff;
}

.card-table tbody tr:nth-child(even) {
    background: var(--brand-50);
}

.card-table tbody td {
    border-top: 1px solid var(--border);
    padding: 12px;
    color: #555;
    text-align: center;
    vertical-align: middle;
}

.code-td {
    color: #c7a271;
    font-weight: 700;
}

.name-td a, .lvl-td {
    color: #DBA458;
}

@media (max-width:576px) {
    .rp-pill {
        min-width: 6rem;
        padding: 14px 12px;
    }

    .card-table thead {
        display: none;
    }

    .card-table, .card-table tbody, .card-table tr, .card-table td {
        display: block;
        width: 100%;
    }

        .card-table tbody tr {
            margin-bottom: .75rem;
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
            background: #fff !important;
        }

        .card-table tbody td {
            text-align: right;
            padding: 10px 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            border-top: 1px solid var(--border);
        }

            .card-table tbody td::before {
                content: attr(data-label);
                font-weight: 600;
                color: #374151;
            }

    .code-td, .lvl-td, .name-td {
        color: #2d2d2d;
    }
}
/* إجبار لون هيدر الجدول على لون الهوية */
#pills-tabContent .card-table thead,
#pills-tabContent .card-table thead tr,
#pills-tabContent .card-table thead th {
    background: var(--brand) !important;
    background-color: var(--brand) !important;
    color: #fff !important;
    border-color: var(--brand) !important;
}

    /* لو فيه روابط داخل الث */
    #pills-tabContent .card-table thead th a {
        color: #fff !important;
    }

/* تعطيل ألوان Bootstrap المتغيرة لهذي الطاولة فقط (اختياري لكنه مفيد) */
#pills-tabContent .card-table {
    --bs-table-bg: #fff;
    --bs-table-striped-bg: var(--brand-50);
    --bs-table-striped-color: inherit;
    --bs-table-hover-bg: #f8f9fa;
}


/*page Suboffice*/

/* ====== DGA Look & Feel ====== */
:root {
    --brand-green: #1B8354;
    --brand-teal: #1b8354;
    --surface: #ffffff;
    --border: #e5e7eb;
    --muted: #6b7280;
    --ink: #111827;
    --chip: #f3f4f6;
    --chip-border: #e5e7eb;
    --shadow: 0 8px 24px rgba(16,24,40,.08);
    --radius: 12px;
}

body {
    background: #eee;
    font-family: "TheSansArabic", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
}

.page-title {
    color: #000;
    font-size: 1.6rem;
    margin: .5rem 0 0;
}

/* Cards */
.dga-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: none;
    padding: 1.25rem;
    transition: box-shadow .12s ease, transform .05s ease;
}

    .dga-card:hover {
        box-shadow: var(--shadow);
        transform: translateY(-1px);
    }

/* Top info card */
.office-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px dashed var(--border);
    padding-bottom: .75rem;
    margin-bottom: 1rem;
}

.office-title {
    color: var(--brand-teal);
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.office-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    border: 1px solid var(--chip-border);
    background: var(--chip);
    color: #374151;
    font-size: .85rem;
    white-space: nowrap;
}

    .chip svg {
        width: 16px;
        height: 16px;
    }

.badge-level {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    font-weight: 700;
    color: #fff;
    font-size: .82rem;
}

    .badge-level[data-level="A"], .badge-level[data-level="A+"] {
        background: #1b8354;
    }
    /* تيركواز قوي */
    .badge-level[data-level="B"], .badge-level[data-level="B+"] {
        background: #3b82f6;
    }
    /* أزرق */
    .badge-level[data-level="C"], .badge-level[data-level="C+"] {
        background: #f59e0b;
    }
    /* برتقالي */
    .badge-level[data-level="D"], .badge-level[data-level="D+"] {
        background: #ef4444;
    }
/* أحمر */

/* Two columns layout */
.page-wrap {
    max-width: 1200px;
    margin-inline: auto;
    padding: 0 1rem;
}

.col-gap {
    row-gap: 1rem;
}

/* Details table */
.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .info-table thead tr {
        background: var(--brand-green);
        color: #fff;
    }


    .info-table th, .info-table td {
        padding: .8rem .9rem;
        border-bottom: 1px solid var(--border);
        vertical-align: middle;
    }

        .info-table th:first-child, .info-table td:first-child {
            border-inline-start: 0;
        }

        .info-table th:last-child, .info-table td:last-child {
            border-inline-end: 0;
        }

    .info-table th {
        font-weight: 700;
    }

.key-cell {
    color: #c7a271;
    font-weight: 700;
}

.kv {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--ink);
}

    .kv a {
        color: var(--brand-teal);
        text-decoration: none;
    }

        .kv a:hover {
            text-decoration: underline;
        }

/* Right side information blocks */
.note {
    border-top: 4px solid #3ca078;
    background: #f5faf8;
    padding: 12px 10px;
    border-radius: 10px;
    color: #374151;
}

    .note p {
        margin: 0 0 .75rem;
        line-height: 1.7;
    }

    .note table {
        width: 100%;
    }

    .note td {
        border: none !important;
        padding: .2rem .25rem !important;
        white-space: nowrap;
    }

/* Map card */
.map-wrap {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

    .map-wrap iframe {
        display: block;
        width: 100%;
        height: 320px;
        border: 0;
    }

/* Icons */
.ico {
    width: 18px;
    height: 18px;
    /*color: var(--brand-teal);*/
    flex: 0 0 18px;
}

.ico-lg {
    width: 22px;
    height: 22px;
}

/* Responsive */
@media (max-width: 991px) {
    .office-h {
        flex-direction: column;
        align-items: flex-start;
    }

    .map-wrap iframe {
        height: 260px;
    }
}

:root {
    --brand: #1b8354;
}

.result-title {
    color: var(--brand) !important;
}

    .result-title:hover {
        color: #176b49 !important;
    }
/* درجة أغمق للهовер */

.btn.rp-primary-btn {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
}

.rp-page-link {
    color: var(--brand) !important;
    border-color: var(--brand) !important;
}

.rp-page-item.active .rp-page-link {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
}

.tag-green {
    color: var(--brand) !important;
    border-color: #cfeadf !important;
    /* الخلفية الحالية مناسبة (#eaf6ef) */
}

/* أيقونات وخطوط خضراء */
.svc-ico, .ds-phone, .ds-mail, .ds-list {
    color: var(--brand) !important;
}

/* شرائط وأشرطة عليا */
.para {
    border-top-color: var(--brand) !important;
}

.table thead > tr:last-child {
    background-color: var(--brand) !important;
}

/* عناصر نصية أخرى */
/*.title {
    color: var(--brand) !important;
}*/

.panel-desc {
    color: var(--brand) !important;
}

.breadcrumb a:hover {
    color: var(--brand) !important;
}

/* === توحيد اللون الأخضر إلى #1b8354 (DGA) === */
:root {
    --brand: #1b8354;
}

.result-title {
    color: var(--brand) !important;
}

    .result-title:hover {
        color: #176b49 !important;
    }
/* درجة أغمق للهовер */

.btn.rp-primary-btn {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
}

.rp-page-link {
    color: var(--brand) !important;
    border-color: var(--brand) !important;
}

.rp-page-item.active .rp-page-link {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
}

.tag-green {
    color: var(--brand) !important;
    border-color: #cfeadf !important;
    /* الخلفية الحالية مناسبة (#eaf6ef) */
}

/* أيقونات وخطوط خضراء */
.svc-ico, .ds-phone, .ds-mail, .ds-list {
    color: var(--brand) !important;
}

/* شرائط وأشرطة عليا */
.para {
    border-top-color: var(--brand) !important;
}

.table thead > tr:last-child {
    background-color: var(--brand) !important;
}

/* عناصر نصية أخرى */
/*.title {
    color: var(--brand) !important;*/
}

.panel-desc {
    color: var(--brand) !important;
}

.breadcrumb a:hover {
    color: var(--brand) !important;
}

/* End Engoffice Page */


/* Start digital library Page*/
.video-container {
    border-radius: 15px;
    overflow: hidden;
}

.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .icon-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .icon-box svg {
        width: 60px;
        height: 60px;
        fill: #3ca078f0;
        margin-bottom: 10px;
    }

    .icon-box h5 {
        margin-bottom: 10px;
        font-size: 20px;
        font-weight: bold;
    }

    .icon-box p {
        margin: 0;
        color: #555;
    }

.con {
    margin: 3rem;
}

[dir=ltr] * {
    text-align: right !important;
    direction: ltr;
}

.inputs {
    position: relative;
    background-image: url('/images/baseimages/compressed-bg-box.webp');
    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 100%;
}

.box-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(#1C042C80, #1C042C80);
    border-radius: 1em;
}

.search-container {
    padding-top: 5rem;
    padding-bottom: 6.59375rem;
    border-radius: 1rem;
    text-align: center;
    margin-top: 3.4375rem;
}

.quick-search-box {
    margin-bottom: 2.375rem;
    padding-left: 1.4rem !important;
    padding-right: 1.4rem !important;
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.cover {
    background-image: url('../AboutMadina/images/nav_madinah 1.svg');
    height: 30vh;
}

.icon {
    text-align: center;
    padding: 10px;
    background-color: #BCD9D5;
    border-radius: 10px;
    margin-bottom: 20px;
    width: 60px;
    height: 53px;
}

    .icon img {
        height: 31px;
    }

@media(max-width: 1200px) {
    #ds-edit {
        margin-top: 10px;
    }
}

@media(max-width: 992px) {
    #ds-edit1 {
        margin-top: 10px;
    }
}

@media(max-width: 576px) {
    .icon {
        flex: 0 0 calc(33.33% - 40px);
    }
}

@media(max-width: 480px) {
    .icon {
        flex: 0 0 calc(50% - 40px);
    }
}

.sec-title h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #161616 !important;
    margin-bottom: 1.5625rem !important;
}

p.custom-subtitle {
    font-size: 1.3125rem;
    color: #161616;
    line-height: 2.25rem;
}

.custom-a {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #1F2A37 !important;
}

.custom-desc {
    font-size: 1rem !important;
    font-weight: 400 !important;
    color: #1F2A37 !important;
    line-height: 1.5rem !important;
    min-height: 3rem;
}

.custom-box {
    border: 1px solid #D2D6DB;
    border-radius: 1rem;
    padding: 3.0625rem 1rem 6.125rem 1rem;
    max-height: 19.5rem;
}

.btn-success {
    background-color: #074D31 !important;
}

.fs-36 {
    font-size: 2.25rem !important;
}

.fs-19 {
    font-size: 1.1875rem;
}

.form-control {
    padding: 0.875rem 1.375rem 0.75rem 3rem !important;
    height: 3.25rem;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 2.5rem;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    pointer-events: none;
}

input::placeholder {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 90%;
    font-size: 1.0625rem !important;
    font-weight: 400 !important;
    color: #000000 !important;
}

.rp-outline-primary-btn {
    border-color: #074D31 !important;
    color: #074D31 !important;
    font-weight: 500 !important;
}

    .rp-outline-primary-btn:hover {
        color: #fff !important;
        background-color: #074D31 !important;
        border-color: #D2D6DB !important;
    }

.fw-normal {
    font-weight: 400 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.categories-box {
    margin-top: 2.313rem;
}

@media(min-width:576px) {
    .categories-box {
        margin-top: 4.4375rem;
    }
}

@media(max-width:576px) {
    .min-height-unset {
        min-height: unset;
    }
}

.rounded-img {
    border-radius: 1.5rem !important;
}

.card-top-img-container .card-body h5 {
    min-height: unset !important;
}

.mt-12 {
    margin-top: 0.75rem;
}

.mb-37 {
    margin-bottom: 2.3125rem !important;
}

.card-body {
    padding: 3.0625rem 1rem 6.125rem 1rem !important;
}

.auto-container {
    max-width: 1200px;
    margin-inline: auto;
    padding: 0 1rem;
}


/* غلاف الجدول */
.rp-table-wrap {
    max-width: 1200px;
    margin-inline: auto;
    padding: 0 1rem;
}

.table.cardlike {
    border: 1px solid #d2d6db;
    border-radius: .9rem;
    overflow: hidden;
    background: #fff;
}

    .table.cardlike thead th {
        background: #eaf5f0;
        color: #0b3d2a;
        font-weight: 700;
        border-bottom: 1px solid #d2d6db;
        vertical-align: middle;
        position: sticky;
        top: 0;
        z-index: 2; /* هيدر لاصق عند التمرير */
    }

    .table.cardlike tbody td {
        vertical-align: middle;
        color: #111827;
    }

    .table.cardlike tbody tr:nth-child(even) {
        background: #f9fbfa;
    }

    .table.cardlike tbody tr:hover {
        background: #f2faf6;
    }

/* محاذاة عامة للجدول */
.table.centered th, .table.centered td {
    text-align: center;
}

/* تقصير عنوان القرار الطويل بسطر واحد مع … */
.table.cardlike td.title-cell {
    max-width: 480px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-responsive {
    border-radius: .9rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

/* مسافة أمان قبل الفوتر */
.rp-bottom-safe {
    padding-bottom: calc(var(--footer-offset) + 16px) !important;
}

/* هيدر أخضر (لو ما كان موجود) */
.rp-header .rp-header-container {
    position: relative;
    background: var(--brand);
    color: #fff;
    /*padding: 10px 0;*/
    margin-bottom: 5px;
}

.rp-header .content-layer {
    position: relative;
    z-index: 2;
}

.rp-header .header {
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: start;
}

.rp-header .breadcrumb {
    --bs-breadcrumb-divider: "›";
    margin: 0;
    padding: 0;
    background: transparent;
}

    .rp-header .breadcrumb .breadcrumb-item,
    .rp-header .breadcrumb .breadcrumb-item a {
        color: #fff;
        font-weight: 700;
        text-decoration: none;
        pointer-events: auto !important;
    }

        .rp-header .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
            color: rgba(255,255,255,.85) !important;
        }




/* start page decisionInfo */

:root {
    --brand: #1b8354;
    --brand-dark: #0f5f3f;
    --text: #1f2a37;
    --muted: #6b7280;
    --bd: #d2d6db;
}
/* شريط علوي أخضر + فتات الخبز */
.rp-header {
    background: var(--brand);
    color: #fff;
}

    .rp-header .rp-container {
        max-width: 1200px;
        margin-inline: auto;
        padding: 10px 1rem;
    }

    .rp-header .breadcrumb {
        --bs-breadcrumb-divider: "›";
        margin: 0;
        background: transparent;
        padding: 0;
    }

        .rp-header .breadcrumb .breadcrumb-item,
        .rp-header .breadcrumb a {
            color: #fff;
            font-weight: 700;
            text-decoration: none;
        }

            .rp-header .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
                color: rgba(255,255,255,.85);
            }

.rp-h2 {
    margin: 0;
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
}

/* حاوية الصفحة */
.rp-wrap {
    max-width: 1200px;
    margin-inline: auto;
    padding: 1rem;
}

/* بطاقات نظيفة */
.rp-card {
    background: #fff;
    border: 1px solid var(--bd);
    border-radius: .9rem;
    padding: 1rem 1.25rem;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .rp-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(0,0,0,.06);
        border-color: #cdd2d8;
    }

    .rp-card .rp-card-title {
        color: var(--text);
        font-weight: 800;
        font-size: 1.25rem;
        margin: 0 0 .5rem;
    }

.rp-meta {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .rp-meta li {
        padding: .6rem .75rem;
        border: 1px solid var(--bd);
        border-radius: .6rem;
        margin-bottom: .5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: .75rem;
    }

.rp-key {
    color: var(--muted);
    font-weight: 600;
}

.rp-val {
    color: var(--text);
    font-weight: 700;
}

/* تعريفات (اسم الحقل/القيمة) */
.rp-def {
    margin: 0;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: .35rem 1rem;
}

    .rp-def dt {
        color: var(--muted);
        font-weight: 700;
    }

    .rp-def dd {
        margin: 0;
        color: var(--text);
    }

/* أزرار */
.rp-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border-radius: .4rem;
    padding: .55rem .9rem;
    border: 1px solid var(--bd);
    background: #fff;
    color: #161616;
    font-weight: 600;
    text-decoration: none;
}

    .rp-btn:hover {
        background: #f3f4f6;
    }

.rp-btn-primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

    .rp-btn-primary:hover {
        background: #166a45;
        border-color: #166a45;
    }

.rp-btn-block {
    width: 100%;
    justify-content: center;
}

/* بطاقات الملخص/التفاصيل */
.rp-section-title {
    color: var(--text);
    font-weight: 800;
    font-size: 1.15rem;
    margin: 0 0 .4rem;
}

.rp-par {
    color: #1f2a37;
    line-height: 1.7;
    margin: 0;
}

/* مرفقات */
.rp-attach {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

    .rp-attach .item {
        display: flex;
        align-items: center;
        gap: .75rem;
        border: 1px solid var(--bd);
        border-radius: .6rem;
        padding: .65rem .75rem;
    }

    .rp-attach .icon {
        flex: 0 0 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border-radius: .5rem;
        background: #ecfdf3;
        color: var(--brand);
        font-weight: 900;
    }

    .rp-attach .txt {
        flex: 1;
        min-width: 0;
    }

    .rp-attach .name {
        font-weight: 700;
        color: var(--text);
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rp-attach .actions {
        display: flex;
        gap: .5rem;
        flex-wrap: wrap;
    }



@media (max-width: 992px) {
    .col-8, .col-4 {
        flex-basis: 100%;
    }
}

/* مسافات أخيرة قبل الفوتر */
.mb-page-end {
    margin-bottom: 2rem;
}



/* End page decisionInfo */




/* start page decisionSubCat */
:root {
    --brand: #1b8354;
    --brand-dark: #0f5f3f;
    --text: #1f2a37;
}


/* عنوان الصفحة تحت الهيدر */
.sec-title.centered {
    text-align: center;
    margin-bottom: 1.25rem;
}

.sec-title .title {
    color: #6b7280;
    font-size: .95rem;
    margin-bottom: .35rem;
}

.sec-title h2 {
    color: var(--text);
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
}

/* شبكة الكروت */
.rp-grid {
    display: grid;
    grid-template-columns: repeat(12,1fr);
    gap: 1rem;
}

@media (min-width: 992px) {
    .rp-col-4-lg {
        grid-column: span 4;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .rp-col-6-md {
        grid-column: span 6;
    }
}

@media (max-width: 767.98px) {
    .rp-col-12-sm {
        grid-column: span 12;
    }
}

.rp-card1 {
    position: relative;
    background: #fff;
    border: 1px solid #d2d6db;
    border-radius: .9rem;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem;
}

    .rp-card1::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 4px;
        background: var(--brand);
    }

    .rp-card1:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,.06);
        border-color: #c8cdd3;
    }

    .rp-card1 a.stretched {
        position: absolute;
        inset: 0;
        z-index: 3;
    }

    .rp-card1 h5 {
        font-size: 1.0625rem;
        font-weight: 700;
        color: var(--text);
        margin: 0 0 .35rem;
        line-height: 1.5;
    }

    .rp-card1 .hint {
        font-size: .95rem;
        color: #4b5563;
        margin: 0;
    }

    .rp-card1 .arrow {
        position: absolute;
        inset-inline-end: .75rem;
        inset-block-end: .6rem;
        font-weight: 700;
        color: var(--brand);
    }

        .rp-card1 .arrow i {
            vertical-align: middle;
        }

/* حاويات عامة */
.auto-container {
    max-width: 1200px;
    margin-inline: auto;
    padding: 0 1rem;
}

.page-title {
    display: none;
}
/* نخفي العنوان القديم لأن لدينا هيدر جديد */

/* اتجاه عربي */
[dir="rtl"] .rp-header .breadcrumb {
    text-align: start;
}

</style >
<style >
/* تنسيق شبكة الأعمدة */
.rp-grid {
    display: grid;
    grid-template-columns: repeat(12,1fr);
    gap: 1rem;
}

.rp-col-12-sm {
    grid-column: span 12;
}

@media (min-width:768px) {
    .rp-col-6-md {
        grid-column: span 6;
    }
}

@media (min-width:992px) {
    .rp-col-4-lg {
        grid-column: span 4;
    }
}

/* البطاقة */
.rp-card1 {
    position: relative;
    background: #fff;
    border: 1px solid #d2d6db;
    border-radius: 12px;
    padding: 1.1rem 1rem;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0,0,0,.06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    cursor: pointer;
    overflow: hidden;
}

    .rp-card1::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 4px;
        background: linear-gradient(90deg, var(--brand, #1b8354), #0fa66a);
        opacity: .9;
    }

    .rp-card1:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(27,131,84,.15);
        border-color: rgba(27,131,84,.35);
    }

    .rp-card1 h5 {
        margin: 0;
        font-size: 1.05rem;
        line-height: 1.5;
        font-weight: 700; /* بولد */
        color: #1f2a37;
    }

    /* السهم (مع بديل لو ما فيه Font Awesome) */
    .rp-card1 .arrow {
        position: absolute;
        inset-inline-end: .75rem;
        inset-block-end: .6rem;
        font-weight: 700;
        color: var(--brand, #1b8354);
        font-size: 1.05rem;
        line-height: 1;
        pointer-events: none;
    }

        .rp-card1 .arrow i {
            vertical-align: middle;
        }

            .rp-card1 .arrow i:empty::before {
                content: "‹";
            }

    .rp-card1 > .stretched {
        position: absolute;
        inset: 0;
        z-index: 5;
    }
/* مسافة أمان تمنع تداخل المحتوى مع الفوتر/العناصر الثابتة بالأسفل */
:root {
    --footer-offset: 72px;
}
/* عدّلها حسب ارتفاع الفوتر/الشريط */
@media (max-width: 576px) {
    : root {
        --footer-offset: 100px;
    }
    /* بالجوال غالباً أعلى */
}

.rp-bottom-safe {
    padding-bottom: calc(var(--footer-offset) + 16px) !important;
    margin-bottom: .5rem !important; /* لمسة مسافة خارجية بسيطة */
}

:root {
    --brand: #1b8354;
}

.rp-card1 {
    position: relative;
    overflow: hidden;
    border: 1px solid #d2d6db;
    border-radius: .9rem;
    background: #fff;
    /* اترك مساحة لقدم البطاقة */
    padding: 1rem 1rem 3.25rem;
}

/* أيقونة الخلفية (علامة مائية) */
.rp-card1-bg-img {
    position: absolute;
    right: -14px; /* اسحبها شوي خارج الحافة لِشكل ألطف */
    bottom: -14px;
    width: 140px;
    height: 140px;
    object-fit: contain;
    opacity: .14; /* شفافية */
    pointer-events: none; /* لا تمنع النقر */
    z-index: 0;
    transform: rotate(-12deg);
}

/* محتوى البطاقة فوق الأيقونة */
.rp-card1 > * {
    position: relative;
    z-index: 1;
}

/* قدم البطاقة (العنوان + السهم) بأسفل الكارد */
.rp-card1-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem;
    background: linear-gradient(180deg, rgba(27,131,84,.06), rgba(27,131,84,.12));
    border-top: 1px solid #e5e7eb;
}

    /* العنوان */
    .rp-card1-footer h5 {
        margin: 0;
        font-size: 1.0625rem;
        font-weight: 700;
        color: #1f2a37;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* السهم */
.rp-card1 .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ecfdf3;
    color: var(--brand);
    flex-shrink: 0;
}

/* اجعل الكارد بالكامل قابل للنقر */
.rp-card1 .stretched {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.rp-card1-footer h5,
.rp-card1 .arrow {
    z-index: 6;
    pointer-events: none; /* عشان يظل النقر للكارد ككل */
}
/* End page decisionSubCat */







/* Start KnowledgeCenter-Arch Page */

.card-top-img-container .card-body .cat-img {
    height: 12.5rem;
}

.text-ellipsis {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* عدد الأسطر */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    cursor: default;
}

.read-more {
    color: #2b727e;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 5px;
}

/* End KnowledgeCenter-Arch Page */


/* start organizationstructure */
/* ========== jsTree icon customization ========== */
.jstree-node .jstree-icon.jstree-ocl {
    font-size: 1.5em !important;
    width: 24px !important;
    height: 24px !important;
}

.jstree-node .jstree-icon {
    font-size: 1.5em !important;
    width: 24px !important;
    height: 40px !important;
}

.jstree-node {
    padding: 10px 0;
}

.ri-folder-3-line {
    font-size: 1.5em !important;
}

/* ========== Custom Tree structure ========== */
.tree {
    list-style-type: none;
    padding-left: 20px;
}

    .tree li {
        padding-inline-start: .5em;
    }

.collapsed > ul {
    display: none;
}

.expanded > ul ::before {
    display: block;
}

.tree li span {
    font-weight: 600;
    font-size: 1rem;
    line-height: 3rem;
}

.tree li ul {
    list-style-type: none;
    padding-left: 20px;
}

/* ========== Navigation Cover Section ========== */
.nav_madina_cover {
    background-image: linear-gradient(rgb(4 53 49 / 0%), rgb(4 53 49 / 34%)), url(../img/FooterEid.png);
    background-size: cover;
    background-position: center 62%;
    background-repeat: no-repeat;
    padding-right: var(--bs-breadcrumb-item-padding-x);
}

    .nav_madina_cover .breadcrumb {
        margin: 0;
        background: transparent;
        padding-right: 0em;
    }

    .nav_madina_cover .breadcrumb-item + .breadcrumb-item:before {
        color: #fff;
        content: ">";
    }

    .nav_madina_cover .breadcrumb-item a {
        color: #ffffff;
        font-size: 0.9rem;
        text-decoration: none;
    }

        .nav_madina_cover .breadcrumb-item a:hover {
            text-decoration: underline;
        }

/* ========== Organizational Structure ========== */
.oragniztional-structure-header {
    font-size: 1.563rem !important;
    margin-bottom: 0 !important;
}

.text-primary {
    color: #007167;
}

/* Organizational List */
.org-list {
    margin: 0;
    padding: 0;
}

.org-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .75rem 1.25rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,.1);
    outline: none;
}

    .org-item:last-child {
        border-bottom: 0;
    }

.org-role {
    font-weight: 600;
}

.org-item:focus {
    box-shadow: 0 0 0 3px rgba(0, 113, 103, .35);
    border-radius: .5rem;
}

/* ========== Responsive Design ========== */
@media (max-width: 1200px) {
    #ds-edit {
        margin-top: 10px;
    }
}

@media (max-width: 992px) {
    #ds-edit1 {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .icon {
        flex: 0 0 calc(33.33% - 40px);
    }
}

@media (max-width: 480px) {
    .icon {
        flex: 0 0 calc(50% - 40px);
    }
}

/* end organizationstructure */


/* start contact us form */
/* ================================
       🌿 تحسين التصميم + WCAG 
     
       ================================ */

/* الحاوية الأساسية */
.contact-us-form-container {
    background-color: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* العنوان الرئيسي */
.page-head-info {
    color: #000;
    /*background: linear-gradient(90deg, #0b6c3e, #138d55);*/
    font-weight: 700;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* الوصف */
.contact-us-form-container h4 {
    color: #3c3c3c;
    font-size: 1.05rem;
    line-height: 1.9;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* ========== تسميات الحقول ========== */
.ds-input-label {
    color: #0b6c3e;
    font-weight: 600;
    font-size: 1rem;
    display: block;
    margin-bottom: .4rem;
}

/* النجمة */
.required-sign {
    color: #d32f2f;
    font-weight: bold;
}

/* ========== الحقول النصية ========== */
.ds-text-input {
    background-color: #fff;
    border: 1.5px solid #c7d9cc;
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    font-size: 1rem;
    width: 100%;
    color: #222;
    transition: border-color 0.25s, box-shadow 0.25s;
}

    .ds-text-input:hover {
        border-color: #0b6c3e;
    }

    .ds-text-input:focus,
    textarea:focus {
        border-color: #0b6c3e;
        box-shadow: 0 0 0 3px rgba(11,108,62,0.25);
        outline: none;
    }

    /* Disabled fields */
    .ds-text-input[disabled] {
        background-color: #f2f2f2;
        color: #777;
    }

/* تباين النصوص */
.text-danger {
    font-size: 0.9rem;
    color: #b42318 !important;
}

/* ========== رفع الملفات ========== */


.rp-upload-button {
    background: linear-gradient(90deg, #0b6c3e, #138d55);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

    .rp-upload-button:hover {
        background: linear-gradient(90deg, #138d55, #0b6c3e);
        transform: translateY(-1px);
    }

.upload-files-section {
    background-color: #f1f7f4;
    border: 2px dashed #b8d7c3;
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.3s ease;
}

    .upload-files-section:hover {
        border-color: #0b6c3e;
    }

#file-name-display {
    background-color: #e6f3ea;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    display: inline-block;
    margin-top: 8px;
}

/* ========== التنبيهات ========== */
.alert-danger {
    background-color: #fdeaea;
    border-left: 6px solid #b42318;
    color: #911a0e;
    font-size: .95rem;
    border-radius: 10px;
    padding: 1rem 1.2rem;
}

/* ========== تحسين الوصول (WCAG) ========== */
label, input, textarea, button {
    color: #222;
}

/* تركيز لوحة المفاتيح */
/*:focus-visible {
    outline: 3px solid #0b6c3e;
    outline-offset: 2px;
}*/

/* Placeholder */
::placeholder {
    color: #777;
    opacity: 1;
}

/* التفاعل العام */
button:hover, input:hover, textarea:hover {
    transition: all 0.2s ease-in-out;
}

/* ========== الهواتف ========== */
@media (max-width: 768px) {
    .page-head-info {
        font-size: 1.4rem;
        padding: .8rem;
    }

    .contact-us-form-container {
        padding: 1.5rem;
    }
}

#text {
    font-size: 0.9rem;
    color: #b42318;
    margin-top: 4px;
    display: block;
    line-height: 1.4;
}

.feedback-btn {
    background-color: #1B8354 !important;
    border: 1px solid #1B8354 !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 0.59375rem 1.625rem;
    line-height: 1.11;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(27, 131, 84, 0.25);
}

    .feedback-btn:hover,
    .feedback-btn:active {
        background-color: #066058 !important;
        border-color: #066058 !important;
        color: #fff !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(6, 96, 88, 0.3);
    }

button#form-sumbit {
    border-radius: 6px !important;
}

/* end contact us form */


/* start page ADSAT */

.btn-group-custom button {
    padding: 0 1.3em !important;
}

    .btn-group-custom button img {
        width: 1.5rem;
        height: 1.5rem;
        margin-left: 0.5rem !important;
    }

@media (max-width: 991px) {
    .btn-group-custom button {
        padding: 0.6em !important;
    }
}

@media (max-width: 768px) {
    .adastna {
        margin-bottom: 1rem !important;
    }
}

.btn-group-custom .btn {
    margin: 0 5px;
}

.filter-btn {
    border-radius: 0.4rem !important;
}

.image-overlay,
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 14.2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 1rem;
}

.cat-img {
    height: 14.2rem;
    border-radius: 1rem;
    width: 100%;
}

.images .card .card-body h5,
.videos .card .card-body h5 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1F2A37;
}
/* تحسين أزرار الفلترة */
.btn-group-custom {
    gap: 0.5rem;
}

.filter-btn {
    border: 1.5px solid #75757512;
    border-radius: 0.5rem;
    background-color: #fff;
    color: #1F2A37;
    font-weight: 500;
    padding: 0.6em 1.2em;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

    .filter-btn img {
        width: 1.25rem;
        height: 1.25rem;
        margin-left: 0.5rem;
        opacity: 0.8;
        transition: opacity 0.3s ease;
    }

    /* تأثير عند التمرير */
    .filter-btn:hover {
        background-color: #f8f9fa;
        border-color: #bbb;
    }

    /* الزر النشط */
    .filter-btn.active {
        background-color: #e0e7ff;
        border-color: #75757512;
        color: #111827;
    }

        .filter-btn.active img {
            opacity: 1;
        }

    /* موازنة للأيقونة مع النص */
    .filter-btn.d-flex {
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
    }

.fancybox__container {
    background-color: rgba(0, 0, 0, 0.85);
}

.fancybox__caption {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

#image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

    #image-viewer.show {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

.viewer-content {
    position: relative;
    max-width: 55%; 
    max-height: 80%; 
}

    .viewer-content img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 0 15px rgba(0,0,0,0.4);
        transition: transform 0.3s ease;
    }

        .viewer-content img:hover {
            transform: scale(1.03); 
        }

.viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    color: #000;
    font-size: 26px;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    text-align: center;
    line-height: 36px;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    transition: 0.2s;
}

    .close-btn:hover {
        background: #f00;
        color: #fff;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* End page ADSAT */



/* start page Labs */

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #E5E7EB;
    border-radius: .5rem;
    background: #fff;
}

    .table-wrap:focus-visible {
        outline: 3px solid #1B8354;
        outline-offset: 2px;
    }

table.labs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.labs-table caption {
    text-align: start;
    font-weight: 600;
    padding: .75rem 1rem;
}

.labs-table thead th {
    background-color: #1b8354d6;
    color: #fff;
    padding: .75rem .75rem;
    font-size: .9rem;
    white-space: nowrap;
    text-align: right;
}

.labs-table tbody td,
.labs-table tbody th[scope="row"] {
    border-top: 1px solid #E5E7EB;
    padding: .85rem .75rem;
    vertical-align: top;
    text-align: right;
    background: #fff;
}

.labs-table tbody tr:nth-child(even) td,
.labs-table tbody tr:nth-child(even) th[scope="row"] {
    background: #F9FAFB;
}

.cell-list {
    list-style: disc;
    padding-inline-start: 1.25rem;
    margin: 0;
}

a.tel-link {
    white-space: nowrap;
}

@media (max-width: 600.98px) {
    .rp-container-fluid {
        padding-right: .75rem;
        padding-left: .75rem;
    }
}

/* End page Labs */


/* start page detailsNews */

h2.custom-title {
    font-size: 1.875rem;
    color: #1F2A37 !important;
}

.dynamic-text,
.dynamic-text span,
.dynamic-text p {
    font-size: 1.3125rem !important;
    color: #161616 !important;
}

.rounded-27 {
    border-radius: 1.6875rem;
}

.height-img {
    height: 34rem !important;
}

@media (max-width: 767.98px) {
    .h-md-auto {
        height: auto !important;
    }

    .margin-top-title {
        margin-top: 1rem;
    }
}

@media (min-width: 992px) {
    .custom-padding-start {
        padding-inline-start: 3rem !important;
    }
}
/* start page NewsDetails */

#pubdate {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #6b7280 !important; /* رمادي أنيق */
    font-size: 0.95rem;
}

    #pubdate i {
        color: #1B8354; /* لون أيقونة التاريخ */
        font-size: 1rem;
    }



/* End page detailsNews */
/* start page RemoteOracle */

.ro-content {
    background: var(--ro-surface);
    border: 1px solid var(--ro-border);
    border-radius: .75rem;
    padding: 1rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .ro-content {
        padding: 1.25rem 1.5rem;
    }
}

.ro-section-title {
    font-size: 1.125rem;
    margin: .25rem 0 1rem;
    color: var(--ro-ink);
}

/* ====== Steps ====== */
.ro-steps {
    margin: 0;
    padding: 0 1.25rem 0 0; /* RTL list marker spacing */
    display: grid;
    gap: .875rem;
}

.ro-step {
    line-height: 1.9;
    color: var(--ro-ink-2);
}

/* ====== Links (visible focus, WCAG) ====== */
.remote-oracle a {
    color: var(--ro-brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .remote-oracle a:focus-visible {
        outline: 3px solid var(--ro-brand);
        outline-offset: 2px;
        border-radius: .25rem;
    }

/* ====== Table ====== */
.table-wrap {
    margin-top: .75rem;
    border: 1px solid var(--ro-border);
    border-radius: .5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--ro-surface);
}

    .table-wrap:focus-visible {
        outline: 3px solid var(--ro-brand);
        outline-offset: 2px;
    }

.ro-table {
    width: 100%;
    min-width: 520px; /* keeps columns readable on small screens */
    border-collapse: collapse;
}

    .ro-table caption {
        text-align: start;
        font-weight: 600;
        padding: .75rem 1rem .5rem;
        color: var(--ro-ink-2);
    }

    .ro-table thead th {
        background: #1b8354d6;
        color: #fff;
        padding: .65rem .75rem;
        font-size: .95rem;
        text-align: right;
        white-space: nowrap;
        border: none;
    }

    .ro-table tbody td,
    .ro-table tbody th[scope="row"] {
        padding: .7rem .75rem;
        border-top: 1px solid var(--ro-border);
        vertical-align: top;
        text-align: right;
        background: var(--ro-surface);
    }

    .ro-table tbody tr:nth-child(even) td,
    .ro-table tbody tr:nth-child(even) th[scope="row"] {
        background: var(--ro-surface-2);
    }

/* End page RemoteOracle */
/* start page MobileApps */

.panel-desc {
    color: #007366;
    text-align: right;
    font-size: 12px;
    line-height: 6px;
}

@media (max-width: 535px) {
    .panel-desc {
        line-height: 14px;
    }
}

h2.head-App {
    font-size: 15px;
    text-align: center;
}

p.para-App {
    font-size: 15px;
    text-align: justify;
    margin: 10px;
    color: #343a40e0;
    margin-bottom: 35px;
}

label.tgs {
    font-size: 12px;
    color: #016B68;
    margin-bottom: 15px;
}



.service-cus-txt a {
    line-height: 22px !important;
    font-size: 12px !important;
    color: #fff !important;
    font-weight: 100 !important;
}

.card {
    border: none !important;
}

.inner {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    margin: 0 auto;
}

.table .inner {
    max-width: 981px;
    width: 98%;
    text-align: left;
    padding-left: 13px;
}

.table h2 {
    font-family: SabicHeadlineLight, arial, sans-serif;
    line-height: 1.333em;
    font-size: 2rem;
    padding-bottom: 20px;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
    color: #009fdf;
}

.table ul li:nth-child(2n+1) {
    background: linear-gradient(to right, #6DBE4B, #52A673, #007366);
    padding: 4px 8px 6px 4px;
}

.scaler {
    margin-top: -7px;
}

.table ul li a {
    display: block;
    padding: 1.6875rem 4.5rem;
    text-transform: uppercase;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.5rem;
}

    .table ul li a:before {
        content: "";
        width: 2rem;
        height: 20px;
        position: absolute;
        left: .2rem;
        top: 50%;
        transform: translateY(-55%);
        background: url(~/images/BaseImages/download77.png) no-repeat center;
        color: #fff !important;
        cursor: pointer !important;
    }
/* ===========================================================
   start page MobileApps - Equal Cards Design
   =========================================================== */

/* إعداد الصف الأساسي ليكون مرن ومتساوي الأعمدة */
.service-card .row,
.service-card .row[role="list"] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

/* الأعمدة بنفس الارتفاع */
.service-card .col-lg-4,
.service-card .col-md-6,
.service-card .col-sm-12 {
    display: flex;
}

/* شكل الكارت */
.card-service-cus {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /*background: #fff;*/
    border-radius: 1rem;
    /*border: 1px solid rgba(0, 0, 0, 0.08);*/ /* ✅ بوردر خفيف وواضح */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 1rem;
    width: 100%;
    min-height: 43rem; /* لتوحيد موضع الأزرار */
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    /* تأثير عند المرور */
    .card-service-cus:hover {
        transform: translateY(2px);
        border-color: rgba(27, 131, 84, 0.4); /* ✅ لون خفيف عند الهوفر */
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    /* توزيع المحتوى الداخلي */
    .card-service-cus .card-body {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

/* الأيقونة في منتصف أعلى الكارت */
.service-cus-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    margin-bottom: 1rem;
}

    .service-cus-icon img {
        display: block;
        max-width: 100px;
        height: auto;
    }

/* النص يتمدد في الوسط */
.service-cus-txt {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* العنوان */
.head-App {
    font-size: 15px;
    text-align: center;
    color: #016B68;
    margin-bottom: .75rem;
}

/* الفقرة */
.para-App {
    flex-grow: 1;
    margin: 10px;
    margin-bottom: 1rem !important;
    color: #343a40e0;
    text-align: justify;
    font-size: 15px;
}

/* قسم تحميل التطبيق */
.service-tgs {
    margin-top: auto;
    text-align: center;
}

    .service-tgs label {
        display: block;
        text-align: center;
        margin-bottom: 0.5rem;
        color: #016B68;
        font-size: 13px;
    }

    /* ترتيب الأزرار في صف واحد متناسق */
    .service-tgs .row {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
    }

    /* تخصيص الأزرار */
    .service-tgs img {
        transition: transform 0.2s ease;
    }

        .service-tgs img:hover {
            transform: scale(1.05);
        }

/* للجوال */
@media (max-width: 768px) {
    .card-service-cus {
        min-height: auto;
    }
}

/* ===========================================================
   End page MobileApps - Equal Cards Design
   =========================================================== */
/* ===========================================================
       start page Freedom Information Policy - WCAG compliant
       =========================================================== */

.freedom-container {
    background-color: #fff;
    border-radius: 1rem;
    border: 1px solid #dcdcdc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 3rem 2rem;
    line-height: 1.9;
    color: #1A1A1A;
}

/* 🟩 العناوين */
.freedom-title {
    color: #23685F; /* contrast ratio > 5:1 */
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.freedom-subtitle {
    color: #23685F;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* ✍️ النصوص العامة */
.freedom-desc {
    font-size: 1rem;
    color: #212121;
    margin-bottom: 1rem;
    text-align: justify;
}

/* 🧩 القوائم */
.freedom-list,
.freedom-tag-list,
.freedom-nested-list {
    font-size: 1rem;
    color: #333;
    padding-inline-start: 1.25rem;
    margin-bottom: 1.5rem;
}

    .freedom-list li,
    .freedom-tag-list li {
        margin-bottom: .5rem;
    }

/* 🔶 إبراز النص */
.highlight {
    color: #B77A1D;
    font-weight: 700;
}

/* ⬛ القوائم المتداخلة */
.freedom-nested-list {
    padding-inline-start: 1.75rem;
    font-size: .95rem;
    color: #444;
}

/* ♿ تحسين التفاعل بلوحة المفاتيح */


/* 📱 الشاشات الصغيرة */
@media (max-width: 768px) {
    .freedom-container {
        padding: 1.5rem;
    }

    .freedom-title {
        font-size: 1.5rem;
    }

    .freedom-subtitle {
        font-size: 1.1rem;
    }
}

/* ===========================================================
       End page Freedom Information Policy - WCAG compliant
      /* ===========================================================
   start page Digital Participation Policy (WCAG 2.1 AA)
   =========================================================== */

.digital-policy {
    background-color: #fff;
    border-radius: 1rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: #1B1B1B;
    line-height: 1.9;
}

/* العناوين */
.section-title {
    color: #20635C; /* عالي التباين */
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #20635C;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* الفقرات */
.content-text {
    font-size: 1rem;
    color: #2E2E2E;
    text-align: justify;
    margin-bottom: 1rem;
}

.lead-label {
    font-weight: 600;
    color: #B8801D;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* القوائم */
.styled-list {
    padding-inline-start: 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #333;
}

    .styled-list li {
        margin-bottom: .5rem;
    }

.green-bullets li::marker {
    color: #20635C;
}

/* نص مخفي لقارئات الشاشة */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* استجابة للجوال */
@media (max-width: 768px) {
    .digital-policy {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }
}

/* ===========================================================
   End page Digital Participation Policy (WCAG 2.1 AA)
   =========================================================== */
/* ===========================================================
   start page Privacy Policy (WCAG 2.1 AA)
   =========================================================== */

.privacy-policy {
    background-color: #fff;
    border-radius: 1rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

/* العناوين */
.section-title {
    color: #20635C;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #20635C;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.section-minor {
    color: #B8801D;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

/* النصوص */
.content-text {
    font-size: 1rem;
    color: #2E2E2E;
    text-align: justify;
    margin-bottom: 1rem;
}

/* القوائم */
.styled-list {
    padding-inline-start: 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #333;
}

    .styled-list li {
        margin-bottom: .5rem;
    }

.green-bullets li::marker {
    color: #20635C;
}

/* الروابط */
a {
    color: #B8801D;
    text-decoration: underline;
    text-underline-offset: 3px;
}

    a:hover {
        color: #8f6616;
    }



/* نص مخفي لقارئات الشاشة */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .privacy-policy {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }
}

/* ===========================================================
   End page Privacy Policy (WCAG 2.1 AA)
   =========================================================== */
/* =====================  Smartcity ===================== */

/* نصوص عامة */
.panel-desc {
    color: #007366;
    text-align: right;
    font-size: 12px;
    line-height: 6px;
}

@media (max-width: 535px) {
    .panel-desc {
        line-height: 14px;
    }
}

h2.head-App {
    font-size: 20px;
    margin-bottom: 13px;
}

span.title-App {
    font-size: 1.5rem;
    color: #000;
    font-weight: 700;
}

p.para-App {
    font-size: 15px;
    text-align: justify;
    margin: 10px;
    color: #343a40e0;
    margin-bottom: 35px;
}

label.tgs {
    font-size: 12px;
    color: #016B68;
    margin-bottom: 15px;
}

/* بطاقات الخدمة */
.card-service-cus {
    border-radius: 0.5rem;
    /*box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);*/
    background: #fff;
    /*border: 1px solid #D2D6DB;*/
}

.service-cus-txt a {
    line-height: 22px !important;
    font-size: 12px !important;
    color: #fff !important;
    font-weight: 100 !important;
}

/* جداول وخطوط عامة */
.inner {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    margin: 0 auto;
}

.table .inner {
    max-width: 981px;
    width: 98%;
    text-align: left;
    padding-left: 13px;
}

.table h2 {
    font-family: "SabicHeadlineLight", arial, sans-serif;
    line-height: 1.333em;
    font-size: 2rem;
    padding-bottom: 20px;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
    color: #009fdf;
}

.table ul li:nth-child(2n+1) {
    background: linear-gradient(to right, #6DBE4B, #52A673, #007366);
    padding: 4px 8px 6px 4px;
}

.scaler {
    margin-top: -7px;
}

.table ul li a {
    display: block;
    padding: 1.6875rem 4.5rem;
    text-transform: uppercase;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.5rem;
}

    .table ul li a::before {
        content: "";
        width: 2rem;
        height: 20px;
        position: absolute;
        left: 0.2rem;
        top: 50%;
        transform: translateY(-55%);
        background: url(~/images/BaseImages/download77.png) no-repeat center;
        background-size: contain;
        color: #fff !important;
        cursor: pointer !important;
    }

/* نصوص عامة */
.arabic-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1F2A37;
}

.right-content {
    font-size: 1rem !important;
    font-weight: 400 !important;
    color: #161616;
}

.count-no {
    font-size: 3rem;
    font-weight: 700;
    line-height: 0;
    color: #1F2A37;
}

/* بطاقات الترتيب الجانبية */
.left-smart_city_card {
    background-color: transparent !important;
    border-radius: 1.25rem !important;
    border: 1px solid #D2D6DB !important;
}

/* تبويبات */
.tab-content {
    display: block !important;
}

h2.title-style {
    font-size: 1.875rem !important;
}

p.desc-style {
    color: #161616 !important;
}

.tab_header_text {
    font-size: 1rem !important;
    color: #1F2A37 !important;
}

.mb-container {
    margin-bottom: 20.9375rem;
}

@media (max-width: 1024px) {
    .mb-container {
        margin-bottom: 2rem;
    }
}

/* بطاقات صور: نسب متناسقة */
.cat-img {
    width: 100%;
    height: 15rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* إطار واضح للكروت */
.card.card-top-img-container.col-sm-12.mb-4 {
    border: 1px solid #d2d6db !important;
    border-radius: 0.9rem !important;
}

/* ========= أساسيات الوصول (WCAG) وتوافق RTL ========= */

html[dir="rtl"] body,
body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* تباين ألوان آمن للنصوص الأساسية */
.title-style,
.text-black,
.card .card-title,
.right-content,
.tab_header_text,
.arabic-text,
.count-no {
    color: #161616;
}

/* حجم هدف تفاعلي مناسب */
button,
.btn,
.nav-link {
    /*min-height: 44px;*/
    touch-action: manipulation;
}



/* تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* صور مرنة */
img {
    max-width: 100%;
    height: auto;
}

/* ========= تبويبات Bootstrap ========= */
.nav-tabs {
    border-bottom: 1px solid #e5e7eb;
}

    .nav-tabs .nav-link {
        font-weight: 600;
        color: #374151;
        background: transparent;
        border: none;
        padding-inline: 0.85rem;
        padding-block: 0.75rem;
    }

        .nav-tabs .nav-link:hover,
        .nav-tabs .nav-link:focus-visible {
            color: #0f766e;
        }

        .nav-tabs .nav-link[aria-selected="true"] {
            color: #0b5e57;
            border-bottom: 3px solid #0b5e57;
        }

/* المنطقة المتغيرة */
#myTabContent[aria-live="polite"] {
    position: relative;
}

/* ========= توازن ارتفاع الكروت ========= */
.row > [class*="col-"].d-flex {
    align-items: stretch;
}

.equalize-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

    .equalize-card .card-body {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .equalize-card .desc-container {
        margin-bottom: 2rem;
    }

/* تحسين تباعد */
.card.mb-4 {
    margin-bottom: 1rem !important;
}

/* صور الكروت */
.cat-img {
    width: 100%;
    height: 15rem;
    object-fit: cover;
    border-radius: .5rem;
}

@media (max-width: 576px) {
    .cat-img {
        height: 12rem;
    }
}

/* ========= بطاقات المؤشرات الجانبية ========= */

.card-body.d-flex.flex-column.align-items-start.justify-content-start {
    padding: 5px 20px !important;
}
.left-smart_city_card.card .count-no {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
}

.left-smart_city_card .icon-container img {
    width: 40px;
    height: 40px;
}

/* ========= نصوص الكروت ========= */
.right-change-now-content p,
.tab_header_text,
.card .card-title,
.card p {
    line-height: 1.7;
}

/* ========= الكروت ========= */
.card[role="group"] {
    border-color: #e5e7eb;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    transition: box-shadow .2s ease, transform .2s ease;
}

    .card[role="group"]:hover {
        box-shadow: 0 6px 16px rgba(0,0,0,.08);
        transform: translateY(-2px);
    }

    .card[role="group"]:focus-within {
        box-shadow: 0 0 0 3px rgba(0, 113, 103, 0.25);
    }

/* ========= RTL ========= */
[dir="rtl"] .nav-tabs .nav-link {
    margin-inline-end: .25rem;
}

[dir="rtl"] .card .card-title {
    letter-spacing: 0;
}

/* ========= الروابط والأزرار ========= */
a,
.btn-link {
    color: #0b5e57;
    text-decoration: none;
}

    a:hover,
    .btn-link:hover,
    a:focus-visible,
    .btn-link:focus-visible {
        text-decoration: underline;
    }

/* ========= أزرار القراءة ========= */
.btn.rp-primary-btn {
    background-color: #0b5e57;
    color: #ffffff;
    border: 1px solid #0b5e57;
    border-radius: .5rem;
    padding: .55rem 1rem;
    font-weight: 600;
}

    .btn.rp-primary-btn:hover,
    .btn.rp-primary-btn:focus-visible {
        background-color: #094b46;
        border-color: #094b46;
    }

/* ========= الجسم والخلفيات ========= */
.card-body {
    background-color: #ffffff;
}

/* ========= عناصر الترتيب ========= */
#arab-rank-title[aria-label],
#global-rank-title[aria-label] {
}

/* ========= فقرات الكروت ========= */
.desc-container p {
    margin-bottom: 0;
}

/* ========= منع اهتزاز الصور ========= */
.icon-container img {
    display: block;
}
/* ===== إخفاء النص الطويل افتراضياً ===== */
.truncated {
    max-height: 6.5em; /* يعرض تقريباً 3 أسطر */
    overflow: hidden;
    position: relative;
}

/* ===== شكل الزر "اقرأ المزيد" ===== */
.btn-readmore {
    background: none;
    border: none;
    color: #007167;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s;
    margin-top: 8px;
}

    .btn-readmore:hover,
    .btn-readmore:focus {
        color: #004d48;
        text-decoration: underline;
    }

/* ===== عند توسيع النص ===== */
.truncated.expanded {
    max-height: none;
}
/* الحالة الافتراضية للنص */
.card-text.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 7.5em; /* يعرض تقريباً 4 أسطر */
}

    /* عند فتح الزر */
    .card-text.truncated.expanded {
        -webkit-line-clamp: unset;
        max-height: 250px; /* ارتفاع مناسب لعرض المحتوى بالكامل */
        overflow-y: auto; /* لو النص أطول من كده، بيظهر سكرول صغير داخل الكارت فقط */
    }

/* لإخفاء الاهتزاز بين الكروت */
.equalize-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.row.equal-height {
    align-items: start !important;
}
/* شكل أنيق للسكرول داخل الكارت */
.card-text.truncated.expanded::-webkit-scrollbar {
    width: 6px;
}

.card-text.truncated.expanded::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.25);
    border-radius: 10px;
}

/* زر اقرأ المزيد */
.btn-readmore {
    background: none;
    border: 0;
    color: #007167;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
}

    .btn-readmore:hover,
    .btn-readmore:focus {
        text-decoration: underline;
    }

/* ===================== End Smartcity ===================== */

/* === القائمة المنسدلة الرئيسية في شريط التنقل === */
.navbar .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: none;
    border-top: 3px solid #198754;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    z-index: 1000;
}

    /* لما تتفتح */
    .navbar .dropdown-menu.show {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        white-space: nowrap;
    }

    /* عناصر القائمة */
    .navbar .dropdown-menu a {
        color: #1f2a37 !important;
        font-weight: 400;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .navbar .dropdown-menu a:hover,
        .navbar .dropdown-menu a:focus {
            color: #198754;
            text-decoration: underline;
        }

/* في الشاشات الصغيرة (موبايل أو تابلت): عمودي */
@media (max-width: 992px) {
    .navbar .dropdown-menu.show {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.2rem !important;
        padding: 0.75rem 1rem !important;
    }

    .navbar .dropdown-menu a {
        display: block;
        width: 100%;
        padding: 0.4rem 0;
    }
}

/* ===================== start service ===================== */

/*@media (max-width: 1080px) {
    .ds-live-event-card {
        width: 100%;
    }
}

@media (max-width: 1080px) {
    .ds-live-event-card {
        width: 100%;
    }
}

body {
    background-color: #ffffff !important;
}

.cd-gallery li {
    list-style: none;
}

.cd-gallery .cd-fail-message {
    display: none;
    text-align: center;
}

.form-check label {
    font-size: 1rem;
    max-width: 100%;
}

.form-check-input:checked::before {
    background-color: #00958a;
}

.form-check-input:checked {
    background-color: #00958a;
    border-color: #00958a;
    box-shadow: none;
}

.form-check-input {
    accent-color: #00958a;
}

a {
    text-decoration: none;
    font-size: 1rem;
}

    a:hover {
        text-decoration: none;
    }*/

/* البحث */
/*.searching .head > .form-group {
    height: 40px;
    margin: 0;
    position: relative;
}

    .searching .head > .form-group .icon {
        top: 50%;
        transform: translateY(-50%);
        right: 1rem;
        position: absolute;
    }

.searching input.search {
    height: 100%;
    padding: 0.5rem 3rem;
    box-shadow: none !important;
}

    .searching input.search:hover,
    .searching input.search:focus,
    .searching input.search:active {
        border-color: #00958a;
    }*/

/* التصنيفات */
/*.categories .card-category {
    background: #ffffff;
    padding: 1rem;
    border: 1px solid #d2d6db;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .categories .card-category .icon {
        background-color: #f3fcf6;
        padding: 1rem;
        border-radius: 50%;
    }

    .categories .card-category .title {
        font-size: 1.5rem;
        font-weight: bold;
    }

    .categories .card-category .sub-text {
        font-size: 1rem;
        color: #1F2A37;
    }

    .categories .card-category .services-count {
        font-size: 0.8rem;
    }

    .categories .card-category:hover,
    .categories .card-category.active {
        border-color: #00958a;
    }*/

/* القائمة الجانبية */
/*aside {
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #d2d6db;
}

    aside .sub-categories .form-check {
        display: flex;
        align-items: center;
        padding-block: 0.2rem;
        padding-right: 1.5em;
    }

        aside .sub-categories .form-check label {
            padding-right: .5rem;
            cursor: pointer;
            font-weight: 500;
        }

        aside .sub-categories .form-check input {
            width: 1.4em;
            height: 1.4em;
            float: right;
            margin-right: -1.5em;
        }*/

/* الكروت */
/*.cards .card {
    border-radius: 0.5rem;
    font-size: .8rem;
}

    .cards .card .card-title {
        font-size: 1.1em;
        min-height: 19px;
    }

    .cards .card .sub-services .sub-text {
        font-size: 12px;
        padding: 5px;
    }

        .cards .card .sub-services .sub-text.primary {
            background-color: #ecfdf3;
            border: 1px solid #abefc6;
            color: #00958a;
        }

        .cards .card .sub-services .sub-text.secondary {
            background-color: #eff8ff;
            border: 1px solid #b2ddff;
        }

    .cards .card .btns a {
        padding: .5rem;
    }*/

/* الفلترة */
/*.input-group-append {
    position: relative;
    display: inline-block;
}

    .input-group-append .btn-outline-primary {
        --bs-btn-active-bg: #00958a !important;
        --bs-btn-border-color: #00958a !important;
        --bs-btn-active-border-color: #00958a !important;
    }

.dropdown-menu {
    display: none;
    position: absolute;
    padding: 0;
    overflow: hidden;
    left: 0;
    min-width: fit-content;
}

    .dropdown-menu .dropdown-item {
        --bs-dropdown-link-active-bg: #00958a;
        text-align: center;
        border-bottom: 1px solid #d2d6db;
        cursor: pointer;
        padding: 0.25rem 1.5rem !important;
    }

        .dropdown-menu .dropdown-item:last-child {
            border-bottom: none;
        }

.input-group-append .dropdown-menu.show {
    display: block;
    width: 100%;
}

@media only screen and (max-width: 576px) {
    .input-search, .dropdown-toggle {
        height: 40px;
        padding: 0.5em 1em !important;
    }

        .dropdown-toggle::after {
            display: none !important;
        }
}

.selected-category {
    border-color: #00958a !important;
    background-color: #00b1a433 !important;
}*/

/* أيقونات */
/*.icon-container img {
    height: 2rem;
}*/

/* حجم خط صغير */
/*.fs-13 {
    font-size: 0.8rem !important;
}

@media (max-width: 768px) {
    .searching input.search {
        padding-right: 3rem;
        padding-left: .5rem;
    }
}

.card {
    border: 1px solid #d2d6db !important;
    border-radius: 0.9rem !important;
    padding: 0 !important;
}*/

/* card-icon-container */
/*.card-icon-container .card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1em !important;
}

    .card-icon-container .card-body .card-title-container {
        display: flex;
        align-items: baseline;
        width: 100%;
    }

        .card-icon-container .card-body .card-title-container .card-icon-title {
            font-size: 1.125rem !important;
            line-height: 1.75rem;
            font-weight: 700;
            color: #1f2a37 !important;
            margin-block: 0.75rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: normal;
            cursor: default;
            min-height: calc(1.75rem * 2);
            word-break: break-word;
        }

    .card-icon-container .card-body .card-details {
        font-size: 1rem;
        font-weight: 400;
        color: #161616;
        line-height: 1.5rem;
        margin-top: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        cursor: default;
        min-height: calc(1.5rem * 3);
        width: -webkit-fill-available;
    }

    .card-icon-container .card-body .card-buttons {
        display: flex;
        margin-top: 0.5rem;
        gap: 1rem;
        white-space: nowrap;
        width: 100%;
    }

        .card-icon-container .card-body .card-buttons button {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50%;
        }

    .card-icon-container .card-body .card-icons-container {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin-block: 0.75rem;
    }

    .card-icon-container .card-body .calendars-container {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

        .card-icon-container .card-body .calendars-container .creation-date,
        .card-icon-container .card-body .calendars-container .updated-date {
            display: flex;
            align-items: center;
        }

        .card-icon-container .card-body .calendars-container span {
            font-size: 0.75rem;
            font-weight: 400;
            color: #161616;
            margin-inline: 0.5rem;
        }

    .card-icon-container .card-body .custom-badge {
        padding: 0.4em;
        border-radius: 0.2rem;
        font-weight: 400;
        font-size: 0.75rem;
        margin-block: 0.25rem;
    }

        .card-icon-container .card-body .custom-badge.primary {
            background-color: #ecfdf3;
            border: 2px solid #abefc6;
            color: #074d31;
        }

        .card-icon-container .card-body .custom-badge.secondary {
            background-color: #eff8ff;
            border: 1px solid #b2ddff;
            color: #1f2a37;
        }*/

/* card-top-img-container */
/*.card-top-img-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem !important;
}

    .card-top-img-container .card-body {
        width: 100%;
        padding: 0 !important;
        color: #1f2a37 !important;
    }

        .card-top-img-container .card-body h5 {
            font-size: 1.125rem !important;
            line-height: 1.75rem;
            font-weight: 700;
            color: #1f2a37 !important;
            margin-block: 0.75rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: normal;
            cursor: default;
            min-height: calc(1.75rem * 2);
            word-break: break-word;
        }

        .card-top-img-container .card-body p {
            font-size: 1rem !important;
            font-weight: 400 !important;
            line-height: 1.3rem !important;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            min-height: calc(1.3rem * 3);
            white-space: normal;
            cursor: default;
        }

        .card-top-img-container .card-body .cat-img {
            height: 14rem;
            object-fit: fill;
            border-radius: 0.5rem;
            width: 100%;
        }*/

/* card-right-img-container */
/*.card-right-img-container {
    padding: 1rem;
    color: #1f2a37 !important;
}

    .card-right-img-container .card-body {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.9em !important;
    }

        .card-right-img-container .card-body .cat-img {
            width: 45%;
            height: 45%;
            object-fit: contain;
            flex-shrink: 0;
        }

        .card-right-img-container .card-body h5 {
            color: #1f2a37 !important;
            font-size: 1.125rem !important;
            font-weight: 700;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: normal;
            line-height: 1.5rem;
            max-height: 2.8em;
            cursor: default;
        }

        .card-right-img-container .card-body p {
            font-size: 1rem !important;
            font-weight: 400 !important;
            line-height: 1.3rem !important;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            max-height: calc(1.3rem * 3);
            white-space: normal;
            cursor: default;
        }*/




/* ===================== end service ===================== */
/* =====================================
   🌿 DGA Breadcrumb - النسخة النهائية المنسقة
   ===================================== */
.dga-header {
    background: transparent;
    /*  padding-top: 10px;*/
    position: static;
    z-index: auto;
}

.dga-nav {
    background-color: #1b8354;
    padding: 6px 0; /* 🔹 تقليل السماكة */
    position: relative;
}

.card {
    border: 1px solid #d2d6db !important;
    border-radius: 0.9rem !important;
    padding: 0 !important;
}

img.w-100 {
    image-rendering: pixelated;
}
h3.hero-title {
    text-align: right;
    line-height: 2.875rem;
    margin-bottom: .4em;
    font-weight: bold;
    color: #fff !important;
    font-size: 2rem !important;
  
}

:focus-visible {
    outline: 3px solid #1B8354 !important;
    outline-offset: 2px;
}
.skip-link {
    position: absolute;
    top: -40px; /* مخفي فوق الشاشة */
    left: 0;
    background: #0A6847; /* تقدر تغيّر اللون */
    color: #fff;
    padding: 8px 16px;
    z-index: 999; /* فوق كل العناصر */
    transition: top 0.3s ease;
}

    .skip-link:focus {
        top: 0; /* يظهر عندما يحصل focus */
    }
