@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&display=swap');


:root {
    --primary-color: #14573a;
    --primary-dark: #166c45;
    --primary-light: #e8f5e8;
    --secondary-color: #2e7d32;
    --accent-color: #4caf50;
    --text-dark: #2c3e50;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    
    /* ألوان إضافية للدارك مود */
    --dark-bg: #1a1a1a;
    --dark-surface: #2d2d2d;
    --dark-text: #ffffff;
    --dark-text-secondary: #b0b0b0;
    --dark-border: #404040;
    --dark-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

* {
    font-family: 'Almarai', sans-serif;
}
.hero-header * {
    margin-top: 0;
}
   
/* ==============================================================================================*/
/* ========== HERO HEADER ========== */
.hero-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: white !important;
    padding: clamp(8px, 3vw, 28px) 0 clamp(6px, 1.8vw, 12px) !important;
    border-radius: 0 0 clamp(14px, 4vw, 22px) clamp(14px, 4vw, 22px) !important;
    position: relative;
    overflow: hidden;
    margin: 0 !important;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    pointer-events: none;
    opacity: 0.3;
}
.hero-title {
    font-size: clamp(14px, 4.2vw, 24px) !important;
    line-height: 1.2;          /* أقل */
    margin-bottom: clamp(4px, 1.5vw, 10px); /* تقليل المسافة أسفله */
}
.hero-subtitle {
    font-size: clamp(12px, 3.2vw, 15px);
    line-height: 1.25;
    margin-bottom: clamp(6px, 2vw, 14px);
}
.hero-breadcrumb {
    font-size: clamp(11px, 3vw, 15px) !important;
    margin-top: clamp(4px, 1.5vw, 8px);
}
.breadcrumb-item {
    font-size: clamp(11px, 2.8vw, 15px) !important;
    padding: 1px clamp(4px, 1.5vw, 6px) !important;
    line-height: 1.1; /* مهم لتقليل الارتفاع */
}
.breadcrumb-separator {
    font-size: clamp(9px, 2.2vw, 11px) !important;
    margin: 0 clamp(2px, 0.8vw, 4px);
}

.hero-header .row {
    row-gap: clamp(4px, 1.2vw, 10px);
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.breadcrumb-riyadh {
    background: transparent !important;
    padding: 0 !important;
}

.breadcrumb-riyadh .breadcrumb-item {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.breadcrumb-riyadh .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 2px 5px;
    border-radius: 4px;
}

.breadcrumb-riyadh .breadcrumb-item a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.breadcrumb-riyadh .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ======= إزالة القاعدة التالية لأنها غير صحيحة ======= */
/* .breadcrumb-riyadh .breadcrumb-item.active li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
} */

/* ==============================================================================================*/
 /*==================================التنسيق الجديد الاساسي نفس تنسيق محتو سفحة (عن الجوف)  للكونينر الاساسي لكل الصفحات-=========================================*/

    :root {
        --primary-color: #1B8354;
        --primary-dark: #166A45;
        --primary-light: #2A9D6F;
        --text-dark: #092A1E;
        --text-light: #5A6C5D;
        --bg-light: #F8F9FA;
        --white: #FFFFFF;
        --border-radius: 8px;
        --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        --transition: all 0.3s ease;
        --section-spacing: clamp(4rem, 8vw, 8rem);
        --content-spacing: 2rem;
    }

    /* Hero with responsive background */
    .epic-hero {
        min-height: 100vh;
        height:70px;
        width: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    /* Background image container */
    .hero-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .hero-background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* Gradient overlay */
    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(rgba(9, 42, 30, 0.85), rgba(22, 106, 69, 0.8));
        z-index: 2;
    }

    .hero-content {
        position: relative;
        z-index: 3;
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        padding: 2rem;
        color: var(--white);
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
        font-weight: 800;
        margin-bottom: 1.5rem;
        line-height: 1.1;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
        animation: fadeInUp 1s ease;
    }

    .hero-tagline {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        font-weight: 300;
        margin-bottom: 2rem;
        line-height: 1.6;
        opacity: 0.9;
        animation: fadeInUp 1s ease 0.3s both;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-divider {
        width: 100px;
        height: 4px;
        background: var(--primary-light);
        margin: 2.5rem auto;
        border-radius: 2px;
        animation: expandWidth 1.5s ease 0.6s both;
    }

    .scroll-indicator {
        position: absolute;
        bottom: 2rem;
        right: 50%;
        transform: translateX(50%);
        color: var(--white);
        animation: bounce 2s infinite;
        z-index: 3;
    }

    .scroll-indicator i {
        font-size: 1.5rem;
    }

    /* Main content container */
    .story-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
        width: 100%;
        box-sizing: border-box;
    }

    /* مسافات بين الأقسام */
    .section-wrapper {
        margin-bottom: var(--section-spacing);
        padding-top:10px;
        position: relative;
    }

    /* خط فاصل بين الأقسام */
    .section-divider {
        position: relative;
        margin: 20px;
        text-align: center;
    }

    .divider-line {
        height: 1px;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(27, 131, 84, 0.2) 20%, 
            rgba(27, 131, 84, 0.4) 50%, 
            rgba(27, 131, 84, 0.2) 80%, 
            transparent 100%);
        position: relative;
        margin: 0 auto;
        max-width: 800px;
    }

    .divider-icon {
        background: var(--white);
        padding: 0 1.5rem;
        color: var(--primary-color);
        font-size: 1.2rem;
        position: relative;
        top: -0.8rem;
        display: inline-block;
    }

    /* Elegant section headers */
    .section-header {
        text-align: center;
        margin-bottom: clamp(2rem, 5vw, 4rem);
        position: relative;
        margin-bottom: 5px;
    }

    .section-number {
        font-size: clamp(4rem, 15vw, 6rem);
        font-weight: 900;
        color: rgba(27, 131, 84, 0.1);
        position: absolute;
        top: clamp(-1rem, -3vw, -2rem);
        right: 0;
        left: 0;
        z-index: 1;
    }

    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
        color: var(--text-dark);
        margin-bottom: 1rem;
        position: relative;
        z-index: 2;
        font-weight: 700;
    }

    .section-subtitle {
        font-size: clamp(1rem, 3vw, 1.3rem);
        color: var(--primary-dark);
        font-weight: 500;
        max-width: 700px;
        margin: 0 auto;
        line-height: 1.6;
    }

    /* Content text */
    .content-text {
        font-size: clamp(1.1rem, 3vw, 1.2rem);
        line-height: 1.9;
        color: var(--text-light);
        text-align: justify;
        margin-bottom: var(--content-spacing);
    }

    /* مسافة للمحتوى */
    .content-wrapper {
        max-width: 800px;
        margin: 0 auto var(--section-spacing);
        padding: 0 clamp(1rem, 3vw, 0);
    }

    /* Image Gallery Styles */
    .jouf-gallary {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
        margin: var(--section-spacing) auto;
        padding: 0 1rem;
        max-width: 1400px;
    }

    .jouf-gallary img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        transition: var(--transition);
        cursor: pointer;
        aspect-ratio: 4/3;
    }

    .jouf-gallary img:hover {
        transform: translateY(-5px) scale(1.03);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        z-index: 10;
    }

    /* Center image styling */
    .centered-image {
        display: block;
        max-width: 800px;
        width: 100%;
        height: auto;
        margin: var(--section-spacing) auto;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* Historical quote styling */
    .active-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #14573a, #1e7d5c);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 87, 58, 0.3);
}

.active-btn:hover {
    background: linear-gradient(135deg, #1e7d5c, #14573a);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(20, 87, 58, 0.4);
    color: white;
}

.active-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(20, 87, 58, 0.3);
}

/* Alternative style with outline */
.active-btn.outline {
    background: transparent;
    color: #14573a;
    border: 2px solid #14573a;
    box-shadow: none;
}

.active-btn.outline:hover {
    background: #14573a;
    color: white;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .active-btn {
        padding: 10px 25px;
        font-size: 15px;
        margin-top: 15px;
    }
}


    /* Animations */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes expandWidth {
        from { width: 0; }
        to { width: 100px; }
    }

    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateX(50%) translateY(0);
        }
        40% {
            transform: translateX(50%) translateY(-10px);
        }
        60% {
            transform: translateX(50%) translateY(-5px);
        }
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        :root {
            --section-spacing: clamp(3rem, 6vw, 5rem);
        }
        
        .jouf-gallary {
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1rem;
        }
        
        .jouf-gallary img {
            height: 200px;
        }
        
        .content-wrapper {
            padding: 0 1rem;
        }
    }

    @media (max-width: 576px) {
        :root {
            --section-spacing: clamp(2.5rem, 5vw, 4rem);
        }
        
        .jouf-gallary {
            grid-template-columns: 1fr;
            max-width: 400px;
        }
        
        .jouf-gallary img {
            height: 250px;
        }
        
        .centered-image {
            margin: var(--section-spacing) 1rem;
        }
    }

    @media (max-width: 480px) {
        .hero-title {
            font-size: 2rem;
        }
        
        .hero-tagline {
            font-size: 1.1rem;
        }
        
        .section-title {
            font-size: 1.5rem;
        }
    }

    /* Optional: Lightbox effect */
    .jouf-gallary img:active {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1.1);
        width: 90vw;
        height: auto;
        max-height: 90vh;
        z-index: 9999;
        border-radius: 10px;
        box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.9);
        cursor: zoom-out;
    }

    /* Loading animation for images */
    .jouf-gallary img {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
    }

    @keyframes loading {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }

    .jouf-gallary img:not([src]) {
        visibility: hidden;
    }



/* ==============================================================================================*/
/*-------------------------------------------التنسيق الجديد لصفحات (الاعلانات - الاخبار الفعاليات والمبادرات ) --------------------------------------------------*/
 /* تصميم مرن للشبكة */
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }
        
        /* تصميم مبسط للبطاقات */
        .simple-card {
            background: #fff;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
            border: 1px solid #f0f0f0;
        }
        
        .simple-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
            border-color: var(--primary-color);
        }
        
        /* تحسين الصورة */
        .card-img-container {
            width: 100%;
            height: 200px;
            overflow: hidden;
            position: relative;
        }
        
        .card-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .simple-card:hover .card-img {
            transform: scale(1.05);
        }
        
        /* محتوى البطاقة */
        .card-content {
            padding: 1.25rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .card-title {
            font-family: 'Almarai', sans-serif;
            font-size: 1.1rem;
            font-weight: 700;
            color: #333;
            margin-bottom: 0.75rem;
            line-height: 1.4;
            height: 3em; /* ارتفاع ثابت للعنوان */
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        
        .card-meta {
            margin-top: auto;
            padding-top: 0.75rem;
            border-top: 1px solid #f0f0f0;
        }
        
        /* زر التفاصيل */
        .details-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1.25rem;
            background-color: var(--primary-color);
            color: white;
            text-decoration: none;
            border-radius: 6px;
            transition: all 0.3s ease;
            font-weight: 500;
            font-size: 0.9rem;
            width: fit-content;
        }
        
        .details-btn:hover {
            background-color: var(--primary-dark);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(30, 107, 71, 0.3);
        }
        
        /* حالة عدم وجود بيانات */
        .empty-state {
            grid-column: 1 / -1;
            text-align: center;
            padding: 3rem 1rem;
            color: #666;
        }
        
        .empty-state i {
            font-size: 3rem;
            margin-bottom: 1rem;
            opacity: 0.5;
        }
        
        /* تحسينات للشاشات الصغيرة */
        @media (max-width: 768px) {
            .cards-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                gap: 1rem;
            }
            
            .card-img-container {
                height: 180px;
            }
            
            .card-content {
                padding: 1rem;
            }
        }
        
        @media (max-width: 576px) {
            .cards-grid {
                grid-template-columns: 1fr; /* عمود واحد للشاشات الصغيرة جداً */
            }
            
            .card-img-container {
                height: 160px;
            }
        }
        
        /* تحسين الترقيم */
        .pagination-nav .pagination {
            justify-content: center;
            margin-top: 2rem;
        }
        
        .page-item.active .page-link {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }
        
        .page-link {
            color: var(--primary-color);
            border: 1px solid #dee2e6;
        }
        
        .page-link:hover {
            color: var(--primary-dark);
            background-color: #f8f9fa;
            border-color: #dee2e6;
        }


 /* ==============================================================================================*/
/* ============================التنسيق الخاص بصفحات المركز الاعلامي =================================*/

  .media-section {
            padding: 60px 0;
            background: #f8f9fa;
        }
        
        .media-tabs {
            border-bottom: 3px solid #e9ecef;
            margin-bottom: 30px;
        }
        
        .media-tabs .nav-link {
            color: #6c757d;
            font-size: 18px;
            font-weight: 600;
            padding: 12px 30px;
            border: none;
            border-radius: 8px 8px 0 0;
            margin: 0 5px;
            transition: all 0.3s ease;
        }
        
        .media-tabs .nav-link.active {
            color: #0d6efd;
            background: #fff;
            border-bottom: 3px solid #0d6efd;
            transform: translateY(-2px);
        }
        
        .media-tabs .nav-link:hover:not(.active) {
            color: #495057;
            background: #f8f9fa;
        }
        
        .media-card {
            border: none;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 100%;
            background: #fff;
        }
        
        .media-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 30px rgba(0,0,0,0.15);
        }
        
        .media-thumbnail {
            height: 220px;
            background-size: cover;
            background-position: center;
            position: relative;
            overflow: hidden;
            display: block;
        }
        
        .media-thumbnail::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .media-card:hover .media-thumbnail::after {
            opacity: 1;
        }
        
        .video-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 2;
            background: rgba(220, 53, 69, 0.9);
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            transition: all 0.3s ease;
            text-decoration: none;
        }
        
        .video-overlay:hover {
            background: rgba(220, 53, 69, 1);
            transform: translate(-50%, -50%) scale(1.1);
        }
        
        .media-content {
            padding: 20px;
        }
        
        .media-date {
            color: #6c757d;
            font-size: 14px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .media-title {
            color: #212529;
            font-size: 18px;
            font-weight: 600;
            line-height: 1.5;
            margin-bottom: 15px;
            min-height: 54px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        
        .doc-download-btn {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }
        
        .doc-download-btn:hover {
            background: linear-gradient(135deg, #218838 0%, #1e9e8a 100%);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
        }
        
        .no-media-message {
            padding: 60px 20px;
            text-align: center;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            border: 2px dashed #dee2e6;
        }
        
        .no-media-icon {
            font-size: 60px;
            color: #adb5bd;
            margin-bottom: 20px;
        }
        
        .image-fullscreen-btn {
            position: absolute;
            top: 15px;
            left: 15px;
            background: rgba(255, 255, 255, 0.9);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #495057;
            font-size: 16px;
            text-decoration: none;
            opacity: 0;
            transition: all 0.3s ease;
            z-index: 3;
        }
        
        .media-card:hover .image-fullscreen-btn {
            opacity: 1;
        }
        
        .image-fullscreen-btn:hover {
            background: white;
            color: #0d6efd;
        }
        
        .badge-new {
            position: absolute;
            top: 15px;
            right: 15px;
            background: #dc3545;
            color: white;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            z-index: 3;
        }
        
        @media (max-width: 768px) {
            .media-tabs .nav-link {
                font-size: 16px;
                padding: 10px 15px;
                margin: 0 2px;
            }
            
            .media-thumbnail {
                height: 200px;
            }
            
            .media-title {
                font-size: 16px;
                min-height: 48px;
            }
            
            .media-content {
                padding: 15px;
            }
        }
        
        @media (max-width: 576px) {
            .media-thumbnail {
                height: 180px;
            }
            
            .media-title {
                font-size: 15px;
                min-height: 45px;
            }
        }
        
        /* نمط للنافذة المنبثقة للصور */
        .image-modal {
            display: none;
            position: fixed;
            z-index: 9999;
            padding-top: 50px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.9);
        }
        
        .image-modal-content {
            margin: auto;
            display: block;
            max-width: 90%;
            max-height: 80vh;
            animation: zoom 0.3s;
        }
        
        @keyframes zoom {
            from {transform: scale(0.8)}
            to {transform: scale(1)}
        }
        
        .close-modal {
            position: absolute;
            top: 20px;
            right: 35px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            transition: 0.3s;
            cursor: pointer;
            z-index: 10000;
        }
        
        .close-modal:hover {
            color: #bbb;
            text-decoration: none;
        }
        
        .modal-caption {
            text-align: center;
            color: #ccc;
            padding: 10px 0;
            height: 50px;
            font-size: 16px;
        }




        /*=======================================================*/
        /*=============================تنسيق جزء صفحة عن الجوف==============================*/

        /* ===== Sidebar ===== */
.sidebar {
    flex: 0 0 clamp(280px, 25vw, 350px);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: 0 var(--space-1) var(--space-3) rgba(0,0,0,0.08);
    position: sticky;
    top: 50%; /* تثبيت في منتصف الشاشة */
    transform: translateY(-50%); /* تعويض نصف ارتفاع العنصر */
    align-self: flex-start;
    max-height: calc(100vh - var(--space-8));
    overflow-y: auto;
}
        
        .sidebar-header {
            border-bottom: 2px solid var(--color-border);
            padding-bottom: var(--space-3);
            margin-bottom: var(--space-4);
        }
        
        .sidebar-header h3 {
            color: var(--color-secondary);
            font-size: var(--fs-xl);
            margin-bottom: var(--space-1);
            line-height: 1.2;
        }
        
        .sidebar-header p {
            color: var(--color-text-light);
            font-size: var(--fs-sm);
        }


