    .category-container {
        max-width: 1200px;
        margin: 100px auto 40px auto; /* مسافة علوية كافية لمنع الاختفاء تحت الـ Navbar الثابتة */
        padding: 0 20px;
    }

    /* عنوان القسم الرئيسي */
    .category-title {
        font-size: 2.2rem;
        color: #0f172a;
        margin-bottom: 35px;
        font-weight: 700;
        letter-spacing: -0.03em;
    }

    /* جدول المهام المتجاوب (Assignments Table) */
    .table-responsive {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        overflow-x: auto; /* يسمح بالتمرير الأفقي السلس على شاشات الهواتف الضيقة */
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.02);
        margin-bottom: 40px;
    }
    
    .assignments-table {
        width: 100%;
        border-collapse: collapse;
        text-align: left;
        font-size: 0.95rem;
    }
    
    .assignments-table th {
        background-color: #f1f5f9;
        color: #475569;
        font-weight: 600;
        padding: 16px 24px;
        border-bottom: 1px solid #e2e8f0;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 0.05em;
    }
    
    .assignments-table td {
        padding: 18px 24px;
        border-bottom: 1px solid #e2e8f0;
        color: #334155;
        vertical-align: middle;
    }
    
    .assignments-table tr:last-child td { border-bottom: none; }
    .assignments-table tr:hover { background-color: #f8fafc; }

    /* مظهر روابط وعناصر الجدول */
    .task-title {
        font-weight: 600;
        color: #0f172a;
        text-decoration: none;
        transition: color 0.2s ease;
    }
    
    .task-title:hover { color: #2563eb; }
    
    .category-tag {
        background-color: #eff6ff;
        color: #2563eb;
        padding: 4px 12px;
        border-radius: 100px;
        font-weight: 600;
        font-size: 0.75rem;
        text-transform: uppercase;
        display: inline-block;
    }
    
    .btn-view-task {
        display: inline-flex;
        align-items: center;
        background-color: #2563eb;
        color: #ffffff;
        padding: 8px 16px;
        border-radius: 6px;
        font-weight: 500;
        font-size: 0.85rem;
        text-decoration: none;
        transition: background 0.2s;
    }
    
    .btn-view-task:hover { background-color: #1d4ed8; }

    /* أزرار التنقل الرقمي المتجاوبة (Pagination) */
    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 30px;
    }

    .pagination a, .pagination span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 40px;
        padding: 0 6px;
        border-radius: 8px;
        font-size: 0.95rem;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .pagination a {
        background-color: #ffffff;
        color: #475569;
        border: 1px solid #e2e8f0;
    }

    .pagination a:hover {
        background-color: #f1f5f9;
        color: #0f172a;
        border-color: #cbd5e1;
    }

    .pagination .active {
        background-color: #2563eb;
        color: #ffffff;
        font-weight: 600;
    }

    .pagination .disabled {
        background-color: #f1f5f9;
        color: #94a3b8;
        border: 1px solid #e2e8f0;
        cursor: not-allowed;
    }

    @media (max-width: 768px) {
        .category-title { font-size: 1.7rem; margin-bottom: 25px; }
        .category-container { margin-top: 80px; padding: 0 10px; }
        .assignments-table th, .assignments-table td { padding: 12px 14px; font-size: 0.9rem; }
    }
